:root{
  --bg:#f6f8fc;--panel:#fff;--text:#172033;--muted:#7b8494;--line:#dce3ee;--blue:#247cff;--blue2:#e8f1ff;--ok:#168a4a;--bad:#c93535;--warn:#b26a00;--shadow:0 18px 45px rgba(21,50,100,.08);--radius:18px
}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 10% -10%,#dbeaff 0,#f6f8fc 36%,#f6f8fc 100%);color:var(--text);font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}a{color:#145bc9;text-decoration:none}a:hover{text-decoration:underline}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 28px;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;color:var(--text);font-weight:800}.brand__mark{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--blue);font-size:20px}.brand__text{white-space:nowrap}.nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.nav a,.inline-form button,.button-link{display:inline-flex;align-items:center;min-height:36px;padding:7px 12px;border-radius:999px;border:1px solid transparent;background:transparent;color:var(--text);font-weight:650}.nav a:hover,.inline-form button:hover,.button-link:hover{background:var(--blue2);text-decoration:none}.inline-form{display:inline}.inline-form button{font:inherit;cursor:pointer}.page{max-width:1200px;margin:0 auto;padding:28px}.flash{max-width:1200px;margin:14px auto 0;padding:12px 18px;border-radius:14px;font-weight:700}.flash--success{background:#e8f8ef;color:#0f6937}.flash--error{background:#ffecec;color:#a92626}.hero{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:stretch;margin-bottom:24px}.hero>div,.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.hero>div:first-child{padding:34px}.hero h1,.page-title h1{font-size:clamp(30px,4vw,50px);line-height:1.05;margin:10px 0 14px}.hero p,.page-title p{max-width:740px;color:var(--muted);font-size:18px}.hero-box{display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#fff,#eaf3ff)}.hero-box pre,.error-page pre{margin:0;color:var(--blue);font:700 19px/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.kicker{color:var(--blue);font:800 14px/1.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.04em}.search{display:flex;gap:10px;margin-top:22px}.search input,.form input,.form textarea,.form select,.inline-status-form select{width:100%;border:1px solid var(--line);border-radius:13px;padding:12px 14px;background:#fff;color:var(--text);font:inherit}.search button,.form button,.inline-status-form button{border:0;border-radius:13px;padding:12px 18px;background:var(--blue);color:#fff;font:800 15px/1 system-ui;cursor:pointer}.search--wide{max-width:700px}.panel{padding:24px;margin-bottom:24px}.panel__head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.panel__head h2{margin:0;font-size:24px}.category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.category-card{display:grid;grid-template-columns:46px 1fr;gap:12px;align-items:start;padding:16px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(180deg,#fff,#fbfdff);color:var(--text)}.category-card:hover{border-color:#bdd4ff;box-shadow:0 12px 24px rgba(36,124,255,.08);text-decoration:none;transform:translateY(-1px)}.category-card__icon{width:44px;height:44px;border:2px solid var(--blue);border-radius:16px;display:grid;place-items:center;color:var(--blue);font-size:24px}.category-card strong{font-size:18px}.category-card em{font-style:normal;color:var(--muted);margin-left:6px}.category-card small{display:block;color:var(--muted);margin-top:4px}.city-cloud{columns:5 160px;column-gap:28px}.city-cloud a{display:flex;justify-content:space-between;break-inside:avoid;padding:7px 0;color:var(--text)}.city-cloud span{color:var(--muted)}.bbs-list{display:grid;gap:14px}.bbs-card{display:grid;grid-template-columns:110px 1fr;gap:16px;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff}.bbs-card__photo{height:110px;border-radius:14px;overflow:hidden;background:var(--blue2);display:grid;place-items:center;color:var(--blue);font-size:40px}.bbs-card__photo img{width:100%;height:100%;object-fit:cover}.bbs-card h3{margin:4px 0 6px;font-size:20px}.bbs-card p{margin:0 0 12px;color:#424b5c}.bbs-card__meta,.bbs-card__foot,.ad-view__meta,.muted{display:flex;flex-wrap:wrap;gap:8px 12px;color:var(--muted);font-size:14px}.bbs-card__meta span,.ad-view__meta span,.ad-view__meta a{padding:3px 8px;background:#f1f5fb;border-radius:999px}.chips{display:flex;flex-wrap:wrap;gap:8px}.chips a{padding:8px 12px;background:#f1f5fb;border-radius:999px;color:var(--text);font-weight:700}.ad-view h1{font-size:clamp(30px,4vw,46px);margin:.2em 0}.photo-strip{display:flex;gap:12px;overflow:auto;margin:20px 0}.photo-strip img{height:230px;max-width:100%;border-radius:16px;object-fit:cover;border:1px solid var(--line)}.board-description-content{font-size:18px;white-space:normal;margin-top:20px}.grid-two{display:grid;grid-template-columns:1fr 1fr;gap:24px}.form{display:grid;gap:14px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form label{font-weight:800}.form label>*{margin-top:7px}.form textarea{min-height:150px;resize:vertical}.wide{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end}.hp-field{position:absolute;left:-9999px;opacity:0}.auth-card{max-width:480px;margin:32px auto}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:11px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}th{font-size:13px;text-transform:uppercase;color:var(--muted);letter-spacing:.04em}.status{display:inline-flex;padding:4px 9px;border-radius:999px;font-weight:800;font-size:12px}.status--published{background:#e8f8ef;color:var(--ok)}.status--pending{background:#fff4df;color:var(--warn)}.status--hidden,.status--rejected{background:#ffecec;color:var(--bad)}.admin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:24px}.stat-card{display:grid;gap:4px;padding:20px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;color:var(--text);box-shadow:var(--shadow)}.stat-card strong{font-size:34px}.stat-card span{color:var(--muted);font-weight:700}.message-card{padding:16px;border:1px solid var(--line);border-radius:16px;margin-bottom:14px}.empty{color:var(--muted);padding:12px}.footer{max-width:1200px;margin:10px auto 34px;padding:0 28px;color:var(--muted);display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;font-size:14px}.error-page{text-align:center}
@media(max-width:820px){.topbar{position:static;display:block}.brand{margin-bottom:10px}.page{padding:18px}.hero{grid-template-columns:1fr}.hero-box{display:none}.category-grid{grid-template-columns:1fr}.bbs-card{grid-template-columns:82px 1fr}.bbs-card__photo{height:82px}.grid-two,.form-grid,.admin-stats{grid-template-columns:1fr}.city-cloud{columns:2 140px}.panel{padding:18px}.search{flex-direction:column}}

/* Home redesign */
.panel--glow{position:relative;overflow:hidden;background:linear-gradient(135deg,rgba(255,255,255,.96) 0%,rgba(250,249,255,.96) 56%,rgba(245,244,255,.96) 100%)}
.panel--glow::before,.panel--glow::after{content:"";position:absolute;border-radius:999px;pointer-events:none;filter:blur(2px)}
.panel--glow::before{width:260px;height:260px;right:-100px;top:-70px;background:radial-gradient(circle,rgba(150,128,255,.20) 0%,rgba(150,128,255,0) 70%)}
.panel--glow::after{width:220px;height:220px;right:50px;bottom:-120px;background:radial-gradient(circle,rgba(90,140,255,.14) 0%,rgba(90,140,255,0) 72%)}
.home-hero{max-width:940px;margin:0 auto 26px;padding:24px 28px 22px;position:relative}
.home-hero__label{display:flex;align-items:center;gap:12px;margin-bottom:16px;color:#2468f2;font:800 15px/1.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.02em}
.home-hero__spark{display:grid;place-items:center;width:22px;height:22px;border-radius:999px;background:linear-gradient(135deg,#588dff,#7c60ff);color:#fff;font-size:12px;box-shadow:0 10px 20px rgba(65,120,255,.25)}
.home-search{display:grid;grid-template-columns:minmax(0,1.8fr) repeat(3,minmax(110px,.7fr)) auto auto;gap:10px;align-items:center}
.home-search__field,.home-search__toggle{min-height:56px;border:1px solid #c9d7ee;border-radius:14px;background:rgba(255,255,255,.92);box-shadow:0 8px 18px rgba(36,100,220,.06)}
.home-search__field{display:flex;align-items:center;padding:0 16px;position:relative}
.home-search__field input,.home-search__field select{width:100%;border:0;background:transparent;color:var(--text);font:600 17px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;outline:none}
.home-search__field select{padding-right:18px;appearance:auto}
.home-search__field--search{padding-left:46px}
.home-search__icon{position:absolute;left:16px;top:50%;width:18px;height:18px;transform:translateY(-50%);color:#7a8ba7}
.home-search__icon svg{display:block;width:100%;height:100%}
.home-search__toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 14px 0 16px;font-weight:800;color:var(--text);white-space:nowrap}
.home-switch{position:relative;display:inline-flex;width:46px;height:26px;flex:0 0 46px}
.home-switch input{position:absolute;opacity:0;pointer-events:none}
.home-switch__slider{width:100%;height:100%;border-radius:999px;background:#d8e3f6;position:relative;transition:.2s}
.home-switch__slider::before{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 3px 8px rgba(0,0,0,.12);transition:.2s}
.home-switch input:checked + .home-switch__slider{background:linear-gradient(135deg,#5b8dff,#7d61ff)}
.home-switch input:checked + .home-switch__slider::before{transform:translateX(20px)}
.home-search__button{min-height:56px;padding:0 26px;border:0;border-radius:14px;background:linear-gradient(135deg,#2f8cff,#236dff);box-shadow:0 16px 28px rgba(35,109,255,.28);color:#fff;font:800 18px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;cursor:pointer}
.hero-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-top:16px;border:1px solid #c9d7ee;border-radius:18px;overflow:hidden;background:rgba(255,255,255,.9)}
.hero-stat{display:grid;grid-template-columns:52px 1fr;gap:14px;align-items:center;padding:18px 18px 16px;position:relative}
.hero-stat+.hero-stat{border-left:1px solid #dce6f3}
.hero-stat strong{display:block;color:#216ffe;font-size:20px;line-height:1.05}
.hero-stat b{display:block;font-size:15px;line-height:1.15}
.hero-stat small{display:block;margin-top:3px;color:#70809c;font-size:13px;line-height:1.2}
.hero-stat__icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;color:#216ffe;background:#edf4ff;border:1px solid #d6e3fb;box-shadow:0 8px 18px rgba(82,130,255,.10)}
.hero-stat__icon svg{width:22px;height:22px}
.hero-stat__icon--violet{color:#5b6eff;background:#f0edff}
.hero-stat__icon--sky{color:#2d86ff;background:#edf6ff}
.hero-stat__icon--mint{color:#3c78ff;background:#eef4ff}
.home-hero__note{margin:14px 0 0;color:#5b6d8f;font-size:16px}
.home-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start;margin-bottom:18px}
.home-section{padding:12px 12px 14px;background:linear-gradient(180deg,#fbfdff 0%,#ffffff 100%)}
.panel__head--title h2,.panel__head--stack h2{display:flex;align-items:center;gap:12px;margin:0;color:#0f1f42;font-size:20px}
.panel__head--title{margin-bottom:16px}
.panel__link{font-weight:800;color:#2468f2;white-space:nowrap}
.panel__link:hover{text-decoration:none;color:#175fe6}
.panel__badge{display:inline-flex;width:18px;height:18px;border-radius:5px;background:linear-gradient(135deg,#5b8eff,#2f7dff);position:relative;box-shadow:0 10px 18px rgba(63,122,255,.25)}
.panel__badge--bookmark::before{content:"";position:absolute;left:5px;top:3px;width:8px;height:10px;background:#fff;border-radius:1px 1px 2px 2px;clip-path:polygon(0 0,100% 0,100% 100%,50% 72%,0 100%)}
.panel__badge--bolt::before{content:"⚡";position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:12px}
.home-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.home-category{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 14px 14px 12px;border-radius:18px;border:1px solid #d8e4f6;background:linear-gradient(180deg,#ffffff 0%,#fdfefe 100%);box-shadow:0 12px 24px rgba(29,74,160,.06);color:var(--text);min-height:74px}
.home-category:hover{text-decoration:none;transform:translateY(-1px);box-shadow:0 16px 28px rgba(29,74,160,.10)}
.home-category__icon{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;background:linear-gradient(135deg,var(--from),var(--to));color:#fff;font-size:25px;font-weight:800;box-shadow:0 14px 24px rgba(88,115,255,.28)}
.home-category__body{min-width:0}
.home-category__body strong{display:block;font-size:17px;line-height:1.15;margin-bottom:4px}
.home-category__body small{display:block;color:#6d7d99;font-size:13px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-category__meta{display:flex;align-items:center;gap:6px;color:#6f7f9a;font-style:normal;font-weight:800;font-size:16px}
.home-category__meta b{color:#4d5d78;font-size:16px}
.home-category__meta i{font-style:normal;font-size:22px;line-height:1;color:#7e8ca5}
.home-side{display:grid;gap:14px}
.city-panel,.safety-panel{position:relative;overflow:hidden;min-height:186px;background:linear-gradient(180deg,#fbfdff 0%,#f5f9ff 100%)}
.city-panel h2,.safety-panel h2{margin:0 0 14px;color:#102148;font-size:18px;position:relative;z-index:2}
.city-panel__chips{display:flex;flex-wrap:wrap;gap:10px;max-width:215px;position:relative;z-index:2}
.city-panel__chips a{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border-radius:999px;background:#edf3ff;border:1px solid #dbe7fd;color:#1d62e0;font-weight:800}
.city-panel__chips a:hover{text-decoration:none;background:#e4eeff}
.city-panel__art{position:absolute;right:0;bottom:0;width:165px;height:auto;opacity:.96;pointer-events:none}
.safety-panel{min-height:152px;background:linear-gradient(180deg,#fffdfd 0%,#faf6ff 100%)}
.safety-panel p{margin:0;max-width:220px;color:#5c6e8b;position:relative;z-index:2}
.safety-panel__art{position:absolute;right:0;bottom:0;width:140px;height:auto;opacity:.98;pointer-events:none}
.howto-panel{padding:18px 20px 22px;background:linear-gradient(135deg,#fefeff 0%,#fbfdff 100%);overflow:hidden}
.howto-panel h2{margin:0 0 18px;text-align:center;font-size:22px;color:#102148}
.howto-grid{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);gap:14px;align-items:center}
.howto-card{position:relative;display:grid;grid-template-columns:auto auto 1fr;gap:16px;align-items:center;padding:18px 20px;border-radius:18px;border:1px solid #d8e4f6;background:linear-gradient(180deg,#ffffff 0%,#f9fbff 100%);box-shadow:0 12px 24px rgba(29,74,160,.05)}
.howto-card__step{display:grid;place-items:center;width:30px;height:30px;border-radius:999px;background:linear-gradient(135deg,#2f86ff,#3c6fff);color:#fff;font-weight:900}
.howto-card__icon{display:grid;place-items:center;width:60px;height:60px;border-radius:18px;background:linear-gradient(180deg,#ffffff 0%,#f0f6ff 100%);border:1px solid #e1ebfb;color:#2e76ff;font-size:28px;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 10px 18px rgba(69,124,255,.07)}
.howto-card strong{display:block;font-size:18px;color:#102148}
.howto-card p{margin:6px 0 0;color:#6d7d99}
.howto-arrow{color:#a3b2cc;font-size:32px;font-weight:700}
.home-latest{background:linear-gradient(180deg,#fbfdff 0%,#ffffff 100%)}
.home-latest .bbs-card{background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)}
@media(max-width:1200px){.home-hero{max-width:none}.page{max-width:100%;padding:22px}.home-grid{grid-template-columns:minmax(0,1fr) 280px}}
@media(max-width:1024px){.home-search{grid-template-columns:minmax(0,1fr) repeat(2,minmax(140px,1fr));}.home-search__field--search{grid-column:1/-1}.home-search__toggle,.home-search__button{grid-column:auto}.hero-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.home-grid{grid-template-columns:1fr}.home-side{grid-template-columns:1fr 1fr}.howto-grid{grid-template-columns:1fr}.howto-arrow{display:none}}
@media(max-width:820px){.home-hero{padding:18px}.home-search{grid-template-columns:1fr}.home-search__field,.home-search__toggle,.home-search__button{width:100%}.hero-stats{grid-template-columns:1fr}.hero-stat+.hero-stat{border-left:0;border-top:1px solid #dce6f3}.home-categories{grid-template-columns:1fr}.home-side{grid-template-columns:1fr}.city-panel__art{width:140px;opacity:.85}.safety-panel__art{width:110px}.howto-card{grid-template-columns:auto 54px 1fr;gap:12px;padding:16px}}


/* Final home visual tuning */
.page{max-width:1320px}
.home-hero{max-width:1240px;width:100%;padding:28px 30px 24px;border-color:#c9d8f5;box-shadow:0 24px 60px rgba(35,84,160,.10), inset 0 1px 0 rgba(255,255,255,.85)}
.home-search{grid-template-columns:minmax(260px,1.8fr) minmax(145px,.7fr) minmax(170px,.8fr) minmax(130px,.65fr) minmax(112px,.55fr) minmax(128px,.55fr)}
.home-search__field,.home-search__toggle{min-width:0}
.home-search__button{width:100%;min-width:118px}
.home-search__field input{min-width:0}
.home-grid{max-width:1240px;margin-left:auto;margin-right:auto;grid-template-columns:minmax(0,1fr) 330px}
.howto-panel,.home-latest{max-width:1240px;margin-left:auto;margin-right:auto}
.home-section{box-shadow:0 18px 42px rgba(24,71,150,.08)}
.city-panel{border-color:#cbdcf8;background:linear-gradient(135deg,#ffffff 0%,#f4f9ff 58%,#edf5ff 100%)}
.city-panel::before{content:"";position:absolute;right:-45px;top:-45px;width:150px;height:150px;border-radius:50%;background:radial-gradient(circle,rgba(54,129,255,.15),rgba(54,129,255,0) 72%)}
.city-panel__art{width:190px}
.safety-panel{border-color:#d8d6ff;background:linear-gradient(135deg,#ffffff 0%,#fbf8ff 56%,#f0edff 100%)}
.safety-panel::before{content:"";position:absolute;right:-60px;top:-50px;width:160px;height:160px;border-radius:50%;background:radial-gradient(circle,rgba(130,96,255,.16),rgba(130,96,255,0) 72%)}
.safety-panel__art{width:158px}
.home-category__icon svg{width:26px;height:26px}
.home-category{transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease}
.howto-panel{border-color:#cddcf6;box-shadow:0 18px 46px rgba(24,71,150,.08), inset 0 1px 0 rgba(255,255,255,.85);background:radial-gradient(circle at 0 100%,rgba(126,97,255,.10),transparent 25%),radial-gradient(circle at 100% 0,rgba(37,124,255,.10),transparent 24%),linear-gradient(135deg,#ffffff 0%,#f8fbff 100%)}
.howto-panel h2{position:relative;display:flex;align-items:center;justify-content:center;gap:16px}
.howto-panel h2::before,.howto-panel h2::after{content:"";width:70px;height:2px;background:linear-gradient(90deg,transparent,#3c7dff,transparent)}
.home-latest{border-color:#cddcf6}
.empty{border:1px solid #d8e4f6;border-radius:14px;background:linear-gradient(180deg,#fff,#fbfdff)}
.brand__mark{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:28px;border:1px solid #cfe0ff;border-radius:9px;background:#f2f7ff;font-size:15px}
@media(max-width:1200px){.home-search{grid-template-columns:minmax(240px,1.7fr) minmax(135px,.65fr) minmax(155px,.75fr) minmax(120px,.6fr) minmax(105px,.5fr) minmax(120px,.5fr)}.home-grid{grid-template-columns:minmax(0,1fr) 310px}}
@media(max-width:1100px){.home-search{grid-template-columns:minmax(0,1fr) repeat(2,minmax(150px,1fr));}.home-search__field--search{grid-column:1/-1}.home-search__button{min-width:0}.home-grid{grid-template-columns:1fr}.home-side{grid-template-columns:1fr 1fr}}


/* PNG graphics + no howto final patch */
.howto-panel{display:none!important}
.city-panel__art{width:205px;right:-8px;bottom:-4px;opacity:.95}
.safety-panel__art{width:174px;right:-10px;bottom:-20px;opacity:.98}
.home-latest{margin-top:20px}
.home-grid{margin-bottom:20px}
.city-panel,.safety-panel{background:linear-gradient(135deg,#ffffff 0%,#f7fbff 52%,#edf5ff 100%)}
.safety-panel{background:linear-gradient(135deg,#ffffff 0%,#fbf8ff 54%,#f0edff 100%)}


/* Real PNG assets integration from approved mockup */
.howto-panel{display:none!important}
.brand__mark--image{width:36px;height:36px;min-width:36px;padding:0;border:0;background:transparent;border-radius:0;overflow:visible}
.brand__mark--image img{display:block;width:36px;height:36px;object-fit:contain}
.home-hero{position:relative;overflow:hidden}
.home-hero__sparkles{position:absolute;right:12px;top:6px;width:86px;height:170px;object-fit:contain;opacity:.62;pointer-events:none;z-index:0}
.home-hero__label,.home-search,.hero-stats,.home-hero__note{position:relative;z-index:1}
.city-panel__art{position:absolute;right:-2px;bottom:-2px;width:208px;height:auto;opacity:.88;pointer-events:none;z-index:0}
.city-panel__chips,.city-panel .panel__head{position:relative;z-index:2}
.safety-panel__art{position:absolute;right:-4px;bottom:-22px;width:176px;height:auto;opacity:.95;pointer-events:none;z-index:0}
.safety-panel h2,.safety-panel p{position:relative;z-index:2}
.city-panel{background:linear-gradient(135deg,#ffffff 0%,#f6faff 53%,#edf5ff 100%)}
.safety-panel{background:linear-gradient(135deg,#ffffff 0%,#fbf8ff 54%,#f1edff 100%)}
.home-latest{margin-top:22px}
.home-grid{margin-bottom:20px}
@media(max-width:820px){.home-hero__sparkles{width:70px;height:140px}.city-panel__art{width:170px}.safety-panel__art{width:135px}.brand__mark--image,.brand__mark--image img{width:32px;height:32px}}


/* Category PNG illustrations + search width fix */
.home-search{grid-template-columns:minmax(245px,1.65fr) 132px 146px 116px 88px 108px!important;gap:8px!important}
.home-search__field,.home-search__toggle{min-height:52px!important;border-radius:14px}
.home-search__field{padding-left:14px;padding-right:12px}
.home-search__field--search{padding-left:44px}
.home-search__field input,.home-search__field select{font-size:15px!important}
.home-search__toggle{padding:0 10px 0 12px!important;font-size:15px!important}
.home-switch{width:38px!important;height:22px!important;flex-basis:38px!important}
.home-switch__slider::before{width:16px!important;height:16px!important}
.home-switch input:checked + .home-switch__slider::before{transform:translateX(16px)!important}
.home-search__button{min-height:52px!important;min-width:0!important;width:108px!important;padding:0 16px!important;font-size:16px!important}
.home-category{grid-template-columns:72px minmax(0,1fr) auto!important;min-height:96px!important;padding:12px 14px 12px 12px!important;gap:15px!important}
.home-category__icon--image{width:72px!important;height:72px!important;border:0!important;border-radius:18px!important;background:transparent!important;box-shadow:0 14px 24px rgba(88,115,255,.16)!important;overflow:visible!important;padding:4px!important;box-sizing:border-box}
.home-category__icon--image img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;object-position:center;margin:0 auto;box-sizing:border-box}
.home-category__body strong{font-size:17px}
.home-category__body small{font-size:13px;line-height:1.28}
.home-category-card{grid-template-columns:76px minmax(0,1fr) auto!important;min-height:102px!important}
.home-category-card__icon--image{width:76px!important;height:76px!important;border:0!important;border-radius:20px!important;background:transparent!important;box-shadow:0 14px 24px rgba(88,115,255,.16)!important;overflow:visible!important;padding:4px!important;box-sizing:border-box}
.home-category-card__icon--image img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;object-position:center;margin:0 auto;box-sizing:border-box}
@media(max-width:1240px){.home-search{grid-template-columns:minmax(0,1fr) 132px 146px 116px 88px 108px!important}}
@media(max-width:1100px){.home-search{grid-template-columns:minmax(0,1fr) repeat(2,minmax(140px,1fr))!important}.home-search__field--search{grid-column:1/-1}.home-search__button{width:100%!important}.home-search__toggle{justify-content:center}}
@media(max-width:820px){.home-category{grid-template-columns:64px minmax(0,1fr) auto!important;min-height:88px!important}.home-category__icon--image{width:64px!important;height:64px!important;padding:3px!important}.home-category-card{grid-template-columns:64px minmax(0,1fr) auto!important}.home-category-card__icon--image{width:64px!important;height:64px!important;padding:3px!important}}

/* FINAL category inner image, search and shield fix */
.page-title--category{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 360px!important;
    gap:28px!important;
    align-items:center!important;
    min-height:260px!important;
    background:linear-gradient(135deg,#ffffff 0%,#f7fbff 48%,#f0f4ff 100%)!important;
    border-color:#cddcf6!important;
    overflow:hidden!important;
    position:relative!important;
}
.page-title--category::after{
    content:"";
    position:absolute;
    right:-90px;
    top:-110px;
    width:320px;
    height:320px;
    border-radius:999px;
    background:radial-gradient(circle,rgba(102,119,255,.13),rgba(102,119,255,0) 70%);
    pointer-events:none;
}
.page-title__content{min-width:0!important;position:relative!important;z-index:1!important}
.page-title--category .chips{margin-top:18px!important}
.page-title__art--category{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:4px!important;
    position:relative!important;
    z-index:1!important;
}
.page-title__art--category img{
    display:block!important;
    width:100%!important;
    max-width:330px!important;
    height:auto!important;
    object-fit:contain!important;
    border-radius:34px!important;
    filter:drop-shadow(0 24px 34px rgba(61,101,191,.20))!important;
}
.kicker{text-transform:none!important}
.footer span:first-child{font-weight:800!important;color:#7183a3!important}

/* Поиск: переключатель больше не заезжает на кнопку */
.home-search{
    grid-template-columns:minmax(300px,1fr) 128px 146px 116px 126px 112px!important;
    gap:10px!important;
    align-items:center!important;
}
.home-search__field,
.home-search__toggle,
.home-search__button{
    box-sizing:border-box!important;
    min-height:52px!important;
}
.home-search__toggle{
    width:126px!important;
    min-width:126px!important;
    max-width:126px!important;
    padding:0 10px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
}
.home-search__toggle span:first-child{flex:0 0 auto!important}
.home-switch{
    width:36px!important;
    height:22px!important;
    min-width:36px!important;
    flex:0 0 36px!important;
}
.home-switch__slider::before{
    width:16px!important;
    height:16px!important;
}
.home-switch input:checked + .home-switch__slider::before{
    transform:translateX(14px)!important;
}
.home-search__button{
    width:112px!important;
    min-width:112px!important;
    max-width:112px!important;
    padding:0 14px!important;
}

/* Щит безопасности: полностью внутри карточки, без обрезания */
.safety-panel{
    min-height:152px!important;
    overflow:hidden!important;
}
.safety-panel__art{
    right:12px!important;
    bottom:8px!important;
    width:104px!important;
    max-width:36%!important;
    height:auto!important;
    object-fit:contain!important;
    opacity:.96!important;
    transform:none!important;
}
.safety-panel h2,
.safety-panel p{
    position:relative!important;
    z-index:2!important;
}
.safety-panel p{
    max-width:210px!important;
}

@media(max-width:1280px){
    .home-search{
        grid-template-columns:minmax(260px,1fr) 122px 138px 110px 120px 108px!important;
        gap:8px!important;
    }
    .home-search__toggle{
        width:120px!important;
        min-width:120px!important;
        max-width:120px!important;
    }
    .home-search__button{
        width:108px!important;
        min-width:108px!important;
        max-width:108px!important;
    }
}
@media(max-width:1100px){
    .home-search{
        grid-template-columns:minmax(0,1fr) repeat(2,minmax(140px,1fr))!important;
    }
    .home-search__field--search{grid-column:1/-1!important}
    .home-search__toggle,
    .home-search__button{
        width:100%!important;
        min-width:0!important;
        max-width:none!important;
    }
}
@media(max-width:900px){
    .page-title--category{
        grid-template-columns:1fr!important;
        min-height:0!important;
    }
    .page-title__art--category{
        order:-1!important;
        padding-bottom:0!important;
    }
    .page-title__art--category img{
        max-width:220px!important;
    }
}
@media(max-width:820px){
    .safety-panel__art{
        right:10px!important;
        bottom:8px!important;
        width:92px!important;
        max-width:34%!important;
    }
}


/* FINAL category inner image size tune */
.page-title--category{
    grid-template-columns:minmax(0,1fr) 210px!important;
    gap:18px!important;
    align-items:center!important;
    min-height:188px!important;
    padding-top:18px!important;
    padding-bottom:18px!important;
    background:linear-gradient(135deg,#ffffff 0%,#f8fbff 50%,#f2f5ff 100%)!important;
}
.page-title--category::after{
    right:-110px!important;
    top:-120px!important;
    width:240px!important;
    height:240px!important;
    opacity:.7!important;
}
.page-title--category .page-title__content h1{
    margin:8px 0 10px!important;
    font-size:clamp(28px,3.8vw,42px)!important;
}
.page-title--category .page-title__content p{
    margin:0!important;
    max-width:720px!important;
    font-size:16px!important;
}
.page-title--category .chips{
    margin-top:14px!important;
}
.page-title__art--category{
    padding:0!important;
    justify-content:flex-end!important;
    overflow:visible!important;
}
.page-title__art--category img{
    width:auto!important;
    max-width:172px!important;
    max-height:172px!important;
    border-radius:0!important;
    filter:drop-shadow(0 16px 28px rgba(61,101,191,.18))!important;
    background:transparent!important;
    box-shadow:none!important;
}
@media(max-width:900px){
    .page-title--category{
        grid-template-columns:1fr!important;
        min-height:0!important;
        gap:12px!important;
    }
    .page-title__art--category{
        justify-content:center!important;
        order:-1!important;
    }
    .page-title__art--category img{
        max-width:148px!important;
        max-height:148px!important;
    }
}


/* Admin/users/photos/settings feature patch */
.table-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.table-actions .inline-form button{border:1px solid #ffd5d5;background:#fff0f0;color:#b92b2b}
.admin-menu{gap:10px 12px}
.checkline{display:flex!important;align-items:center;gap:10px;font-weight:700}
.checkline input[type=checkbox]{width:auto;margin:0}
.maintenance-page{text-align:left;min-height:260px;display:grid;align-content:center}
.profile-photo-grid,.photo-admin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}
.profile-photo-grid figure,.photo-admin-grid figure{margin:0;border:1px solid var(--line);border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 10px 24px rgba(21,50,100,.06)}
.profile-photo-grid img,.photo-admin-grid img{display:block;width:100%;height:180px;object-fit:cover;background:#eef4ff}
.profile-photo-grid figcaption,.photo-admin-grid figcaption{padding:12px;display:grid;gap:8px;color:var(--muted)}
.profile-photo-grid figcaption strong{color:var(--text)}
.profile-photo--main{outline:3px solid rgba(36,124,255,.22)}
.photo-actions{display:flex;gap:8px;flex-wrap:wrap}
.photo-actions form{display:inline}
.photo-actions button{border:0;border-radius:999px;padding:8px 10px;background:var(--blue2);color:#145bc9;font-weight:800;cursor:pointer}
.avatar-mini{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:14px;object-fit:cover;background:#e8f1ff;color:#247cff;font-weight:900}
.avatar-mini--empty{border:1px solid #d4e2f7}
.message-card--with-avatar{display:grid;grid-template-columns:54px 1fr;gap:14px;align-items:start}
.private-photo-lock,.bbs-card__photo--private{position:relative;overflow:hidden;background:
    radial-gradient(circle at 50% 42%,rgba(255,255,255,.95) 0 9%,transparent 10%),
    radial-gradient(ellipse at 50% 78%,rgba(255,255,255,.85) 0 22%,transparent 23%),
    linear-gradient(135deg,#dce7fa,#b9c9e8)!important;filter:none}
.private-photo-lock{width:230px;height:230px;border-radius:16px;display:grid;place-items:end center;color:#fff;font-weight:900;text-shadow:0 2px 8px rgba(0,0,0,.35);padding:18px}
.bbs-card__photo--private span{display:grid;place-items:center;width:100%;height:100%;backdrop-filter:blur(9px);color:#fff;font-size:14px;font-weight:900;text-shadow:0 2px 8px rgba(0,0,0,.35)}
.private-photo-lock::before,.bbs-card__photo--private::before{content:"";position:absolute;inset:0;backdrop-filter:blur(9px);background:rgba(42,68,115,.18)}
.private-photo-lock span{position:relative;z-index:1}
.status--active{background:#e8f8ef;color:var(--ok)}
.status--banned{background:#ffecec;color:var(--bad)}
.status--sent{background:#e8f1ff;color:#145bc9}

/* Keep safety shield inside the card after all older CSS */
.safety-panel{min-height:152px!important;overflow:hidden!important}
.safety-panel__art{right:12px!important;bottom:8px!important;width:104px!important;max-width:36%!important;height:auto!important;object-fit:contain!important;opacity:.96!important;transform:none!important}

/* Search hard fix: switch cannot overlap button */
.home-search{grid-template-columns:minmax(300px,1fr) 128px 146px 116px 126px 112px!important;gap:10px!important}
.home-search__toggle{width:126px!important;min-width:126px!important;max-width:126px!important;gap:8px!important;justify-content:center!important;overflow:hidden!important}
.home-search__button{width:112px!important;min-width:112px!important;max-width:112px!important}
@media(max-width:1280px){.home-search{grid-template-columns:minmax(260px,1fr) 122px 138px 110px 120px 108px!important}.home-search__toggle{width:120px!important;min-width:120px!important;max-width:120px!important}.home-search__button{width:108px!important;min-width:108px!important;max-width:108px!important}}
@media(max-width:1100px){.home-search{grid-template-columns:minmax(0,1fr) repeat(2,minmax(140px,1fr))!important}.home-search__field--search{grid-column:1/-1!important}.home-search__toggle,.home-search__button{width:100%!important;min-width:0!important;max-width:none!important}}


/* Existing profile photo selection in ad form */
.photo-source-panel{border:1px solid var(--line);border-radius:18px;padding:18px;background:linear-gradient(135deg,#fff 0%,#f8fbff 100%)}
.photo-source-panel h2{margin:0 0 8px}
.ad-photo-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin:12px 0 16px}
.ad-photo-option{display:grid!important;gap:8px;align-content:start;border:1px solid #d7e4f6;border-radius:16px;background:#fff;padding:10px;cursor:pointer;box-shadow:0 10px 22px rgba(21,50,100,.05)}
.ad-photo-option input{width:auto;margin:0}
.ad-photo-option img{width:100%;height:112px;object-fit:cover;border-radius:12px;background:#eef4ff}
.ad-photo-option span{font-size:12px;color:#667693;line-height:1.25}
.ad-photo-option:has(input:checked){outline:3px solid rgba(36,124,255,.22);border-color:#7fb0ff}


/* Admin destructive buttons */
.table-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.table-actions .inline-form button,
.page-title .inline-form button{
    border:1px solid #ffd1d1;
    background:#fff0f0;
    color:#b92b2b;
}
.page-title .inline-form{display:inline-flex}


/* File input and profile ad management polish */
input[type="file"]{
    font:inherit;
    color:#52627d;
}
input[type="file"]::file-selector-button{
    border:0;
    border-radius:14px;
    padding:10px 16px;
    margin-right:12px;
    background:linear-gradient(135deg,#247cff,#1465f5);
    color:#fff;
    font-weight:900;
    cursor:pointer;
    box-shadow:0 10px 22px rgba(36,124,255,.22);
}
input[type="file"]::file-selector-button:hover{
    filter:brightness(.98);
}
.button-danger,
.inline-form .button-danger{
    border:1px solid #ffd1d1!important;
    background:#fff0f0!important;
    color:#b92b2b!important;
    border-radius:999px;
    padding:10px 16px;
    font-weight:900;
    cursor:pointer;
}
.table-actions .button-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    padding:9px 12px;
    background:var(--blue2);
    color:#145bc9;
    font-weight:900;
    text-decoration:none;
}
.table-actions .inline-form button{
    border-radius:999px;
    padding:9px 12px;
    font-weight:900;
    cursor:pointer;
}


/* District filter patch */
.home-search{
    grid-template-columns:minmax(230px,1.35fr) 126px 154px 144px 108px 118px 108px!important;
    gap:8px!important;
}
.home-search__field--district{display:flex}
.home-search__field--district.is-hidden{display:none!important}
.home-search--district{
    grid-template-columns:minmax(230px,1.3fr) 150px 170px 150px 112px 118px 108px!important;
}
.home-search--district select,
.home-search--district button,
.home-search--district .toggle-filter{
    min-height:50px;
}
[data-district-wrap].is-hidden{display:none!important}
.form-grid [data-district-wrap]{display:grid}
@media(max-width:1320px){
    .home-search{
        grid-template-columns:minmax(220px,1.2fr) 122px 148px 138px 104px 112px 104px!important;
    }
}
@media(max-width:1180px){
    .home-search,
    .home-search--district{
        grid-template-columns:minmax(0,1fr) repeat(3,minmax(140px,1fr))!important;
    }
    .home-search__field--search,
    .home-search__query{
        grid-column:1/-1!important;
    }
    .home-search__toggle,
    .home-search__button,
    .home-search button,
    .home-search .toggle-filter{
        width:100%!important;
        min-width:0!important;
        max-width:none!important;
    }
}
@media(max-width:720px){
    .home-search,
    .home-search--district{
        grid-template-columns:1fr!important;
    }
}


/* Photo lightbox modal */
.photo-lightbox{display:block;cursor:zoom-in;text-decoration:none}
.photo-lightbox img{display:block}
.photo-modal{
    position:fixed;
    inset:0;
    z-index:9999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:28px;
    background:rgba(7,20,45,.76);
    backdrop-filter:blur(8px);
}
.photo-modal.is-open{display:flex}
.photo-modal__image{
    max-width:min(96vw,1200px);
    max-height:92vh;
    width:auto;
    height:auto;
    border-radius:22px;
    box-shadow:0 30px 90px rgba(0,0,0,.45);
    background:#fff;
}
.photo-modal__close{
    position:absolute;
    right:24px;
    top:18px;
    width:46px;
    height:46px;
    border:0;
    border-radius:999px;
    background:rgba(255,255,255,.92);
    color:#0d1b34;
    font-size:32px;
    line-height:1;
    font-weight:900;
    cursor:pointer;
    box-shadow:0 12px 32px rgba(0,0,0,.22);
}
.photo-modal-open{overflow:hidden}
.profile-photo-grid .photo-lightbox,
.photo-admin-grid .photo-lightbox{display:block}


/* District filter patch final */
.home-search{
    grid-template-columns:minmax(230px,1.35fr) 126px 154px 144px 108px 118px 108px!important;
    gap:8px!important;
}
.home-search__field--district{display:flex}
.home-search__field--district.is-hidden{display:none!important}
.home-search--district{
    grid-template-columns:minmax(230px,1.3fr) 150px 170px 150px 112px 118px 108px!important;
}
.home-search--district select,
.home-search--district button,
.home-search--district .toggle-filter{
    min-height:50px;
}
[data-district-wrap].is-hidden{display:none!important}
.form-grid [data-district-wrap]{display:grid}
@media(max-width:1320px){
    .home-search{
        grid-template-columns:minmax(220px,1.2fr) 122px 148px 138px 104px 112px 104px!important;
    }
}
@media(max-width:1180px){
    .home-search,
    .home-search--district{
        grid-template-columns:minmax(0,1fr) repeat(3,minmax(140px,1fr))!important;
    }
    .home-search__field--search,
    .home-search__query{
        grid-column:1/-1!important;
    }
    .home-search__toggle,
    .home-search__button,
    .home-search button,
    .home-search .toggle-filter{
        width:100%!important;
        min-width:0!important;
        max-width:none!important;
    }
}
@media(max-width:720px){
    .home-search,
    .home-search--district{
        grid-template-columns:1fr!important;
    }
}

/* Ad view action layout and edit-photo patch */
.ad-view__header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    margin-bottom:8px;
}
.ad-view__title-block{min-width:0;flex:1}
.ad-report-box{position:relative;flex:0 0 auto;z-index:2}
.ad-report-box>summary,
.ad-reply-box>summary,
.ad-action-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    border:0;
    border-radius:999px;
    padding:11px 16px;
    background:linear-gradient(135deg,#247cff,#1465f5);
    color:#fff;
    font-weight:900;
    line-height:1;
    cursor:pointer;
    box-shadow:0 12px 26px rgba(36,124,255,.22);
    text-decoration:none;
    list-style:none;
}
.ad-report-box>summary{
    background:#fff0f0;
    color:#b92b2b;
    border:1px solid #ffd1d1;
    box-shadow:none;
}
.ad-report-box>summary::-webkit-details-marker,
.ad-reply-box>summary::-webkit-details-marker{display:none}
.ad-report-box[open]>summary,
.ad-reply-box[open]>summary{filter:brightness(.98)}
.ad-report-form,
.ad-reply-form{
    margin-top:12px;
    padding:16px;
    border:1px solid var(--line);
    border-radius:18px;
    background:#fff;
    box-shadow:0 18px 42px rgba(21,50,100,.14);
}
.ad-report-form{position:absolute;right:0;top:100%;width:min(420px,88vw)}
.ad-body-panel{
    margin-top:18px;
    padding:18px;
    border:1px solid #dfe9f7;
    border-radius:18px;
    background:linear-gradient(180deg,#fff,#f9fbff);
}
.ad-body-panel h2{margin:0 0 10px;font-size:20px}
.ad-body-panel .board-description-content{margin:0;font-size:18px;line-height:1.65;color:#253044}
.ad-contact-actions{margin-top:18px;display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap}
.ad-reply-box{width:100%}
.ad-reply-form{max-width:640px}
.ad-login-reply{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ad-login-reply p{width:100%;margin:2px 0 0;color:var(--muted)}
.ad-action-button--ghost{background:#eef5ff;color:#145bc9;box-shadow:none}
.ad-owner-note{display:inline-flex;align-items:center;min-height:42px;border-radius:999px;padding:10px 14px;background:#f1f5fb;color:#52627d;font-weight:800}
.current-ad-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;margin:14px 0 18px}
.current-ad-photos figure{margin:0;border:1px solid #d7e4f6;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 10px 22px rgba(21,50,100,.05)}
.current-ad-photos img{display:block;width:100%;height:130px;object-fit:cover;background:#eef4ff}
.current-ad-photos figcaption{padding:10px 12px;color:#667693;font-size:12px;font-weight:700;line-height:1.3}
.ad-photo-option--keep{min-height:112px;place-content:center;text-align:center;background:#f8fbff!important}
.ad-photo-option--keep span{font-size:13px!important;color:#145bc9!important;font-weight:900!important}
.photo-source-panel--edit h3{margin:18px 0 8px;font-size:18px}
@media(max-width:760px){
    .ad-view__header{display:grid;gap:12px}
    .ad-report-box{width:100%}
    .ad-report-box>summary{width:100%}
    .ad-report-form{position:static;width:auto}
}

/* Ad card final layout fix: compact report button, real body text, guest restrictions */
.sr-only{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
}
.ad-view{
    position:relative;
    overflow:visible;
}
.ad-view__header{
    position:relative!important;
    display:block!important;
    padding-right:64px;
    min-height:54px;
    margin-bottom:8px;
}
.ad-view__title-block{
    min-width:0;
}
.ad-report-box{
    position:absolute!important;
    top:0;
    right:0;
    width:auto!important;
    z-index:30;
}
.ad-report-box>summary{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    min-height:44px!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
    border-radius:13px!important;
    border:2px solid #ff2d2d!important;
    background:linear-gradient(180deg,#fff,#fff5f5)!important;
    color:#e60000!important;
    box-shadow:0 12px 24px rgba(230,0,0,.12)!important;
    font-size:0!important;
    line-height:1!important;
}
.ad-report-box>summary span[aria-hidden="true"]{
    display:grid;
    place-items:center;
    width:24px;
    height:24px;
    border-radius:999px;
    background:#ff1010;
    color:#fff;
    font-size:18px;
    font-weight:1000;
    line-height:1;
    font-family:Arial,sans-serif;
}
.ad-report-box>summary:hover{
    transform:translateY(-1px);
    box-shadow:0 16px 30px rgba(230,0,0,.18)!important;
}
.ad-report-box[open]>summary{
    background:#ffeded!important;
}
.ad-report-form{
    position:absolute!important;
    top:54px!important;
    right:0!important;
    width:min(420px,88vw)!important;
    z-index:40;
}
.ad-body-panel{
    margin-top:20px!important;
    padding:20px!important;
}
.ad-body-panel h2{
    margin:0 0 12px!important;
}
.ad-body-panel .board-description-content{
    display:block!important;
    margin:0!important;
    white-space:pre-line!important;
    overflow-wrap:anywhere;
    color:#071833!important;
    font-size:17px!important;
    line-height:1.65!important;
}
.ad-contact-actions{
    margin-top:18px!important;
}
.ad-reply-box>summary{
    border-radius:14px!important;
}
@media(max-width:760px){
    .ad-view__header{
        padding-right:58px!important;
    }
    .ad-report-box{
        top:0!important;
        right:0!important;
    }
    .ad-report-form{
        right:0!important;
        width:min(360px,calc(100vw - 56px))!important;
    }
}

/* Edit ad photo preview hard cap */
.photo-source-panel--edit .current-ad-photos{
    display:grid!important;
    grid-template-columns:repeat(auto-fill,minmax(150px,170px))!important;
    align-items:start!important;
    justify-content:start!important;
    gap:12px!important;
    max-width:100%!important;
}
.photo-source-panel--edit .current-ad-photo,
.photo-source-panel--edit .current-ad-photos figure{
    width:170px!important;
    max-width:170px!important;
    margin:0!important;
    overflow:hidden!important;
}
.photo-source-panel--edit .current-ad-photo__link,
.photo-source-panel--edit .current-ad-photos .photo-lightbox{
    display:block!important;
    width:170px!important;
    height:130px!important;
    max-width:170px!important;
    overflow:hidden!important;
    border-radius:14px 14px 0 0!important;
}
.photo-source-panel--edit .current-ad-photo__image,
.photo-source-panel--edit .current-ad-photos img{
    display:block!important;
    width:170px!important;
    height:130px!important;
    max-width:170px!important;
    max-height:130px!important;
    object-fit:cover!important;
    object-position:center!important;
    border-radius:0!important;
    background:#eef4ff!important;
}
.photo-source-panel--edit .current-ad-photos figcaption{
    min-height:44px!important;
}
@media(max-width:520px){
    .photo-source-panel--edit .current-ad-photos{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
    .photo-source-panel--edit .current-ad-photo,
    .photo-source-panel--edit .current-ad-photos figure,
    .photo-source-panel--edit .current-ad-photo__link,
    .photo-source-panel--edit .current-ad-photos .photo-lightbox,
    .photo-source-panel--edit .current-ad-photo__image,
    .photo-source-panel--edit .current-ad-photos img{
        width:100%!important;
        max-width:100%!important;
    }
}

/* BBS patch: stable report button, visible body text and edit-photo hard limits */
.ad-view{
    position:relative!important;
    overflow:visible!important;
}
.ad-view__header{
    position:relative!important;
    display:block!important;
    padding-right:64px!important;
    min-height:58px!important;
    margin-bottom:10px!important;
}
.ad-report-box{
    position:absolute!important;
    top:0!important;
    right:0!important;
    display:block!important;
    width:46px!important;
    height:46px!important;
    margin:0!important;
    z-index:80!important;
}
.ad-report-box>summary{
    list-style:none!important;
    -webkit-appearance:none!important;
    appearance:none!important;
    display:grid!important;
    place-items:center!important;
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    min-height:46px!important;
    max-width:46px!important;
    max-height:46px!important;
    padding:0!important;
    margin:0!important;
    border-radius:14px!important;
    border:2px solid #ff1f1f!important;
    background:linear-gradient(180deg,#fff 0%,#fff4f4 100%)!important;
    color:#fff!important;
    box-shadow:0 14px 28px rgba(225,0,0,.16)!important;
    cursor:pointer!important;
    text-indent:0!important;
    font-size:0!important;
    overflow:hidden!important;
}
.ad-report-box>summary::marker{content:""!important;font-size:0!important}
.ad-report-box>summary::-webkit-details-marker{display:none!important}
.ad-report-box>summary span[aria-hidden="true"]{
    display:grid!important;
    place-items:center!important;
    width:25px!important;
    height:25px!important;
    border-radius:50%!important;
    background:#ff1616!important;
    color:#fff!important;
    font:1000 18px/1 Arial,sans-serif!important;
}
.ad-report-box>summary:hover{
    transform:translateY(-1px)!important;
    box-shadow:0 18px 34px rgba(225,0,0,.22)!important;
}
.ad-report-form{
    position:absolute!important;
    top:54px!important;
    right:0!important;
    width:min(420px,88vw)!important;
    margin:0!important;
    z-index:90!important;
}
.ad-body-panel{
    display:block!important;
    margin:20px 0 0!important;
    padding:20px!important;
    border:1px solid #dfe9f7!important;
    border-radius:18px!important;
    background:linear-gradient(180deg,#fff,#f9fbff)!important;
}
.ad-body-panel h2{
    display:block!important;
    margin:0 0 12px!important;
    color:#071833!important;
}
.ad-body-panel .board-description-content{
    display:block!important;
    margin:0!important;
    white-space:pre-wrap!important;
    overflow-wrap:anywhere!important;
    color:#071833!important;
    font-size:17px!important;
    line-height:1.65!important;
}
.photo-source-panel--edit,
.photo-source-panel--edit *{
    box-sizing:border-box!important;
}
.photo-source-panel--edit .current-ad-photos{
    display:grid!important;
    grid-template-columns:repeat(auto-fill,minmax(150px,170px))!important;
    align-items:start!important;
    justify-content:start!important;
    gap:12px!important;
    max-width:100%!important;
    overflow:hidden!important;
}
.photo-source-panel--edit .current-ad-photo,
.photo-source-panel--edit .current-ad-photos figure{
    width:170px!important;
    min-width:0!important;
    max-width:170px!important;
    margin:0!important;
    overflow:hidden!important;
}
.photo-source-panel--edit .current-ad-photo__link,
.photo-source-panel--edit .current-ad-photos .photo-lightbox{
    display:block!important;
    width:170px!important;
    height:130px!important;
    min-width:0!important;
    max-width:170px!important;
    max-height:130px!important;
    overflow:hidden!important;
}
.photo-source-panel--edit .current-ad-photo__image,
.photo-source-panel--edit .current-ad-photos img{
    display:block!important;
    width:170px!important;
    height:130px!important;
    min-width:0!important;
    max-width:170px!important;
    max-height:130px!important;
    object-fit:cover!important;
    object-position:center!important;
    border-radius:0!important;
}
@media(max-width:760px){
    .ad-view__header{padding-right:58px!important}
    .ad-report-form{width:min(360px,calc(100vw - 56px))!important}
}
@media(max-width:520px){
    .photo-source-panel--edit .current-ad-photos{grid-template-columns:repeat(2,minmax(0,1fr))!important}
    .photo-source-panel--edit .current-ad-photo,
    .photo-source-panel--edit .current-ad-photos figure,
    .photo-source-panel--edit .current-ad-photo__link,
    .photo-source-panel--edit .current-ad-photos .photo-lightbox,
    .photo-source-panel--edit .current-ad-photo__image,
    .photo-source-panel--edit .current-ad-photos img{
        width:100%!important;
        max-width:100%!important;
    }
}

/* BBS final fix: home search photo toggle/button spacing and clean ad text background */
.home-search{
    grid-template-columns:minmax(320px,1.5fr) minmax(130px,.6fr) minmax(160px,.7fr) minmax(120px,.55fr) 148px 128px!important;
    gap:10px!important;
    align-items:center!important;
}
.home-search.home-search--has-district{
    grid-template-columns:minmax(280px,1.2fr) 126px 160px 150px 112px 148px 128px!important;
}
.home-search__field--district.is-hidden{display:none!important}
.home-search__toggle{
    width:148px!important;
    min-width:148px!important;
    max-width:148px!important;
    padding:0 12px!important;
    gap:10px!important;
    justify-content:center!important;
    overflow:visible!important;
    white-space:nowrap!important;
}
.home-search__toggle span:first-child{
    flex:0 0 auto!important;
}
.home-search__button{
    width:128px!important;
    min-width:128px!important;
    max-width:128px!important;
    padding:0 18px!important;
    justify-self:start!important;
}
.home-switch{
    width:38px!important;
    min-width:38px!important;
    flex:0 0 38px!important;
}
@media(max-width:1320px){
    .home-search{
        grid-template-columns:minmax(270px,1fr) 122px 150px 114px 142px 124px!important;
    }
    .home-search.home-search--has-district{
        grid-template-columns:minmax(240px,1fr) 116px 148px 142px 106px 142px 124px!important;
    }
}
@media(max-width:1180px){
    .home-search,
    .home-search.home-search--has-district{
        grid-template-columns:minmax(0,1fr) repeat(3,minmax(140px,1fr))!important;
    }
    .home-search__field--search,
    .home-search__query{
        grid-column:1/-1!important;
    }
    .home-search__toggle,
    .home-search__button{
        width:100%!important;
        min-width:0!important;
        max-width:none!important;
        justify-self:stretch!important;
    }
}
@media(max-width:720px){
    .home-search,
    .home-search.home-search--has-district{
        grid-template-columns:1fr!important;
    }
}
.ad-body-panel .board-description-content,
.ad-body-panel .board-description-content *{
    background:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
}
.ad-body-panel .board-description-content::selection,
.ad-body-panel .board-description-content *::selection{
    background:rgba(47,140,255,.16)!important;
    color:#071833!important;
}

/* BBS final: multiple photos in ads and horizontal gallery slider */
.ad-photo-picker--checkboxes{
    grid-template-columns:repeat(auto-fill,minmax(150px,180px))!important;
    justify-content:start!important;
}
.ad-photo-picker--checkboxes .ad-photo-option{
    position:relative!important;
    min-width:0!important;
}
.ad-photo-picker--checkboxes .ad-photo-option input[type="checkbox"]{
    position:absolute!important;
    top:10px!important;
    left:10px!important;
    z-index:2!important;
    width:22px!important;
    height:22px!important;
    margin:0!important;
    accent-color:#247cff!important;
    background:#fff!important;
    box-shadow:0 3px 10px rgba(7,24,51,.18)!important;
}
.ad-photo-picker--checkboxes .ad-photo-option:has(input:checked)::after{
    content:"Показывать"!important;
    position:absolute!important;
    top:9px!important;
    right:9px!important;
    z-index:2!important;
    padding:4px 7px!important;
    border-radius:999px!important;
    background:#247cff!important;
    color:#fff!important;
    font-size:11px!important;
    font-weight:900!important;
    line-height:1!important;
}
.ad-photo-slider{
    position:relative!important;
    margin:20px 0 22px!important;
    max-width:100%!important;
}
.ad-photo-slider__viewport{
    width:100%!important;
    overflow:hidden!important;
    border-radius:18px!important;
}
.ad-photo-slider__track{
    display:flex!important;
    align-items:stretch!important;
    gap:12px!important;
    min-width:0!important;
    transition:transform .22s ease!important;
}
.ad-photo-slide{
    flex:0 0 170px!important;
    height:230px!important;
    border-radius:18px!important;
    overflow:hidden!important;
    background:#eef4ff!important;
    border:1px solid var(--line)!important;
}
.ad-photo-slide--main{
    flex-basis:380px!important;
}
.ad-photo-slide img,
.ad-photo-slide .photo-lightbox{
    display:block!important;
    width:100%!important;
    height:100%!important;
}
.ad-photo-slide img{
    object-fit:cover!important;
    object-position:center!important;
    border:0!important;
    border-radius:0!important;
}
.ad-photo-slide .private-photo-lock{
    width:100%!important;
    height:100%!important;
    border-radius:0!important;
}
.ad-photo-slider__nav{
    position:absolute!important;
    top:50%!important;
    z-index:4!important;
    width:42px!important;
    height:42px!important;
    transform:translateY(-50%)!important;
    border:1px solid #cfe0f8!important;
    border-radius:50%!important;
    background:rgba(255,255,255,.96)!important;
    color:#145bc9!important;
    box-shadow:0 12px 26px rgba(21,50,100,.18)!important;
    font:900 32px/36px system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;
    cursor:pointer!important;
}
.ad-photo-slider__nav--prev{left:10px!important}
.ad-photo-slider__nav--next{right:10px!important}
.ad-photo-slider__nav:hover{background:#eef5ff!important;text-decoration:none!important}
.ad-photo-slider__nav:disabled{opacity:.35!important;cursor:default!important}
@media(max-width:900px){
    .ad-photo-slide--main{flex-basis:300px!important}
    .ad-photo-slide{flex-basis:150px!important;height:210px!important}
}
@media(max-width:620px){
    .ad-photo-slider__viewport{overflow-x:auto!important;scroll-snap-type:x mandatory!important}
    .ad-photo-slider__track{width:max-content!important}
    .ad-photo-slide,.ad-photo-slide--main{flex-basis:78vw!important;height:260px!important;scroll-snap-align:start!important}
    .ad-photo-slider__nav{display:none!important}
}

/* Create ad page + modern header patch */
.topbar--modern{
    position:sticky;
    top:0;
    z-index:40;
    padding:0 18px;
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(16px);
    border-bottom:1px solid #dfe7f3;
}
.topbar__inner{
    max-width:1280px;
    margin:0 auto;
    min-height:88px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
}
.brand--modern{
    gap:12px;
    text-decoration:none;
}
.brand__copy{
    display:flex;
    flex-direction:column;
    gap:1px;
}
.brand__title{
    font-size:18px;
    line-height:1.05;
    font-weight:800;
    color:#172a58;
}
.brand__subtitle{
    font-size:12px;
    color:#7f8da8;
    font-weight:600;
}
.nav--modern{
    flex:1 1 auto;
    justify-content:center;
    gap:4px;
}
.nav--modern a{
    min-height:42px;
    padding:10px 14px;
    border-radius:12px;
    font-size:15px;
    font-weight:700;
    color:#24355f;
}
.nav--modern a.is-active,
.nav--modern a[href="/new"]:hover,
.nav--modern a:hover{
    color:#366dff;
    background:#eef4ff;
}
.topbar-tools{
    display:flex;
    align-items:center;
    gap:10px;
    margin-left:auto;
}
.topbar-tools__icon,
.user-menu__toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    border-radius:14px;
    border:1px solid #d9e2f0;
    background:#fff;
    color:#22325d;
    box-shadow:0 10px 20px rgba(24,65,140,.05);
    text-decoration:none;
}
.topbar-tools__icon:hover,
.user-menu__toggle:hover{
    background:#f3f7ff;
    text-decoration:none;
}
.topbar-tools__icon svg{
    width:20px;
    height:20px;
}
.user-menu{
    position:relative;
}
.user-menu__toggle{
    width:auto;
    min-width:54px;
    gap:8px;
    padding:0 10px 0 6px;
}
.user-menu__avatar{
    width:32px;
    height:32px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,#6d8bff,#934ff3);
    color:#fff;
    font-weight:800;
    font-size:15px;
}

.user-menu__avatar--photo{
    padding:0;
    overflow:hidden;
    background:#eef3ff;
}
.user-menu__avatar-image{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    border-radius:50%;
}
.user-menu__arrow{
    width:14px;
    height:14px;
    color:#6e7a93;
    transition:transform .2s ease;
}
.user-menu.is-open .user-menu__arrow{transform:rotate(180deg)}
.user-menu__dropdown{
    position:absolute;
    right:0;
    top:calc(100% + 10px);
    width:240px;
    border:1px solid #dfe6f2;
    border-radius:18px;
    background:#fff;
    box-shadow:0 24px 40px rgba(31,65,130,.16);
    padding:10px;
    display:none;
}
.user-menu.is-open .user-menu__dropdown{display:block}
.user-menu__header{
    display:grid;
    gap:2px;
    padding:8px 10px 12px;
    border-bottom:1px solid #edf2fa;
    margin-bottom:8px;
}
.user-menu__header strong{
    font-size:14px;
    color:#172a58;
}
.user-menu__header span{
    font-size:12px;
    color:#7e8ba2;
    word-break:break-word;
}
.user-menu__dropdown a,
.user-menu__dropdown button{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    min-height:40px;
    padding:10px 12px;
    border-radius:12px;
    border:0;
    background:transparent;
    color:#233762;
    font:700 14px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
    text-decoration:none;
    cursor:pointer;
}
.user-menu__dropdown a:hover,
.user-menu__dropdown button:hover{
    background:#f2f6ff;
    color:#366dff;
}
.user-menu__dropdown form{margin:0}

.page{max-width:1280px;padding:28px 24px 40px}

.ad-create-hero{
    position:relative;
    overflow:hidden;
    padding:26px 28px 24px;
    border:1px solid #d8e2f3;
    border-radius:28px;
    background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
    margin-bottom:18px;
}
.ad-create-hero::after{
    content:"";
    position:absolute;
    left:-40px;
    right:-40px;
    top:94px;
    height:120px;
    background:radial-gradient(circle at 20% 20%,rgba(88,132,255,.08),transparent 38%),linear-gradient(180deg,rgba(237,243,255,.92),rgba(246,249,255,0));
    border-radius:100px;
    pointer-events:none;
}
.ad-create-hero__head{
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    gap:20px;
    align-items:end;
    margin-bottom:20px;
    position:relative;
    z-index:1;
}
.ad-create-hero__title-block h1{
    margin:8px 0 10px;
    font-size:60px;
    line-height:1.02;
    color:#142b60;
}
.ad-create-hero__title-block p{
    margin:0;
    font-size:16px;
    color:#7e90af;
    max-width:none;
}
.ad-create-hero__skyline{
    display:flex;
    justify-content:flex-end;
    align-items:flex-end;
}
.ad-create-hero__skyline img{
    width:100%;
    max-width:280px;
    height:auto;
    opacity:.68;
}
.ad-create-steps{
    position:relative;
    z-index:1;
    display:grid;
    grid-template-columns:repeat(15,minmax(0,1fr));
    gap:10px;
    align-items:center;
}
.ad-step-card{
    grid-column:span 2;
    position:relative;
    min-height:180px;
    padding:18px 14px 16px;
    border:1px solid #d8e2f4;
    border-radius:22px;
    background:rgba(255,255,255,.92);
    box-shadow:0 14px 30px rgba(30,76,160,.07);
    text-align:center;
}
.ad-step-card__num{
    position:absolute;
    left:10px;
    top:10px;
    width:24px;
    height:24px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,#477bff,#8b59f4);
    color:#fff;
    font-size:12px;
    font-weight:800;
}
.ad-step-card__icon{
    width:70px;
    height:70px;
    margin:8px auto 14px;
    border-radius:22px;
    display:grid;
    place-items:center;
    background:linear-gradient(180deg,#fbfdff,#eef4ff);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 12px 24px rgba(73,114,211,.10);
    color:#4b77ff;
}
.ad-step-card__icon--heart{color:#9452f4}
.ad-step-card__icon svg{width:34px;height:34px;fill:currentColor}
.ad-step-card strong{display:block;font-size:18px;line-height:1.2;color:#20315f;margin-bottom:6px}
.ad-step-card small{display:block;font-size:13px;line-height:1.35;color:#8794ac}
.ad-create-steps__arrow{
    grid-column:span 1;
    display:grid;
    place-items:center;
    color:#8ea1c9;
    font-size:28px;
    font-weight:700;
}

.ad-create-form{display:grid;gap:16px}
.ad-create-panel{
    margin:0;
    border:1px solid #d8e1f0;
    border-radius:26px;
    padding:24px 28px 22px;
    box-shadow:none;
}
.ad-create-panel h2{
    margin:0 0 16px;
    font-size:18px;
    line-height:1.2;
    color:#326cff;
}
.ad-create-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px 18px;
}
.ad-create-grid .js-district-wrap.is-hidden{display:none}
.ad-create-panel label{
    color:#1e305a;
    font-size:14px;
}
.ad-create-panel input,
.ad-create-panel select,
.ad-create-panel textarea{
    margin-top:8px;
    min-height:56px;
    border-radius:15px;
    border:1px solid #d2ddec;
    background:#fff;
    box-shadow:none;
}
.ad-create-panel textarea{
    min-height:134px;
    padding-bottom:34px;
}
.ad-create-textarea-wrap{position:relative}
.ad-create-text-counter{
    position:absolute;
    right:16px;
    bottom:14px;
    font-size:12px;
    font-weight:700;
    color:#a3afc5;
}
.ad-create-panel__lead{
    margin:-4px 0 12px;
    color:#7d8ba7;
    font-size:14px;
}
.ad-create-photo-block + .ad-create-photo-block{margin-top:18px}
.ad-create-photo-block h3{
    margin:0 0 6px;
    color:#27396a;
    font-size:16px;
}
.ad-create-panel__muted{
    margin:0 0 12px;
    font-size:13px;
    color:#8a97ad;
}
.ad-photo-picker-grid{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:14px;
}
.ad-photo-card{
    position:relative;
    display:block;
    padding:6px;
    border:1px solid #d8e1f0;
    border-radius:18px;
    background:#fff;
    cursor:pointer;
    box-shadow:0 12px 24px rgba(24,71,150,.05);
    overflow:hidden;
}
.ad-photo-card input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}
.ad-photo-card img{
    display:block;
    width:100%;
    aspect-ratio:1/1.1;
    object-fit:cover;
    border-radius:14px;
}
.ad-photo-card__check{
    position:absolute;
    left:12px;
    top:12px;
    width:24px;
    height:24px;
    border-radius:8px;
    border:2px solid #c6d3ea;
    background:rgba(255,255,255,.92);
    z-index:1;
}
.ad-photo-card.is-selected{
    border-color:#4f7dff;
    box-shadow:0 16px 28px rgba(45,105,255,.14);
}
.ad-photo-card.is-selected .ad-photo-card__check{
    background:linear-gradient(135deg,#4f7dff,#8b59f4);
    border-color:transparent;
}
.ad-photo-card.is-selected .ad-photo-card__check::after{
    content:"✓";
    position:absolute;
    inset:0;
    display:grid;
    place-items:center;
    color:#fff;
    font-size:14px;
    font-weight:800;
}
.ad-photo-card__meta{
    display:block;
    padding:10px 8px 4px;
    font-size:12px;
    font-weight:700;
    color:#6e7c98;
    text-align:center;
}
.ad-photo-card__main-badge{
    position:absolute;
    left:50%;
    bottom:18px;
    transform:translateX(-50%);
    min-width:116px;
    padding:9px 14px;
    border-radius:999px;
    background:#fff;
    color:#2c63eb;
    font-size:12px;
    font-weight:800;
    text-align:center;
    box-shadow:0 10px 22px rgba(28,88,214,.16);
}
.ad-upload-box{
    border:1px dashed #ced9ee;
    border-radius:20px;
    padding:28px 20px 16px;
    display:grid;
    grid-template-columns:auto auto auto;
    justify-content:center;
    align-items:center;
    gap:14px 18px;
    text-align:center;
    background:linear-gradient(180deg,#fff,#fbfdff);
}
.ad-upload-box input[type=file]{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    border:0;
}
.ad-upload-box__icon{
    width:44px;
    height:44px;
    border-radius:16px;
    display:grid;
    place-items:center;
    background:#f3f7ff;
    color:#6b84d9;
}
.ad-upload-box__icon svg{width:26px;height:26px;fill:currentColor}
.ad-upload-box__text{
    font-size:15px;
    font-weight:700;
    color:#7585a2;
}
.ad-upload-box__button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:0 28px;
    border-radius:14px;
    background:linear-gradient(135deg,#4c7dff,#3369ff);
    color:#fff;
    font-weight:800;
    cursor:pointer;
    text-decoration:none;
    box-shadow:0 16px 30px rgba(52,105,255,.22);
}
.ad-upload-box__hint{
    grid-column:1/-1;
    color:#9aa6bc;
    font-size:13px;
}
.checkline{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:14px;
    color:#2b3d67;
    font-weight:700;
    font-size:14px;
}
.checkline input{
    width:18px;
    height:18px;
    margin:0;
    min-height:0;
}
.checkline__info{
    display:inline-grid;
    place-items:center;
    width:18px;
    height:18px;
    border-radius:50%;
    border:1px solid #c8d3e9;
    color:#8291ab;
    font-size:12px;
    font-weight:800;
}
.ad-create-submit{
    display:grid;
    justify-items:center;
    gap:10px;
    margin-top:-2px;
}
.ad-create-submit__button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    min-width:520px;
    min-height:68px;
    padding:0 28px;
    border:0;
    border-radius:20px;
    background:linear-gradient(135deg,#4b7dff,#3267ff);
    color:#fff;
    font-size:17px;
    font-weight:800;
    box-shadow:0 20px 34px rgba(52,105,255,.24);
    cursor:pointer;
}
.ad-create-submit__button svg{width:22px;height:22px;fill:currentColor}
.ad-create-submit__note{
    margin:0;
    color:#8e9ab3;
    font-size:14px;
    font-weight:700;
}

@media(max-width:1200px){
    .topbar__inner{flex-wrap:wrap;justify-content:center;padding:12px 0}
    .nav--modern{order:3;flex:1 0 100%;justify-content:center}
    .ad-create-hero__head{grid-template-columns:minmax(0,1fr) 240px}
    .ad-create-steps{grid-template-columns:repeat(4,minmax(0,1fr))}
    .ad-step-card{grid-column:span 1;min-height:168px}
    .ad-create-steps__arrow{display:none}
    .ad-photo-picker-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:920px){
    .page{padding:20px 14px 32px}
    .topbar--modern{padding:0 12px}
    .topbar__inner{min-height:78px;justify-content:space-between}
    .nav--modern{justify-content:flex-start;overflow:auto;max-width:100%}
    .ad-create-hero{padding:22px 18px}
    .ad-create-hero__head{grid-template-columns:1fr}
    .ad-create-hero__skyline{display:none}
    .ad-create-hero__title-block h1{font-size:42px}
    .ad-create-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
    .ad-create-grid{grid-template-columns:1fr}
    .ad-photo-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .ad-upload-box{grid-template-columns:1fr;justify-items:center}
    .ad-create-submit__button{min-width:0;width:100%}
}
@media(max-width:640px){
    .brand__copy{display:none}
    .nav--modern a{padding:10px 12px}
    .topbar-tools{width:100%;justify-content:flex-end}
    .ad-step-card{min-height:152px}
    .ad-step-card strong{font-size:16px}
    .ad-step-card small{font-size:12px}
    .ad-photo-picker-grid{grid-template-columns:1fr}
    .ad-create-panel{padding:20px 16px}
    .user-menu__dropdown{width:min(92vw,240px)}
}

/* Final create page cleanup: remove onboarding cards from add form */
.ad-create-hero__sparkles{
    position:absolute!important;
    left:44px!important;
    top:24px!important;
    width:160px!important;
    height:auto!important;
    opacity:.42!important;
    pointer-events:none!important;
    z-index:0!important;
}
.ad-create-hero{
    min-height:230px!important;
    padding:38px 42px!important;
    display:flex!important;
    align-items:center!important;
}
.ad-create-hero__head{
    width:100%!important;
    margin-bottom:0!important;
    position:relative!important;
    z-index:1!important;
}
.ad-create-hero__title-block h1{
    margin-top:8px!important;
}
.ad-create-steps{
    display:none!important;
}
@media(max-width:920px){
    .ad-create-hero{
        min-height:auto!important;
        padding:28px 20px!important;
    }
    .ad-create-hero__sparkles{
        width:120px!important;
        left:18px!important;
        top:14px!important;
    }
}


/* FINAL fix: restore original site name in header + compact create page without step cards */
.brand--modern .brand__copy{gap:0!important}
.brand--modern .brand__title{font-size:18px!important;line-height:1.1!important}
.brand--modern .brand__subtitle{display:none!important}

.ad-create-hero{
    min-height:0!important;
    padding:26px 28px!important;
}
.ad-create-hero::after{
    height:120px!important;
    top:auto!important;
    bottom:-40px!important;
}
.ad-create-hero__head{
    margin-bottom:0!important;
    align-items:center!important;
}
.ad-create-hero__title-block h1{
    margin:8px 0 8px!important;
}
.ad-create-steps,
.ad-step-card,
.ad-create-steps__arrow{
    display:none!important;
}
@media(max-width:920px){
    .ad-create-hero{padding:22px 18px!important}
}


/* FINAL full-width header alignment fix */
.topbar--modern{
    width:100%!important;
    padding:0 42px!important;
}
.topbar--modern .topbar__inner{
    width:100%!important;
    max-width:none!important;
    min-height:82px!important;
    margin:0!important;
    display:grid!important;
    grid-template-columns:minmax(220px,1fr) auto minmax(220px,1fr)!important;
    align-items:center!important;
    justify-content:normal!important;
    gap:22px!important;
    padding:0!important;
}
.topbar--modern .brand--modern{
    justify-self:start!important;
    min-width:0!important;
}
.topbar--modern .nav--modern{
    justify-self:center!important;
    flex:none!important;
    order:0!important;
    width:auto!important;
    max-width:none!important;
    justify-content:center!important;
    flex-wrap:nowrap!important;
}
.topbar--modern .topbar-tools{
    justify-self:end!important;
    margin-left:0!important;
    width:auto!important;
    flex:0 0 auto!important;
}
@media(max-width:1100px){
    .topbar--modern{
        padding:0 18px!important;
    }
    .topbar--modern .topbar__inner{
        display:flex!important;
        flex-wrap:wrap!important;
        justify-content:space-between!important;
        min-height:78px!important;
        padding:10px 0!important;
    }
    .topbar--modern .nav--modern{
        order:3!important;
        flex:1 0 100%!important;
        justify-content:flex-start!important;
        overflow:auto!important;
        padding-bottom:2px!important;
    }
}

/* ChatGPT hotfix: личный кабинет не должен уезжать из-за больших фото */
.page{
    overflow-x:clip;
}
.panel,
.panel > *,
.table-wrap,
.profile-photo-grid,
.photo-admin-grid{
    min-width:0;
}
.panel img,
.panel picture,
.panel figure,
.panel .photo-lightbox,
.panel .photo-lightbox img,
.profile-photo-grid img,
.photo-admin-grid img{
    max-width:100% !important;
}
.panel img,
.panel .photo-lightbox img,
.profile-photo-grid img,
.photo-admin-grid img{
    height:auto;
    display:block;
}

/* FINAL header menu cleanup: cabinet/admin only in avatar menu, auth links on the right */
.topbar-auth{
    justify-self:end!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:10px!important;
    margin-left:0!important;
    min-width:220px!important;
}
.topbar-auth__link,
.topbar-auth__button{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:42px!important;
    padding:0 16px!important;
    border-radius:14px!important;
    font-weight:800!important;
    text-decoration:none!important;
    white-space:nowrap!important;
}
.topbar-auth__link{
    color:#24355f!important;
    background:#fff!important;
    border:1px solid #d9e2f0!important;
}
.topbar-auth__button{
    color:#fff!important;
    background:linear-gradient(135deg,#4c7dff,#3369ff)!important;
    border:1px solid transparent!important;
    box-shadow:0 12px 24px rgba(52,105,255,.18)!important;
}
.topbar-auth__link:hover,
.topbar-auth__button:hover{
    text-decoration:none!important;
    transform:translateY(-1px)!important;
}
@media(max-width:1100px){
    .topbar-auth{
        min-width:0!important;
        width:auto!important;
        margin-left:auto!important;
        justify-self:auto!important;
    }
}
@media(max-width:640px){
    .topbar-auth{
        width:100%!important;
        justify-content:flex-end!important;
        order:4!important;
    }
    .topbar-auth__link,
    .topbar-auth__button{
        flex:1 1 auto!important;
    }
}


/* Cabinet cards restore */
.cabinet-hero{
    position:relative;
    overflow:hidden;
    background:linear-gradient(135deg,#ffffff 0%,#f8fbff 58%,#f2f6ff 100%);
    border-color:#d4e0f3;
}
.cabinet-hero::after{
    content:"";
    position:absolute;
    right:-80px;
    top:-90px;
    width:260px;
    height:260px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(92,128,255,.12),rgba(92,128,255,0) 70%);
    pointer-events:none;
}
.cabinet-hero__actions{margin-top:18px}
.button-link--primary{
    background:linear-gradient(135deg,#4e7dff,#2f69ff)!important;
    color:#fff!important;
    border-color:transparent!important;
    box-shadow:0 14px 26px rgba(47,105,255,.22);
}
.cabinet-quick-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin:0 0 24px;
}
.cabinet-quick-card{
    display:grid;
    grid-template-columns:52px minmax(0,1fr);
    align-items:center;
    gap:14px;
    min-height:104px;
    padding:18px;
    border:1px solid #d4e0f3;
    border-radius:22px;
    background:linear-gradient(180deg,#fff,#f9fbff);
    box-shadow:0 18px 42px rgba(24,71,150,.08);
    color:#172033;
    text-decoration:none;
    transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.cabinet-quick-card:hover{
    transform:translateY(-2px);
    border-color:#b8cff7;
    box-shadow:0 24px 50px rgba(24,71,150,.12);
    text-decoration:none;
}
.cabinet-quick-card__icon{
    width:52px;
    height:52px;
    display:grid;
    place-items:center;
    border-radius:18px;
    background:linear-gradient(135deg,#eef5ff,#f4efff);
    font-size:24px;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
.cabinet-quick-card__body{display:grid;gap:4px;min-width:0}
.cabinet-quick-card__body strong{
    color:#155cff;
    font-size:16px;
    line-height:1.2;
}
.cabinet-quick-card__body small{
    color:#64728d;
    font-size:14px;
    line-height:1.3;
}
.cabinet-section{border-color:#d4e0f3}
.cabinet-section__head p{
    margin:6px 0 0;
    color:#71809b;
}
.cabinet-table-wrap{border:1px solid #edf2fa;border-radius:16px;background:#fff}
.cabinet-columns{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
}
.cabinet-mini-list{display:grid;gap:10px}
.cabinet-mini-item{
    display:grid;
    gap:4px;
    padding:14px 16px;
    border:1px solid #dce6f4;
    border-radius:16px;
    background:#fff;
    color:#172033;
    text-decoration:none;
}
.cabinet-mini-item:hover{background:#f7faff;text-decoration:none}
.cabinet-mini-item strong{color:#155cff}
.cabinet-mini-item span{color:#30405f}
.cabinet-mini-item small{color:#7b8494}
.cabinet-photo-preview{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}
.cabinet-photo-preview__item{
    position:relative;
    display:block;
    aspect-ratio:1/1;
    border-radius:16px;
    overflow:hidden;
    border:1px solid #dce6f4;
    background:#eef4ff;
}
.cabinet-photo-preview__item img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    display:block!important;
}
.cabinet-photo-preview__item span{
    position:absolute;
    left:8px;
    right:8px;
    bottom:8px;
    padding:6px 8px;
    border-radius:999px;
    background:rgba(255,255,255,.92);
    color:#155cff;
    font-size:12px;
    font-weight:800;
    text-align:center;
}
@media(max-width:1000px){
    .cabinet-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .cabinet-columns{grid-template-columns:1fr}
}
@media(max-width:620px){
    .cabinet-quick-grid{grid-template-columns:1fr}
    .cabinet-quick-card{min-height:88px}
    .cabinet-photo-preview{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* FINAL menu icons patch: only central menu items, brand/user blocks unchanged */
.topbar--modern .nav--modern{
    gap:10px!important;
    align-items:center!important;
}
.topbar--modern .nav--modern .nav-item{
    min-width:92px!important;
    min-height:72px!important;
    padding:9px 14px 10px!important;
    border-radius:18px!important;
    display:inline-flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    border:1px solid transparent!important;
    background:transparent!important;
    color:#1d2d57!important;
    font-weight:800!important;
    line-height:1.1!important;
    text-decoration:none!important;
    white-space:nowrap!important;
    transition:background .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease!important;
}
.topbar--modern .nav--modern .nav-item:hover{
    background:#f2f6ff!important;
    border-color:#dbe6fb!important;
    color:#2c67ff!important;
    text-decoration:none!important;
    transform:translateY(-1px)!important;
}
.topbar--modern .nav-item__icon{
    width:30px!important;
    height:30px!important;
    display:grid!important;
    place-items:center!important;
    color:currentColor!important;
}
.topbar--modern .nav-item__icon svg{
    width:28px!important;
    height:28px!important;
    display:block!important;
    fill:currentColor!important;
}
.topbar--modern .nav-item__label{
    display:block!important;
    font-size:15px!important;
    letter-spacing:.01em!important;
}
.topbar--modern .nav--modern .nav-item.is-active,
.topbar--modern .nav--modern .nav-item--primary.is-active{
    min-width:142px!important;
    background:linear-gradient(180deg,#f5f8ff 0%,#eef4ff 100%)!important;
    border-color:#d7e3fb!important;
    color:#326cff!important;
    box-shadow:0 12px 28px rgba(45,105,255,.10)!important;
}
.topbar--modern .nav--modern .nav-item--disabled{
    color:#a7b1c6!important;
    cursor:not-allowed!important;
    pointer-events:none!important;
    opacity:.82!important;
}
.topbar--modern .nav--modern .nav-item--disabled .nav-item__icon{
    color:#aab5c8!important;
}
.topbar--modern .nav--modern .nav-item--disabled:hover{
    transform:none!important;
    background:transparent!important;
    border-color:transparent!important;
}
.topbar--modern .topbar__inner{
    min-height:104px!important;
}
.topbar-tools__icon,
.user-menu__toggle{
    width:46px!important;
    height:46px!important;
}
.user-menu__toggle{
    width:auto!important;
    min-width:72px!important;
}
.user-menu__avatar{
    width:34px!important;
    height:34px!important;
}
@media(max-width:1100px){
    .topbar--modern .topbar__inner{
        min-height:86px!important;
    }
    .topbar--modern .nav--modern .nav-item{
        min-height:58px!important;
        min-width:82px!important;
        padding:8px 10px!important;
    }
    .topbar--modern .nav-item__icon{
        width:24px!important;
        height:24px!important;
    }
    .topbar--modern .nav-item__icon svg{
        width:22px!important;
        height:22px!important;
    }
    .topbar--modern .nav-item__label{
        font-size:13px!important;
    }
}

/* FINAL menu color fix: colored icons/text by default, compact like approved mockup */
.topbar--modern .topbar__inner{
    min-height:78px!important;
}
.topbar--modern .nav--modern{
    gap:16px!important;
    align-items:center!important;
}
.topbar--modern .nav--modern .nav-item{
    min-width:82px!important;
    min-height:56px!important;
    padding:6px 12px 7px!important;
    border-radius:16px!important;
    gap:4px!important;
    color:#2f6cff!important;
    font-weight:700!important;
    background:transparent!important;
    border:1px solid transparent!important;
    box-shadow:none!important;
}
.topbar--modern .nav--modern .nav-item .nav-item__icon{
    width:24px!important;
    height:24px!important;
    color:#2f6cff!important;
}
.topbar--modern .nav--modern .nav-item .nav-item__icon svg{
    width:23px!important;
    height:23px!important;
    fill:currentColor!important;
}
.topbar--modern .nav--modern .nav-item .nav-item__label{
    font-size:14px!important;
    font-weight:700!important;
    color:#1f55d8!important;
    letter-spacing:0!important;
}
.topbar--modern .nav--modern .nav-item:hover{
    background:#f2f6ff!important;
    border-color:#d9e5ff!important;
    color:#1f5eff!important;
    transform:none!important;
    box-shadow:0 8px 18px rgba(47,108,255,.08)!important;
}
.topbar--modern .nav--modern .nav-item:hover .nav-item__icon,
.topbar--modern .nav--modern .nav-item:hover .nav-item__label{
    color:#1f5eff!important;
}
.topbar--modern .nav--modern .nav-item.is-active,
.topbar--modern .nav--modern .nav-item--primary.is-active{
    min-width:124px!important;
    background:linear-gradient(180deg,#f6f9ff 0%,#eef4ff 100%)!important;
    border-color:#dce7ff!important;
    color:#2567ff!important;
    box-shadow:0 10px 22px rgba(47,108,255,.10)!important;
}
.topbar--modern .nav--modern .nav-item.is-active .nav-item__icon,
.topbar--modern .nav--modern .nav-item.is-active .nav-item__label,
.topbar--modern .nav--modern .nav-item--primary.is-active .nav-item__icon,
.topbar--modern .nav--modern .nav-item--primary.is-active .nav-item__label{
    color:#2567ff!important;
}
.topbar--modern .nav--modern .nav-item--disabled{
    color:#aab7d0!important;
    opacity:1!important;
}
.topbar--modern .nav--modern .nav-item--disabled .nav-item__icon,
.topbar--modern .nav--modern .nav-item--disabled .nav-item__label{
    color:#aab7d0!important;
}
.topbar--modern .nav--modern .nav-item--disabled:hover{
    background:transparent!important;
    border-color:transparent!important;
    box-shadow:none!important;
}
@media(max-width:1100px){
    .topbar--modern .topbar__inner{min-height:72px!important}
    .topbar--modern .nav--modern{gap:8px!important}
    .topbar--modern .nav--modern .nav-item{min-height:52px!important;min-width:74px!important;padding:6px 8px!important}
    .topbar--modern .nav--modern .nav-item .nav-item__icon{width:22px!important;height:22px!important}
    .topbar--modern .nav--modern .nav-item .nav-item__icon svg{width:21px!important;height:21px!important}
    .topbar--modern .nav--modern .nav-item .nav-item__label{font-size:13px!important}
}


/* FINAL online filters and photo likes/comments */
.home-search__toggle--online{
    width:128px!important;
    min-width:128px!important;
    max-width:128px!important;
}
.toggle-filter--online{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    padding:0 14px!important;
    border:1px solid #c9d7ee!important;
    border-radius:14px!important;
    background:rgba(255,255,255,.92)!important;
    color:#172033!important;
    font-weight:800!important;
    min-height:50px!important;
}
.toggle-filter--online input{accent-color:#247cff!important}

.ad-photo-social-slider{
    margin:22px 0!important;
}
.ad-photo-social-slider .ad-photo-slider__viewport{
    border-radius:22px!important;
}
.ad-photo-social-card{
    flex:0 0 min(760px,92vw)!important;
    display:grid!important;
    grid-template-columns:minmax(260px,1.05fr) minmax(250px,.95fr)!important;
    gap:0!important;
    min-height:360px!important;
    border:1px solid #dce4f1!important;
    border-radius:22px!important;
    overflow:hidden!important;
    background:#fff!important;
    box-shadow:0 18px 42px rgba(24,71,150,.08)!important;
}
.ad-photo-social-card--main{
    flex-basis:min(860px,96vw)!important;
}
.ad-photo-social-card__image{
    min-height:360px!important;
    background:#eef4ff!important;
}
.ad-photo-social-card__image img,
.ad-photo-social-card__image .photo-lightbox,
.ad-photo-social-card__image .private-photo-lock{
    display:block!important;
    width:100%!important;
    height:100%!important;
}
.ad-photo-social-card__image img{
    object-fit:cover!important;
    object-position:center!important;
}
.ad-photo-social-card__side{
    display:grid!important;
    grid-template-rows:auto minmax(0,1fr) auto!important;
    gap:12px!important;
    padding:16px!important;
    background:linear-gradient(180deg,#ffffff,#f8fbff)!important;
    min-width:0!important;
}
.photo-social-head{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
}
.photo-social-head__label{
    color:#6f7c94!important;
    font-size:13px!important;
    font-weight:800!important;
}
.photo-like-form{margin:0!important}
.photo-like-button{
    min-height:40px!important;
    display:inline-flex!important;
    align-items:center!important;
    gap:8px!important;
    padding:0 13px!important;
    border:1px solid #ffd1df!important;
    border-radius:999px!important;
    background:#fff5f8!important;
    color:#d7386a!important;
    font:900 15px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;
    cursor:pointer!important;
}
.photo-like-button span{font-size:18px!important;line-height:1!important}
.photo-like-button.is-liked{
    background:linear-gradient(135deg,#ff4f82,#ff2465)!important;
    border-color:#ff2465!important;
    color:#fff!important;
    box-shadow:0 10px 22px rgba(255,36,101,.18)!important;
}
.photo-comments{
    display:grid!important;
    gap:10px!important;
    align-content:start!important;
    max-height:210px!important;
    overflow:auto!important;
    padding-right:4px!important;
}
.photo-comment{
    padding:10px 12px!important;
    border:1px solid #e5ebf5!important;
    border-radius:14px!important;
    background:#fff!important;
}
.photo-comment strong{
    display:block!important;
    color:#172a58!important;
    font-size:13px!important;
    margin-bottom:4px!important;
}
.photo-comment p{
    margin:0!important;
    color:#283755!important;
    font-size:14px!important;
    line-height:1.35!important;
}
.photo-comment time{
    display:block!important;
    margin-top:6px!important;
    color:#9aa7bd!important;
    font-size:11px!important;
}
.photo-comments__empty{
    margin:0!important;
    padding:14px!important;
    border:1px dashed #d9e3f3!important;
    border-radius:14px!important;
    color:#8b97ac!important;
    text-align:center!important;
}
.photo-comment-form{
    display:grid!important;
    gap:8px!important;
}
.photo-comment-form textarea{
    width:100%!important;
    min-height:72px!important;
    resize:vertical!important;
    border:1px solid #d6e0ee!important;
    border-radius:14px!important;
    padding:10px 12px!important;
    font:inherit!important;
}
.photo-comment-form button{
    justify-self:end!important;
    min-height:38px!important;
    border:0!important;
    border-radius:12px!important;
    padding:0 16px!important;
    background:#247cff!important;
    color:#fff!important;
    font-weight:900!important;
    cursor:pointer!important;
}
.ad-photo-social-card__side--guest{
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:center!important;
    text-align:center!important;
    color:#7b879c!important;
}
.ad-photo-social-card__side--guest a{
    display:inline-flex!important;
    min-height:38px!important;
    align-items:center!important;
    padding:0 16px!important;
    border-radius:999px!important;
    background:#eef4ff!important;
    color:#247cff!important;
    font-weight:900!important;
}
@media(max-width:760px){
    .ad-photo-social-card{
        grid-template-columns:1fr!important;
        flex-basis:min(420px,92vw)!important;
    }
    .ad-photo-social-card__image{min-height:300px!important}
    .photo-comments{max-height:180px!important}
}

/* Photo comment private message action */

.photo-comment__top{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:10px!important;
    margin-bottom:4px!important;
}
.photo-comment-message{
    position:relative!important;
    flex:0 0 auto!important;
}
.photo-comment-message summary{
    list-style:none!important;
    cursor:pointer!important;
    display:inline-flex!important;
    align-items:center!important;
    min-height:26px!important;
    padding:0 9px!important;
    border-radius:999px!important;
    background:#eef4ff!important;
    color:#247cff!important;
    font-size:12px!important;
    font-weight:900!important;
}
.photo-comment-message summary::-webkit-details-marker{display:none!important}
.photo-comment-message[open] summary{
    background:#247cff!important;
    color:#fff!important;
}
.photo-comment-message form{
    position:absolute!important;
    right:0!important;
    top:calc(100% + 8px)!important;
    z-index:6!important;
    width:260px!important;
    display:grid!important;
    gap:8px!important;
    padding:12px!important;
    border:1px solid #d8e2f2!important;
    border-radius:16px!important;
    background:#fff!important;
    box-shadow:0 18px 34px rgba(24,71,150,.16)!important;
}
.photo-comment-message textarea{
    width:100%!important;
    min-height:72px!important;
    resize:vertical!important;
    border:1px solid #d6e0ee!important;
    border-radius:12px!important;
    padding:9px 10px!important;
    font:inherit!important;
    font-size:13px!important;
}
.photo-comment-message button{
    justify-self:end!important;
    min-height:34px!important;
    border:0!important;
    border-radius:10px!important;
    padding:0 13px!important;
    background:#247cff!important;
    color:#fff!important;
    font-weight:900!important;
    cursor:pointer!important;
}
@media(max-width:760px){
    .photo-comment-message form{
        right:auto!important;
        left:0!important;
        width:min(260px,calc(100vw - 54px))!important;
    }
}

/* FINAL: удобный просмотр фото объявления + комментарии справа */
.ad-photo-viewer{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 380px!important;
    gap:18px!important;
    margin:22px 0!important;
    align-items:start!important;
}
.ad-photo-viewer__gallery,
.ad-photo-viewer__comments{
    min-width:0!important;
}
.ad-photo-viewer__main{
    position:relative!important;
    border:1px solid #d8e3f5!important;
    border-radius:24px!important;
    overflow:hidden!important;
    background:linear-gradient(135deg,#f7fbff,#eef5ff)!important;
    box-shadow:0 16px 36px rgba(24,71,150,.07)!important;
}
.ad-photo-main{
    display:none!important;
    margin:0!important;
    width:100%!important;
    height:min(64vh,560px)!important;
    min-height:360px!important;
    position:relative!important;
    background:#eef4ff!important;
}
.ad-photo-main.is-active{
    display:block!important;
}
.ad-photo-main img,
.ad-photo-main .photo-lightbox,
.ad-photo-main .private-photo-lock{
    display:block!important;
    width:100%!important;
    height:100%!important;
}
.ad-photo-main img{
    object-fit:cover!important;
    object-position:center!important;
}
.ad-photo-main figcaption{
    position:absolute!important;
    left:16px!important;
    bottom:16px!important;
    padding:8px 13px!important;
    border-radius:999px!important;
    background:rgba(255,255,255,.92)!important;
    color:#2567ea!important;
    font-weight:900!important;
    font-size:13px!important;
    box-shadow:0 12px 24px rgba(24,71,150,.12)!important;
}
.ad-photo-thumbs{
    display:flex!important;
    gap:10px!important;
    margin-top:12px!important;
    overflow-x:auto!important;
    padding:4px 2px 8px!important;
}
.ad-photo-thumb{
    flex:0 0 92px!important;
    height:76px!important;
    border:2px solid transparent!important;
    border-radius:16px!important;
    overflow:hidden!important;
    padding:0!important;
    background:#eef4ff!important;
    cursor:pointer!important;
    box-shadow:0 10px 22px rgba(24,71,150,.08)!important;
    transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease!important;
}
.ad-photo-thumb:hover{
    transform:translateY(-1px)!important;
}
.ad-photo-thumb.is-active{
    border-color:#3474ff!important;
    box-shadow:0 14px 26px rgba(52,116,255,.18)!important;
}
.ad-photo-thumb img{
    width:100%!important;
    height:100%!important;
    display:block!important;
    object-fit:cover!important;
}
.ad-photo-thumb__locked{
    display:grid!important;
    place-items:center!important;
    height:100%!important;
    color:#6c7fa4!important;
}
.ad-photo-viewer__comments{
    position:sticky!important;
    top:106px!important;
    border:1px solid #d8e3f5!important;
    border-radius:24px!important;
    background:linear-gradient(180deg,#fff,#fbfdff)!important;
    box-shadow:0 16px 36px rgba(24,71,150,.07)!important;
    overflow:hidden!important;
}
.photo-side-panel{
    display:none!important;
    padding:16px!important;
}
.photo-side-panel.is-active{
    display:block!important;
}
.photo-side-panel__head{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    margin-bottom:14px!important;
}
.photo-side-panel__head strong{
    font-size:16px!important;
    color:#526389!important;
}
.photo-like-form{margin:0!important}
.photo-like-button{
    display:inline-flex!important;
    align-items:center!important;
    gap:8px!important;
    min-height:42px!important;
    padding:0 14px!important;
    border:1px solid #ffd3dc!important;
    border-radius:999px!important;
    background:#fff1f5!important;
    color:#de2d67!important;
    font-weight:900!important;
    cursor:pointer!important;
}
.photo-like-button.is-liked{
    background:linear-gradient(135deg,#ff4b7a,#e82c66)!important;
    border-color:transparent!important;
    color:#fff!important;
}
.photo-like-button--static{
    cursor:default!important;
}
.photo-comments{
    display:grid!important;
    gap:10px!important;
    max-height:330px!important;
    overflow:auto!important;
    padding-right:4px!important;
}
.photo-comment{
    border:1px solid #e1e9f6!important;
    border-radius:16px!important;
    background:#fff!important;
    padding:11px!important;
}
.photo-comment__top{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    margin-bottom:5px!important;
}
.photo-comment__top strong{
    color:#203462!important;
    font-size:14px!important;
}
.photo-comment p{
    margin:0 0 5px!important;
    color:#243457!important;
    line-height:1.35!important;
}
.photo-comment time{
    color:#91a0bb!important;
    font-size:12px!important;
}
.photo-comment-message summary{
    cursor:pointer!important;
    color:#2f6dff!important;
    font-weight:800!important;
    list-style:none!important;
}
.photo-comment-message form{
    margin-top:8px!important;
    display:grid!important;
    gap:8px!important;
}
.photo-comment-message textarea,
.photo-comment-form textarea{
    width:100%!important;
    min-height:72px!important;
    border:1px solid #d6e1f2!important;
    border-radius:14px!important;
    padding:10px 12px!important;
    font:inherit!important;
    resize:vertical!important;
}
.photo-comment-message button,
.photo-comment-form button{
    border:0!important;
    border-radius:12px!important;
    padding:10px 14px!important;
    background:#247cff!important;
    color:#fff!important;
    font-weight:900!important;
    cursor:pointer!important;
}
.photo-comment-form{
    margin-top:14px!important;
    display:grid!important;
    gap:9px!important;
}
.photo-comments__empty,
.photo-comments__owner-note,
.photo-comments--guest{
    border:1px dashed #cfdcf0!important;
    border-radius:16px!important;
    background:#fbfdff!important;
    color:#7c8ca8!important;
    padding:14px!important;
    margin:0!important;
    text-align:center!important;
}
.photo-comments--guest a{
    display:inline-flex!important;
    margin-top:8px!important;
    color:#247cff!important;
    font-weight:900!important;
}
@media(max-width:980px){
    .ad-photo-viewer{
        grid-template-columns:1fr!important;
    }
    .ad-photo-viewer__comments{
        position:static!important;
    }
    .ad-photo-main{
        height:auto!important;
        min-height:0!important;
        aspect-ratio:4/3!important;
    }
}

/* FINAL: страница ТОП фото недели */
.top-photo-hero{
    padding:34px 38px!important;
    border-color:#d5e1f4!important;
    overflow:hidden!important;
}
.top-photo-hero h1{
    margin:8px 0 10px!important;
    font-size:clamp(38px,5vw,62px)!important;
    line-height:1!important;
    color:#142b60!important;
}
.top-photo-hero p{
    max-width:760px!important;
    color:#6e7e9c!important;
    font-size:18px!important;
    margin:0!important;
}
.top-photo-hero__meta{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:10px!important;
    margin-top:20px!important;
}
.top-photo-hero__meta span{
    padding:8px 12px!important;
    border-radius:999px!important;
    background:#eef4ff!important;
    color:#2d67ee!important;
    font-weight:800!important;
    font-size:13px!important;
}
.top-photo-board{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:18px!important;
    margin-bottom:28px!important;
}
.top-photo-card{
    position:relative!important;
    border:1px solid #d7e2f4!important;
    border-radius:24px!important;
    background:#fff!important;
    overflow:hidden!important;
    box-shadow:0 18px 42px rgba(24,71,150,.08)!important;
}
.top-photo-card__image{
    position:relative!important;
    display:block!important;
    height:260px!important;
    background:#eef4ff!important;
    overflow:hidden!important;
}
.top-photo-card__image img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    display:block!important;
    transition:transform .22s ease!important;
}
.top-photo-card:hover .top-photo-card__image img{
    transform:scale(1.03)!important;
}
.top-photo-card__place{
    position:absolute!important;
    left:14px!important;
    top:14px!important;
    z-index:2!important;
    width:44px!important;
    height:44px!important;
    border-radius:16px!important;
    display:grid!important;
    place-items:center!important;
    background:rgba(255,255,255,.94)!important;
    color:#246cff!important;
    font-weight:1000!important;
    box-shadow:0 12px 26px rgba(24,71,150,.16)!important;
}
.top-photo-card--place-1 .top-photo-card__place{
    background:linear-gradient(135deg,#ffd65b,#ff9d2f)!important;
    color:#fff!important;
}
.top-photo-card--place-2 .top-photo-card__place{
    background:linear-gradient(135deg,#b8c7e6,#8198c2)!important;
    color:#fff!important;
}
.top-photo-card--place-3 .top-photo-card__place{
    background:linear-gradient(135deg,#d99d65,#b96d32)!important;
    color:#fff!important;
}
.top-photo-card__body{
    padding:16px!important;
}
.top-photo-card__score{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    margin-bottom:8px!important;
}
.top-photo-card__score span{
    display:inline-flex!important;
    padding:7px 11px!important;
    border-radius:999px!important;
    background:#fff0f4!important;
    color:#df2a64!important;
    font-weight:1000!important;
}
.top-photo-card__score small{
    color:#8c9ab3!important;
    font-weight:700!important;
}
.top-photo-card h2{
    margin:0 0 8px!important;
    font-size:20px!important;
    line-height:1.2!important;
}
.top-photo-card h2 a{
    color:#172b5b!important;
}
.top-photo-card p{
    margin:0 0 12px!important;
    color:#6f7e99!important;
}
.top-photo-card__foot{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    color:#8392ad!important;
    font-size:13px!important;
    font-weight:800!important;
}
.top-photo-card__foot a{
    color:#247cff!important;
}
.top-photo-empty{
    grid-column:1/-1!important;
    text-align:center!important;
    padding:42px!important;
}
@media(max-width:1100px){
    .top-photo-board{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:680px){
    .top-photo-board{grid-template-columns:1fr!important;}
    .top-photo-card__image{height:230px!important;}
}


/* Local like notice popup above the heart button */
.photo-like-wrap{
    position:relative!important;
    display:inline-flex!important;
    align-items:center!important;
    min-height:42px!important;
}
.photo-like-popover{
    position:absolute!important;
    left:0!important;
    bottom:calc(100% + 10px)!important;
    z-index:5!important;
    min-width:230px!important;
    max-width:280px!important;
    padding:10px 12px!important;
    border:1px solid #ffd0d6!important;
    border-radius:14px!important;
    background:#fff1f3!important;
    color:#b51f35!important;
    box-shadow:0 14px 28px rgba(181,31,53,.16)!important;
    font-size:13px!important;
    font-weight:800!important;
    line-height:1.3!important;
    text-align:left!important;
}
.photo-like-popover::after{
    content:""!important;
    position:absolute!important;
    left:22px!important;
    top:100%!important;
    border-width:8px 8px 0 8px!important;
    border-style:solid!important;
    border-color:#fff1f3 transparent transparent transparent!important;
}
.photo-side-panel:has(.photo-like-popover){
    padding-top:52px!important;
}
@media(max-width:760px){
    .photo-like-popover{
        min-width:210px!important;
        max-width:calc(100vw - 48px)!important;
    }
}


/* BBS edit photos retention labels patch */
.current-ad-photos--selectable{
    display:grid!important;
    grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important;
    gap:12px!important;
    align-items:stretch!important;
}
.current-ad-photo--option,
.ad-photo-picker--checkboxes .ad-photo-option{
    position:relative!important;
    display:grid!important;
    gap:8px!important;
    align-content:start!important;
    min-height:238px!important;
    padding:12px!important;
    border:1px solid #d7e4fb!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:0 12px 26px rgba(38,95,190,.08)!important;
    cursor:pointer!important;
}
.current-ad-photo--option input[type="checkbox"],
.ad-photo-picker--checkboxes .ad-photo-option input[type="checkbox"]{
    position:absolute!important;
    top:10px!important;
    left:10px!important;
    width:22px!important;
    height:22px!important;
    margin:0!important;
    opacity:0!important;
    z-index:4!important;
}
.photo-check-ui{
    position:absolute!important;
    top:10px!important;
    left:10px!important;
    width:24px!important;
    height:24px!important;
    border-radius:8px!important;
    border:2px solid #b8cae9!important;
    background:#fff!important;
    z-index:3!important;
    box-shadow:0 5px 14px rgba(21,50,100,.14)!important;
}
.current-ad-photo--option input[type="checkbox"]:checked + .photo-check-ui,
.ad-photo-picker--checkboxes .ad-photo-option input[type="checkbox"]:checked + .photo-check-ui{
    border-color:#3275ff!important;
    background:linear-gradient(135deg,#3275ff,#7a62ff)!important;
}
.current-ad-photo--option input[type="checkbox"]:checked + .photo-check-ui::after,
.ad-photo-picker--checkboxes .ad-photo-option input[type="checkbox"]:checked + .photo-check-ui::after{
    content:"✓"!important;
    position:absolute!important;
    inset:0!important;
    display:grid!important;
    place-items:center!important;
    color:#fff!important;
    font-size:14px!important;
    font-weight:900!important;
}
.photo-check-label{
    position:absolute!important;
    top:38px!important;
    left:9px!important;
    z-index:3!important;
    padding:2px 7px!important;
    border-radius:999px!important;
    background:#eef5ff!important;
    color:#3275ff!important;
    font-size:11px!important;
    line-height:1.2!important;
    font-weight:900!important;
    box-shadow:0 4px 10px rgba(50,117,255,.10)!important;
}
.photo-private-badge{
    position:absolute!important;
    top:10px!important;
    right:10px!important;
    z-index:3!important;
    padding:4px 8px!important;
    border-radius:999px!important;
    background:#fff2f7!important;
    border:1px solid #ffd2e0!important;
    color:#d92d68!important;
    font-size:11px!important;
    line-height:1!important;
    font-weight:900!important;
}
.current-ad-photo--option.is-selected,
.ad-photo-picker--checkboxes .ad-photo-option.is-selected,
.current-ad-photo--option:has(input[type="checkbox"]:checked),
.ad-photo-picker--checkboxes .ad-photo-option:has(input[type="checkbox"]:checked){
    border-color:#78a8ff!important;
    box-shadow:0 16px 30px rgba(50,117,255,.16)!important;
}
.current-ad-photo--option .current-ad-photo__link,
.current-ad-photo--option .photo-lightbox{
    display:block!important;
    margin-top:54px!important;
    width:100%!important;
}
.current-ad-photo--option .current-ad-photo__image,
.ad-photo-picker--checkboxes .ad-photo-option img{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:112px!important;
    object-fit:cover!important;
    border-radius:12px!important;
    margin:54px 0 0!important;
}
.current-ad-photo--option .current-ad-photo__caption,
.ad-photo-picker--checkboxes .ad-photo-option > span:last-child{
    display:block!important;
    color:#657697!important;
    font-size:12px!important;
    line-height:1.25!important;
    font-weight:800!important;
}
@media(max-width:720px){
    .current-ad-photos--selectable{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
}
.ad-photo-picker--checkboxes .ad-photo-option:has(input:checked)::after{
    content:none!important;
    display:none!important;
}


/* FINAL: compact create hero and local previews for newly selected photos */
.ad-create-hero{
    min-height:0!important;
    height:auto!important;
    padding:26px 34px!important;
    margin-bottom:22px!important;
    display:block!important;
    overflow:hidden!important;
}
.ad-create-hero::before,
.ad-create-hero::after{
    display:none!important;
}
.ad-create-hero__head{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 230px!important;
    align-items:center!important;
    gap:24px!important;
    min-height:0!important;
    margin:0!important;
}
.ad-create-hero__title-block h1{
    margin:4px 0 8px!important;
    font-size:clamp(38px,5vw,58px)!important;
    line-height:1!important;
}
.ad-create-hero__title-block p{
    margin:0!important;
    color:#6d7d9d!important;
    font-size:16px!important;
}
.ad-create-hero__sparkles{
    position:absolute!important;
    left:28px!important;
    top:18px!important;
    width:96px!important;
    height:96px!important;
    object-fit:contain!important;
    opacity:.32!important;
    pointer-events:none!important;
}
.ad-create-hero__skyline img{
    width:210px!important;
    max-width:100%!important;
    opacity:.42!important;
}
.new-photo-preview-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
    gap:14px;
    margin-top:16px;
}
.new-photo-preview-empty{
    grid-column:1/-1;
    padding:14px 16px;
    border:1px dashed #cdd9ee;
    border-radius:16px;
    color:#7d8ba7;
    background:#fbfdff;
    font-size:14px;
}
.new-photo-preview-card{
    display:grid;
    gap:8px;
    padding:8px;
    border:1px solid #d8e4f6;
    border-radius:18px;
    background:#fff;
    box-shadow:0 12px 24px rgba(24,71,150,.06);
    cursor:pointer;
}
.new-photo-preview-card__image{
    display:block;
    width:100%;
    aspect-ratio:1/1;
    border-radius:14px;
    overflow:hidden;
    background:#eef4ff;
}
.new-photo-preview-card__image img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}
.new-photo-preview-card__name{
    display:block;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#52617d;
    font-size:12px;
    font-weight:700;
}
.new-photo-preview-card__privacy{
    display:flex;
    align-items:center;
    gap:6px;
    min-height:30px;
    padding:6px 8px;
    border-radius:999px;
    background:#f4f7ff;
    color:#243b68;
    font-size:13px;
    font-weight:800;
}
.new-photo-preview-card__privacy input{
    width:16px!important;
    height:16px!important;
    min-height:0!important;
    margin:0!important;
    accent-color:#247cff;
}
@media(max-width:920px){
    .ad-create-hero{padding:22px 18px!important}
    .ad-create-hero__head{grid-template-columns:1fr!important}
    .ad-create-hero__skyline{display:none!important}
    .new-photo-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* FINAL: remove selected new photos before upload */
.new-photo-preview-card{
    position:relative!important;
    cursor:default!important;
}
.new-photo-preview-card__remove{
    position:absolute!important;
    right:8px!important;
    top:8px!important;
    z-index:3!important;
    width:30px!important;
    height:30px!important;
    display:grid!important;
    place-items:center!important;
    border:0!important;
    border-radius:999px!important;
    background:rgba(255,255,255,.94)!important;
    color:#d9294f!important;
    font:900 22px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;
    box-shadow:0 8px 18px rgba(20,48,100,.18)!important;
    cursor:pointer!important;
}
.new-photo-preview-card__remove:hover{
    background:#ffe9ee!important;
    color:#b91538!important;
}
.new-photo-preview-card__privacy{
    cursor:pointer!important;
}
.new-photo-preview-card__placeholder{
    display:grid!important;
    place-items:center!important;
    width:100%!important;
    height:100%!important;
    padding:12px!important;
    color:#6f7f9e!important;
    text-align:center!important;
    font-weight:800!important;
    font-size:13px!important;
}


/* Final: no duplicate cabinet photos in ad edit */
.ad-photo-picker--cabinet .ad-photo-option--cabinet{
    padding-top:38px!important;
}
.photo-source-badge,
.photo-main-badge{
    position:absolute;
    z-index:3;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:22px;
    padding:3px 8px;
    border-radius:999px;
    font-size:11px;
    font-weight:900;
    line-height:1;
    box-shadow:0 8px 18px rgba(24,71,150,.10);
}
.photo-source-badge{
    left:42px;
    top:10px;
    background:#edf4ff;
    color:#326cff;
    border:1px solid #cfe0ff;
}
.photo-main-badge{
    left:10px;
    right:10px;
    bottom:84px;
    background:#fff;
    color:#326cff;
    border:1px solid #d8e5ff;
}
.current-ad-photos:empty{
    display:none!important;
}


/* Final: replace red cross with hover trash button on photo preview */
.new-photo-preview-card__image{
    position:relative!important;
}
.new-photo-preview-card__remove{
    top:14px!important;
    right:14px!important;
    width:36px!important;
    height:36px!important;
    padding:0!important;
    border:1px solid rgba(255,255,255,.72)!important;
    background:rgba(18,31,58,.82)!important;
    color:transparent!important;
    font-size:0!important;
    line-height:0!important;
    box-shadow:0 12px 24px rgba(16,31,61,.28)!important;
    opacity:0!important;
    transform:translateY(-2px) scale(.94)!important;
    transition:opacity .18s ease, transform .18s ease, background .18s ease, box-shadow .18s ease!important;
}
.new-photo-preview-card__remove::before{
    content:'';
    display:block;
    width:18px;
    height:18px;
    background-repeat:no-repeat;
    background-position:center;
    background-size:18px 18px;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4.8c0-.66.54-1.2 1.2-1.2h5.6c.66 0 1.2.54 1.2 1.2V6'/%3E%3Cpath d='M6.8 6l.8 13.1c.05.76.68 1.35 1.44 1.35h6.96c.76 0 1.39-.59 1.44-1.35L18.2 6'/%3E%3Cpath d='M10 10.2v6.1M14 10.2v6.1'/%3E%3C/svg%3E");
}
.new-photo-preview-card:hover .new-photo-preview-card__remove,
.new-photo-preview-card:focus-within .new-photo-preview-card__remove,
.new-photo-preview-card__remove:focus-visible{
    opacity:1!important;
    transform:translateY(0) scale(1)!important;
}
.new-photo-preview-card__remove:hover,
.new-photo-preview-card__remove:focus-visible{
    background:rgba(217,41,79,.96)!important;
    box-shadow:0 14px 26px rgba(185,21,56,.28)!important;
}
.new-photo-preview-card__remove:focus-visible{
    outline:2px solid rgba(36,124,255,.28)!important;
    outline-offset:2px!important;
}
@media (hover:none){
    .new-photo-preview-card__remove{
        opacity:1!important;
        transform:none!important;
    }
}

/* PATCH: private photo placeholder, centered modal arrows, restore private toggles */
.ad-photo-card__select,
.current-ad-photo__select,
.ad-photo-option__select {
    display: block;
    color: inherit;
    text-decoration: none;
}

.ad-photo-card .photo-select-checkbox,
.current-ad-photo--option .photo-select-checkbox,
.ad-photo-option--cabinet .photo-select-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ad-photo-card .photo-privacy-checkbox,
.current-ad-photo--option .photo-privacy-checkbox,
.ad-photo-option--cabinet .photo-privacy-checkbox {
    position: static;
    opacity: 1;
    pointer-events: auto;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #ff5fa2;
}

.photo-privacy-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 16px);
    margin: 0 8px 10px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(10, 14, 28, 0.78);
    color: #f7f8ff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
}

.photo-privacy-toggle span {
    display: inline-flex;
    align-items: center;
}

.current-ad-photo--option,
.ad-photo-option--cabinet,
.ad-photo-card {
    position: relative;
}

.photo-remove-button {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: rgba(8, 12, 24, 0.78);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.photo-remove-button::before,
.photo-remove-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 13px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transform-origin: center;
}

.photo-remove-button::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.photo-remove-button::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.photo-remove-button:hover {
    background: rgba(255, 95, 162, 0.92);
}

.photo-modal__nav {
    position: absolute;
    top: 50%;
    z-index: 31;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    padding: 0;
    background: rgba(8, 12, 24, 0.82);
    color: #ffffff;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

.photo-modal__nav svg {
    width: 24px;
    height: 24px;
    display: block;
}

.photo-modal__nav--prev {
    left: 18px;
}

.photo-modal__nav--next {
    right: 18px;
}

.photo-modal__nav:hover {
    background: rgba(255, 95, 162, 0.94);
}

.private-photo-lock,
.bbs-card__photo--private,
.ad-photo-thumb__locked {
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(180deg, rgba(9, 12, 24, 0.18), rgba(9, 12, 24, 0.58)), url('../img/private-photo-18.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.private-photo-lock::before,
.bbs-card__photo--private::before,
.ad-photo-thumb__locked::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 10, 22, 0.08), rgba(7, 10, 22, 0.46));
}

.private-photo-lock > *,
.bbs-card__photo--private > *,
.ad-photo-thumb__locked > * {
    position: relative;
    z-index: 1;
}

.current-ad-photo.is-removed,
.ad-photo-option.is-removed,
.ad-photo-card.is-removed {
    opacity: 0.38;
}

@media (max-width: 640px) {
    .photo-modal__nav {
        width: 44px;
        height: 44px;
    }

    .photo-modal__nav--prev {
        left: 10px;
    }

    .photo-modal__nav--next {
        right: 10px;
    }
}

.ad-photo-card__main-badge { display: none !important; }
.ad-photo-main figcaption { display: none; }

.ad-photo-slider__nav { display: grid; place-items: center; padding: 0; line-height: 1; }

/* PATCH 2026-05-25: private ad photos placeholder, compact privacy checkbox, restore trash icon and lightbox arrows */
.photo-privacy-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: auto !important;
    min-height: 32px !important;
    margin: 0 8px 10px !important;
    padding: 6px 10px !important;
    border: 1px solid #d7e4fb !important;
    border-radius: 999px !important;
    background: #f7faff !important;
    color: #35507f !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.photo-privacy-toggle .photo-privacy-checkbox {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    accent-color: #ff5fa2 !important;
}

.photo-privacy-toggle span {
    display: inline-flex !important;
    align-items: center !important;
}

.photo-remove-button {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 5 !important;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.74) !important;
    border-radius: 999px !important;
    background: rgba(18, 31, 58, 0.84) !important;
    box-shadow: 0 12px 24px rgba(16, 31, 61, 0.28) !important;
    cursor: pointer !important;
}

.photo-remove-button::before,
.photo-remove-button::after {
    content: none !important;
}

.photo-remove-button {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4.8c0-.66.54-1.2 1.2-1.2h5.6c.66 0 1.2.54 1.2 1.2V6'/%3E%3Cpath d='M6.8 6l.8 13.1c.05.76.68 1.35 1.44 1.35h6.96c.76 0 1.39-.59 1.44-1.35L18.2 6'/%3E%3Cpath d='M10 10.2v6.1M14 10.2v6.1'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 18px 18px !important;
}

.photo-remove-button:hover,
.photo-remove-button:focus-visible {
    background-color: rgba(255, 95, 162, 0.96) !important;
}

.private-photo-lock,
.private-photo-lock--card,
.private-photo-lock--small,
.ad-photo-thumb__locked {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    padding: 0 !important;
    border-radius: inherit !important;
}

.private-photo-lock > span,
.private-photo-lock > small,
.private-photo-lock--card > span,
.private-photo-lock--card > small,
.private-photo-lock--small > span,
.private-photo-lock--small > small,
.ad-photo-thumb__locked > span,
.ad-photo-thumb__locked > small {
    display: none !important;
}

.current-ad-photo--option.is-removed,
.ad-photo-option--cabinet.is-removed,
.ad-photo-card.is-removed {
    opacity: 0.42 !important;
}

/* PATCH 2026-05-25-2: privacy checkbox inline at top after Вкл */
.current-ad-photo--option .photo-privacy-toggle,
.ad-photo-option--cabinet .photo-privacy-toggle,
.new-photo-preview-card .new-photo-preview-card__privacy {
    position: absolute !important;
    top: 38px !important;
    left: 52px !important;
    z-index: 4 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #35507f !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.current-ad-photo--option .photo-privacy-toggle .photo-privacy-checkbox,
.ad-photo-option--cabinet .photo-privacy-toggle .photo-privacy-checkbox,
.new-photo-preview-card .new-photo-preview-card__privacy input[type="checkbox"] {
    width: 13px !important;
    height: 13px !important;
    margin: 0 !important;
    accent-color: #ff5fa2 !important;
}

.current-ad-photo--option .photo-privacy-toggle span,
.ad-photo-option--cabinet .photo-privacy-toggle span,
.new-photo-preview-card .new-photo-preview-card__privacy {
    color: #35507f !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

.current-ad-photo--option .current-ad-photo__link,
.current-ad-photo--option .photo-lightbox,
.ad-photo-option--cabinet img {
    margin-top: 58px !important;
}

.current-ad-photo--option .current-ad-photo__image,
.ad-photo-picker--checkboxes .ad-photo-option img {
    margin: 58px 0 0 !important;
}

.current-ad-photo--option .photo-check-label,
.ad-photo-option--cabinet .photo-check-label {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* PATCH 2026-05-25-3: force provided placeholder image for large private photo */
.ad-photo-main .private-photo-lock {
    background: none !important;
    padding: 0 !important;
}

.private-photo-lock__image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: inherit !important;
}

.ad-photo-main .private-photo-lock::before {
    content: none !important;
}

/* PATCH 2026-05-25-4: move all photo controls under thumbnails */
.current-ad-photo--option,
.ad-photo-option--cabinet,
.ad-photo-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    min-height: 0 !important;
    padding: 12px !important;
    cursor: default !important;
}

.current-ad-photo--option .current-ad-photo__link,
.current-ad-photo--option .photo-lightbox,
.ad-photo-option--cabinet .ad-photo-option__image,
.ad-photo-card .ad-photo-card__image {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

.current-ad-photo--option .current-ad-photo__image,
.ad-photo-picker--checkboxes .ad-photo-option .ad-photo-option__image,
.ad-photo-card .ad-photo-card__image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 112px !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 12px !important;
}

.photo-card-settings {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    margin-top: 2px !important;
    padding: 8px 0 0 !important;
    border-top: 1px solid #edf3ff !important;
}

.photo-card-settings__toggle {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    min-height: 24px !important;
    margin: 0 !important;
    padding: 4px 7px !important;
    border: 1px solid #d7e4fb !important;
    border-radius: 999px !important;
    background: #f7faff !important;
    color: #35507f !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.photo-card-settings__toggle input[type="checkbox"],
.current-ad-photo--option .photo-card-settings input[type="checkbox"],
.ad-photo-option--cabinet .photo-card-settings input[type="checkbox"],
.ad-photo-card .photo-card-settings input[type="checkbox"],
.current-ad-photo--option .photo-card-settings .photo-select-checkbox,
.ad-photo-option--cabinet .photo-card-settings .photo-select-checkbox,
.ad-photo-card .photo-card-settings .photo-select-checkbox,
.current-ad-photo--option .photo-card-settings .photo-privacy-checkbox,
.ad-photo-option--cabinet .photo-card-settings .photo-privacy-checkbox,
.ad-photo-card .photo-card-settings .photo-privacy-checkbox {
    position: static !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    display: inline-block !important;
    flex: 0 0 auto !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    accent-color: #3275ff !important;
}

.photo-card-settings .photo-remove-button {
    position: static !important;
    flex: 0 0 auto !important;
    width: 28px !important;
    height: 28px !important;
    margin-left: auto !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.74) !important;
    border-radius: 999px !important;
    background-color: rgba(18, 31, 58, 0.84) !important;
    box-shadow: 0 8px 18px rgba(16, 31, 61, 0.18) !important;
}

.photo-card-settings .photo-remove-button:hover,
.photo-card-settings .photo-remove-button:focus-visible {
    background-color: rgba(255, 95, 162, 0.96) !important;
}

.photo-check-ui,
.photo-check-label,
.photo-source-badge {
    display: none !important;
}

.photo-card-tags {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    min-height: 22px !important;
}

.photo-card-tags span,
.ad-photo-card__main-badge:not([hidden]) {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 20px !important;
    padding: 3px 8px !important;
    border: 1px solid #d8e5ff !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #326cff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.ad-photo-picker--cabinet .ad-photo-option--cabinet {
    padding-top: 12px !important;
}

.current-ad-photo--option.is-removed,
.ad-photo-option--cabinet.is-removed,
.ad-photo-card.is-removed {
    opacity: 0.5 !important;
}

/* PATCH 2026-05-25-4: photo settings under thumbnails + no-photo placeholder */
.photo-card-media {
    position: relative;
    width: 100%;
}

.photo-card-empty-placeholder {
    display: none;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #eef4ff;
}

.photo-card-empty-placeholder img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.current-ad-photo--option.is-removed .current-ad-photo__link,
.ad-photo-option--cabinet.is-removed .ad-photo-option__image,
.ad-photo-card:not(.is-selected) .ad-photo-card__image {
    display: none !important;
}

.current-ad-photo--option.is-removed .photo-card-empty-placeholder,
.ad-photo-option--cabinet.is-removed .photo-card-empty-placeholder,
.ad-photo-card:not(.is-selected) .photo-card-empty-placeholder {
    display: block !important;
}

.current-ad-photo--option .photo-card-settings,
.ad-photo-option--cabinet .photo-card-settings,
.ad-photo-card .photo-card-settings,
.new-photo-preview-card .photo-card-settings {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-top: 10px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.photo-card-settings__toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: 34px !important;
    padding: 6px 10px !important;
    border: 1px solid #d7e4fb !important;
    border-radius: 999px !important;
    background: #f7faff !important;
    color: #35507f !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    box-sizing: border-box !important;
}

.photo-card-settings__toggle input[type="checkbox"] {
    width: 15px !important;
    height: 15px !important;
    margin: 0 !important;
    accent-color: #ff5fa2 !important;
}

.current-ad-photo--option .photo-remove-button,
.ad-photo-option--cabinet .photo-remove-button {
    position: static !important;
    width: 34px !important;
    height: 34px !important;
    margin-left: auto !important;
    flex: 0 0 34px !important;
}

.current-ad-photo--option .current-ad-photo__link,
.current-ad-photo--option .current-ad-photo__image,
.ad-photo-option--cabinet .ad-photo-option__image,
.ad-photo-card .ad-photo-card__image {
    margin-top: 0 !important;
}

.new-photo-preview-empty {
    display: grid;
    gap: 10px;
    justify-items: center;
    width: min(260px, 100%);
    padding: 12px;
    border: 1px dashed #cfe0fb;
    border-radius: 20px;
    background: #fbfdff;
}

.new-photo-preview-empty__image {
    display: block;
    width: 100%;
    max-width: 220px;
    border-radius: 16px;
}

.new-photo-preview-empty__text {
    color: #6e7f9f;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

/* PATCH 2026-05-25-5: ad list placeholders use selected ad photo only */
.bbs-card__photo--empty {
    background: #eef4ff !important;
    color: transparent !important;
}

.bbs-card__photo--empty img,
.private-photo-lock--card img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.private-photo-lock--card {
    overflow: hidden !important;
}

.private-photo-lock--card::before {
    content: none !important;
}

/* PATCH 2026-05-25-6: search page form like homepage */
.search-page-hero {
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 28px 30px 24px !important;
    border-color: #c9d8f5 !important;
    box-shadow: 0 24px 60px rgba(35,84,160,.10), inset 0 1px 0 rgba(255,255,255,.85) !important;
}

.search-page-hero .home-search {
    margin-top: 22px !important;
}

.search-page-hero .home-search--search-page {
    grid-template-columns: minmax(320px,1.5fr) minmax(130px,.6fr) minmax(160px,.7fr) minmax(150px,.7fr) 148px 128px 128px !important;
}

.search-page-hero .home-search--search-page:not(.home-search--has-district) {
    grid-template-columns: minmax(320px,1.55fr) minmax(140px,.65fr) minmax(160px,.75fr) 148px 128px 128px !important;
}

.search-page-hero .home-search__field,
.search-page-hero .home-search__toggle,
.search-page-hero .home-search__button {
    min-height: 54px !important;
}

.search-page-hero .home-search__button {
    justify-self: stretch !important;
    width: 128px !important;
}

.search-page-hero .home-search__field select,
.search-page-hero .home-search__field input {
    font-size: 15px !important;
}

.search-page-hero .home-search__toggle {
    font-size: 15px !important;
}

.search-page-hero .home-search__field--district.is-hidden {
    display: none !important;
}

@media (max-width: 1280px) {
    .search-page-hero .home-search--search-page,
    .search-page-hero .home-search--search-page:not(.home-search--has-district) {
        grid-template-columns: minmax(0,1fr) repeat(3,minmax(140px,1fr)) !important;
    }
    .search-page-hero .home-search__field--search {
        grid-column: 1 / -1 !important;
    }
    .search-page-hero .home-search__toggle,
    .search-page-hero .home-search__button {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        justify-self: stretch !important;
    }
}

@media (max-width: 720px) {
    .search-page-hero {
        padding: 18px !important;
    }
    .search-page-hero .home-search--search-page,
    .search-page-hero .home-search--search-page:not(.home-search--has-district) {
        grid-template-columns: 1fr !important;
    }
}

/* PATCH 2026-05-25-7: search page form no-overlap layout */
.search-page-hero .home-search--search-page,
.search-page-hero .home-search--search-page.home-search--has-district,
.search-page-hero .home-search--search-page:not(.home-search--has-district) {
    display: grid !important;
    grid-template-columns: minmax(260px, 2fr) minmax(150px, 1fr) minmax(170px, 1fr) minmax(170px, 1fr) !important;
    gap: 12px !important;
    align-items: stretch !important;
    width: 100% !important;
    overflow: visible !important;
}

.search-page-hero .home-search__field,
.search-page-hero .home-search__toggle,
.search-page-hero .home-search__button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-self: stretch !important;
    box-sizing: border-box !important;
}

.search-page-hero .home-search__button {
    min-height: 54px !important;
    padding: 0 22px !important;
}

.search-page-hero .home-search__toggle {
    justify-content: center !important;
}

.search-page-hero .home-search__field--district.is-hidden {
    display: none !important;
}

@media (max-width: 980px) {
    .search-page-hero .home-search--search-page,
    .search-page-hero .home-search--search-page.home-search--has-district,
    .search-page-hero .home-search--search-page:not(.home-search--has-district) {
        grid-template-columns: minmax(0, 1fr) minmax(150px, 1fr) !important;
    }
    .search-page-hero .home-search__field--search {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 640px) {
    .search-page-hero .home-search--search-page,
    .search-page-hero .home-search--search-page.home-search--has-district,
    .search-page-hero .home-search--search-page:not(.home-search--has-district) {
        grid-template-columns: 1fr !important;
    }
}

/* PATCH 2026-05-25-9: real cabinet photos must stay visible in create/edit even when not selected */
.ad-photo-option--cabinet,
.ad-photo-option--cabinet.is-removed,
.ad-photo-card,
.ad-photo-card.is-removed,
.ad-photo-card:not(.is-selected) {
    opacity: 1 !important;
}

.ad-photo-option--cabinet .ad-photo-option__image,
.ad-photo-option--cabinet.is-removed .ad-photo-option__image,
.ad-photo-card .ad-photo-card__image,
.ad-photo-card.is-removed .ad-photo-card__image,
.ad-photo-card:not(.is-selected) .ad-photo-card__image {
    display: block !important;
}

.ad-photo-option--cabinet .photo-card-empty-placeholder,
.ad-photo-option--cabinet.is-removed .photo-card-empty-placeholder,
.ad-photo-card .photo-card-empty-placeholder,
.ad-photo-card.is-removed .photo-card-empty-placeholder,
.ad-photo-card:not(.is-selected) .photo-card-empty-placeholder {
    display: none !important;
}

/* PATCH 2026-05-25-10: premium add-ad page integration */
.ad-new-hero {
    max-width: 1120px;
    margin: 0 auto 18px;
    padding: 28px 30px 8px;
}
.ad-new-hero .kicker {
    margin-bottom: 8px;
    color: #247cff;
    letter-spacing: .06em;
    text-transform: lowercase;
}
.ad-new-hero h1 {
    margin: 0 0 10px;
    color: #17223a;
    font-size: clamp(38px, 4vw, 58px);
    line-height: .98;
    letter-spacing: -.045em;
}
.ad-new-hero p {
    max-width: 760px;
    margin: 0;
    color: #73809d;
    font-size: 17px;
}
.ad-new-form {
    max-width: 1120px;
    margin: 0 auto 34px;
}
.ad-new-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    align-items: start;
}
.ad-new-main {
    display: grid;
    gap: 14px;
    min-width: 0;
}
.ad-new-card,
.ad-new-preview-card,
.ad-new-side-card {
    border: 1px solid #dbe7fb;
    border-radius: 20px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 18px 42px rgba(32, 84, 160, .08);
}
.ad-new-card {
    padding: 18px;
}
.ad-new-card__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.ad-new-card__num {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #247cff, #6b76ff);
    box-shadow: 0 10px 20px rgba(36, 124, 255, .22);
    font-weight: 900;
}
.ad-new-card h2,
.ad-new-preview-card h2,
.ad-new-side-card h3 {
    margin: 0;
    color: #15223d;
    font-size: 18px;
    line-height: 1.2;
}
.ad-new-card__head p {
    margin: 4px 0 0;
    color: #7584a1;
    font-size: 13px;
}
.ad-new-grid {
    display: grid;
    gap: 12px;
}
.ad-new-grid--title {
    grid-template-columns: minmax(0, 1fr) 140px;
}
.ad-new-grid--location {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ad-new-grid--params {
    grid-template-columns: 1.25fr 1fr 1fr;
}
.ad-new-field {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: #24324f;
    font-size: 13px;
    font-weight: 850;
}
.ad-new-field--wide {
    min-width: 0;
}
.ad-new-input-wrap {
    position: relative;
    display: block;
}
.ad-new-field input,
.ad-new-field select,
.ad-new-field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #ccd9ef;
    border-radius: 14px;
    padding: 12px 14px;
    color: #15223d;
    background: linear-gradient(180deg, #fff, #fbfdff);
    font: 650 15px/1.25 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.ad-new-field input:focus,
.ad-new-field select:focus,
.ad-new-field textarea:focus {
    border-color: #247cff;
    box-shadow: 0 0 0 4px rgba(36, 124, 255, .12);
    background: #fff;
}
.ad-new-field input::placeholder,
.ad-new-field textarea::placeholder {
    color: #8a98b2;
}
.ad-new-field select:disabled {
    color: #9aa7bb;
    background: #f5f8fc;
}
.ad-new-textarea textarea {
    min-height: 132px;
    padding-bottom: 34px;
    resize: vertical;
}
.ad-new-counter {
    position: absolute;
    right: 12px;
    bottom: 10px;
    color: #8a97ad;
    font-size: 12px;
    font-weight: 800;
    pointer-events: none;
}
.ad-new-grid--title .ad-new-counter {
    bottom: 50%;
    transform: translateY(50%);
}
.ad-new-note {
    margin: 10px 0 0;
    color: #7a88a5;
    font-size: 13px;
}
.ad-new-photo-section + .ad-new-photo-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed #d5e2f4;
}
.ad-new-photo-section__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.ad-new-photo-section__title h3 {
    margin: 0;
    color: #17223a;
    font-size: 16px;
}
.ad-new-photo-section__title a,
.ad-new-photo-section__title span {
    color: #647593;
    font-size: 13px;
    font-weight: 750;
}
.ad-new-photo-section__title a {
    color: #247cff;
}
.ad-new-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}
.ad-new-photo-card {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 10px;
    border: 1px solid #d9e6f8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(39, 86, 156, .07);
}
.ad-new-photo-card.is-selected {
    border-color: #247cff;
    box-shadow: 0 16px 34px rgba(36, 124, 255, .16);
}
.ad-new-photo-card__media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 14px;
    background: #eef4ff;
}
.ad-new-photo-card__media img,
.ad-new-photo-card .ad-photo-card__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
    border-radius: 0 !important;
}
.ad-new-photo-card .ad-photo-card__main-badge {
    position: absolute;
    left: 16px;
    top: 16px;
    z-index: 2;
    padding: 5px 8px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #ff5fa2);
    box-shadow: 0 8px 16px rgba(139, 92, 246, .25);
    font-size: 11px;
    font-weight: 900;
}
.ad-new-photo-card__settings,
.ad-new-photo-card .photo-card-settings {
    display: flex !important;
    gap: 7px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    margin-top: 0 !important;
}
.ad-new-photo-card .photo-card-settings__toggle {
    min-height: 30px !important;
    padding: 5px 9px !important;
    font-size: 12px !important;
}
.ad-new-empty-photo {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px dashed #cfe0fb;
    border-radius: 18px;
    background: #fbfdff;
}
.ad-new-empty-photo img {
    width: 112px;
    border-radius: 14px;
}
.ad-new-empty-photo p {
    margin: 0;
    color: #71809e;
    font-weight: 700;
}
.ad-new-upload-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px;
    border: 1px solid #d8e6f9;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #fbfdff);
}
.ad-new-upload-row input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.ad-new-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    background: #247cff;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(36, 124, 255, .22);
}
.ad-new-upload-button svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}
.ad-new-upload-status {
    color: #667692;
    font-size: 14px;
    font-weight: 800;
}
.ad-new-upload-previews {
    margin-top: 12px;
}
.ad-new-upload-previews.is-empty-hidden {
    display: none !important;
}
.ad-new-card--confirm {
    padding: 16px 18px;
}
.ad-new-confirm {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #42516d;
    font-size: 14px;
    font-weight: 750;
}
.ad-new-confirm input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #247cff;
}
.ad-new-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 14px;
}
.ad-new-preview-card,
.ad-new-side-card {
    padding: 16px;
}
.ad-new-preview-card h2,
.ad-new-side-card h3 {
    margin-bottom: 12px;
}
.ad-new-preview-box {
    overflow: hidden;
    border: 1px solid #d7e5f9;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(39, 86, 156, .08);
}
.ad-new-preview-photo {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #edf4ff, #f8faff);
}
.ad-new-preview-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.ad-new-preview-age {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #ff5fa2);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 16px rgba(139, 92, 246, .24);
}
.ad-new-preview-body {
    padding: 14px;
}
.ad-new-preview-body h3 {
    margin: 0 0 8px;
    color: #18243d;
    font-size: 16px;
    line-height: 1.25;
}
.ad-new-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 9px;
}
.ad-new-preview-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #60708e;
    background: #f0f5fc;
    font-size: 12px;
    font-weight: 800;
}
.ad-new-preview-body p {
    margin: 0;
    color: #667590;
    font-size: 13px;
    line-height: 1.45;
}
.ad-new-side-card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ad-new-side-card li {
    position: relative;
    padding-left: 22px;
    color: #667590;
    font-size: 13px;
    font-weight: 650;
}
.ad-new-side-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #247cff;
    font-size: 10px;
    font-weight: 900;
}
.ad-new-moderation-card {
    background: linear-gradient(135deg, #eef6ff, #f5f9ff);
}
.ad-new-moderation-card strong {
    display: block;
    margin-bottom: 6px;
    color: #1d3f7c;
    font-size: 15px;
}
.ad-new-moderation-card p {
    margin: 0;
    color: #657492;
    font-size: 13px;
}
.ad-new-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #247cff, #1268e8);
    color: #fff;
    font: 900 16px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(36, 124, 255, .28);
}
.ad-new-submit svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
@media (max-width: 1020px) {
    .ad-new-layout {
        grid-template-columns: 1fr;
    }
    .ad-new-sidebar {
        position: static;
        order: -1;
    }
    .ad-new-preview-card,
    .ad-new-side-card {
        display: none;
    }
}
@media (max-width: 760px) {
    .ad-new-hero {
        padding: 18px 0 4px;
    }
    .ad-new-grid--title,
    .ad-new-grid--location,
    .ad-new-grid--params {
        grid-template-columns: 1fr;
    }
    .ad-new-card {
        padding: 15px;
    }
    .ad-new-card__head {
        gap: 10px;
    }
    .ad-new-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ad-new-upload-row,
    .ad-new-upload-button,
    .ad-new-submit {
        width: 100%;
    }
}
@media (max-width: 420px) {
    .ad-new-photo-grid {
        grid-template-columns: 1fr;
    }
}

/* PATCH 2026-05-25-10b: add-ad integration polish */
.ad-new-field input[data-ad-preview-title] {
    padding-right: 84px;
}
.ad-new-field.js-district-wrap.is-hidden {
    display: none !important;
}
@media (max-width: 1020px) {
    .ad-new-sidebar {
        order: 0 !important;
    }
}

/* PATCH 2026-05-25-11: add-ad photo cards: cover selection below image, no badge overlays */
.ad-new-photo-card .ad-photo-card__main-badge,
.ad-new-photo-card .photo-card-tags,
.ad-new-photo-card .photo-main-badge {
    display: none !important;
}

.ad-new-photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 180px)) !important;
    align-items: start !important;
}

.ad-new-photo-card,
.new-photo-preview-card {
    align-content: start !important;
    overflow: visible !important;
}

.ad-new-photo-card__media,
.new-photo-preview-card__image {
    width: 100% !important;
    height: 160px !important;
    aspect-ratio: auto !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    background: #eef4ff !important;
}

.ad-new-photo-card__media img,
.ad-new-photo-card .ad-photo-card__image,
.new-photo-preview-card__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 0 !important;
    background: #eef4ff !important;
}

.ad-new-photo-card__settings,
.ad-new-photo-card .photo-card-settings,
.new-photo-preview-card__settings,
.new-photo-preview-card .photo-card-settings {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.ad-new-photo-card .photo-card-settings__toggle,
.new-photo-preview-card .photo-card-settings__toggle {
    min-height: 30px !important;
    padding: 5px 8px !important;
    border: 1px solid #d7e4fb !important;
    border-radius: 999px !important;
    background: #f7faff !important;
    color: #35507f !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.ad-new-photo-card .photo-card-settings__toggle--main,
.new-photo-preview-card .photo-card-settings__toggle--main {
    background: #eef5ff !important;
    color: #145bc9 !important;
}

.ad-new-photo-card .photo-card-settings__toggle input,
.new-photo-preview-card .photo-card-settings__toggle input {
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    min-height: 0 !important;
    accent-color: #247cff !important;
}

.new-photo-preview-card .new-photo-preview-card__remove,
.new-photo-preview-card .photo-remove-button {
    position: static !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
    margin-left: auto !important;
    padding: 0 !important;
    color: transparent !important;
    background-color: rgba(18, 31, 58, .78) !important;
    background-size: 16px 16px !important;
    box-shadow: 0 8px 18px rgba(20, 48, 100, .18) !important;
}

.new-photo-preview-card__name {
    min-height: 18px !important;
    margin: 0 !important;
}

.ad-new-preview-photo img {
    object-fit: contain !important;
    background: #eef4ff !important;
}

/* PATCH 2026-05-25-12: edit form matches create form, photo controls below thumbnails */
.ad-new-delete-card {
    display: grid;
    gap: 10px;
}
.ad-new-delete-card p {
    margin: 0;
    color: #667590;
    font-size: 13px;
    line-height: 1.45;
}
.ad-new-delete-button {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
}
#delete-ad-form {
    display: none;
}
.ad-new-form .ad-new-photo-card .photo-card-tags,
.ad-new-form .ad-new-photo-card .ad-photo-card__main-badge,
.ad-new-form .ad-new-photo-card .photo-main-badge {
    display: none !important;
}
.ad-new-form .ad-new-photo-card,
.ad-new-form .new-photo-preview-card {
    display: grid !important;
    grid-template-rows: auto auto auto !important;
    align-items: start !important;
    align-content: start !important;
    overflow: visible !important;
}
.ad-new-form .ad-new-photo-card__media,
.ad-new-form .new-photo-preview-card__image {
    position: relative !important;
    width: 100% !important;
    height: 160px !important;
    margin: 0 !important;
    overflow: hidden !important;
}
.ad-new-form .ad-new-photo-card__media a,
.ad-new-form .ad-new-photo-card__media .current-ad-photo__link {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}
.ad-new-form .ad-new-photo-card__media img,
.ad-new-form .ad-new-photo-card .ad-photo-card__image,
.ad-new-form .new-photo-preview-card__image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 0 !important;
}
.ad-new-form .ad-new-photo-card.is-removed .ad-photo-card__image,
.ad-new-form .ad-new-photo-card:not(.is-selected) .ad-photo-card__image,
.ad-new-form .ad-photo-option--cabinet.is-removed .ad-photo-option__image {
    display: block !important;
}
.ad-new-form .ad-new-photo-card.is-removed .photo-card-empty-placeholder,
.ad-new-form .ad-new-photo-card:not(.is-selected) .photo-card-empty-placeholder,
.ad-new-form .ad-photo-option--cabinet.is-removed .photo-card-empty-placeholder {
    display: none !important;
}
.ad-new-form .ad-new-photo-card__settings,
.ad-new-form .ad-new-photo-card .photo-card-settings,
.ad-new-form .new-photo-preview-card__settings,
.ad-new-form .new-photo-preview-card .photo-card-settings {
    position: static !important;
    inset: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
.ad-new-form .new-photo-preview-card__remove,
.ad-new-form .new-photo-preview-card .photo-remove-button,
.ad-new-form .ad-new-photo-card .photo-remove-button {
    position: static !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
    margin-left: auto !important;
}
.ad-new-form .new-photo-preview-card__name {
    order: 2;
    margin-top: 4px !important;
}
.ad-new-form .new-photo-preview-card__settings {
    order: 3;
}


/* FINAL 2026-05-25: search page compact toggles, never stretch Online/Photo switches */
.search-page-hero .home-search--search-page,
.search-page-hero .home-search--search-page.home-search--has-district,
.search-page-hero .home-search--search-page:not(.home-search--has-district) {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    overflow: visible !important;
}

.search-page-hero .home-search__field {
    flex: 0 1 170px !important;
    width: auto !important;
    min-width: 145px !important;
    max-width: 220px !important;
    box-sizing: border-box !important;
}

.search-page-hero .home-search__field--search {
    flex: 1 1 320px !important;
    min-width: 260px !important;
    max-width: none !important;
}

.search-page-hero .home-search__field--district.is-hidden {
    display: none !important;
}

.search-page-hero .home-search__toggle {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 112px !important;
    max-width: 126px !important;
    min-height: 52px !important;
    padding: 0 12px !important;
    justify-content: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
}

.search-page-hero .home-search__button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 104px !important;
    max-width: 118px !important;
    min-height: 52px !important;
    padding: 0 18px !important;
    justify-self: auto !important;
    box-sizing: border-box !important;
}

@media (max-width: 720px) {
    .search-page-hero .home-search__field,
    .search-page-hero .home-search__field--search,
    .search-page-hero .home-search__toggle,
    .search-page-hero .home-search__button {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}


/* PATCH 2026-05-25-19: profile settings block in user cabinet */
.cabinet-profile-settings {
    margin-bottom: 24px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.cabinet-profile-settings__head {
    align-items: flex-start;
    gap: 16px;
}
.cabinet-profile-settings__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.cabinet-profile-settings__item {
    display: grid;
    gap: 7px;
    min-height: 82px;
    padding: 16px;
    border: 1px solid #dce6f4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(24, 71, 150, .06);
}
.cabinet-profile-settings__item span {
    color: #72809a;
    font-size: 13px;
    font-weight: 700;
}
.cabinet-profile-settings__item strong {
    color: #172033;
    font-size: 18px;
    line-height: 1.25;
}
.cabinet-profile-settings__item--wide {
    grid-column: span 2;
}
@media (max-width: 1000px) {
    .cabinet-profile-settings__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cabinet-profile-settings__item--wide {
        grid-column: span 2;
    }
}
@media (max-width: 620px) {
    .cabinet-profile-settings__head {
        display: grid;
    }
    .cabinet-profile-settings__head .button-link {
        width: 100%;
        justify-content: center;
    }
    .cabinet-profile-settings__grid {
        grid-template-columns: 1fr;
    }
    .cabinet-profile-settings__item--wide {
        grid-column: auto;
    }
}

/* PATCH 2026-05-25-20: persisted user profile settings form */
.profile-settings-hero {
    margin-bottom: 18px;
}
.profile-settings-form {
    margin-top: 0;
}
.profile-settings-layout .ad-new-main {
    min-width: 0;
}
.profile-settings-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.profile-settings-warning {
    border-color: #f4c973;
    background: #fffaf0;
}
.profile-settings-warning .ad-new-card__num {
    background: #f59e0b;
}
.profile-settings-sidebar .button-link,
.profile-settings-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    margin-top: 12px;
}
@media (max-width: 900px) {
    .profile-settings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 620px) {
    .profile-settings-grid {
        grid-template-columns: 1fr;
    }
}


/* Profile settings rich text + public profile page */
.profile-settings-grid--main {
  grid-template-columns: minmax(120px, .65fr) repeat(2, minmax(180px, 1fr));
}
.profile-rich-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.profile-rich-field {
  min-width: 0;
}
.profile-rich-input[hidden] {
  display: none !important;
}
.profile-rich-editor {
  margin-top: 8px;
  border: 1px solid rgba(38, 111, 238, .22);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.profile-rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  background: linear-gradient(180deg, #f7fbff, #edf5ff);
  border-bottom: 1px solid rgba(38, 111, 238, .14);
}
.profile-rich-toolbar button {
  width: auto;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(38, 111, 238, .18);
  border-radius: 10px;
  background: #fff;
  color: #17223b;
  font-weight: 700;
  cursor: pointer;
}
.profile-rich-toolbar button:hover {
  border-color: rgba(38, 111, 238, .45);
  color: #246df2;
}
.profile-rich-content {
  min-height: 150px;
  padding: 14px 16px;
  outline: none;
  color: #17223b;
  line-height: 1.6;
}
.profile-rich-content.is-empty::before {
  content: attr(data-placeholder);
  color: #8a97b5;
  pointer-events: none;
}
.profile-rich-content p {
  margin: 0 0 10px;
}
.profile-rich-content ul,
.profile-rich-content ol {
  margin: 8px 0 8px 20px;
  padding: 0;
}
.ad-author-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(38,111,238,.14);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(38,111,238,.08), rgba(255,255,255,.92));
}
.ad-author-strip a {
  color: #17223b;
  font-weight: 800;
  text-decoration: none;
}
.ad-author-strip a:hover {
  color: #246df2;
}

.ad-author-profile-card {
  margin: 0 0 20px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(240,245,255,.95));
  border: 1px solid rgba(38,111,238,.13);
  box-shadow: 0 14px 36px rgba(31,74,146,.08);
}
.ad-author-profile-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.ad-author-profile-card__head span {
  display: block;
  color: #6d7894;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.ad-author-profile-card__head h2 {
  margin: 0;
  color: #17223b;
  font-size: 20px;
}
.ad-author-profile-card__head a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  color: #246df2;
  background: rgba(38,111,238,.09);
  text-decoration: none;
  font-weight: 900;
}
.ad-author-profile-card__head a:hover {
  background: rgba(38,111,238,.16);
}
.ad-author-profile-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.ad-author-profile-facts > div {
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(38,111,238,.10);
}
.ad-author-profile-facts span {
  display: block;
  margin-bottom: 5px;
  color: #6d7894;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ad-author-profile-facts strong {
  color: #17223b;
  overflow-wrap: anywhere;
}
.ad-author-profile-texts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.ad-author-profile-texts section {
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(38,111,238,.10);
}
.ad-author-profile-texts h3 {
  margin: 0 0 8px;
  color: #17223b;
}
@media (max-width: 900px) {
  .ad-author-profile-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .ad-author-profile-card__head,
  .ad-author-strip {
    align-items: stretch;
    flex-direction: column;
  }
  .ad-author-profile-card__head a {
    text-align: center;
  }
  .ad-author-profile-facts,
  .ad-author-profile-texts {
    grid-template-columns: 1fr;
  }
}
.public-profile-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  position: relative;
}
.public-profile-hero__main h1 {
  margin-bottom: 8px;
}
.public-profile-hero__status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 135px;
}
.public-profile-hero__status small {
  color: #6d7894;
  font-size: 12px;
  text-align: right;
}
.public-profile-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
}
.public-profile-status::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px currentColor;
  opacity: .85;
}
.public-profile-status.is-online {
  color: #0f9f5f;
  background: rgba(24, 190, 122, .12);
}
.public-profile-status.is-offline {
  color: #8a97b5;
  background: rgba(138, 151, 181, .14);
}
.public-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr);
  gap: 18px;
  align-items: start;
}
.public-profile-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.public-profile-facts > div {
  padding: 14px;
  border-radius: 16px;
  background: #f6f9ff;
  border: 1px solid rgba(38,111,238,.10);
}
.public-profile-facts span,
.cabinet-profile-settings__item span {
  display: block;
  margin-bottom: 5px;
  color: #6d7894;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.public-profile-facts strong {
  color: #17223b;
}
.public-profile-facts__wide {
  grid-column: 1 / -1;
}
.public-profile-texts {
  display: grid;
  gap: 16px;
}
.public-profile-texts h2,
.public-profile-photos h2 {
  margin: 0 0 10px;
  color: #17223b;
}
.public-profile-richtext {
  color: #26324c;
  line-height: 1.65;
}
.public-profile-richtext p {
  margin: 0 0 10px;
}
.public-profile-richtext ul,
.public-profile-richtext ol {
  margin: 8px 0 8px 20px;
  padding: 0;
}
.public-profile-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.public-profile-photo {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 170px;
  background: #eef4ff;
  border: 1px solid rgba(38,111,238,.12);
}
.public-profile-photo img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}
.public-profile-photo a {
  display: block;
}
.public-profile-photo figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(16, 24, 42, .72);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.private-photo-lock--profile {
  display: flex;
  width: 100%;
  height: 210px;
}
.private-photo-lock--profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 860px) {
  .profile-rich-grid,
  .public-profile-layout,
  .public-profile-facts {
    grid-template-columns: 1fr;
  }
  .public-profile-hero {
    flex-direction: column;
  }
  .public-profile-hero__status {
    align-items: flex-start;
  }
}
@media (max-width: 560px) {
  .profile-settings-grid--main,
  .public-profile-photo-grid {
    grid-template-columns: 1fr;
  }
}

/* PATCH 2026-05-25-21: profile public link visibility + rich text rendering in cabinet */
.cabinet-quick-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.cabinet-quick-card--public .cabinet-quick-card__icon {
    background: linear-gradient(135deg, #e8f1ff, #eafaf1);
}
.cabinet-profile-settings__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}
.cabinet-profile-settings__item--rich {
    align-content: start;
}
.cabinet-profile-settings__richtext {
    color: #172033;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 600;
}
.cabinet-profile-settings__richtext p {
    margin: 0 0 8px;
}
.cabinet-profile-settings__richtext p:last-child {
    margin-bottom: 0;
}
.cabinet-profile-settings__richtext ul,
.cabinet-profile-settings__richtext ol {
    margin: 7px 0 7px 20px;
    padding: 0;
}
.cabinet-profile-settings__richtext strong,
.cabinet-profile-settings__richtext b {
    font-weight: 900;
}
.cabinet-profile-settings__richtext em,
.cabinet-profile-settings__richtext i {
    font-style: italic;
}
.profile-settings-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.profile-settings-public-link {
    flex: 0 0 auto;
    margin-top: 4px;
}
.public-profile-richtext strong,
.public-profile-richtext b {
    font-weight: 900;
}
.public-profile-richtext em,
.public-profile-richtext i {
    font-style: italic;
}
@media (max-width: 720px) {
    .cabinet-profile-settings__actions,
    .profile-settings-hero {
        display: grid;
    }
    .cabinet-profile-settings__actions .button-link,
    .profile-settings-public-link {
        width: 100%;
        justify-content: center;
    }
}

/* Profile body parameters RFP patch */
.profile-settings-body-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.profile-body-field[hidden],
.profile-body-field.is-hidden {
    display: none !important;
}
.profile-settings-back--public {
    background: linear-gradient(135deg, rgba(38, 111, 238, .12), rgba(126, 87, 255, .12));
    border-color: rgba(38, 111, 238, .22);
    font-weight: 900;
}
.public-profile-facts > div:not(.public-profile-facts__wide),
.cabinet-profile-settings__item {
    min-width: 0;
}
.public-profile-richtext strong,
.public-profile-richtext b,
.cabinet-profile-settings__richtext strong,
.cabinet-profile-settings__richtext b {
    font-weight: 900;
}
.public-profile-richtext u,
.cabinet-profile-settings__richtext u {
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.public-profile-richtext ol,
.cabinet-profile-settings__richtext ol {
    list-style: decimal;
}
@media (max-width: 980px) {
    .profile-settings-body-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 620px) {
    .profile-settings-body-grid {
        grid-template-columns: 1fr;
    }
}

/* PATCH: editable user photo privacy and metadata on /profile/photos */
.profile-photo-grid--editable {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.profile-photo-card {
    display: flex;
    flex-direction: column;
}
.profile-photo-card figcaption small {
    display: block;
    margin-top: 2px;
}
.profile-photo-edit-form {
    display: grid;
    gap: 10px;
    padding: 0 12px 12px;
}
.profile-photo-edit-form label:not(.checkline) {
    display: grid;
    gap: 6px;
    color: #5c6884;
    font-size: 13px;
    font-weight: 800;
}
.profile-photo-edit-form select {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
}
.profile-photo-edit-check {
    align-items: flex-start !important;
    gap: 8px !important;
    color: #26324c;
    font-size: 13px;
    line-height: 1.35;
}
.profile-photo-edit-check input[type="checkbox"] {
    flex: 0 0 auto;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    margin-top: 1px !important;
    accent-color: #247cff;
}
.profile-photo-sync-check {
    padding: 9px 10px;
    border-radius: 12px;
    background: #f6f9ff;
    border: 1px solid rgba(38,111,238,.12);
}
.profile-photo-current-main {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(24,190,122,.12);
    color: #0f9f5f;
    font-size: 12px;
    font-weight: 900;
}
.profile-photo-edit-actions {
    display: flex;
    justify-content: flex-start;
}
.profile-photo-edit-actions button {
    border: 0;
    border-radius: 999px;
    padding: 9px 13px;
    background: #247cff;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}
.photo-actions--separate {
    padding: 0 12px 12px;
}
.photo-actions--separate button {
    padding: 8px 11px;
}
@media (max-width: 560px) {
    .profile-photo-grid--editable {
        grid-template-columns: 1fr;
    }
}

/* PATCH: album management on /profile/photos */
.profile-albums-panel .section-head {
    margin-bottom: 14px;
}
.album-create-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid rgba(33, 88, 178, .12);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(240, 246, 255, .92), rgba(255, 255, 255, .96));
}
.album-create-form label:not(.checkline),
.profile-album-form label:not(.checkline) {
    display: grid;
    gap: 6px;
    color: #5c6884;
    font-size: 13px;
    font-weight: 800;
}
.album-create-form input[type="text"],
.profile-album-form input[type="text"] {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 9px 11px;
    background: #fff;
    color: var(--text);
    font: inherit;
}
.album-create-form button,
.profile-album-actions button {
    border: 0;
    border-radius: 999px;
    padding: 10px 15px;
    background: #247cff;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}
.profile-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.profile-album-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(23, 44, 82, .06);
}
.profile-album-form {
    display: grid;
    gap: 10px;
}
.profile-album-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.profile-album-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f3f6fb;
    color: #5c6884;
    font-size: 12px;
    font-weight: 900;
}
.profile-album-actions,
.profile-album-delete {
    display: flex;
    justify-content: flex-start;
}
.profile-album-delete {
    margin: 0;
    padding-top: 2px;
    border-top: 1px dashed rgba(27, 39, 65, .12);
}
.profile-album-delete .button-danger {
    border-radius: 999px;
    padding: 9px 13px;
}
@media (max-width: 720px) {
    .album-create-form {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .album-create-form button,
    .profile-album-actions button,
    .profile-album-delete .button-danger {
        width: 100%;
    }
}

/* Profile photos page preview card */
.profile-photos-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 22px;
    align-items: stretch;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 0%, rgba(36, 124, 255, .16) 0%, rgba(36, 124, 255, 0) 34%),
        linear-gradient(135deg, #fff 0%, #f8fbff 58%, #eef5ff 100%);
}
.profile-photos-hero__content {
    min-width: 0;
    align-self: center;
}
.profile-photos-preview-card {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(36, 124, 255, .18);
    border-radius: 22px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 42px rgba(21, 50, 100, .10);
}
.profile-photos-preview-card__photo {
    position: relative;
    display: block;
    min-height: 168px;
    border-radius: 18px;
    overflow: hidden;
    background: #eaf2ff;
}
.profile-photos-preview-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 168px;
    object-fit: cover;
}
.profile-photos-preview-card__body {
    min-width: 0;
    display: grid;
    gap: 9px;
    align-content: start;
}
.profile-photos-preview-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #6c7892;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .045em;
}
.profile-photos-preview-card__top strong {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e8f8ef;
    color: #168a4a;
    font-size: 11px;
}
.profile-photos-preview-card__top strong::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(22, 138, 74, .12);
}
.profile-photos-preview-card h2 {
    margin: 0;
    color: var(--text);
    font-size: 22px;
    line-height: 1.12;
}
.profile-photos-preview-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.profile-photos-preview-card__chips span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1f5fb;
    color: #5c6884;
    font-size: 12px;
    font-weight: 900;
}
.profile-photos-preview-card__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin: 0;
}
.profile-photos-preview-card__facts div {
    min-width: 0;
    padding: 8px 9px;
    border-radius: 14px;
    background: #f8faff;
    border: 1px solid rgba(220, 227, 238, .78);
}
.profile-photos-preview-card__facts dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .035em;
}
.profile-photos-preview-card__facts dd {
    margin: 2px 0 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-photos-preview-card__empty {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}
.profile-photos-preview-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 13px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-weight: 900;
    text-align: center;
}
.profile-photos-preview-card__link:hover {
    background: #176ce4;
    color: #fff;
    text-decoration: none;
}
@media (max-width: 900px) {
    .profile-photos-hero {
        grid-template-columns: 1fr;
    }
    .profile-photos-preview-card {
        max-width: 560px;
    }
}
@media (max-width: 560px) {
    .profile-photos-preview-card {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 11px;
        padding: 12px;
    }
    .profile-photos-preview-card__photo,
    .profile-photos-preview-card__photo img {
        min-height: 118px;
    }
    .profile-photos-preview-card__facts {
        grid-template-columns: 1fr;
    }
}

/* FINAL: ТОП фото — только фотографии, автор и отдельная страница фото */
.top-photo-board--photos-only .top-photo-card__body{
    display:grid!important;
    gap:12px!important;
}
.top-photo-card--photo-only .top-photo-card__image{
    height:320px!important;
}
.top-photo-card--photo-only .private-photo-lock,
.top-photo-card--photo-only .private-photo-lock__image{
    display:block!important;
    width:100%!important;
    height:100%!important;
}
.top-photo-card--photo-only .private-photo-lock__image{
    object-fit:cover!important;
}
.top-photo-card__score--split{
    justify-content:space-between!important;
    margin-bottom:0!important;
}
.top-photo-author-line{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    padding:10px 12px!important;
    border:1px solid #e3ecfb!important;
    border-radius:16px!important;
    background:linear-gradient(135deg,#f8fbff,#ffffff)!important;
}
.top-photo-author-line a{
    color:#143070!important;
    font-weight:1000!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
}
.top-photo-author-line .public-profile-status{
    flex:0 0 auto!important;
}
.single-photo-hero{
    display:flex!important;
    justify-content:space-between!important;
    align-items:flex-start!important;
    gap:18px!important;
    padding:30px 34px!important;
}
.single-photo-hero h1{
    margin:8px 0!important;
    color:#142b60!important;
    font-size:clamp(34px,4vw,56px)!important;
    line-height:1!important;
}
.single-photo-hero p{
    margin:0!important;
    color:#6c7d99!important;
    font-size:17px!important;
}
.single-photo-hero p a{
    color:#246cff!important;
    font-weight:1000!important;
}
.single-photo-hero__actions{
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    flex-wrap:wrap!important;
    justify-content:flex-end!important;
}
.single-photo-back{
    display:inline-flex!important;
    align-items:center!important;
    min-height:40px!important;
    padding:0 14px!important;
    border-radius:999px!important;
    background:#eef4ff!important;
    color:#247cff!important;
    font-weight:900!important;
}
.single-photo-layout{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 390px!important;
    gap:18px!important;
    align-items:start!important;
    margin-bottom:32px!important;
}
.single-photo-panel,
.single-photo-side{
    min-width:0!important;
}
.single-photo-frame{
    border:1px solid #d8e3f5!important;
    border-radius:28px!important;
    overflow:hidden!important;
    background:linear-gradient(135deg,#f7fbff,#edf4ff)!important;
    box-shadow:0 18px 44px rgba(24,71,150,.08)!important;
    min-height:520px!important;
}
.single-photo-frame img,
.single-photo-frame .photo-lightbox,
.single-photo-frame .single-photo-private{
    display:block!important;
    width:100%!important;
    height:100%!important;
    min-height:520px!important;
}
.single-photo-frame img{
    object-fit:contain!important;
    object-position:center!important;
    background:#eef4ff!important;
}
.single-photo-private .private-photo-lock__image{
    object-fit:cover!important;
}
.single-photo-nav{
    display:grid!important;
    grid-template-columns:1fr auto 1fr!important;
    gap:10px!important;
    margin-top:14px!important;
}
.single-photo-nav a,
.single-photo-nav span{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:42px!important;
    padding:0 14px!important;
    border-radius:999px!important;
    border:1px solid #d9e5f6!important;
    background:#fff!important;
    color:#247cff!important;
    font-weight:900!important;
    text-align:center!important;
}
.single-photo-nav span{
    color:#99a8bf!important;
    background:#f6f9ff!important;
}
.single-photo-side{
    position:sticky!important;
    top:106px!important;
    display:grid!important;
    gap:14px!important;
}
.single-photo-author-card,
.single-photo-comments-card{
    border:1px solid #d8e3f5!important;
    border-radius:24px!important;
    background:linear-gradient(180deg,#fff,#fbfdff)!important;
    box-shadow:0 16px 36px rgba(24,71,150,.07)!important;
    padding:16px!important;
    overflow:hidden!important;
}
.single-photo-author-card__top{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:12px!important;
    margin-bottom:14px!important;
}
.single-photo-author-card__top span:first-child{
    display:block!important;
    color:#7d8aa4!important;
    font-size:12px!important;
    font-weight:1000!important;
    text-transform:uppercase!important;
    letter-spacing:.04em!important;
    margin-bottom:4px!important;
}
.single-photo-author-card__top h2{
    margin:0!important;
    font-size:22px!important;
    line-height:1.1!important;
}
.single-photo-author-card__top h2 a{
    color:#142b60!important;
}
.single-photo-stats{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
}
.single-photo-stats div{
    border:1px solid #e2ebf8!important;
    border-radius:16px!important;
    background:#fff!important;
    padding:10px!important;
    text-align:center!important;
}
.single-photo-stats span{
    display:block!important;
    color:#8492ab!important;
    font-size:11px!important;
    font-weight:900!important;
    margin-bottom:4px!important;
}
.single-photo-stats strong{
    display:block!important;
    color:#172e66!important;
    font-size:22px!important;
    line-height:1!important;
}
.single-photo-week{
    margin-top:10px!important;
    padding:9px 11px!important;
    border-radius:14px!important;
    background:#eef4ff!important;
    color:#2b66ed!important;
    font-weight:900!important;
    font-size:12px!important;
    text-align:center!important;
}
.single-photo-comments-card__head{
    padding:0!important;
}
.single-photo-comments-list{
    max-height:360px!important;
}
.single-photo-comment-form{
    margin-top:14px!important;
}
.single-photo-login-note{
    margin-top:14px!important;
}
@media(max-width:1040px){
    .single-photo-layout{
        grid-template-columns:1fr!important;
    }
    .single-photo-side{
        position:static!important;
    }
}
@media(max-width:720px){
    .single-photo-hero{
        flex-direction:column!important;
        padding:24px!important;
    }
    .single-photo-hero__actions{
        justify-content:flex-start!important;
    }
    .single-photo-frame,
    .single-photo-frame img,
    .single-photo-frame .photo-lightbox,
    .single-photo-frame .single-photo-private{
        min-height:320px!important;
    }
    .single-photo-nav{
        grid-template-columns:1fr!important;
    }
    .single-photo-stats{
        grid-template-columns:1fr!important;
    }
    .top-photo-card--photo-only .top-photo-card__image{
        height:250px!important;
    }
}

/* Profile photos bulk upload */
.profile-bulk-upload-form {
    align-items: start;
}
.profile-bulk-upload-head {
    margin-bottom: 0;
}
.profile-bulk-upload-head h2 {
    margin: 0 0 6px;
}
.profile-bulk-upload-box {
    display: grid;
    gap: 12px;
}
.profile-bulk-upload-row {
    min-height: 72px;
}
.profile-bulk-upload-previews .photo-card-settings__toggle--main {
    background: rgba(36, 124, 255, .10);
    color: var(--blue);
}
@media (max-width: 720px) {
    .profile-bulk-upload-form {
        grid-template-columns: 1fr;
    }
    .profile-bulk-upload-row,
    .profile-bulk-upload-row .ad-new-upload-button {
        width: 100%;
    }
}

/* PATCH: forum-like private messages and admin conversations */
.message-page-title{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;background:linear-gradient(135deg,#fff,#eef5ff)}
.conversation-list-panel__head span,.admin-conversation-panel .panel__head span{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 13px;border-radius:999px;background:#eef5ff;color:#1f64df;font-weight:900}
.conversation-topic-list,.admin-conversation-list{display:grid;gap:12px}
.conversation-topic{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:14px;align-items:center;padding:15px;border:1px solid #d7e4f8;border-radius:18px;background:linear-gradient(180deg,#fff,#fbfdff);color:#0f1a33;box-shadow:0 10px 28px rgba(40,105,210,.06);transition:.16s ease}
.conversation-topic:hover{transform:translateY(-1px);border-color:#9fc0ff;text-decoration:none;box-shadow:0 16px 34px rgba(40,105,210,.11)}
.conversation-topic.has-unread{border-color:#2c7bff;background:linear-gradient(135deg,#fff,#f0f6ff)}
.conversation-topic__avatar,.message-bubble__avatar{width:52px;height:52px;border-radius:18px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,#ecf3ff,#f2eaff);color:#2268e8;font-weight:1000;font-size:20px;box-shadow:inset 0 0 0 1px rgba(44,123,255,.12)}
.conversation-topic__avatar img,.message-bubble__avatar img{width:100%;height:100%;object-fit:cover}
.conversation-topic__body{display:grid;gap:5px;min-width:0}
.conversation-topic__title{font-size:18px;font-weight:1000;color:#10192d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conversation-topic__meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#6d7a99;font-size:13px;font-weight:800}
.conversation-topic__snippet{color:#53617e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conversation-topic__side{display:grid;justify-items:end;gap:7px;color:#1f64df;font-weight:900;white-space:nowrap}
.conversation-topic__side b{min-width:28px;height:28px;padding:0 8px;border-radius:999px;display:inline-grid;place-items:center;background:#ff3f7d;color:#fff;font-size:13px;box-shadow:0 8px 18px rgba(255,63,125,.22)}
.conversation-topic__side em{font-style:normal}
.message-thread-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#fff,#eef5ff)}
.message-thread-head h1{margin:.15em 0;font-size:clamp(28px,4vw,46px)}
.message-thread-partner-link,.message-bubble__profile-link{color:inherit;text-decoration:none}
.message-thread-partner-link:hover,.message-thread-partner-link:focus-visible,.message-bubble__profile-link:hover,.message-bubble__profile-link:focus-visible{text-decoration:underline;text-underline-offset:3px}
.message-thread-head p{margin:0;color:#6d7a99;font-size:18px}
.message-thread-head__actions{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.message-thread-head__actions a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:9px 14px;border-radius:999px;background:#eef5ff;color:#145bc9;font-weight:900}
.message-thread-panel{background:linear-gradient(180deg,#fff,#f8fbff)}
.message-thread{display:grid;gap:13px;margin-bottom:18px}
.message-bubble{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;max-width:78%;align-items:start}
.message-bubble.is-mine{grid-template-columns:minmax(0,1fr) 52px;margin-left:auto}
.message-bubble.is-mine .message-bubble__avatar{grid-column:2;grid-row:1;background:linear-gradient(135deg,#2f7dff,#7a9dff);color:#fff}
.message-bubble.is-mine .message-bubble__content{grid-column:1;grid-row:1;background:linear-gradient(135deg,#2f7dff,#1764e8);color:#fff;border-color:#1764e8}
.message-bubble.is-mine .message-bubble__content p,.message-bubble.is-mine .message-bubble__top,.message-bubble.is-mine small{color:#fff}
.message-bubble.is-theirs .message-bubble__content{background:#fff}
.message-bubble__content{padding:13px 15px;border:1px solid #d7e4f8;border-radius:18px;box-shadow:0 10px 26px rgba(40,105,210,.08)}
.message-bubble__top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px;color:#667694;font-size:13px;font-weight:850}
.message-bubble__top strong{font-size:14px;color:inherit}
.message-bubble__content p{margin:0;color:#1b263b;white-space:normal;overflow-wrap:anywhere}
.message-bubble__content small{display:block;margin-top:8px;color:#7a88a5;font-weight:800;font-size:12px}
.message-reply-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;padding-top:18px;border-top:1px solid #dbe7f8}
.message-reply-form label{display:grid;gap:7px;font-weight:900;color:#1f2a44}
.message-reply-form textarea{width:100%;min-height:92px;border:1px solid #cfe0fa;border-radius:16px;padding:13px 15px;background:#fff;font:inherit;resize:vertical}
.message-reply-form button{min-height:50px;border:0;border-radius:16px;padding:13px 20px;background:#2678ff;color:#fff;font-weight:1000;cursor:pointer;box-shadow:0 13px 28px rgba(38,120,255,.2)}
.admin-conversation-topic{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:16px;border:1px solid #d7e4f8;border-radius:18px;background:#fff;box-shadow:0 10px 26px rgba(40,105,210,.06)}
.admin-conversation-topic h3{margin:0 0 8px;font-size:19px}
.admin-conversation-topic p{margin:10px 0;color:#53617e;overflow-wrap:anywhere}
.admin-conversation-topic__users{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-weight:850;color:#6d7a99}
.admin-conversation-topic__actions{display:grid;gap:8px;align-content:center;justify-items:end}
.admin-conversation-topic__actions a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 12px;border-radius:999px;background:#eef5ff;color:#145bc9;font-weight:900;white-space:nowrap}
.admin-message-thread-head .public-profile-status{white-space:nowrap}
@media (max-width:760px){.conversation-topic{grid-template-columns:48px minmax(0,1fr);}.conversation-topic__side{grid-column:1/-1;display:flex;justify-content:space-between;justify-items:stretch}.message-thread-head{display:grid}.message-thread-head__actions{justify-content:flex-start}.message-bubble,.message-bubble.is-mine{max-width:100%;grid-template-columns:44px minmax(0,1fr)}.message-bubble.is-mine .message-bubble__avatar{grid-column:1}.message-bubble.is-mine .message-bubble__content{grid-column:2}.message-reply-form{grid-template-columns:1fr}.admin-conversation-topic{grid-template-columns:1fr}.admin-conversation-topic__actions{justify-items:start}}

/* PATCH: animated unread message indicators in header */
.topbar-tools__icon{
    position:relative;
    overflow:visible;
}
.topbar-tools__icon.has-unread{
    color:#125fff!important;
    border-color:#b9ceff!important;
    background:linear-gradient(135deg,#ffffff,#edf4ff)!important;
    box-shadow:0 12px 28px rgba(38,120,255,.18),0 0 0 4px rgba(38,120,255,.06)!important;
}
.topbar-tools__icon.has-unread::after{
    content:"";
    position:absolute;
    inset:-5px;
    border-radius:18px;
    border:2px solid rgba(38,120,255,.28);
    opacity:0;
    pointer-events:none;
    animation:bbsUnreadRing 1.7s ease-out infinite;
}
.topbar-tools__icon.is-pulsing svg{
    animation:bbsUnreadShake 1.25s ease-in-out infinite;
    transform-origin:50% 12%;
}
.topbar-tools__icon--chat.is-pulsing svg{
    animation:bbsUnreadBounce 1.15s ease-in-out infinite;
    transform-origin:50% 60%;
}
.topbar-tools__badge{
    position:absolute;
    top:-7px;
    right:-7px;
    z-index:2;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:21px;
    height:21px;
    padding:0 6px;
    border-radius:999px;
    background:linear-gradient(135deg,#ff3f7f,#ff6b4a);
    color:#fff;
    border:2px solid #fff;
    box-shadow:0 8px 18px rgba(255,63,127,.28);
    font-size:11px;
    line-height:1;
    font-weight:1000;
    letter-spacing:-.02em;
    animation:bbsUnreadBadge 1.2s ease-in-out infinite;
}
.topbar-tools__badge[hidden]{display:none!important}
@keyframes bbsUnreadRing{
    0%{opacity:.85;transform:scale(.9)}
    70%{opacity:0;transform:scale(1.18)}
    100%{opacity:0;transform:scale(1.18)}
}
@keyframes bbsUnreadShake{
    0%,100%{transform:rotate(0deg)}
    10%{transform:rotate(-10deg)}
    20%{transform:rotate(9deg)}
    30%{transform:rotate(-7deg)}
    40%{transform:rotate(5deg)}
    50%{transform:rotate(0deg)}
}
@keyframes bbsUnreadBounce{
    0%,100%{transform:translateY(0) scale(1)}
    35%{transform:translateY(-2px) scale(1.06)}
    65%{transform:translateY(1px) scale(.98)}
}
@keyframes bbsUnreadBadge{
    0%,100%{transform:scale(1)}
    50%{transform:scale(1.12)}
}
@media (prefers-reduced-motion:reduce){
    .topbar-tools__icon.has-unread::after,
    .topbar-tools__icon.is-pulsing svg,
    .topbar-tools__badge{
        animation:none!important;
    }
}

/* Email activation / mail settings */
.cabinet-mail-settings {
    border-color: rgba(37, 99, 235, .18);
}
.cabinet-mail-settings__head {
    align-items: center;
}
.mail-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 900;
    font-size: 13px;
    white-space: nowrap;
}
.mail-status--ok {
    color: #047857;
    background: rgba(16, 185, 129, .12);
    border: 1px solid rgba(16, 185, 129, .22);
}
.mail-status--warn {
    color: #b45309;
    background: rgba(245, 158, 11, .14);
    border: 1px solid rgba(245, 158, 11, .28);
}
.cabinet-mail-settings__grid {
    display: grid;
    grid-template-columns: minmax(240px, .8fr) minmax(280px, 1.2fr);
    gap: 14px;
}
.cabinet-mail-settings__card {
    border: 1px solid rgba(191, 219, 254, .95);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.96));
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 16px 38px rgba(37, 99, 235, .08);
}
.cabinet-mail-settings__card span,
.cabinet-mail-settings__card small {
    display: block;
    color: #66759a;
    font-weight: 800;
}
.cabinet-mail-settings__card strong {
    display: block;
    margin-top: 6px;
    font-size: 18px;
    color: #0f172a;
    word-break: break-word;
}
.mail-settings-form {
    display: grid;
    gap: 12px;
}
.toggle-row--inline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(239, 246, 255, .85);
    font-weight: 900;
    color: #172554;
}
.mail-activation-note {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 247, 237, .95);
    border: 1px solid rgba(251, 146, 60, .28);
    color: #7c2d12;
}
.mail-activation-note strong {
    margin: 0;
    color: #9a3412;
}
.user-menu__mail-warning {
    display: inline-flex;
    margin-top: 5px;
    color: #b45309;
    font-weight: 900;
}
.activation-limits-panel {
    border-color: rgba(251, 146, 60, .3);
    background: linear-gradient(135deg, rgba(255, 247, 237, .96), rgba(239, 246, 255, .96));
}
.activation-limits-panel h2 {
    margin-bottom: 8px;
}
.activation-limits-panel p {
    color: #64748b;
    margin-bottom: 14px;
}
.activation-limits-panel__form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.album-create-form.is-disabled {
    opacity: .72;
}
button[disabled],
.button-link[disabled] {
    cursor: not-allowed;
    opacity: .58;
    filter: grayscale(.15);
}
@media (max-width: 760px) {
    .cabinet-mail-settings__grid {
        grid-template-columns: 1fr;
    }
    .cabinet-mail-settings__head {
        align-items: flex-start;
    }
}

/* PATCH: admin email/system events/profile moderation/search filters */
.admin-user-email-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 18px;
}
.admin-user-email-grid > div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff, #f8fbff);
}
.admin-user-email-grid strong,
.admin-user-email-grid span,
.admin-user-email-grid small {
    display: block;
}
.admin-user-email-grid strong {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.admin-user-email-grid span {
    margin-top: 6px;
    font-weight: 850;
}
.admin-user-email-grid small {
    margin-top: 4px;
    color: var(--muted);
}
.admin-inline-settings {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}
.admin-inline-settings label {
    display: grid;
    gap: 6px;
    font-weight: 800;
}
.admin-inline-settings input,
.admin-inline-settings select,
.photo-admin-status-form select {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 9px 11px;
    background: #fff;
    color: var(--text);
    font: inherit;
}
.admin-inline-settings button,
.photo-admin-status-form button {
    border: 0;
    border-radius: 12px;
    padding: 10px 14px;
    background: var(--blue);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}
.photo-admin-status-form {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    align-items: center;
}
.status--info { background: #e8f1ff; color: #145bc9; }
.status--warning { background: #fff4df; color: var(--warn); }
.status--error { background: #ffecec; color: var(--bad); }
.status--inactive { background: #eef2f7; color: #475569; }
.admin-filter-panel {
    padding-top: 16px;
    padding-bottom: 16px;
}
@media (max-width: 900px) {
    .admin-user-email-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .admin-user-email-grid { grid-template-columns: 1fr; }
    .admin-inline-settings { align-items: stretch; }
    .admin-inline-settings label,
    .admin-inline-settings button { width: 100%; }
}


/* PATCH 2026-05-26: public profile private message button */
.public-profile-message-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #315cff, #8f55ff);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(49, 92, 255, .22);
}
.public-profile-message-button::before {
  content: '✉';
  font-size: 15px;
}
.public-profile-message-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(49, 92, 255, .28);
}
@media (max-width: 860px) {
  .public-profile-message-button {
    width: 100%;
  }
}

/* Growth patch: moderation, profiles, favorites, privacy */
.admin-page-head,.admin-filter-panel,.admin-table-panel,.admin-photo-grid-panel{margin-bottom:18px}.admin-inline-filters,.admin-status-form,.admin-inline-settings{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.admin-inline-filters select,.admin-status-form select,.admin-status-form input{min-height:38px;border:1px solid rgba(96,118,170,.25);border-radius:12px;padding:8px 10px;background:#fff}.admin-report-body{max-width:360px}.admin-report-body small{display:block;color:#6b7280;margin-top:4px}.admin-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}.admin-photo-card{border:1px solid rgba(96,118,170,.16);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 12px 34px rgba(31,42,68,.08)}.admin-photo-card img{width:100%;height:180px;object-fit:cover;display:block}.admin-photo-card__body{padding:12px;display:flex;flex-direction:column;gap:6px}.admin-photo-card__actions{display:flex;gap:8px}.admin-photo-card__actions select{flex:1}.danger-text{color:#dc2626!important;font-weight:700}.status-pill{display:inline-flex;padding:5px 10px;border-radius:999px;background:#eef2ff;color:#334155;font-weight:700}.status-pill--banned,.status-pill--blocked{background:#fee2e2;color:#991b1b}.status-pill--pending{background:#fef3c7;color:#92400e}.status-pill--active{background:#dcfce7;color:#166534}.profile-security-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}.profile-security-toggle{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid rgba(96,118,170,.16);border-radius:16px;background:#fff}.profile-security-message-rule{grid-column:1/-1}.public-profile-hero__status{gap:8px}.profile-action-button{border:0;cursor:pointer}.compact-report-form{display:grid;gap:10px}.compact-report-form textarea{min-height:90px}.compact-report-form select,.compact-report-form textarea{border:1px solid rgba(96,118,170,.22);border-radius:14px;padding:10px 12px}.home-new-profiles{margin:22px 0}.home-new-profiles__grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.home-new-profile-card{display:flex;flex-direction:column;gap:7px;text-decoration:none;color:inherit;border:1px solid rgba(96,118,170,.14);border-radius:20px;background:linear-gradient(180deg,#fff,#f8fbff);padding:12px;box-shadow:0 14px 34px rgba(31,42,68,.08)}.home-new-profile-card__photo{position:relative;display:flex;align-items:center;justify-content:center;border-radius:18px;overflow:hidden;aspect-ratio:1/1;background:#eaf0ff}.home-new-profile-card__photo img{width:100%;height:100%;object-fit:cover}.home-new-profile-card__photo b{font-size:42px;color:#5b6ee1}.home-new-profile-card small{color:#64748b}.home-new-profile-card em{font-style:normal;color:#e11d48;font-weight:800}.bbs-card__params{margin-top:8px;font-size:13px;color:#475569}.ad-profile-snapshot-card{border-color:rgba(108,92,231,.25)}.ad-profile-snapshot-view{background:linear-gradient(135deg,#f9fbff,#fff)}.ad-favorite-form{align-self:flex-start}.message-safety-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.message-safety-actions button,.message-report-box button{border:0;border-radius:12px;padding:8px 12px;background:#eef2ff;color:#25356f;font-weight:700;cursor:pointer}.message-thread-warning{margin-top:14px;padding:14px;border-radius:16px;background:#fff7ed;color:#9a3412}.message-report-box{margin-top:14px}.cabinet-favorites-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.cabinet-favorite-card{display:flex;flex-direction:column;gap:5px;text-decoration:none;color:inherit;border:1px solid rgba(96,118,170,.14);border-radius:16px;background:#fff;padding:12px}.cabinet-favorite-card span{font-size:12px;text-transform:uppercase;color:#64748b}.cabinet-favorite-card small{color:#64748b}.public-profile-status.is-hidden{background:#f1f5f9;color:#64748b}.single-photo-report{margin-top:12px}.admin-table .admin-status-form button,.admin-inline-filters button,.admin-photo-card__actions button{border:0;border-radius:12px;background:#2f6bff;color:#fff;font-weight:700;padding:9px 12px;cursor:pointer}
@media (max-width:900px){.home-new-profiles__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-inline-filters,.admin-status-form{align-items:stretch}.admin-status-form input{width:100%}}

/* Search page expanded filters: keep switches readable and stop overlap */
.search-page-hero .home-search--search-page{
    grid-template-columns:repeat(6,minmax(130px,1fr))!important;
    gap:12px!important;
    align-items:stretch!important;
}
.search-page-hero .home-search--search-page .home-search__field--search{
    grid-column:span 2!important;
}
.search-page-hero .home-search--search-page .home-search__field,
.search-page-hero .home-search--search-page .home-search__toggle,
.search-page-hero .home-search--search-page .home-search__button{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    min-height:52px!important;
    box-sizing:border-box!important;
}
.search-page-hero .home-search--search-page .home-search__toggle{
    justify-content:space-between!important;
    gap:10px!important;
    padding:0 14px!important;
    overflow:visible!important;
    white-space:nowrap!important;
    font-size:15px!important;
}
.search-page-hero .home-search--search-page .home-search__toggle span:first-child{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}
.search-page-hero .home-search--search-page .home-search__button{
    padding:0 22px!important;
}
@media(max-width:1180px){
    .search-page-hero .home-search--search-page{
        grid-template-columns:repeat(3,minmax(150px,1fr))!important;
    }
    .search-page-hero .home-search--search-page .home-search__field--search{
        grid-column:1/-1!important;
    }
}
@media(max-width:720px){
    .search-page-hero .home-search--search-page{
        grid-template-columns:1fr!important;
    }
    .search-page-hero .home-search--search-page .home-search__field--search{
        grid-column:auto!important;
    }
}

/* PATCH: compact search toggles, no giant full-width rows */
.search-page-hero .home-search--search-page{
    grid-template-columns:repeat(6,minmax(122px,1fr))!important;
    gap:10px!important;
    align-items:center!important;
}
.search-page-hero .home-search--search-page .home-search__field--search{
    grid-column:span 2!important;
}
.search-page-hero .home-search--search-page .home-search__field{
    min-height:46px!important;
}
.search-page-hero .search-page-actions{
    grid-column:1/-1!important;
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    flex-wrap:wrap!important;
    margin-top:0!important;
}
.search-page-hero .search-page-actions .home-search__toggle{
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    min-height:36px!important;
    padding:0 10px!important;
    border-radius:12px!important;
    gap:8px!important;
    justify-content:flex-start!important;
    overflow:visible!important;
    white-space:nowrap!important;
    font-size:13px!important;
    line-height:1!important;
    box-shadow:none!important;
}
.search-page-hero .search-page-actions .home-search__toggle span:first-child{
    min-width:0!important;
    overflow:visible!important;
    text-overflow:clip!important;
}
.search-page-hero .search-page-actions .home-switch{
    width:34px!important;
    height:18px!important;
    flex:0 0 34px!important;
}
.search-page-hero .search-page-actions .home-switch__slider::before{
    top:2px!important;
    left:2px!important;
    width:14px!important;
    height:14px!important;
}
.search-page-hero .search-page-actions .home-switch input:checked + .home-switch__slider::before{
    transform:translateX(16px)!important;
}
.search-page-hero .search-page-actions .home-search__button{
    width:auto!important;
    min-width:116px!important;
    max-width:none!important;
    min-height:38px!important;
    padding:0 22px!important;
    border-radius:12px!important;
    font-size:15px!important;
    margin-left:auto!important;
}
@media(max-width:1180px){
    .search-page-hero .home-search--search-page{
        grid-template-columns:repeat(4,minmax(130px,1fr))!important;
    }
    .search-page-hero .home-search--search-page .home-search__field--search{
        grid-column:span 2!important;
    }
}
@media(max-width:760px){
    .search-page-hero .home-search--search-page{
        grid-template-columns:1fr!important;
    }
    .search-page-hero .home-search--search-page .home-search__field--search{
        grid-column:auto!important;
    }
    .search-page-hero .search-page-actions{
        align-items:stretch!important;
    }
    .search-page-hero .search-page-actions .home-search__toggle,
    .search-page-hero .search-page-actions .home-search__button{
        width:100%!important;
        justify-content:space-between!important;
        margin-left:0!important;
    }
}


/* PATCH: compact public profile report block */
.public-profile-report-inline {
  grid-column: 2;
  margin-top: -6px;
  padding: 10px 12px;
  border: 1px solid rgba(96, 118, 170, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .62);
  box-shadow: none;
  color: #7b879f;
  font-size: 13px;
}
.public-profile-report-inline[open] {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(96, 118, 170, .22);
}
.public-profile-report-inline summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7b879f;
  font-weight: 750;
  user-select: none;
}
.public-profile-report-inline summary::-webkit-details-marker {
  display: none;
}
.public-profile-report-inline summary::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(123, 135, 159, .42);
  color: #7b879f;
  font-size: 11px;
  line-height: 1;
}
.public-profile-report-inline .compact-report-form {
  margin-top: 10px;
  gap: 8px;
}
.public-profile-report-inline .compact-report-form select,
.public-profile-report-inline .compact-report-form textarea {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
}
.public-profile-report-inline .compact-report-form textarea {
  min-height: 58px;
}
.public-profile-report-inline .compact-report-form button {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
}
@media (max-width: 860px) {
  .public-profile-report-inline {
    grid-column: 1;
    margin-top: 0;
  }
}


/* PATCH: styled admin delete conversation button */
.admin-message-delete-form {
  margin: 0;
  display: inline-flex;
}
.admin-danger-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid rgba(220, 38, 38, .18);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff7f7, #fff0f0);
  color: #b4232b;
  font: 900 14px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(220, 38, 38, .08);
  white-space: nowrap;
}
.admin-danger-pill:hover {
  background: linear-gradient(180deg, #fff1f1, #ffe7e7);
  border-color: rgba(220, 38, 38, .28);
  text-decoration: none;
}
.admin-danger-pill:focus-visible {
  outline: 3px solid rgba(220, 38, 38, .20);
  outline-offset: 2px;
}


/* PATCH: compact admin photo controls layout */
.photo-admin-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  align-items: start;
}
.photo-admin-grid figure {
  overflow: hidden;
}
.photo-admin-grid img {
  height: 240px;
}
.photo-admin-grid figcaption {
  gap: 10px;
}
.photo-admin-grid .chips {
  gap: 6px;
}
.photo-admin-grid .chips a {
  padding: 7px 10px;
  font-size: 13px;
}
.inline-form.photo-admin-status-form,
.photo-admin-status-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  margin-top: 8px;
}
.photo-admin-status-form select {
  width: 100%;
  min-width: 0;
}
.photo-admin-status-form button {
  white-space: nowrap;
}
.photo-admin-status-form button.button-danger {
  grid-column: 1 / -1;
  width: 100%;
  justify-content: center;
  border: 1px solid #ffd1d1 !important;
  background: #fff0f0 !important;
  color: #b92b2b !important;
}

.admin-photo-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  align-items: start;
}
.admin-photo-card__actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
}
.admin-photo-card__actions select {
  width: 100%;
  min-width: 0;
}
.admin-photo-card__actions button {
  white-space: nowrap;
}
.admin-photo-card__actions button.button-danger {
  grid-column: 1 / -1;
  width: 100%;
  border: 1px solid #ffd1d1 !important;
  background: #fff0f0 !important;
  color: #b92b2b !important;
}
@media (max-width: 760px) {
  .photo-admin-grid,
  .admin-photo-grid {
    grid-template-columns: 1fr !important;
  }
  .inline-form.photo-admin-status-form,
  .photo-admin-status-form,
  .admin-photo-card__actions {
    grid-template-columns: 1fr;
  }
}


/* PATCH: equal aligned admin user photo cards */
.photo-admin-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 220px)) !important;
  gap: 18px !important;
  align-items: stretch !important;
}
.photo-admin-grid figure {
  display: flex !important;
  flex-direction: column !important;
  width: 220px !important;
  height: 100% !important;
  min-height: 0 !important;
}
.photo-admin-grid figure > a.photo-lightbox,
.photo-admin-grid figure > a:first-child {
  display: block !important;
  width: 100% !important;
  height: 250px !important;
  flex: 0 0 250px !important;
  overflow: hidden !important;
  background: #eef4ff !important;
}
.photo-admin-grid figure > a.photo-lightbox img,
.photo-admin-grid figure > a:first-child img,
.photo-admin-grid figure img {
  width: 100% !important;
  height: 250px !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}
.photo-admin-grid figcaption {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  flex: 1 1 auto !important;
  padding: 12px !important;
}
.photo-admin-grid figcaption .status {
  width: 100% !important;
  justify-content: center !important;
}
.photo-admin-grid figcaption .chips {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 6px !important;
}
.photo-admin-grid figcaption .chips a {
  min-height: 34px !important;
  padding: 7px 8px !important;
  justify-content: center !important;
  text-align: center !important;
  font-size: 12px !important;
}
.photo-admin-grid .photo-admin-status-form {
  margin-top: 0 !important;
}
.photo-admin-grid .photo-admin-status-form:last-child {
  margin-top: auto !important;
}
@media (max-width: 620px) {
  .photo-admin-grid {
    grid-template-columns: 1fr !important;
  }
  .photo-admin-grid figure {
    width: 100% !important;
  }
}


/* PATCH: wider admin user photo cards so labels and controls fit */
.photo-admin-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 320px)) !important;
  gap: 20px !important;
}
.photo-admin-grid figure {
  width: 320px !important;
}
.photo-admin-grid figure > a.photo-lightbox,
.photo-admin-grid figure > a:first-child {
  height: 310px !important;
  flex-basis: 310px !important;
}
.photo-admin-grid figure > a.photo-lightbox img,
.photo-admin-grid figure > a:first-child img,
.photo-admin-grid figure img {
  height: 310px !important;
}
.photo-admin-grid figcaption {
  padding: 14px !important;
}
.photo-admin-grid figcaption .chips {
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}
.photo-admin-grid figcaption .chips a {
  font-size: 14px !important;
  min-height: 40px !important;
  padding: 9px 12px !important;
}
.inline-form.photo-admin-status-form,
.photo-admin-status-form {
  grid-template-columns: minmax(170px, 1fr) minmax(118px, auto) !important;
  gap: 10px !important;
}
.photo-admin-status-form select {
  min-height: 42px !important;
  padding: 9px 12px !important;
  font-size: 15px !important;
}
.photo-admin-status-form button {
  min-height: 42px !important;
  padding: 10px 14px !important;
  font-size: 15px !important;
}
.photo-admin-status-form button.button-danger {
  min-height: 44px !important;
  font-size: 15px !important;
}

.admin-photo-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
}
.admin-photo-card img {
  height: 260px !important;
}
.admin-photo-card__actions {
  grid-template-columns: minmax(170px, 1fr) minmax(118px, auto) !important;
  gap: 10px !important;
}
.admin-photo-card__actions select {
  min-height: 42px !important;
  padding: 9px 12px !important;
  font-size: 15px !important;
}
.admin-photo-card__actions button {
  min-height: 42px !important;
  padding: 10px 14px !important;
  font-size: 15px !important;
}
.admin-photo-card__actions button.button-danger {
  min-height: 44px !important;
  font-size: 15px !important;
}
@media (max-width: 760px) {
  .photo-admin-grid,
  .admin-photo-grid {
    grid-template-columns: 1fr !important;
  }
  .photo-admin-grid figure {
    width: 100% !important;
  }
  .inline-form.photo-admin-status-form,
  .photo-admin-status-form,
  .admin-photo-card__actions {
    grid-template-columns: 1fr !important;
  }
}


/* PATCH: keep admin photo action buttons visible on hover */
.photo-admin-status-form button:not(.button-danger),
.admin-photo-card__actions button:not(.button-danger) {
  background: linear-gradient(135deg, #2f7dff, #2563ff) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 10px 22px rgba(36, 124, 255, .18) !important;
}
.photo-admin-status-form button:not(.button-danger):hover,
.photo-admin-status-form button:not(.button-danger):focus-visible,
.admin-photo-card__actions button:not(.button-danger):hover,
.admin-photo-card__actions button:not(.button-danger):focus-visible {
  background: linear-gradient(135deg, #246df2, #1d5ee8) !important;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 12px 26px rgba(36, 124, 255, .24) !important;
}
.photo-admin-status-form button.button-danger:hover,
.photo-admin-status-form button.button-danger:focus-visible,
.admin-photo-card__actions button.button-danger:hover,
.admin-photo-card__actions button.button-danger:focus-visible {
  background: #ffe6e6 !important;
  color: #b92b2b !important;
  border-color: #ffc4c4 !important;
  text-decoration: none !important;
}

/* PATCH: manual VIP plan visuals */
.status--vip,
.vip-inline-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  vertical-align: middle;
  margin-left: 7px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(248, 200, 92, .72);
  background: linear-gradient(135deg, #fff4c2, #f7bc42 48%, #d58a16 100%);
  color: #5b3500 !important;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(226, 159, 31, .22), inset 0 1px 0 rgba(255,255,255,.75);
}
.status--vip::before,
.vip-inline-badge::before {
  content: '♛';
  font-size: 12px;
  line-height: 1;
}
.vip-inline-badge--title {
  transform: translateY(-3px);
}
.vip-photo-badge {
  position: absolute;
  z-index: 5;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 221, 127, .9);
  background: linear-gradient(135deg, rgba(255, 246, 198, .96), rgba(245, 176, 49, .96) 48%, rgba(180, 101, 11, .96));
  color: #4a2b00;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0,0,0,.18), 0 0 0 3px rgba(255, 214, 102, .16), inset 0 1px 0 rgba(255,255,255,.7);
  pointer-events: none;
}
.vip-photo-badge--main {
  top: 14px;
  right: 14px;
  min-height: 32px;
  padding: 8px 13px;
  font-size: 12px;
}
.vip-photo-badge--thumb {
  top: 5px;
  right: 5px;
  min-height: 17px;
  padding: 4px 5px;
  font-size: 8px;
}
.bbs-card__photo,
.top-photo-card__image,
.home-new-profile-card__photo,
.public-profile-photo,
.single-photo-frame,
.ad-photo-main,
.ad-photo-thumb {
  position: relative;
}
.bbs-card--vip,
.home-new-profile-card--vip,
.top-photo-card--vip {
  position: relative;
  border-color: rgba(238, 180, 50, .72) !important;
  box-shadow: 0 18px 42px rgba(214, 145, 22, .16), 0 0 0 1px rgba(250, 210, 95, .25) !important;
}
.bbs-card--vip::before,
.home-new-profile-card--vip::before,
.top-photo-card--vip::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 220, 105, .28), rgba(255,255,255,0), rgba(240, 161, 29, .20));
  pointer-events: none;
}
.bbs-card--vip > *,
.home-new-profile-card--vip > *,
.top-photo-card--vip > * {
  position: relative;
  z-index: 1;
}
.bbs-card--vip .bbs-card__body {
  background: linear-gradient(180deg, rgba(255, 250, 228, .92), rgba(255,255,255,.98));
}
.ad-view--vip,
.public-profile-hero--vip,
.single-photo-hero--vip {
  border-color: rgba(238, 180, 50, .74) !important;
  box-shadow: 0 20px 50px rgba(214, 145, 22, .16), 0 0 0 1px rgba(250, 210, 95, .24) !important;
  background-image: linear-gradient(135deg, rgba(255, 248, 218, .92), rgba(255,255,255,.98));
}
.home-vip-profiles {
  border-color: rgba(238, 180, 50, .55) !important;
  background: linear-gradient(135deg, rgba(255, 250, 230, .82), rgba(255,255,255,.96));
}
.home-vip-profiles .panel__head h2 {
  color: #7a4600;
}
.ad-author-strip .vip-inline-badge,
.top-photo-author-line .vip-inline-badge,
.single-photo-author-card .vip-inline-badge {
  margin-left: 6px;
}
.admin-vip-box {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(238, 180, 50, .45);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 250, 230, .88), rgba(255,255,255,.98));
  box-shadow: 0 14px 32px rgba(214, 145, 22, .10);
}
.admin-vip-box__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.admin-vip-box__head strong {
  font-size: 16px;
}
.admin-vip-box p {
  margin: 0;
  color: #6b7280;
}
.admin-vip-form {
  align-items: end;
}
.admin-vip-form__note {
  min-width: min(100%, 320px);
}
@media (max-width: 760px) {
  .vip-photo-badge {
    top: 8px;
    right: 8px;
    min-height: 23px;
    padding: 5px 8px;
    font-size: 10px;
  }
  .vip-inline-badge {
    margin-left: 5px;
  }
  .admin-vip-form {
    grid-template-columns: 1fr !important;
  }
}

/* PATCH: BTC payment module */
.status--new{background:#eef5ff;color:#145bc9}
.button-link--danger{background:#ffecec!important;color:#a92626!important;border-color:#ffcaca!important}
.button-link:disabled,
button[disabled]{opacity:.55;cursor:not-allowed;filter:grayscale(.2)}
.cabinet-quick-card--vip{
  border-color:rgba(248,200,92,.75);
  background:linear-gradient(135deg,#fffdf4,#fff7d7 45%,#fff);
  box-shadow:0 18px 42px rgba(226,159,31,.13);
}
.cabinet-quick-card--vip .cabinet-quick-card__icon{
  background:linear-gradient(135deg,#fff4c2,#f7bc42 56%,#d58a16);
  color:#5b3500;
}
.paid-services-hero{
  background:linear-gradient(135deg,#fff 0%,#f8fbff 55%,#fff7dc 100%);
}
.paid-services-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}
.paid-services-alert{border-color:#ffdd99;background:#fffaf0}
.paid-services-alert h2{margin:0 0 8px;color:#8a5200}
.paid-services-panel .panel__head{align-items:flex-start}
.paid-services-rate{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;background:#eef5ff;color:#145bc9;font-weight:900;white-space:nowrap}
.paid-service-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.paid-service-card{position:relative;padding:20px;border:1px solid rgba(248,200,92,.72);border-radius:22px;background:linear-gradient(180deg,#fff,#fffaf0);box-shadow:0 18px 42px rgba(226,159,31,.11);overflow:hidden}
.paid-service-card__badge{position:absolute;top:14px;right:14px;display:inline-grid;place-items:center;padding:6px 10px;border-radius:999px;background:linear-gradient(135deg,#fff4c2,#f7bc42 48%,#d58a16);color:#5b3500;font-size:12px;font-weight:950;letter-spacing:.08em;border:1px solid rgba(248,200,92,.72);box-shadow:0 8px 20px rgba(226,159,31,.2)}
.paid-service-card h3{margin:0 70px 8px 0;font-size:22px}
.paid-service-card p{color:#667085;margin:0 0 18px}
.paid-service-card__price{display:flex;align-items:flex-end;gap:10px;margin:18px 0}
.paid-service-card__price strong{font-size:34px;line-height:1;color:#172033}
.paid-service-card__price span{color:#6b7280;font-weight:800}
.payment-order-list{display:grid;gap:16px}
.payment-order-card{border:1px solid #dce6fa;border-radius:22px;background:#fff;padding:18px;box-shadow:0 16px 36px rgba(24,71,150,.08)}
.payment-order-card--active{border-color:#bdd4ff;background:linear-gradient(180deg,#fff,#f8fbff)}
.payment-order-card__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.payment-order-card__head h3{margin:0;font-size:22px}
.payment-wallet-box{display:grid;gap:7px;padding:14px;border-radius:16px;background:#101828;color:#fff;overflow:auto;margin-bottom:14px}
.payment-wallet-box span{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#b8c4d8;font-weight:900}
.payment-wallet-box strong{font:800 16px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;word-break:break-all}
.payment-order-details{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}
.payment-order-details div{padding:12px;border:1px solid #e4ebf8;border-radius:14px;background:#fff}
.payment-order-details span{display:block;color:#6b7280;font-size:13px;font-weight:800;margin-bottom:4px}
.payment-order-details strong{display:block;color:#172033;word-break:break-word}
.payment-order-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}
.payment-order-actions small,.payment-order-note{color:#667085}
.payment-wallet-code{display:inline-block;max-width:280px;white-space:normal;word-break:break-all;background:#f1f5fb;border-radius:10px;padding:6px 8px;color:#172033}
.admin-payments-title .chips{margin-top:14px}
.admin-payments-table td,.admin-wallets-table td{vertical-align:top}
.admin-payment-action{display:grid;gap:8px;min-width:180px;margin-bottom:8px}
.admin-payment-action input,
.admin-payment-rate-form input,
.admin-wallet-form input,
.admin-wallet-form textarea,
.admin-wallet-inline-form input,
.admin-wallet-inline-form select{width:100%;border:1px solid #d4e0f3;border-radius:12px;padding:9px 10px;background:#fff;color:#172033;font:inherit}
.admin-payment-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.admin-payment-settings-card{padding:20px;border:1px solid #dce6fa;border-radius:20px;background:linear-gradient(180deg,#fff,#f9fbff)}
.admin-payment-settings-card h2{margin:0 0 8px}
.admin-payment-settings-card p{color:#667085;margin:0 0 16px}
.payment-rate-state{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}
.payment-rate-state div{padding:12px;border-radius:14px;background:#fff;border:1px solid #e4ebf8}
.payment-rate-state span{display:block;color:#6b7280;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.payment-rate-state strong{display:block;margin-top:4px;color:#172033}
.admin-payment-rate-form,.admin-wallet-form{display:grid;gap:12px}
.admin-wallet-inline-form{display:grid;grid-template-columns:120px minmax(120px,1fr) minmax(120px,1fr) auto;gap:8px;align-items:center;min-width:520px}
@media(max-width:900px){
  .payment-order-details{grid-template-columns:1fr 1fr}
  .admin-payment-settings-grid{grid-template-columns:1fr}
  .admin-wallet-inline-form{grid-template-columns:1fr;min-width:0}
}
@media(max-width:640px){
  .payment-order-details{grid-template-columns:1fr}
  .paid-services-panel .panel__head{display:grid}
}
.admin-stats{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}

.admin-inline-action{margin-top:14px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.payment-order-actions--inline form{margin:0}
.admin-payments-table td a[href*="mempool.space"]{font-weight:800;text-decoration:none;color:#7a4b00}

/* PATCH: BTC wallet/amount copy buttons */
.payment-copy-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.payment-copy-button{appearance:none;border:1px solid #bfd2f8;background:#f5f8ff;color:#1757c8;border-radius:999px;padding:7px 12px;font:900 12px/1 var(--font-main, system-ui);cursor:pointer;box-shadow:0 8px 18px rgba(28,86,190,.08);transition:transform .15s ease,box-shadow .15s ease,background .15s ease,color .15s ease,border-color .15s ease}
.payment-copy-button:hover:not(:disabled){transform:translateY(-1px);background:#eaf1ff;box-shadow:0 10px 24px rgba(28,86,190,.14)}
.payment-copy-button:disabled{cursor:default;opacity:.92}
.payment-copy-button.is-copied{border-color:#8fe0ad;background:#ecfff3;color:#08743b}
.payment-copy-button.is-copy-error{border-color:#ffc0c0;background:#fff1f1;color:#b42318}
.payment-copy-button--dark{border-color:rgba(255,255,255,.24);background:rgba(255,255,255,.12);color:#fff;box-shadow:none}
.payment-copy-button--dark:hover:not(:disabled){background:rgba(255,255,255,.2);box-shadow:none}
.payment-copy-button--dark.is-copied{border-color:rgba(146,230,178,.75);background:rgba(21,128,61,.28);color:#eafff0}
.payment-copy-button--dark.is-copy-error{border-color:rgba(255,192,192,.75);background:rgba(180,35,24,.24);color:#fff0f0}
.payment-order-detail--copy{display:grid;gap:7px;align-content:start}
.payment-order-detail--copy .payment-copy-button{justify-self:start;margin-top:2px}
@media (max-width:560px){.payment-copy-row{display:grid}.payment-copy-button{width:100%;justify-content:center}.payment-order-detail--copy .payment-copy-button{justify-self:stretch}}

/* PATCH: detailed paid service benefits */
.paid-service-benefits{display:grid;gap:8px;margin:10px 0 18px;padding:0;list-style:none;color:#43506a}
.paid-service-benefits li{position:relative;padding-left:24px;font-size:14px;line-height:1.42;font-weight:650}
.paid-service-benefits li::before{content:'✓';position:absolute;left:0;top:0;display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;background:linear-gradient(135deg,#fff4c2,#f7bc42 55%,#d58a16);color:#5b3500;font-size:11px;font-weight:950;box-shadow:0 5px 12px rgba(226,159,31,.18)}

/* PATCH: first visit 18+ age confirmation */
body.has-age-gate{overflow:hidden}
.age-gate[hidden]{display:none!important}
.age-gate{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:22px}
.age-gate__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.64);backdrop-filter:blur(8px)}
.age-gate__dialog{position:relative;z-index:1;width:min(100%,460px);padding:30px;border-radius:28px;border:1px solid rgba(191,210,248,.92);background:linear-gradient(135deg,#fff 0%,#f8fbff 54%,#fff7dc 100%);box-shadow:0 34px 90px rgba(15,23,42,.28);text-align:center;color:#172033}
.age-gate__badge{display:inline-grid;place-items:center;width:72px;height:72px;margin:0 auto 16px;border-radius:24px;background:linear-gradient(135deg,#fff4c2,#f7bc42 52%,#d58a16);color:#5b3500;font-size:24px;font-weight:950;letter-spacing:-.04em;border:1px solid rgba(248,200,92,.85);box-shadow:0 16px 38px rgba(226,159,31,.24),inset 0 1px 0 rgba(255,255,255,.78)}
.age-gate__dialog h2{margin:0 0 10px;font-size:32px;line-height:1.1;color:#172033;letter-spacing:-.04em}
.age-gate__dialog p{margin:0 auto 22px;max-width:360px;color:#667085;font-size:16px;line-height:1.55}
.age-gate__actions{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}
.age-gate__actions button{min-height:44px}
.age-gate__accept{box-shadow:0 14px 30px rgba(37,99,235,.20)}
.age-gate__decline{border:1px solid #dce6fa!important;background:#fff!important;color:#44546f!important}
.age-gate__decline:hover{background:#f5f8ff!important;color:#172033!important}
.age-gate--denied .age-gate__badge{background:linear-gradient(135deg,#ffe7e7,#ff8a8a 54%,#c93434);color:#fff;border-color:#ffb8b8}
.age-gate--denied .age-gate__dialog{background:linear-gradient(135deg,#fff,#fff7f7)}
@media(max-width:560px){.age-gate{padding:14px}.age-gate__dialog{padding:24px 18px;border-radius:22px}.age-gate__dialog h2{font-size:26px}.age-gate__actions{display:grid}.age-gate__actions button{width:100%}}

/* PATCH: footer BBs Scripts credit and purchase request modal */
.footer--script-credit{align-items:center}
.footer__script-credit{display:inline-flex;align-items:center;gap:6px;font-weight:750;color:#7183a3}
.footer__script-link{border:0;background:transparent;padding:0;color:#145bc9;font:inherit;font-weight:900;cursor:pointer;text-decoration:none}
.footer__script-link:hover{text-decoration:underline}
body.has-script-purchase-modal{overflow:hidden}
.script-purchase-modal[hidden]{display:none!important}
.script-purchase-modal{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:22px}
.script-purchase-modal__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(8px)}
.script-purchase-modal__dialog{position:relative;z-index:1;width:min(100%,520px);padding:30px;border-radius:28px;border:1px solid rgba(191,210,248,.94);background:linear-gradient(135deg,#fff 0%,#f7fbff 56%,#fff8dc 100%);box-shadow:0 34px 90px rgba(15,23,42,.28);color:#172033}
.script-purchase-modal__close{position:absolute;right:16px;top:14px;width:38px;height:38px;border:1px solid #dce6fa;border-radius:14px;background:#fff;color:#42526c;font-size:24px;line-height:1;cursor:pointer}
.script-purchase-modal__close:hover{background:#f5f8ff;color:#172033}
.script-purchase-modal__icon{display:inline-grid;place-items:center;width:64px;height:64px;margin-bottom:14px;border-radius:22px;background:linear-gradient(135deg,#e9f1ff,#3a72ff 54%,#6d5df6);color:#fff;font-size:17px;font-weight:950;letter-spacing:-.04em;box-shadow:0 18px 42px rgba(37,99,235,.24),inset 0 1px 0 rgba(255,255,255,.38)}
.script-purchase-modal__dialog h2{margin:4px 0 8px;font-size:34px;line-height:1.05;letter-spacing:-.04em;color:#172033}
.script-purchase-modal__dialog p{margin:0 0 18px;color:#667085;line-height:1.55}
.script-purchase-form{display:grid;gap:13px}
.script-purchase-form label{display:grid;gap:7px;font-weight:850;color:#334155}
.script-purchase-form input,.script-purchase-form textarea{width:100%;border:1px solid #cfe0fb;border-radius:14px;background:#fff;padding:12px 14px;color:#172033;font:inherit;outline:none}
.script-purchase-form textarea{min-height:110px;resize:vertical}
.script-purchase-form input:focus,.script-purchase-form textarea:focus{border-color:#3a72ff;box-shadow:0 0 0 4px rgba(58,114,255,.12)}
.script-purchase-form .button-primary{justify-content:center;min-height:46px;border-radius:14px;border:0;background:linear-gradient(135deg,#4677ff,#245cf0);color:#fff;font-weight:900;cursor:pointer;box-shadow:0 16px 34px rgba(37,99,235,.22)}
.script-request-status-form{margin-top:8px}
.admin-alert-panel{border-color:#f6c453;background:#fffaf0;color:#4a3410}
@media(max-width:560px){.script-purchase-modal{padding:14px}.script-purchase-modal__dialog{padding:24px 18px;border-radius:22px}.script-purchase-modal__dialog h2{font-size:28px}.footer--script-credit{display:grid;gap:6px}}

/* PATCH: BTC wallet bulk add/delete controls */
.admin-payment-settings-card--wide{
    grid-column:1/-1;
}
.admin-wallet-bulk-form textarea{
    min-height:150px;
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
.admin-wallet-delete-form{
    display:flex;
    align-items:center;
}
.admin-wallet-delete-form .button-link--danger{
    border:0;
    cursor:pointer;
}

.admin-demo-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:6px;
  padding:3px 8px;
  border-radius:999px;
  background:linear-gradient(135deg,#ede9fe,#dbeafe);
  color:#4338ca;
  font-size:11px;
  line-height:1;
  font-weight:900;
  letter-spacing:.05em;
  vertical-align:middle;
  border:1px solid rgba(67,56,202,.18);
}
.admin-demo-badge--title{
  font-size:13px;
  padding:5px 10px;
}
.chips a.is-active{
  background:#1f4fe0;
  color:#fff;
}


/* PATCH: public profile hero compact facts */
.public-profile-hero {
  align-items: stretch;
}
.public-profile-hero__main {
  flex: 1 1 auto;
  min-width: 0;
}
.public-profile-hero__main h1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.public-profile-hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
  max-width: 820px;
}
.public-profile-hero-facts > div,
.public-profile-hero-facts__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(96,118,170,.16);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 12px 26px rgba(31,42,68,.06);
}
.public-profile-hero-facts span,
.public-profile-facts--details span {
  display: block;
  margin-bottom: 5px;
  color: #6d7894;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .055em;
}
.public-profile-hero-facts strong {
  display: block;
  color: #0e1a33;
  font-size: 15px;
  line-height: 1.25;
}
.public-profile-hero-facts__label,
.public-profile-hero-facts__value {
  width: 100%;
}
.public-profile-hero__status {
  min-width: 260px;
  justify-content: flex-start;
}
.public-profile-status-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.public-profile-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.public-profile-like-count {
  color: #25356f;
  font-weight: 800;
}
.public-profile-facts--details {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.public-profile-hero--vip .public-profile-hero-facts > div {
  border-color: rgba(238,180,50,.28);
  background: rgba(255, 252, 240, .78);
}
@media (max-width: 980px) {
  .public-profile-hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .public-profile-hero__status {
    min-width: 220px;
  }
}
@media (max-width: 860px) {
  .public-profile-hero__status,
  .public-profile-status-box,
  .public-profile-hero-actions {
    align-items: flex-start;
  }
  .public-profile-hero__status {
    min-width: 0;
  }
}
@media (max-width: 560px) {
  .public-profile-hero-facts,
  .public-profile-facts--details {
    grid-template-columns: 1fr;
  }
}


.thumb-online-badge{position:absolute;top:8px;right:8px;z-index:4;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:999px;background:rgba(255,255,255,.96);box-shadow:0 10px 24px rgba(15,23,42,.20)}
.thumb-online-badge__dot{display:block;width:10px;height:10px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 0 rgba(34,197,94,.46);animation:bbs-online-pulse 1.65s infinite}
.thumb-online-badge__tip{position:absolute;top:calc(100% + 8px);right:0;display:block;padding:6px 10px;border-radius:10px;background:rgba(15,23,42,.96);color:#fff;font-size:12px;font-weight:800;line-height:1;white-space:nowrap;box-shadow:0 16px 32px rgba(15,23,42,.24);opacity:0;transform:translateY(-4px);pointer-events:none;transition:opacity .16s ease,transform .16s ease}
.thumb-online-badge__tip::before{content:'';position:absolute;right:11px;bottom:100%;border:5px solid transparent;border-bottom-color:rgba(15,23,42,.96)}
.thumb-online-badge:hover .thumb-online-badge__tip,.thumb-online-badge:focus-within .thumb-online-badge__tip{opacity:1;transform:translateY(0)}
@keyframes bbs-online-pulse{0%{box-shadow:0 0 0 0 rgba(34,197,94,.46)}70%{box-shadow:0 0 0 8px rgba(34,197,94,0)}100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}}

.public-profile-photo__link{position:relative;display:block;color:inherit;text-decoration:none}
.public-profile-photo__link:hover{text-decoration:none}
.ad-photo-thumb .thumb-online-badge{top:5px;right:5px;width:16px;height:16px}
.ad-photo-thumb .thumb-online-badge__dot{width:9px;height:9px}
.top-photo-card__image .thumb-online-badge{top:14px;right:14px;width:22px;height:22px}
.top-photo-card__image .thumb-online-badge__dot{width:12px;height:12px}
.public-profile-photo .thumb-online-badge{top:10px;right:10px;width:20px;height:20px}
.public-profile-photo .thumb-online-badge__dot{width:11px;height:11px}


.photo-comment__author{color:#0b3c91;font-weight:900;text-decoration:none}
.photo-comment__author:hover{text-decoration:underline}


.bbs-card{position:relative}
.bbs-card__body{position:relative;min-width:0;padding-right:260px}
.bbs-card__profile-stats{position:absolute;top:0;right:0;display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end;max-width:250px;z-index:2}
.bbs-card__profile-stat{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:999px;background:rgba(241,245,255,.96);color:#52617e;font-size:12px;font-weight:900;line-height:1;white-space:nowrap;box-shadow:0 8px 20px rgba(31,42,68,.07)}
.bbs-card__profile-stat b{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:999px;color:#fff;font-size:11px;line-height:1;box-shadow:0 8px 16px rgba(31,42,68,.12)}
.bbs-card__profile-stat--likes b{background:linear-gradient(135deg,#ff3b76,#ff7da2)}
.bbs-card__profile-stat--followers b{background:linear-gradient(135deg,#2f6bff,#7b61ff)}
.script-purchase-hp{position:absolute!important;left:-9999px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
@media(max-width:980px){.bbs-card__body{padding-right:0}.bbs-card__profile-stats{position:static;justify-content:flex-start;margin-bottom:8px;max-width:none}}


/* Auto moderation + metro location patch */
.home-search__field--metro.is-hidden,
[data-metro-wrap].is-hidden,
.ad-new-field.js-metro-wrap.is-hidden{display:none!important}
.admin-moderation-reason{display:inline-block;margin-top:6px;color:#b45309;font-weight:700}


/* PATCH: city chips ad counts */
.city-panel__chips a{gap:6px}
.city-panel__name{display:inline-block}
.city-panel__count{display:inline-block;color:#8a96aa;font-size:12px;font-weight:800;line-height:1;margin-left:1px}
.city-panel__chips a:hover .city-panel__count{color:#6f7d94}

/* PATCH: account balance for paid services */
.paid-balance-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,420px);gap:18px;align-items:stretch;background:linear-gradient(135deg,#fff 0%,#f8fbff 56%,#eef5ff 100%)}
.paid-balance-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px;border:1px solid #cfe0ff;border-radius:24px;background:linear-gradient(135deg,#101828,#1f3f7c);color:#fff;box-shadow:0 20px 46px rgba(24,71,150,.15)}
.paid-balance-card span{display:block;color:#bdd4ff;font-size:13px;font-weight:950;text-transform:uppercase;letter-spacing:.08em;margin-bottom:6px}
.paid-balance-card strong{display:block;font-size:42px;line-height:1;font-weight:950}
.paid-balance-card small{display:block;margin-top:8px;color:#dbe7ff;font-weight:700}
.paid-balance-card em{font-style:normal;white-space:nowrap;align-self:flex-start;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);font-weight:900;color:#fff}
.paid-balance-topup-form{display:grid;gap:12px;padding:20px;border:1px solid #dce6fa;border-radius:22px;background:#fff;box-shadow:0 16px 36px rgba(24,71,150,.08)}
.paid-balance-topup-form label,.paid-service-select-label{display:grid;gap:7px;font-weight:900;color:#344054}
.paid-balance-topup-form input,.paid-service-select-label select{width:100%;border:1px solid #d4e0f3;border-radius:14px;padding:12px 14px;background:#fff;color:#172033;font:inherit;font-weight:800}
.paid-balance-topup-form small,.paid-service-form-stack small{color:#667085;font-weight:700;line-height:1.35}
.paid-service-card--bump{border-color:#cfe0ff;background:linear-gradient(180deg,#fff,#f6f9ff);box-shadow:0 18px 42px rgba(24,71,150,.1)}
.paid-service-card--bump .paid-service-card__badge{background:linear-gradient(135deg,#eaf1ff,#7fb0ff 55%,#235cc8);color:#fff;border-color:#bfd2f8}
.paid-service-form-stack{display:grid;gap:10px;margin-top:12px}
.paid-service-form-stack form{margin:0}
.paid-service-form-stack .button-link{width:100%;justify-content:center}
.balance-tx-plus{color:#08743b}
.balance-tx-minus{color:#b42318}
@media(max-width:860px){.paid-balance-panel{grid-template-columns:1fr}.paid-balance-card{align-items:flex-start;flex-direction:column}.paid-balance-card strong{font-size:34px}}

/* PATCH: admin manual wallet balance adjustment */
.admin-balance-box{
  display:grid;
  gap:14px;
  margin-top:14px;
  padding:16px;
  border:1px solid #cfe0ff;
  border-radius:18px;
  background:linear-gradient(135deg,#f8fbff,#fff);
  box-shadow:0 14px 32px rgba(24,71,150,.08);
}
.admin-balance-box__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.admin-balance-box__head h3{margin:0 0 4px;color:#172033}
.admin-balance-box__head p{margin:0;color:#667085;font-weight:700}
.admin-balance-box__head strong{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 14px;
  border-radius:999px;
  background:#101828;
  color:#fff;
  font-size:20px;
  font-weight:950;
  box-shadow:0 10px 24px rgba(16,24,40,.12);
}
.admin-balance-form{align-items:end}
.admin-balance-form__note{min-width:min(100%,320px)}
.admin-balance-history{margin-top:4px}
@media(max-width:760px){.admin-balance-form{grid-template-columns:1fr!important}.admin-balance-box__head strong{font-size:18px}}

/* Paid service: pinned ads + VIP profile viewers */
.bbs-card--pinned {
    border-color: rgba(255, 186, 73, .55);
    box-shadow: 0 18px 42px rgba(255, 186, 73, .18), var(--shadow-soft);
}

.pinned-inline-badge {
    background: linear-gradient(135deg, #ffbf47, #ff7a45);
    color: #2b1600;
}

.profile-viewers-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.profile-viewer-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(37, 99, 235, .14);
    border-radius: 18px;
    background: rgba(255, 255, 255, .78);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 25px rgba(37, 99, 235, .07);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.profile-viewer-card:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, .32);
    box-shadow: 0 16px 34px rgba(37, 99, 235, .12);
}

.profile-viewer-card__avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, .14), rgba(244, 63, 94, .14));
    color: var(--primary);
    font-weight: 900;
}

.profile-viewer-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-viewer-card__body {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.profile-viewer-card__body strong {
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-viewer-card__body small {
    color: var(--muted);
}

.public-profile-viewers {
    grid-column: 1 / -1;
}

/* Admin ads actions and online status columns */
.admin-online-badge{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
    line-height:1;
    white-space:nowrap;
}
.admin-online-badge::before{
    content:"";
    width:8px;
    height:8px;
    border-radius:50%;
    flex:0 0 auto;
    background:currentColor;
    box-shadow:0 0 0 3px color-mix(in srgb,currentColor 18%,transparent);
}
.admin-online-badge.is-online{background:#e8f8ef;color:#0f9f5f}
.admin-online-badge.is-offline{background:#eef2f7;color:#7b879d}
.admin-online-badge__time{display:block;margin-top:5px;color:#7b879d;font-size:11px;white-space:nowrap}
.admin-report-online{min-width:118px;color:#6b7280}
.admin-report-online small{display:block;margin:4px 0 3px;color:#7b879d;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}
.admin-ad-actions{min-width:180px;align-items:stretch}
.admin-ad-action-card{display:grid;gap:9px;width:100%;max-width:180px;padding:10px;border:1px solid rgba(96,118,170,.18);border-radius:18px;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 10px 26px rgba(31,42,68,.07)}
.admin-ad-status-form{display:grid;gap:8px}
.admin-ad-status-form label{display:grid;gap:5px;margin:0;color:#6b7280;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.admin-ad-status-form select{width:100%;min-height:38px;border:1px solid rgba(96,118,170,.24);border-radius:13px;padding:7px 10px;background:#fff;color:#172033;font:700 14px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
.admin-ad-status-form button,.admin-ad-delete-form button{width:100%;min-height:38px;border:0;border-radius:13px;font-weight:900;cursor:pointer}
.admin-ad-status-form button{background:linear-gradient(135deg,#2f7bff,#1e63f0);color:#fff;box-shadow:0 8px 18px rgba(36,124,255,.20)}
.admin-ad-delete-form button{background:#fff0f0;color:#b92b2b;border:1px solid #ffd1d1}
.admin-ad-status-form button:hover,.admin-ad-delete-form button:hover{filter:brightness(.98);transform:translateY(-1px)}
@media(max-width:900px){.admin-ad-action-card{max-width:none}.admin-ad-actions{min-width:150px}}


/* PATCH 2026-05-27: admin users table action column must stay inside the panel */
.admin-users-table-wrap{
    position:relative;
    overflow-x:auto;
    overflow-y:visible;
    max-width:100%;
    -webkit-overflow-scrolling:touch;
}
.admin-users-table{
    min-width:1120px;
    table-layout:fixed;
}
.admin-users-table th,
.admin-users-table td{
    padding:10px 9px;
}
.admin-users-table th:nth-child(1),
.admin-users-table td:nth-child(1){width:62px;}
.admin-users-table th:nth-child(2),
.admin-users-table td:nth-child(2){width:54px;}
.admin-users-table th:nth-child(3),
.admin-users-table td:nth-child(3){width:205px;}
.admin-users-table th:nth-child(4),
.admin-users-table td:nth-child(4){width:66px;}
.admin-users-table th:nth-child(5),
.admin-users-table td:nth-child(5){width:94px;}
.admin-users-table th:nth-child(6),
.admin-users-table td:nth-child(6){width:124px;}
.admin-users-table th:nth-child(7),
.admin-users-table td:nth-child(7){width:86px;}
.admin-users-table th:nth-child(8),
.admin-users-table td:nth-child(8){width:140px;}
.admin-users-table th:nth-child(9),
.admin-users-table td:nth-child(9){width:92px;}
.admin-users-table th:nth-child(10),
.admin-users-table td:nth-child(10){width:96px;}
.admin-users-table th:nth-child(11),
.admin-users-table td:nth-child(11){width:104px;}
.admin-users-table th:nth-child(12),
.admin-users-table td:nth-child(12){width:124px;}
.admin-users-table th:nth-child(12),
.admin-users-table td:nth-child(12){
    position:sticky;
    right:0;
    z-index:2;
    background:#fff;
    box-shadow:-14px 0 22px rgba(21,44,94,.06);
}
.admin-users-table th:nth-child(12){
    z-index:3;
    background:#fbfdff;
}
.admin-users-table td:nth-child(3) small,
.admin-users-table td:nth-child(8) small,
.admin-users-table td:nth-child(7) small{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.admin-users-table .admin-user-actions{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:7px;
    min-width:0;
}
.admin-users-table .admin-user-actions .inline-form{
    display:block;
    width:100%;
}
.admin-users-table .admin-user-action{
    width:100%;
    min-height:34px;
    justify-content:center;
    padding:7px 9px;
    border-radius:13px;
    font-size:13px;
    line-height:1.1;
    white-space:nowrap;
}
.admin-users-table .admin-user-action--open{
    background:#edf4ff;
    color:#145bc9;
    border:1px solid #dbe9ff;
}
.admin-users-table .admin-user-action--activate{
    background:#fff5dc!important;
    color:#9a5b00!important;
    border:1px solid #ffe1a3!important;
}
.admin-users-table .admin-user-action--delete{
    background:#fff0f0!important;
    color:#b42318!important;
    border:1px solid #ffcaca!important;
}
@media (max-width: 900px){
    .admin-users-table{min-width:1080px;}
    .admin-users-table th:nth-child(12),
    .admin-users-table td:nth-child(12){width:118px;}
}

/* PATCH: admin client-side table sorting */
.admin-client-sort-header {
  cursor: pointer;
  user-select: none;
  position: relative;
  white-space: nowrap;
}

.admin-client-sort-header::after {
  content: ' ↕';
  color: #8a98b8;
  font-weight: 800;
  font-size: .8em;
}

.admin-client-sort-header.is-sorted-asc::after {
  content: ' ↑';
  color: #2563eb;
}

.admin-client-sort-header.is-sorted-desc::after {
  content: ' ↓';
  color: #2563eb;
}

.admin-client-sort-header:focus-visible {
  outline: 2px solid rgba(37, 99, 235, .35);
  outline-offset: 3px;
  border-radius: 8px;
}

/* PATCH 2026-05-27: widen admin workspace and give dense admin tables enough room */
.body--admin .page{
    width:100%;
    max-width:1560px;
    padding-left:18px;
    padding-right:18px;
    overflow-x:visible;
}
.body--admin .flash,
.body--admin .footer{
    max-width:1560px;
}
.body--admin .panel{
    width:100%;
}
.body--admin .table-wrap{
    max-width:100%;
    overflow-x:auto;
    overflow-y:visible;
    -webkit-overflow-scrolling:touch;
}
.body--admin table th,
.body--admin table td{
    overflow-wrap:normal;
}
.body--admin .admin-users-table{
    min-width:1320px;
}
.body--admin .admin-users-table th:nth-child(3),
.body--admin .admin-users-table td:nth-child(3){width:220px;}
.body--admin .admin-users-table th:nth-child(6),
.body--admin .admin-users-table td:nth-child(6){width:130px;}
.body--admin .admin-users-table th:nth-child(8),
.body--admin .admin-users-table td:nth-child(8){width:150px;}
.body--admin .admin-users-table th:nth-child(9),
.body--admin .admin-users-table td:nth-child(9){width:112px;}
.body--admin .admin-users-table th:nth-child(10),
.body--admin .admin-users-table td:nth-child(10){width:112px;}
.body--admin .admin-users-table th:nth-child(11),
.body--admin .admin-users-table td:nth-child(11){width:132px;}
.body--admin .admin-users-table th:nth-child(12),
.body--admin .admin-users-table td:nth-child(12){width:136px;}
@media (min-width: 1500px){
    .body--admin .page,
    .body--admin .flash,
    .body--admin .footer{
        max-width:calc(100vw - 56px);
    }
}
@media (max-width: 900px){
    .body--admin .page{
        padding-left:12px;
        padding-right:12px;
    }
    .body--admin .admin-users-table{
        min-width:1280px;
    }
}

/* User activity log */
.admin-activity-filter{
    align-items:flex-end;
}
.admin-activity-table-wrap{
    overflow:auto;
}
.admin-activity-table{
    min-width:1420px;
}
.admin-activity-table th:nth-child(1),
.admin-activity-table td:nth-child(1){width:150px;white-space:nowrap;}
.admin-activity-table th:nth-child(2),
.admin-activity-table td:nth-child(2){width:220px;}
.admin-activity-table th:nth-child(3),
.admin-activity-table td:nth-child(3){width:130px;}
.admin-activity-table th:nth-child(4),
.admin-activity-table td:nth-child(4){width:180px;}
.admin-activity-table th:nth-child(5),
.admin-activity-table td:nth-child(5){min-width:260px;}
.admin-activity-table th:nth-child(6),
.admin-activity-table td:nth-child(6){width:170px;}
.admin-activity-table th:nth-child(7),
.admin-activity-table td:nth-child(7){width:260px;}
.admin-activity-table th:nth-child(8),
.admin-activity-table td:nth-child(8){min-width:260px;}
.admin-activity-table th:nth-child(9),
.admin-activity-table td:nth-child(9){width:150px;}
.admin-activity-table--compact{
    min-width:1180px;
}
.admin-activity-action{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:5px 10px;
    border-radius:999px;
    background:#eef5ff;
    color:#245de8;
    font-weight:800;
    font-size:12px;
}

/* PATCH: separate profiles directory page */
.profiles-page-hero {
  position: relative;
  overflow: hidden;
}
.profiles-page-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -110px;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(47,107,255,.16), rgba(255,255,255,0) 68%);
  pointer-events: none;
}
.profiles-search-form {
  position: relative;
  z-index: 1;
}
.profiles-search-form.search-page-hero .home-search,
.profiles-search-form.home-search--search-page,
.search-page-hero .profiles-search-form.home-search--search-page {
  grid-template-columns: minmax(260px, 1.45fr) repeat(4, minmax(130px, .7fr)) !important;
}
.profiles-search-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}
.profiles-search-actions .home-search__toggle {
  width: auto !important;
  min-width: 132px !important;
  max-width: none !important;
}
.profiles-search-actions .home-search__button {
  width: auto !important;
  min-width: 142px !important;
  max-width: none !important;
}
.profiles-list-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.98));
}
.profiles-directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.profiles-directory-card {
  position: relative;
  display: grid;
  grid-template-rows: 220px 1fr;
  gap: 0;
  overflow: hidden;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(96,118,170,.16);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(31,42,68,.08);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.profiles-directory-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(47,107,255,.28);
  box-shadow: 0 24px 54px rgba(31,42,68,.12);
}
.profiles-directory-card__photo {
  position: relative;
  display: block;
  overflow: hidden;
  background: #eaf0ff;
}
.profiles-directory-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .22s ease;
}
.profiles-directory-card:hover .profiles-directory-card__photo img {
  transform: scale(1.035);
}
.profiles-directory-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}
.profiles-directory-card__body strong {
  color: #112046;
  font-size: 18px;
  line-height: 1.15;
}
.profiles-directory-card__body small {
  color: #64748b;
  line-height: 1.35;
}
.profiles-directory-card__pair {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.profiles-directory-card__pair b,
.profiles-directory-card__pair em {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  line-height: 1;
  font-style: normal;
  font-weight: 800;
}
.profiles-directory-card__pair b {
  background: #eef5ff;
  color: #185bdd;
}
.profiles-directory-card__pair em {
  background: #fff2f7;
  color: #be185d;
}
.profiles-directory-card__about {
  color: #475569;
  font-size: 14px;
  line-height: 1.38;
}
.profiles-directory-card__stats {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}
.profiles-directory-card__stats span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f5f7fb;
  color: #52617e;
  font-size: 12px;
  font-weight: 900;
}
.profiles-directory-card--vip {
  border-color: rgba(238, 180, 50, .72) !important;
  background: linear-gradient(180deg, rgba(255,250,230,.96), rgba(255,255,255,.98));
  box-shadow: 0 20px 52px rgba(214,145,22,.16), 0 0 0 1px rgba(250,210,95,.25) !important;
}
.profiles-directory-card--vip::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,220,105,.24), rgba(255,255,255,0), rgba(240,161,29,.16));
  pointer-events: none;
}
.profiles-directory-card--vip > * {
  position: relative;
  z-index: 1;
}
@media (max-width: 1100px) {
  .profiles-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-page-hero .profiles-search-form.home-search--search-page,
  .profiles-search-form.home-search--search-page {
    grid-template-columns: minmax(0,1fr) repeat(2,minmax(140px,1fr)) !important;
  }
  .profiles-search-form .home-search__field--search { grid-column: 1 / -1 !important; }
}
@media (max-width: 720px) {
  .search-page-hero .profiles-search-form.home-search--search-page,
  .profiles-search-form.home-search--search-page {
    grid-template-columns: 1fr !important;
  }
  .profiles-search-actions,
  .profiles-search-actions .home-search__toggle,
  .profiles-search-actions .home-search__button {
    width: 100% !important;
    min-width: 0 !important;
  }
  .profiles-directory-grid { grid-template-columns: 1fr; }
  .profiles-directory-card { grid-template-rows: 260px 1fr; }
}

/* Security/moderation/notifications hardening patch */
.profiles-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}
.profiles-summary-strip span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 16px;
  background: rgba(255,255,255,.82);
  color: #43516a;
  font-weight: 850;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .04);
}
.profiles-summary-strip strong { color: #15223a; }

.notifications-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.notifications-panel { padding: 0; overflow: hidden; }
.notifications-list {
  display: grid;
  gap: 0;
}
.notification-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(148,163,184,.22);
  color: inherit;
  text-decoration: none;
  background: rgba(255,255,255,.74);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.notification-card:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
}
.notification-card.is-unread {
  background: linear-gradient(90deg, rgba(255,247,237,.96), rgba(255,255,255,.94));
}
.notification-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff0f3;
  color: #be123c;
  font-size: 22px;
  font-weight: 900;
}
.notification-card__body strong {
  display: block;
  color: #15223a;
  font-size: 16px;
  margin-bottom: 4px;
}
.notification-card__body p {
  margin: 0;
  color: #52617e;
  line-height: 1.4;
}
.notification-card__time {
  color: #8792a8;
  font-size: 12px;
  white-space: nowrap;
}
.notification-card__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 5px rgba(239,68,68,.10);
}

.admin-moderation-hero,
.admin-diagnostics-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.admin-moderation-stats { margin-bottom: 18px; }
.admin-moderation-section { margin-top: 18px; }
.admin-moderation-list {
  display: grid;
  gap: 12px;
}
.admin-moderation-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 18px;
  background: #fff;
}
.admin-moderation-item strong a { color: #172554; text-decoration: none; }
.admin-moderation-item small {
  display: block;
  margin-top: 4px;
  color: #64748b;
}
.admin-moderation-item p {
  margin: 8px 0 0;
  color: #43516a;
}
.admin-moderation-reason { color: #b45309 !important; }
.admin-moderation-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}
.admin-moderation-actions--stack {
  display: grid;
  grid-template-columns: 1fr;
}
.admin-moderation-actions select,
.admin-moderation-actions input {
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.55);
  padding: 0 10px;
}
.admin-moderation-actions button,
.admin-moderation-photo button {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  font-weight: 850;
  cursor: pointer;
}
.admin-moderation-photo-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.admin-moderation-photo {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 18px;
  background: #fff;
}
.admin-moderation-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  background: #f1f5f9;
}
.admin-moderation-photo strong { color: #172554; }
.admin-moderation-photo small { color: #64748b; }
.admin-moderation-photo form { display: flex; gap: 8px; }
.admin-moderation-photo select { min-width: 0; flex: 1; border-radius: 12px; border: 1px solid rgba(148,163,184,.5); padding: 0 8px; }
.admin-moderation-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.admin-moderation-profile {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.admin-moderation-profile img,
.admin-moderation-profile > span {
  grid-row: span 3;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  font-weight: 900;
}
.admin-moderation-profile strong { color: #15223a; }
.admin-moderation-profile small { color: #64748b; overflow: hidden; text-overflow: ellipsis; }
.admin-moderation-profile em { color: #be123c; font-style: normal; font-weight: 850; }

.admin-diagnostics-panel code,
.admin-backup-health code {
  padding: 2px 6px;
  border-radius: 8px;
  background: #f1f5f9;
}
.admin-diagnostics-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 850;
}
.admin-log-files {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.admin-log-file {
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.admin-log-file__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148,163,184,.18);
}
.admin-log-file__head strong,
.admin-log-file__head small { display: block; }
.admin-log-file__head small,
.admin-log-file__head span { color: #64748b; }
.admin-log-file pre {
  margin: 0;
  padding: 14px;
  overflow: auto;
  max-height: 260px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.45;
}
.admin-backup-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.admin-backup-health-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.25);
  background: #fff;
}
.admin-backup-health-card strong {
  font-size: 22px;
  color: #15223a;
}
.admin-backup-health-card span { color: #64748b; }
.admin-backup-health-card.is-ok { border-color: rgba(34,197,94,.35); background: #f0fdf4; }
.admin-backup-health-card.is-bad { border-color: rgba(239,68,68,.35); background: #fff1f2; }
.admin-backup-safe-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.admin-backup-safe-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
  font-size: 13px;
}
@media (max-width: 900px) {
  .profiles-summary-strip,
  .admin-backup-health-grid { grid-template-columns: 1fr; }
  .notification-card { grid-template-columns: 42px minmax(0,1fr); }
  .notification-card__time { grid-column: 2; }
  .admin-moderation-hero,
  .admin-diagnostics-head,
  .admin-log-file__head { display: grid; }
  .admin-moderation-item { grid-template-columns: 1fr; }
  .admin-moderation-actions { justify-content: stretch; }
  .admin-moderation-actions button { width: 100%; }
}

/* Mobile/content safety: keep long ad text inside cards */
.bbs-list,
.bbs-card,
.bbs-card__body,
.bbs-card__meta,
.bbs-card__foot,
.bbs-card__params,
.bbs-card h3,
.bbs-card h3 a,
.bbs-card p,
.ad-view,
.ad-view__content,
.ad-view__body,
.ad-view__meta,
.public-profile-card,
.profile-card,
.home-new-profile-card,
.profile-directory-card {
    min-width: 0;
    max-width: 100%;
}

.bbs-card h3,
.bbs-card h3 a,
.bbs-card p,
.bbs-card__params,
.bbs-card__meta,
.bbs-card__meta span,
.bbs-card__foot,
.bbs-card__foot span,
.ad-view__content,
.ad-view__body,
.ad-view__body p,
.ad-view__meta,
.ad-view__meta span,
.ad-view__meta a,
.public-profile-card,
.profile-card,
.home-new-profile-card,
.profile-directory-card {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.bbs-card p {
    white-space: normal;
}

@media (max-width: 640px) {
    .bbs-list {
        width: 100%;
        overflow: hidden;
    }

    .bbs-card {
        grid-template-columns: 82px minmax(0, 1fr);
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .bbs-card__body {
        overflow: hidden;
    }

    .bbs-card h3 {
        font-size: 18px;
        line-height: 1.25;
    }

    .bbs-card p {
        line-height: 1.42;
    }
}

/* FINAL category icon fit + own rounded tile */
.home-category__icon--image,
.home-category-card__icon--image{
    width:72px!important;
    height:72px!important;
    padding:0!important;
    background:transparent!important;
    box-shadow:none!important;
    border-radius:0!important;
    overflow:visible!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
}
.home-category__icon--image img,
.home-category-card__icon--image img{
    display:block!important;
    width:72px!important;
    height:72px!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:contain!important;
    object-position:center!important;
    margin:0!important;
    border-radius:18px!important;
    filter:drop-shadow(0 10px 18px rgba(88,115,255,.18))!important;
    background:transparent!important;
}
.home-category-card{grid-template-columns:72px minmax(0,1fr) auto!important}
@media(max-width:820px){
    .home-category{grid-template-columns:60px minmax(0,1fr) auto!important}
    .home-category-card{grid-template-columns:60px minmax(0,1fr) auto!important}
    .home-category__icon--image,
    .home-category-card__icon--image{width:60px!important;height:60px!important}
    .home-category__icon--image img,
    .home-category-card__icon--image img{width:60px!important;height:60px!important;border-radius:16px!important}
}


/* Hero category icon fit fix */
.page-title__art--category{
    padding:0!important;
    justify-content:flex-end!important;
    align-items:center!important;
    overflow:visible!important;
}
.page-title__art--category img{
    display:block!important;
    width:180px!important;
    height:180px!important;
    max-width:100%!important;
    max-height:none!important;
    object-fit:contain!important;
    object-position:center!important;
    border-radius:24px!important;
    background:transparent!important;
    box-shadow:none!important;
    filter:drop-shadow(0 14px 26px rgba(61,101,191,.16))!important;
}
@media(max-width:900px){
    .page-title__art--category img{
        width:152px!important;
        height:152px!important;
    }
}

/* FINAL unified rounded category icons */
.home-category__icon--image,
.home-category-card__icon--image{
    width:72px!important;
    height:72px!important;
    padding:0!important;
    border-radius:18px!important;
    overflow:hidden!important;
    background:transparent!important;
    box-shadow:0 14px 24px rgba(88,115,255,.16)!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    line-height:0!important;
}
.home-category__icon--image img,
.home-category-card__icon--image img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:cover!important;
    object-position:center!important;
    border-radius:18px!important;
    margin:0!important;
    background:transparent!important;
    box-shadow:none!important;
    filter:none!important;
}
.home-category{grid-template-columns:72px minmax(0,1fr) auto!important}
.home-category-card{grid-template-columns:72px minmax(0,1fr) auto!important}

.page-title__art--category{
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    line-height:0!important;
}
.page-title__art--category img{
    display:block!important;
    width:180px!important;
    height:180px!important;
    object-fit:cover!important;
    object-position:center!important;
    border-radius:28px!important;
    overflow:hidden!important;
    box-shadow:0 18px 30px rgba(61,101,191,.18)!important;
    filter:none!important;
    background:transparent!important;
}

@media(max-width:820px){
    .home-category__icon--image,
    .home-category-card__icon--image{
        width:60px!important;
        height:60px!important;
        border-radius:16px!important;
    }
    .home-category__icon--image img,
    .home-category-card__icon--image img{
        border-radius:16px!important;
    }
    .home-category{grid-template-columns:60px minmax(0,1fr) auto!important}
    .home-category-card{grid-template-columns:60px minmax(0,1fr) auto!important}
    .page-title__art--category img{
        width:152px!important;
        height:152px!important;
        border-radius:24px!important;
    }
}

/* FINAL all category icons one formfactor */
.home-category__icon--image,
.home-category-card__icon--image{
    width:72px!important;
    height:72px!important;
    min-width:72px!important;
    padding:0!important;
    border:0!important;
    border-radius:18px!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    line-height:0!important;
}
.home-category__icon--image img,
.home-category-card__icon--image img{
    display:block!important;
    width:72px!important;
    height:72px!important;
    max-width:72px!important;
    max-height:72px!important;
    object-fit:contain!important;
    object-position:center!important;
    border:0!important;
    border-radius:18px!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    box-shadow:none!important;
    filter:drop-shadow(0 12px 22px rgba(88,115,255,.16))!important;
    transform:none!important;
}
.home-category,
.home-category-card{
    grid-template-columns:72px minmax(0,1fr) auto!important;
}
.page-title__art--category{
    padding:0!important;
    overflow:visible!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    line-height:0!important;
}
.page-title__art--category img{
    display:block!important;
    width:180px!important;
    height:180px!important;
    max-width:180px!important;
    max-height:180px!important;
    object-fit:contain!important;
    object-position:center!important;
    border:0!important;
    border-radius:28px!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    box-shadow:none!important;
    filter:drop-shadow(0 18px 30px rgba(61,101,191,.18))!important;
}
@media(max-width:820px){
    .home-category__icon--image,
    .home-category-card__icon--image{
        width:60px!important;
        height:60px!important;
        min-width:60px!important;
        border-radius:16px!important;
    }
    .home-category__icon--image img,
    .home-category-card__icon--image img{
        width:60px!important;
        height:60px!important;
        max-width:60px!important;
        max-height:60px!important;
        border-radius:16px!important;
    }
    .home-category,
    .home-category-card{
        grid-template-columns:60px minmax(0,1fr) auto!important;
    }
    .page-title__art--category img{
        width:152px!important;
        height:152px!important;
        max-width:152px!important;
        max-height:152px!important;
        border-radius:24px!important;
    }
}

/* FINAL list photo placeholder and online badge guard */
.bbs-card__photo{
    position:relative!important;
    overflow:hidden!important;
}
.bbs-card__photo--empty img,
.bbs-card__photo--private .private-photo-lock--card img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center!important;
    border-radius:inherit!important;
}
.bbs-card__photo--private .private-photo-lock--card{
    display:block!important;
    width:100%!important;
    height:100%!important;
    border-radius:inherit!important;
    overflow:hidden!important;
    background:#0f1730!important;
}
.thumb-online-badge{
    position:absolute!important;
    top:8px!important;
    right:8px!important;
    left:auto!important;
    bottom:auto!important;
    z-index:6!important;
    width:18px!important;
    height:18px!important;
    min-width:18px!important;
    min-height:18px!important;
    max-width:18px!important;
    max-height:18px!important;
    padding:0!important;
    border-radius:999px!important;
    overflow:visible!important;
    background:rgba(255,255,255,.96)!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    transform:none!important;
}
.thumb-online-badge__dot{
    width:10px!important;
    height:10px!important;
    min-width:10px!important;
    min-height:10px!important;
    max-width:10px!important;
    max-height:10px!important;
    border-radius:50%!important;
    display:block!important;
    flex:0 0 auto!important;
}

/* FINAL public pagination controls */
.pagination{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    flex-wrap:wrap;
    margin-top:20px;
}
.pagination a,
.pagination strong,
.pagination span{
    min-width:38px;
    height:38px;
    padding:0 12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    border:1px solid #cfe0fb;
    background:#fff;
    color:#1d5fe9;
    font-weight:800;
    text-decoration:none;
    box-shadow:0 10px 22px rgba(29,95,233,.08);
}
.pagination strong{
    background:linear-gradient(135deg,#2b7dff,#5f7cff);
    border-color:transparent;
    color:#fff;
}
.pagination span{
    color:#7a8aa8;
    box-shadow:none;
}
.pagination a:hover{
    transform:translateY(-1px);
    box-shadow:0 14px 26px rgba(29,95,233,.14);
}
.pagination-summary{
    display:inline-flex;
    align-items:center;
    min-height:34px;
    padding:0 12px;
    border-radius:999px;
    background:#f3f7ff;
    border:1px solid #d8e6ff;
    color:#5f6f8f;
    font-weight:800;
    font-size:13px;
}
.pagination-head-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    flex-wrap:wrap;
}
.search-results-head{
    margin-bottom:14px;
}
.per-page-form{
    margin:0;
}
.per-page-form label{
    display:flex;
    align-items:center;
    gap:8px;
    min-height:38px;
    padding:0 10px 0 12px;
    border:1px solid #cfe0fb;
    border-radius:14px;
    background:#fff;
    color:#60708f;
    font-size:13px;
    font-weight:800;
}
.per-page-form select,
.home-search__field--per-page select{
    font-weight:800;
}
.home-search__field--per-page{
    min-width:148px;
}
@media(max-width:640px){
    .pagination{
        justify-content:flex-start;
    }
    .pagination a,
    .pagination strong,
    .pagination span{
        min-width:34px;
        height:34px;
        border-radius:12px;
        padding:0 10px;
        font-size:13px;
    }
    .pagination-head-actions,
    .search-results-head{
        align-items:flex-start;
        justify-content:flex-start;
    }
    .per-page-form label{
        width:100%;
    }
}

/* FINAL top photos pagination controls */
.top-photo-controls{
    margin:18px 0 18px!important;
}
.top-photo-controls .panel__head{
    margin:0!important;
}
.top-photo-pagination{
    margin-top:18px!important;
}
@media(max-width:720px){
    .top-photo-controls .panel__head{
        align-items:flex-start!important;
    }
}

/* PATCH 2026-05-29: compact, card-based admin dashboard */
.admin-dashboard-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin:0 0 16px;
    padding:16px 18px;
    border:1px solid rgba(96,118,170,.16);
    border-radius:24px;
    background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(239,246,255,.9));
    box-shadow:0 14px 34px rgba(31,42,68,.08);
}
.admin-dashboard-head h1{
    margin:2px 0 0;
    font-size:clamp(24px,2.4vw,36px);
    line-height:1.05;
    letter-spacing:-.03em;
}
.admin-dashboard-kicker{
    display:inline-flex;
    align-items:center;
    min-height:24px;
    padding:4px 9px;
    border-radius:999px;
    background:#eaf2ff;
    color:#1d62e0;
    font-size:12px;
    font-weight:950;
    letter-spacing:.08em;
}
.admin-site-switch{
    margin:0;
}
.admin-site-switch__button{
    display:flex;
    align-items:center;
    gap:12px;
    min-height:54px;
    padding:8px 14px 8px 10px;
    border:1px solid rgba(96,118,170,.18);
    border-radius:18px;
    background:#fff;
    color:#1f2937;
    font:inherit;
    cursor:pointer;
    box-shadow:0 10px 24px rgba(31,42,68,.08);
}
.admin-site-switch__button:hover{
    text-decoration:none;
    transform:translateY(-1px);
    box-shadow:0 16px 30px rgba(31,42,68,.11);
}
.admin-site-switch__track{
    position:relative;
    width:58px;
    height:32px;
    flex:0 0 auto;
    border-radius:999px;
    background:#e2e8f0;
    box-shadow:inset 0 2px 7px rgba(15,23,42,.12);
}
.admin-site-switch__track span{
    position:absolute;
    top:4px;
    left:4px;
    width:24px;
    height:24px;
    border-radius:50%;
    background:#fff;
    box-shadow:0 5px 12px rgba(15,23,42,.25);
    transition:left .18s ease;
}
.admin-site-switch__button.is-on .admin-site-switch__track{
    background:linear-gradient(135deg,#16a34a,#22c55e);
}
.admin-site-switch__button.is-on .admin-site-switch__track span{
    left:30px;
}
.admin-site-switch__button.is-off .admin-site-switch__track{
    background:linear-gradient(135deg,#ef4444,#f97316);
}
.admin-site-switch__text{
    display:grid;
    gap:1px;
    text-align:left;
}
.admin-site-switch__text strong{
    font-size:14px;
    line-height:1.15;
    white-space:nowrap;
}
.admin-site-switch__text small{
    color:#64748b;
    font-size:12px;
    font-weight:750;
    white-space:nowrap;
}
.admin-dashboard-stats{
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:12px;
    margin:0 0 16px;
}
.admin-dashboard-stat{
    position:relative;
    display:grid;
    grid-template-columns:42px minmax(0,1fr);
    gap:11px;
    align-items:center;
    min-height:112px;
    padding:14px;
    border:1px solid rgba(96,118,170,.16);
    border-radius:22px;
    background:linear-gradient(180deg,#fff,#f8fbff);
    color:#172033;
    box-shadow:0 12px 30px rgba(31,42,68,.08);
    overflow:hidden;
}
.admin-dashboard-stat::before{
    content:'';
    position:absolute;
    inset:auto -30px -42px auto;
    width:96px;
    height:96px;
    border-radius:50%;
    background:rgba(37,99,235,.08);
}
.admin-dashboard-stat:hover{
    text-decoration:none;
    transform:translateY(-2px);
    border-color:rgba(37,99,235,.22);
    box-shadow:0 18px 36px rgba(31,42,68,.12);
}
.admin-dashboard-stat__icon{
    position:relative;
    z-index:1;
    display:grid;
    place-items:center;
    width:42px;
    height:42px;
    border-radius:16px;
    background:#eef5ff;
    color:#1d62e0;
    font-size:22px;
    font-weight:950;
}
.admin-dashboard-stat__body{
    position:relative;
    z-index:1;
    display:grid;
    gap:1px;
    min-width:0;
}
.admin-dashboard-stat__body strong{
    font-size:clamp(24px,2vw,34px);
    line-height:1;
    letter-spacing:-.04em;
}
.admin-dashboard-stat__body span{
    color:#1f2a44;
    font-weight:950;
    line-height:1.15;
}
.admin-dashboard-stat__body small{
    color:#64748b;
    font-weight:750;
    line-height:1.2;
}
.admin-dashboard-stat--warn .admin-dashboard-stat__icon{background:#fff7ed;color:#d97706;}
.admin-dashboard-stat--warn::before{background:rgba(245,158,11,.13);}
.admin-dashboard-stat--ok .admin-dashboard-stat__icon{background:#ecfdf5;color:#16a34a;}
.admin-dashboard-stat--ok::before{background:rgba(34,197,94,.13);}
.admin-dashboard-stat--danger .admin-dashboard-stat__icon{background:#fff1f2;color:#e11d48;}
.admin-dashboard-stat--danger::before{background:rgba(225,29,72,.12);}
.admin-dashboard-stat--gold .admin-dashboard-stat__icon{background:#fffbeb;color:#b45309;}
.admin-dashboard-stat--gold::before{background:rgba(217,119,6,.12);}
.admin-dashboard-stat--violet .admin-dashboard-stat__icon{background:#f5f3ff;color:#6d28d9;}
.admin-dashboard-stat--violet::before{background:rgba(109,40,217,.11);}
.admin-dashboard-stat--cyan .admin-dashboard-stat__icon{background:#ecfeff;color:#0891b2;}
.admin-dashboard-stat--cyan::before{background:rgba(8,145,178,.12);}
.admin-dashboard-analytics{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin:0 0 16px;
}
.admin-dashboard-chart-card{
    min-height:278px;
    padding:18px;
    border:1px solid rgba(96,118,170,.16);
    border-radius:24px;
    background:linear-gradient(180deg,#fff,#f8fbff);
    box-shadow:0 14px 34px rgba(31,42,68,.08);
}
.admin-dashboard-chart-card__head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:14px;
    min-height:70px;
    margin-bottom:14px;
}
.admin-dashboard-chart-card h2{
    margin:0 0 4px;
    font-size:19px;
    letter-spacing:-.02em;
}
.admin-dashboard-chart-card p{
    margin:0;
    color:#64748b;
    font-weight:700;
    line-height:1.25;
}
.admin-dashboard-chart-card__head > strong{
    display:grid;
    justify-items:end;
    gap:0;
    color:#172033;
    font-size:28px;
    line-height:1;
    letter-spacing:-.04em;
}
.admin-dashboard-chart-card__head > strong span{
    margin-top:3px;
    color:#64748b;
    font-size:11px;
    font-weight:900;
    letter-spacing:.03em;
    text-transform:uppercase;
    white-space:nowrap;
}
.admin-dashboard-bars{
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:8px;
    align-items:end;
    height:152px;
    padding:10px 8px 4px;
    border-radius:18px;
    background:linear-gradient(180deg,#eef5ff,#f8fbff);
    border:1px solid rgba(96,118,170,.12);
}
.admin-dashboard-bars--compact{
    height:104px;
    margin-top:12px;
}
.admin-dashboard-bar{
    display:grid;
    grid-template-rows:1fr auto;
    align-items:end;
    gap:6px;
    min-width:0;
    height:100%;
}
.admin-dashboard-bar__value{
    display:block;
    width:100%;
    min-height:4px;
    border-radius:999px 999px 7px 7px;
    background:linear-gradient(180deg,#3b82f6,#1d4ed8);
    box-shadow:0 8px 16px rgba(37,99,235,.2);
}
.admin-dashboard-bar small{
    display:block;
    color:#64748b;
    font-size:11px;
    font-weight:850;
    line-height:1;
    text-align:center;
    white-space:nowrap;
}
.admin-dashboard-split-metrics{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}
.admin-dashboard-split-metrics div{
    padding:10px 12px;
    border:1px solid rgba(96,118,170,.14);
    border-radius:16px;
    background:#fff;
}
.admin-dashboard-split-metrics span{
    display:block;
    color:#64748b;
    font-size:12px;
    font-weight:850;
    line-height:1.15;
}
.admin-dashboard-split-metrics b{
    display:block;
    margin-top:4px;
    color:#172033;
    font-size:24px;
    line-height:1;
    letter-spacing:-.03em;
}
.admin-dashboard-sections{
    padding:18px;
    border:1px solid rgba(96,118,170,.16);
    border-radius:26px;
    background:rgba(255,255,255,.76);
    box-shadow:0 14px 34px rgba(31,42,68,.08);
}
.admin-dashboard-section-title{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:18px;
    margin-bottom:14px;
}
.admin-dashboard-section-title h2{
    margin:0;
    font-size:24px;
    letter-spacing:-.02em;
}
.admin-dashboard-section-title p{
    margin:0;
    color:#64748b;
    font-weight:750;
}
.admin-dashboard-section-grid{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:12px;
}
.admin-dashboard-section-card{
    position:relative;
    display:grid;
    grid-template-columns:42px minmax(0,1fr);
    gap:12px;
    align-items:start;
    min-height:126px;
    padding:15px;
    border:1px solid rgba(96,118,170,.15);
    border-radius:20px;
    background:linear-gradient(180deg,#fff,#f9fbff);
    color:#172033;
    box-shadow:0 10px 24px rgba(31,42,68,.06);
}
.admin-dashboard-section-card:hover{
    text-decoration:none;
    transform:translateY(-2px);
    border-color:rgba(37,99,235,.24);
    box-shadow:0 16px 30px rgba(31,42,68,.1);
}
.admin-dashboard-section-card__icon{
    display:grid;
    place-items:center;
    width:42px;
    height:42px;
    border-radius:16px;
    background:#eef5ff;
    color:#1d62e0;
    font-size:22px;
    font-weight:950;
}
.admin-dashboard-section-card__body{
    display:grid;
    gap:6px;
    min-width:0;
}
.admin-dashboard-section-card__body strong{
    font-size:16px;
    line-height:1.15;
}
.admin-dashboard-section-card__body small{
    color:#64748b;
    font-weight:700;
    line-height:1.25;
}
.admin-dashboard-section-card em{
    position:absolute;
    top:10px;
    right:10px;
    min-width:28px;
    height:28px;
    display:inline-grid;
    place-items:center;
    padding:0 8px;
    border-radius:999px;
    background:#eef5ff;
    color:#1d62e0;
    font-style:normal;
    font-size:12px;
    font-weight:950;
}
@media (max-width:1320px){
    .admin-dashboard-stats{grid-template-columns:repeat(4,minmax(0,1fr));}
    .admin-dashboard-analytics{grid-template-columns:repeat(2,minmax(0,1fr));}
    .admin-dashboard-section-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:760px){
    .admin-dashboard-head{align-items:stretch;flex-direction:column;}
    .admin-site-switch__button{width:100%;justify-content:space-between;}
    .admin-dashboard-stats,
    .admin-dashboard-analytics,
    .admin-dashboard-section-grid{grid-template-columns:1fr;}
    .admin-dashboard-section-title{display:block;}
    .admin-dashboard-section-title p{margin-top:4px;}
}

/* PATCH 2026-05-29: compact admin ads list */
.admin-ads-title{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:18px;
    padding:18px 20px;
}
.admin-ads-title h1{
    margin:0 0 5px;
    font-size:28px;
    line-height:1.1;
}
.admin-ads-title p{
    margin:0;
    max-width:620px;
    font-size:14px;
}
.admin-ads-filter-chips{
    justify-content:flex-end;
}
.admin-ads-table-wrap{
    padding:0;
    overflow-x:auto;
}
.admin-ads-table{
    min-width:1180px;
    table-layout:fixed;
}
.admin-ads-table th,
.admin-ads-table td{
    padding:8px 9px;
    vertical-align:middle;
}
.admin-ads-table th{
    white-space:nowrap;
}
.admin-ads-col-id{width:64px}
.admin-ads-col-ad{width:31%}
.admin-ads-col-author{width:170px}
.admin-ads-col-online{width:126px}
.admin-ads-col-location{width:170px}
.admin-ads-col-category{width:128px}
.admin-ads-col-status{width:112px}
.admin-ads-col-actions{width:245px}
.admin-ads-id{
    color:#6b7280;
    font-weight:900;
    white-space:nowrap;
}
.admin-ad-summary{
    display:grid;
    gap:3px;
    min-width:0;
    max-height:76px;
    overflow:hidden;
}
.admin-ad-summary__title{
    display:flex;
    align-items:center;
    gap:7px;
    min-width:0;
    font-weight:900;
    line-height:1.2;
}
.admin-ad-summary__title a{
    display:block;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.admin-ad-summary__preview{
    color:#48556a;
    font-size:12px;
    line-height:1.25;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.admin-ad-summary__meta{
    display:flex;
    gap:6px;
    min-width:0;
    color:#7b879d;
    font-size:11px;
    font-weight:800;
    line-height:1.2;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.admin-ad-summary__dates{
    align-items:center;
}
.admin-ad-date-chip{
    display:inline-flex;
    align-items:center;
    gap:4px;
    max-width:148px;
    min-height:19px;
    padding:2px 7px;
    border-radius:999px;
    border:1px solid rgba(100,116,139,.16);
    background:#f8fafc;
    color:#475569;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.admin-ad-date-chip b{
    flex:0 0 auto;
    color:#1f2937;
    font-weight:950;
}
.admin-ad-date-chip--created{
    background:#fff7ed;
    border-color:#fed7aa;
    color:#9a3412;
}
.admin-ad-date-chip--created b{
    color:#7c2d12;
}
.admin-ad-date-chip--published{
    background:#ecfdf5;
    border-color:#bbf7d0;
    color:#166534;
}
.admin-ad-date-chip--published b{
    color:#14532d;
}
.admin-ad-summary__reason{
    color:#b45309;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
}
.admin-ad-user-mini{
    display:grid;
    gap:2px;
    min-width:0;
}
.admin-ad-user-mini a,
.admin-ad-user-mini small,
.admin-ads-clamp{
    display:block;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.admin-ad-user-mini a{
    font-weight:900;
}
.admin-ad-user-mini small{
    color:#7b879d;
    font-size:11px;
}
.admin-ads-online-cell .admin-online-badge{
    padding:5px 8px;
    font-size:11px;
}
.admin-ads-online-cell .admin-online-badge__time{
    margin-top:3px;
    font-size:10px;
}
.admin-ad-actions{
    min-width:0;
}
.admin-ad-action-card--compact{
    display:grid;
    grid-template-columns:minmax(0,1fr) 72px;
    gap:6px;
    width:100%;
    max-width:none;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
}
.admin-ad-status-form--compact{
    display:grid;
    grid-template-columns:minmax(0,1fr) 42px;
    gap:5px;
}
.admin-ad-status-form--compact select{
    min-height:34px;
    height:34px;
    padding:5px 8px;
    border-radius:10px;
    font-size:12px;
}
.admin-ad-status-form--compact button,
.admin-ad-delete-form--compact button{
    min-height:34px;
    height:34px;
    padding:0 8px;
    border-radius:10px;
    font-size:12px;
    box-shadow:none;
}
.admin-ad-delete-form--compact button{
    width:100%;
}
@media(max-width:900px){
    .admin-ads-title{display:grid;align-items:start}
    .admin-ads-filter-chips{justify-content:flex-start}
    .admin-ads-table{min-width:1080px}
    .admin-ads-col-actions{width:230px}
}

/* PATCH 2026-05-29: admin dashboard split charts, ads dates, users table v2 */
.admin-ad-summary__dates{
    overflow:visible;
    text-overflow:clip;
}
.admin-ad-date-chip{
    flex:0 0 auto;
    max-width:none;
    gap:3px;
    padding:2px 6px;
}
.admin-ad-date-chip span,
.admin-ad-date-chip em{
    display:inline-block;
    font-style:normal;
    font-weight:850;
    white-space:nowrap;
}
.admin-ad-date-chip em{
    opacity:.88;
}
.admin-users-title{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:18px;
    padding:18px 20px;
}
.admin-users-title h1{
    margin:0 0 5px;
    font-size:28px;
    line-height:1.1;
}
.admin-users-title p{
    margin:0;
    max-width:700px;
    font-size:14px;
}
.admin-users-filter-chips{
    justify-content:flex-end;
}
.admin-users-table-wrap--v2{
    padding:0;
    overflow-x:auto;
}
.admin-users-table--v2{
    min-width:1180px;
    table-layout:fixed;
}
.admin-users-table--v2 th,
.admin-users-table--v2 td{
    padding:8px 9px;
    vertical-align:middle;
}
.admin-users-table--v2 th{
    white-space:nowrap;
}
.admin-users-table--v2 th:nth-child(n),
.admin-users-table--v2 td:nth-child(n){
    position:static;
    right:auto;
    z-index:auto;
    background:transparent;
    box-shadow:none;
}
.admin-users-table--v2 .admin-users-col-id{width:64px}
.admin-users-table--v2 .admin-users-col-user{width:300px}
.admin-users-table--v2 .admin-users-col-online{width:126px}
.admin-users-table--v2 .admin-users-col-status{width:112px}
.admin-users-table--v2 .admin-users-col-plan{width:120px}
.admin-users-table--v2 .admin-users-col-email{width:150px}
.admin-users-table--v2 .admin-users-col-counts{width:110px}
.admin-users-table--v2 .admin-users-col-date{width:132px}
.admin-users-table--v2 .admin-users-col-actions{width:175px}
.admin-users-id{
    color:#6b7280;
    font-weight:900;
    white-space:nowrap;
}
.admin-user-summary-v2{
    display:grid;
    grid-template-columns:44px minmax(0,1fr);
    gap:10px;
    align-items:center;
    min-width:0;
}
.admin-user-summary-v2__avatar{
    width:44px;
    height:44px;
    border-radius:14px;
}
.admin-user-summary-v2__body{
    display:grid;
    gap:3px;
    min-width:0;
}
.admin-user-summary-v2__name{
    display:flex;
    align-items:center;
    gap:7px;
    min-width:0;
    font-weight:900;
    line-height:1.2;
}
.admin-user-summary-v2__name a,
.admin-user-summary-v2__body small{
    display:block;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.admin-user-summary-v2__body small{
    color:#7b879d;
    font-size:11px;
}
.admin-users-online-cell .admin-online-badge{
    padding:5px 8px;
    font-size:11px;
}
.admin-users-online-cell .admin-online-badge__time{
    margin-top:3px;
    font-size:10px;
}
.admin-user-status-stack{
    display:grid;
    gap:4px;
    min-width:0;
}
.admin-user-status-stack .status{
    width:max-content;
    max-width:100%;
}
.admin-user-status-stack small{
    display:block;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#7b879d;
    font-size:11px;
    font-weight:800;
}
.status--active{
    background:#e8f8ef;
    color:#168a4a;
}
.status--banned,
.status--blocked{
    background:#ffecec;
    color:#c93535;
}
.status--vip{
    background:#fff4df;
    color:#b26a00;
}
.admin-user-counts-v2{
    display:grid;
    gap:4px;
    color:#475569;
    font-size:12px;
    font-weight:850;
    line-height:1.1;
}
.admin-user-counts-v2 span{
    display:flex;
    align-items:baseline;
    gap:4px;
    white-space:nowrap;
}
.admin-user-counts-v2 b{
    color:#111827;
    font-size:16px;
    line-height:1;
}
.admin-user-date-chip{
    display:inline-flex;
    align-items:center;
    gap:3px;
    min-height:21px;
    padding:2px 6px;
    border-radius:999px;
    border:1px solid #fed7aa;
    background:#fff7ed;
    color:#9a3412;
    font-size:11px;
    font-weight:850;
    white-space:nowrap;
}
.admin-user-date-chip b{
    color:#7c2d12;
    font-weight:950;
}
.admin-user-date-chip em{
    font-style:normal;
    opacity:.88;
}
.admin-user-actions--v2{
    min-width:0;
}
.admin-user-action-card-v2{
    display:grid;
    grid-template-columns:1fr 66px;
    gap:6px;
    align-items:center;
    width:100%;
}
.admin-user-action-card-v2 .admin-user-action{
    width:100%;
    min-height:34px;
    justify-content:center;
    padding:7px 9px;
    border-radius:10px;
    font-size:12px;
    line-height:1.1;
    white-space:nowrap;
}
.admin-user-action-card-v2 .inline-form{
    display:block;
    width:100%;
}
.admin-user-action-card-v2 .admin-user-action--open{
    background:linear-gradient(135deg,#2f7bff,#1e63f0);
    color:#fff;
    border:0;
    box-shadow:0 8px 18px rgba(36,124,255,.18);
}
.admin-user-action-card-v2 .admin-user-action--activate{
    background:#fff5dc!important;
    color:#9a5b00!important;
    border:1px solid #ffe1a3!important;
}
.admin-user-action-card-v2 .admin-user-action--delete{
    background:#fff0f0!important;
    color:#b42318!important;
    border:1px solid #ffcaca!important;
    grid-column:1/-1;
}
@media(max-width:900px){
    .admin-users-title{display:grid;align-items:start}
    .admin-users-filter-chips{justify-content:flex-start}
    .admin-users-table--v2{min-width:1080px}
    .admin-users-table--v2 .admin-users-col-user{width:260px}
    .admin-users-table--v2 .admin-users-col-actions{width:165px}
}

/* PATCH: admin users table column balance fix */
.body--admin .admin-users-table-wrap--v2{
    overflow-x:auto;
}
.body--admin .admin-users-table--v2{
    width:100%;
    min-width:1320px;
    table-layout:fixed;
}
.body--admin .admin-users-table--v2 th,
.body--admin .admin-users-table--v2 td{
    box-sizing:border-box;
}
.body--admin .admin-users-table--v2 th:nth-child(1),
.body--admin .admin-users-table--v2 td:nth-child(1),
.body--admin .admin-users-table--v2 .admin-users-col-id{width:72px!important;}
.body--admin .admin-users-table--v2 th:nth-child(2),
.body--admin .admin-users-table--v2 td:nth-child(2),
.body--admin .admin-users-table--v2 .admin-users-col-user{width:420px!important;}
.body--admin .admin-users-table--v2 th:nth-child(3),
.body--admin .admin-users-table--v2 td:nth-child(3),
.body--admin .admin-users-table--v2 .admin-users-col-online{width:112px!important;}
.body--admin .admin-users-table--v2 th:nth-child(4),
.body--admin .admin-users-table--v2 td:nth-child(4),
.body--admin .admin-users-table--v2 .admin-users-col-status{width:104px!important;}
.body--admin .admin-users-table--v2 th:nth-child(5),
.body--admin .admin-users-table--v2 td:nth-child(5),
.body--admin .admin-users-table--v2 .admin-users-col-plan{width:112px!important;}
.body--admin .admin-users-table--v2 th:nth-child(6),
.body--admin .admin-users-table--v2 td:nth-child(6),
.body--admin .admin-users-table--v2 .admin-users-col-email{width:145px!important;}
.body--admin .admin-users-table--v2 th:nth-child(7),
.body--admin .admin-users-table--v2 td:nth-child(7),
.body--admin .admin-users-table--v2 .admin-users-col-counts{width:105px!important;}
.body--admin .admin-users-table--v2 th:nth-child(8),
.body--admin .admin-users-table--v2 td:nth-child(8),
.body--admin .admin-users-table--v2 .admin-users-col-date{width:158px!important;}
.body--admin .admin-users-table--v2 th:nth-child(9),
.body--admin .admin-users-table--v2 td:nth-child(9),
.body--admin .admin-users-table--v2 .admin-users-col-actions{width:150px!important;}
.body--admin .admin-users-table--v2 .admin-user-summary-v2{
    grid-template-columns:44px minmax(0,1fr);
    max-width:100%;
}
.body--admin .admin-users-table--v2 .admin-user-summary-v2__name a{
    max-width:100%;
}
.body--admin .admin-users-table--v2 .admin-user-summary-v2__body small{
    max-width:100%;
}
.body--admin .admin-users-online-cell{
    white-space:normal;
}
.body--admin .admin-users-online-cell .admin-online-badge{
    max-width:100%;
    padding:4px 7px;
    font-size:10px;
}
.body--admin .admin-users-online-cell .admin-online-badge__time{
    max-width:100%;
    white-space:normal;
    line-height:1.15;
    font-size:9px;
}
@media(max-width:900px){
    .body--admin .admin-users-table--v2{
        min-width:1320px;
    }
}

/* PATCH: admin user activity table compact v2 */
.body--admin .admin-activity-title{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:flex-start;
}
.body--admin .admin-activity-filter-panel{
    margin-bottom:18px;
}
.body--admin .admin-activity-filter-v2{
    display:grid;
    grid-template-columns:160px minmax(220px,1.2fr) minmax(200px,.9fr) auto auto;
    gap:10px;
    align-items:end;
}
.body--admin .admin-activity-filter-v2 label{
    display:grid;
    gap:6px;
    min-width:0;
}
.body--admin .admin-activity-filter-v2 label span{
    color:#718096;
    font-size:12px;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.03em;
}
.body--admin .admin-activity-filter-v2 input,
.body--admin .admin-activity-filter-v2 select{
    width:100%;
    min-height:42px;
    border:1px solid rgba(96,118,170,.22);
    border-radius:14px;
    background:#fff;
    padding:9px 12px;
    color:#16213f;
    font-weight:750;
}
.body--admin .admin-activity-filter-v2 button,
.body--admin .admin-activity-reset{
    min-height:42px;
    border:0;
    border-radius:14px;
    padding:10px 16px;
    background:linear-gradient(135deg,#2f7bff,#1e63f0);
    color:#fff;
    font-weight:900;
    text-decoration:none;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}
.body--admin .admin-activity-reset{
    background:#eef4ff;
    color:#245de8;
}
.body--admin .admin-activity-table-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:12px;
}
.body--admin .admin-activity-table-head h2{
    margin:0 0 4px;
}
.body--admin .admin-activity-table-head p{
    margin:0;
    color:#718096;
    font-weight:750;
}
.body--admin .admin-activity-table-wrap--v2{
    overflow-x:auto;
}
.body--admin .admin-activity-table--v2{
    width:100%;
    min-width:1320px;
    table-layout:fixed;
    border-collapse:collapse;
}
.body--admin .admin-activity-table--v2 th,
.body--admin .admin-activity-table--v2 td{
    box-sizing:border-box;
    vertical-align:top;
    padding:12px 10px;
    border-bottom:1px solid rgba(96,118,170,.18);
    overflow:hidden;
}
.body--admin .admin-activity-table--v2 th{
    color:#718096;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.035em;
    white-space:nowrap;
}
.body--admin .admin-activity-table--v2 tr:hover td{
    background:#f8fbff;
}
.body--admin .admin-activity-table--v2 .admin-activity-col-date{width:126px!important;}
.body--admin .admin-activity-table--v2 .admin-activity-col-user{width:310px!important;}
.body--admin .admin-activity-table--v2 .admin-activity-col-action{width:170px!important;}
.body--admin .admin-activity-table--v2 .admin-activity-col-target{width:300px!important;}
.body--admin .admin-activity-table--v2 .admin-activity-col-page{width:260px!important;}
.body--admin .admin-activity-table--v2 .admin-activity-col-data{width:154px!important;}
.body--admin .admin-activity-date-chip{
    display:inline-grid;
    gap:2px;
    min-width:96px;
    padding:5px 8px;
    border-radius:13px;
    border:1px solid #dbe7ff;
    background:#f4f8ff;
    color:#245de8;
    font-size:12px;
    font-weight:900;
    line-height:1.1;
    white-space:nowrap;
}
.body--admin .admin-activity-date-chip em{
    font-style:normal;
    color:#6b7894;
    font-size:11px;
}
.body--admin .admin-activity-user-card{
    display:grid;
    grid-template-columns:44px minmax(0,1fr);
    gap:10px;
    align-items:start;
    min-width:0;
}
.body--admin .admin-activity-user-card__avatar{
    width:44px;
    height:44px;
    border-radius:14px;
}
.body--admin .admin-activity-user-card__body{
    min-width:0;
    display:grid;
    gap:4px;
}
.body--admin .admin-activity-user-card__body a,
.body--admin .admin-activity-user-card__body small{
    display:block;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.body--admin .admin-activity-user-card__body a{
    color:#145be8;
    font-weight:950;
    text-decoration:none;
}
.body--admin .admin-activity-user-card__body small{
    color:#7b879d;
    font-size:11px;
    font-weight:750;
}
.body--admin .admin-activity-user-card .admin-online-badge{
    width:max-content;
    max-width:100%;
    padding:4px 7px;
    font-size:10px;
}
.body--admin .admin-activity-user-card .admin-online-badge__time{
    margin-top:3px;
    font-size:9px;
    line-height:1.1;
    white-space:normal;
}
.body--admin .admin-activity-action-v2{
    display:inline-flex;
    max-width:100%;
    align-items:center;
    padding:6px 9px;
    border-radius:999px;
    background:#eef5ff;
    color:#245de8;
    font-weight:900;
    font-size:12px;
    line-height:1.15;
}
.body--admin .admin-activity-col-action small{
    display:block;
    margin-top:6px;
    color:#7b879d;
    font-weight:850;
}
.body--admin .admin-activity-target{
    display:grid;
    gap:5px;
    min-width:0;
}
.body--admin .admin-activity-target strong,
.body--admin .admin-activity-target small{
    display:block;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
}
.body--admin .admin-activity-target strong{
    color:#17233f;
    font-size:13px;
    line-height:1.25;
    max-height:34px;
}
.body--admin .admin-activity-target small{
    color:#61708a;
    font-size:12px;
    font-weight:800;
    white-space:nowrap;
}
.body--admin .admin-activity-page-link{
    display:block;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#145be8;
    font-weight:800;
    text-decoration:none;
}
.body--admin .admin-activity-data-details{
    max-width:100%;
}
.body--admin .admin-activity-data-details summary{
    width:max-content;
    max-width:100%;
    padding:5px 9px;
    border-radius:999px;
    background:#fff7ed;
    color:#9a3412;
    font-size:11px;
    font-weight:900;
    cursor:pointer;
}
.body--admin .admin-activity-data-details code{
    display:block;
    margin-top:6px;
    max-height:70px;
    overflow:auto;
    padding:7px;
    border-radius:10px;
    background:#0f172a;
    color:#dbeafe;
    font-size:10px;
    line-height:1.35;
    white-space:pre-wrap;
    word-break:break-word;
}
.body--admin .admin-activity-ip{
    display:block;
    margin-top:6px;
    color:#8b97ad;
    font-size:10px;
    font-weight:750;
    white-space:nowrap;
}
.body--admin .admin-activity-table--v2 .muted{
    color:#9aa6bb;
    font-weight:800;
}
@media(max-width:900px){
    .body--admin .admin-activity-title{
        display:grid;
    }
    .body--admin .admin-activity-filter-v2{
        grid-template-columns:1fr;
    }
    .body--admin .admin-activity-table--v2{
        min-width:1180px;
    }
}

/* PATCH: admin list counters + activity table safety */
.admin-list-total-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    color: #0f172a;
    background: linear-gradient(135deg, rgba(125, 211, 252, .95), rgba(167, 139, 250, .92));
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
    vertical-align: middle;
    white-space: nowrap;
}
.admin-list-online-badge {
    color: #052e16;
    background: linear-gradient(135deg, rgba(134, 239, 172, .98), rgba(34, 197, 94, .9));
}
.admin-activity-user-card__body .admin-online-badge,
.admin-user-summary-v2__body .admin-online-badge {
    width: max-content;
    max-width: 100%;
}
@media (max-width: 760px) {
    .admin-list-total-badge {
        margin-left: 0;
        margin-top: 8px;
    }
}

/* PATCH: top photos per-page submit fallback */
.per-page-form--autosubmit{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}
.per-page-submit{
    min-height:38px;
    padding:0 14px;
    border:0;
    border-radius:14px;
    background:#2767ef;
    color:#fff;
    font-weight:900;
    cursor:pointer;
    box-shadow:0 10px 20px rgba(39,103,239,.18);
}
.per-page-submit:hover{
    filter:brightness(.96);
}

/* PATCH 2026-05-29: photo quota placeholders */
.photo-quota-panel{border-color:rgba(124,58,237,.22);background:linear-gradient(135deg,#fff,#f7f3ff)}
.photo-tariff-lock{display:grid;place-items:center;align-content:center;gap:8px;width:100%;height:100%;min-height:180px;border-radius:inherit;background:linear-gradient(135deg,#f5f3ff 0%,#eef5ff 52%,#fff7ed 100%);border:1px solid rgba(124,58,237,.22);color:#1f2a44;text-align:center;box-shadow:inset 0 0 0 1px rgba(255,255,255,.65)}
.photo-tariff-lock strong{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 13px;border-radius:999px;background:#6d5dfc;color:#fff;font-weight:950;letter-spacing:.01em;box-shadow:0 10px 24px rgba(109,93,252,.22)}
.photo-tariff-lock span{max-width:220px;color:#64748b;font-size:13px;font-weight:850;line-height:1.25}
.photo-tariff-lock--choice{position:absolute;inset:0;min-height:0;border-radius:18px;z-index:3}
.photo-tariff-lock--choice strong{font-size:12px;min-height:28px;padding:5px 10px}.photo-tariff-lock--choice span{font-size:11px;max-width:150px}
.photo-tariff-lock--ad,.photo-tariff-lock--single{min-height:360px;border-radius:24px}.photo-tariff-lock--public{min-height:220px;border-radius:22px}.profile-photo--tariff-locked{border-color:rgba(124,58,237,.24)}
.ad-photo-card.is-tariff-locked .photo-card-settings__toggle{opacity:.55}.ad-photo-card.is-tariff-locked .photo-main-radio:disabled,.ad-photo-card.is-tariff-locked .photo-select-checkbox:disabled,.ad-photo-card.is-tariff-locked .photo-privacy-checkbox:disabled{cursor:not-allowed}
.ad-photo-thumb__locked--tariff{display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#7c3aed,#2563eb);font-size:11px;font-weight:950;letter-spacing:.03em}
.photo-tariff-lock--card{min-height:100%;border-radius:20px}.photo-tariff-lock--card strong{min-height:26px;padding:4px 10px;font-size:12px}.photo-tariff-lock--card span{font-size:11px}

/* PATCH: multi-select checkboxes for “Кого ищу” in profile/search/ads */
.ad-new-field--multi-checks,
.home-search__field--multi-checks {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.ad-new-field--multi-checks legend,
.home-search__field--multi-checks legend {
    display: block;
    width: 100%;
    margin: 0 0 7px;
    color: var(--text, #111827);
    font-weight: 800;
    font-size: 14px;
    line-height: 1.2;
}

.multi-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.multi-check {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    cursor: pointer;
    user-select: none;
}

.multi-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.multi-check span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #d5e1f4;
    border-radius: 14px;
    background: #fff;
    color: #172033;
    font-weight: 800;
    font-size: 14px;
    line-height: 1.1;
    transition: .15s ease;
    box-shadow: 0 8px 18px rgba(31,42,68,.04);
}

.multi-check:hover span {
    border-color: #2f76ff;
    color: #0f55d8;
    transform: translateY(-1px);
}

.multi-check input:checked + span {
    border-color: #2563eb;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 12px 22px rgba(37, 99, 235, .22);
}

.multi-check input:focus-visible + span {
    outline: 3px solid rgba(37, 99, 235, .22);
    outline-offset: 2px;
}

.home-search__field--multi-checks {
    align-self: stretch;
    padding: 12px 14px;
    border: 1px solid #d5e1f4;
    border-radius: 18px;
    background: rgba(255,255,255,.92);
}

.home-search__field--multi-checks legend {
    color: #6b7894;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.multi-checks--search .multi-check span {
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 13px;
}

.profile-looking-multi {
    grid-column: span 1;
}

@media (max-width: 760px) {
    .multi-checks {
        gap: 7px;
    }
    .multi-check,
    .multi-check span {
        width: 100%;
    }
    .multi-check span {
        justify-content: flex-start;
    }
}


/* PATCH 2026-05-29: multi-select “Ищу” in ad create/edit */
.ad-looking-multi {
    grid-column: span 1;
}
.multi-checks--ad .multi-check span {
    min-height: 42px;
    padding: 9px 12px;
}
@media (min-width: 761px) {
    .ad-looking-multi .multi-checks {
        align-items: center;
    }
}

/* PATCH 2026-05-29: compact dropdown for multi-select in search forms */
.home-search__field--multi-dropdown {
    padding: 0 !important;
    align-items: stretch;
    overflow: visible;
    min-height: 52px !important;
    z-index: 5;
}
.search-multi-dropdown {
    position: relative;
    width: 100%;
    min-width: 0;
}
.search-multi-dropdown[open] {
    z-index: 80;
}
.search-multi-dropdown summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    color: var(--text, #111827);
    font-weight: 850;
    font-size: 15px;
    line-height: 1.15;
    cursor: pointer;
    user-select: none;
}
.search-multi-dropdown summary::-webkit-details-marker {
    display: none;
}
.search-multi-dropdown summary span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-multi-dropdown summary i {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-right: 2px solid #1f2a44;
    border-bottom: 2px solid #1f2a44;
    transform: rotate(45deg) translateY(-2px);
    opacity: .8;
    transition: transform .16s ease;
}
.search-multi-dropdown[open] summary i {
    transform: rotate(225deg) translateY(-1px);
}
.search-multi-dropdown__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: min(340px, calc(100vw - 40px));
    padding: 12px;
    border: 1px solid #c9d7ee;
    border-radius: 18px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 22px 48px rgba(31,42,68,.18);
    z-index: 90;
}
.search-multi-dropdown__title {
    margin: 0 0 9px;
    color: #64748b;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.multi-checks--dropdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}
.multi-checks--dropdown .multi-check,
.multi-checks--dropdown .multi-check span {
    width: 100%;
}
.multi-checks--dropdown .multi-check span {
    min-height: 34px;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 13px;
}
.search-multi-dropdown__panel small {
    display: block;
    margin-top: 9px;
    color: #7a86a0;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.25;
}
@media (max-width: 760px) {
    .search-multi-dropdown__panel {
        width: 100%;
    }
    .multi-checks--dropdown {
        grid-template-columns: 1fr;
    }
}


/* PATCH 2026-05-29: compact multi-select dropdown in ad create/edit */
.ad-new-field--multi-dropdown {
    gap: 7px;
    min-width: 0;
}
.ad-new-field__label {
    display: block;
    color: #24324f;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.2;
}
.ad-new-field--multi-dropdown .search-multi-dropdown {
    min-width: 0;
}
.ad-new-field--multi-dropdown .search-multi-dropdown summary {
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #ccd9ef;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, #fbfdff);
    color: #15223d;
    font: 850 15px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.ad-new-field--multi-dropdown .search-multi-dropdown[open] summary,
.ad-new-field--multi-dropdown .search-multi-dropdown summary:focus-visible {
    border-color: #247cff;
    box-shadow: 0 0 0 4px rgba(36,124,255,.12);
    background: #fff;
    outline: none;
}
.ad-multi-dropdown__panel {
    width: min(300px, calc(100vw - 40px));
}
.ad-multi-dropdown__panel .multi-checks--dropdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ad-multi-dropdown__panel .multi-check span {
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 13px;
}
.ad-looking-multi {
    grid-column: auto;
}
@media (max-width: 760px) {
    .ad-multi-dropdown__panel {
        width: 100%;
    }
    .ad-multi-dropdown__panel .multi-checks--dropdown {
        grid-template-columns: 1fr;
    }
}

/* PATCH 2026-05-29: unified compact “Кого ищу / Ищу” multi-select dropdown */
.search-page-hero.panel--glow,
.profiles-page-hero.panel--glow,
.panel--glow:has(.search-multi-dropdown) {
    overflow: visible !important;
}
.home-search__field--multi-dropdown,
.ad-new-field--multi-dropdown.profile-looking-multi,
.ad-new-field--multi-dropdown.ad-looking-multi {
    position: relative !important;
    min-width: 0 !important;
    overflow: visible !important;
}
.home-search__field--multi-dropdown {
    padding: 0 !important;
    min-height: 48px !important;
    border: 1px solid #ccd9ef !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, #fff, #fbfdff) !important;
    box-shadow: 0 10px 26px rgba(24,71,150,.04) !important;
    z-index: 18 !important;
}
.home-search__field--multi-dropdown:focus-within,
.home-search__field--multi-dropdown.is-open,
.home-search__field--multi-dropdown .search-multi-dropdown[open] {
    z-index: 220 !important;
}
.search-multi-dropdown.ad-multi-dropdown,
.profile-looking-multi .search-multi-dropdown.ad-multi-dropdown,
.home-search__field--multi-dropdown .search-multi-dropdown.ad-multi-dropdown {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
}
.search-multi-dropdown.ad-multi-dropdown summary,
.profile-looking-multi .search-multi-dropdown.ad-multi-dropdown summary,
.home-search__field--multi-dropdown .search-multi-dropdown.ad-multi-dropdown summary {
    min-height: 48px !important;
    width: 100% !important;
    padding: 0 14px !important;
    border: 1px solid #ccd9ef !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, #fff, #fbfdff) !important;
    color: #15223d !important;
    font: 850 15px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}
.home-search__field--multi-dropdown .search-multi-dropdown.ad-multi-dropdown summary {
    border: 0 !important;
    background: transparent !important;
}
.search-multi-dropdown.ad-multi-dropdown[open] summary,
.search-multi-dropdown.ad-multi-dropdown summary:focus-visible,
.home-search__field--multi-dropdown:focus-within {
    border-color: #247cff !important;
    box-shadow: 0 0 0 4px rgba(36,124,255,.12) !important;
    background: #fff !important;
    outline: none !important;
}
.home-search__field--multi-dropdown .search-multi-dropdown.ad-multi-dropdown[open] summary,
.home-search__field--multi-dropdown .search-multi-dropdown.ad-multi-dropdown summary:focus-visible {
    box-shadow: none !important;
}
.search-multi-dropdown.ad-multi-dropdown .ad-multi-dropdown__panel,
.search-multi-dropdown.ad-multi-dropdown .search-multi-dropdown__panel.ad-multi-dropdown__panel {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: auto !important;
    width: min(300px, calc(100vw - 40px)) !important;
    max-width: none !important;
    padding: 12px !important;
    border: 1px solid #c9d7ee !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 22px 48px rgba(31,42,68,.18) !important;
    z-index: 600 !important;
}
.search-multi-dropdown.ad-multi-dropdown .search-multi-dropdown__title {
    margin: 0 0 9px !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    line-height: 1.1 !important;
    letter-spacing: .02em !important;
    text-transform: lowercase !important;
}
.search-multi-dropdown.ad-multi-dropdown .multi-checks--dropdown {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
}
.search-multi-dropdown.ad-multi-dropdown .multi-checks--dropdown .multi-check,
.search-multi-dropdown.ad-multi-dropdown .multi-checks--dropdown .multi-check span {
    width: 100% !important;
}
.search-multi-dropdown.ad-multi-dropdown .multi-checks--dropdown .multi-check span {
    min-height: 34px !important;
    justify-content: center !important;
    padding: 7px 10px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
}
.search-multi-dropdown.ad-multi-dropdown .search-multi-dropdown__panel small {
    display: block !important;
    margin-top: 9px !important;
    color: #7a86a0 !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
}
@media (max-width: 760px) {
    .search-multi-dropdown.ad-multi-dropdown .ad-multi-dropdown__panel,
    .search-multi-dropdown.ad-multi-dropdown .search-multi-dropdown__panel.ad-multi-dropdown__panel {
        width: min(100%, calc(100vw - 36px)) !important;
    }
    .search-multi-dropdown.ad-multi-dropdown .multi-checks--dropdown {
        grid-template-columns: 1fr !important;
    }
}

/* PATCH 2026-05-29: make admin users table use free space with larger readable text */
.body--admin .admin-users-table-wrap--v2{
    overflow-x:auto;
}
.body--admin .admin-users-table--v2{
    width:100%;
    min-width:1620px!important;
    table-layout:fixed;
    font-size:14px;
}
.body--admin .admin-users-table--v2 th,
.body--admin .admin-users-table--v2 td{
    padding:11px 12px!important;
    font-size:14px;
    line-height:1.28;
}
.body--admin .admin-users-table--v2 th{
    font-size:13px;
    letter-spacing:.025em;
}
.body--admin .admin-users-table--v2 th:nth-child(1),
.body--admin .admin-users-table--v2 td:nth-child(1),
.body--admin .admin-users-table--v2 .admin-users-col-id{width:78px!important;}
.body--admin .admin-users-table--v2 th:nth-child(2),
.body--admin .admin-users-table--v2 td:nth-child(2),
.body--admin .admin-users-table--v2 .admin-users-col-user{width:520px!important;}
.body--admin .admin-users-table--v2 th:nth-child(3),
.body--admin .admin-users-table--v2 td:nth-child(3),
.body--admin .admin-users-table--v2 .admin-users-col-online{width:132px!important;}
.body--admin .admin-users-table--v2 th:nth-child(4),
.body--admin .admin-users-table--v2 td:nth-child(4),
.body--admin .admin-users-table--v2 .admin-users-col-status{width:124px!important;}
.body--admin .admin-users-table--v2 th:nth-child(5),
.body--admin .admin-users-table--v2 td:nth-child(5),
.body--admin .admin-users-table--v2 .admin-users-col-plan{width:132px!important;}
.body--admin .admin-users-table--v2 th:nth-child(6),
.body--admin .admin-users-table--v2 td:nth-child(6),
.body--admin .admin-users-table--v2 .admin-users-col-email{width:174px!important;}
.body--admin .admin-users-table--v2 th:nth-child(7),
.body--admin .admin-users-table--v2 td:nth-child(7),
.body--admin .admin-users-table--v2 .admin-users-col-counts{width:122px!important;}
.body--admin .admin-users-table--v2 th:nth-child(8),
.body--admin .admin-users-table--v2 td:nth-child(8),
.body--admin .admin-users-table--v2 .admin-users-col-date{width:172px!important;}
.body--admin .admin-users-table--v2 th:nth-child(9),
.body--admin .admin-users-table--v2 td:nth-child(9),
.body--admin .admin-users-table--v2 .admin-users-col-actions{width:166px!important;}
.body--admin .admin-users-table--v2 .admin-user-summary-v2{
    grid-template-columns:52px minmax(0,1fr);
    gap:13px;
}
.body--admin .admin-users-table--v2 .admin-user-summary-v2__avatar{
    width:52px;
    height:52px;
    border-radius:15px;
    font-size:16px;
}
.body--admin .admin-users-table--v2 .admin-user-summary-v2__name{
    gap:8px;
    font-size:16px;
    line-height:1.18;
}
.body--admin .admin-users-table--v2 .admin-user-summary-v2__name a{
    font-size:16px;
    font-weight:950;
}
.body--admin .admin-users-table--v2 .admin-user-summary-v2__body small{
    font-size:12px;
    line-height:1.2;
}
.body--admin .admin-users-table--v2 .admin-online-badge{
    padding:6px 9px!important;
    font-size:12px!important;
}
.body--admin .admin-users-table--v2 .admin-online-badge__time{
    margin-top:4px;
    font-size:10px!important;
    line-height:1.2;
}
.body--admin .admin-users-table--v2 .status{
    padding:6px 10px;
    font-size:12px;
}
.body--admin .admin-users-table--v2 .admin-user-status-stack small{
    font-size:12px;
    line-height:1.2;
}
.body--admin .admin-users-table--v2 .admin-user-counts-v2{
    font-size:13px;
    gap:5px;
}
.body--admin .admin-users-table--v2 .admin-user-counts-v2 b{
    font-size:17px;
}
.body--admin .admin-users-table--v2 .admin-user-date-chip{
    min-height:26px;
    padding:4px 8px;
    gap:4px;
    font-size:12px;
}
.body--admin .admin-users-table--v2 .admin-user-action-card-v2 .admin-user-action{
    min-height:38px;
    font-size:13px;
    border-radius:12px;
}
@media(max-width:900px){
    .body--admin .admin-users-table--v2{
        min-width:1500px!important;
    }
}

/* PATCH 2026-05-29: admin users table compact readable final fix */
.body--admin .admin-users-table-wrap--v2{
    overflow-x:auto!important;
}
.body--admin .admin-users-table--v2{
    width:100%!important;
    min-width:1540px!important;
    table-layout:fixed!important;
    font-size:14px!important;
}
.body--admin .admin-users-table--v2 th,
.body--admin .admin-users-table--v2 td{
    padding:10px 10px!important;
    vertical-align:middle!important;
}
.body--admin .admin-users-table--v2 th:nth-child(1),
.body--admin .admin-users-table--v2 td:nth-child(1),
.body--admin .admin-users-table--v2 .admin-users-col-id{width:74px!important;}
.body--admin .admin-users-table--v2 th:nth-child(2),
.body--admin .admin-users-table--v2 td:nth-child(2),
.body--admin .admin-users-table--v2 .admin-users-col-user{width:360px!important;}
.body--admin .admin-users-table--v2 th:nth-child(3),
.body--admin .admin-users-table--v2 td:nth-child(3),
.body--admin .admin-users-table--v2 .admin-users-col-online{width:138px!important;}
.body--admin .admin-users-table--v2 th:nth-child(4),
.body--admin .admin-users-table--v2 td:nth-child(4),
.body--admin .admin-users-table--v2 .admin-users-col-status{width:130px!important;}
.body--admin .admin-users-table--v2 th:nth-child(5),
.body--admin .admin-users-table--v2 td:nth-child(5),
.body--admin .admin-users-table--v2 .admin-users-col-plan{width:148px!important;}
.body--admin .admin-users-table--v2 th:nth-child(6),
.body--admin .admin-users-table--v2 td:nth-child(6),
.body--admin .admin-users-table--v2 .admin-users-col-email{width:210px!important;}
.body--admin .admin-users-table--v2 th:nth-child(7),
.body--admin .admin-users-table--v2 td:nth-child(7),
.body--admin .admin-users-table--v2 .admin-users-col-counts{width:138px!important;}
.body--admin .admin-users-table--v2 th:nth-child(8),
.body--admin .admin-users-table--v2 td:nth-child(8),
.body--admin .admin-users-table--v2 .admin-users-col-date{width:172px!important;}
.body--admin .admin-users-table--v2 th:nth-child(9),
.body--admin .admin-users-table--v2 td:nth-child(9),
.body--admin .admin-users-table--v2 .admin-users-col-actions{width:250px!important;}
.body--admin .admin-users-table--v2 .admin-user-summary-v2{
    display:grid!important;
    grid-template-columns:56px minmax(0,1fr)!important;
    align-items:center!important;
    gap:14px!important;
    min-width:0!important;
}
.body--admin .admin-users-table--v2 .admin-user-summary-v2__avatar{
    width:56px!important;
    height:56px!important;
    border-radius:16px!important;
    font-size:17px!important;
}
.body--admin .admin-users-table--v2 .admin-user-summary-v2__body{
    min-width:0!important;
    overflow:hidden!important;
}
.body--admin .admin-users-table--v2 .admin-user-summary-v2__name,
.body--admin .admin-users-table--v2 .admin-user-summary-v2__name a{
    font-size:17px!important;
    line-height:1.12!important;
    font-weight:950!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
}
.body--admin .admin-users-table--v2 .admin-user-summary-v2__body small{
    display:block!important;
    margin-top:5px!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:12px!important;
    line-height:1.15!important;
}
.body--admin .admin-users-table--v2 .admin-user-action-card-v2{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    flex-wrap:nowrap!important;
    width:100%!important;
    min-width:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
}
.body--admin .admin-users-table--v2 .admin-user-action-card-v2 form,
.body--admin .admin-users-table--v2 .admin-user-action-card-v2 .inline-form{
    display:inline-flex!important;
    margin:0!important;
    width:auto!important;
    min-width:0!important;
    flex:0 0 auto!important;
}
.body--admin .admin-users-table--v2 .admin-user-action-card-v2 .admin-user-action{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    min-width:74px!important;
    min-height:36px!important;
    padding:0 12px!important;
    border-radius:12px!important;
    font-size:13px!important;
    line-height:1!important;
    white-space:nowrap!important;
}
.body--admin .admin-users-table--v2 .admin-user-action-card-v2 .admin-user-action--activate{
    min-width:66px!important;
}
.body--admin .admin-users-table--v2 .admin-user-action-card-v2 .admin-user-action--delete{
    min-width:76px!important;
}
.body--admin .admin-users-table--v2 .admin-online-badge,
.body--admin .admin-users-table--v2 .status,
.body--admin .admin-users-table--v2 .admin-user-date-chip{
    white-space:nowrap!important;
}
@media(max-width:900px){
    .body--admin .admin-users-table--v2{
        min-width:1540px!important;
    }
}

/* PATCH 2026-05-29: password reset and script request email replies */
.auth-card__note{color:#667085;line-height:1.55;margin-top:-4px;margin-bottom:18px}
.admin-script-reply-box{margin-top:10px;border:1px solid rgba(96,118,170,.18);border-radius:16px;background:#f8fbff;padding:8px 10px}
.admin-script-reply-box>summary{cursor:pointer;color:#1d62e0;font-weight:900;list-style:none}
.admin-script-reply-box>summary::-webkit-details-marker{display:none}
.admin-script-reply-form{display:grid;gap:8px;margin-top:10px;min-width:260px}
.admin-script-reply-form label{display:grid;gap:5px;color:#667085;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.02em}
.admin-script-reply-form input,.admin-script-reply-form textarea{width:100%;border:1px solid #cfe0ff;border-radius:12px;background:#fff;color:#172033;font:inherit;font-size:13px;font-weight:650;padding:9px 10px;resize:vertical}
.admin-script-reply-form textarea{min-height:110px;line-height:1.45;text-transform:none;letter-spacing:0;font-weight:650}
.admin-script-reply-form button{justify-self:start;border:0;border-radius:12px;background:#2563eb;color:#fff;font-weight:950;padding:10px 14px;cursor:pointer}
.admin-script-reply-last{display:grid;gap:2px;margin:8px 0;padding:8px 10px;border-radius:12px;background:#ecfdf5;color:#047857;font-size:12px;font-weight:800}
.admin-script-reply-last small{color:#64748b;font-weight:750}

/* PATCH 2026-05-29: admin report email replies */
.admin-report-actions {
    min-width: 360px;
}
.admin-report-actions .admin-status-form {
    margin-bottom: 10px;
}
.admin-report-reply {
    margin-top: 8px;
    padding: 9px 10px;
    border: 1px solid rgba(37, 99, 235, .14);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
}
.admin-report-reply summary {
    cursor: pointer;
    color: #1d62e0;
    font-size: 13px;
    font-weight: 900;
    list-style: none;
}
.admin-report-reply summary::-webkit-details-marker {
    display: none;
}
.admin-report-reply summary::after {
    content: '↴';
    margin-left: 6px;
    color: #7c8aa5;
}
.admin-report-reply[open] summary {
    margin-bottom: 8px;
}
.admin-report-reply form {
    display: grid;
    gap: 8px;
}
.admin-report-reply label {
    display: grid;
    gap: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
}
.admin-report-reply input,
.admin-report-reply textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(96, 118, 170, .24);
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    padding: 9px 10px;
}
.admin-report-reply textarea {
    resize: vertical;
}
.admin-report-reply button {
    justify-self: start;
    border: 0;
    border-radius: 12px;
    background: #2f6df6;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 950;
    padding: 9px 14px;
}
.admin-report-reply small,
.admin-report-reply-muted {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
}

/* PATCH 2026-05-29: selectable backup contents */
.admin-backup-create {
  overflow: visible;
}
.admin-backup-form {
  display: grid;
  gap: 16px;
}
.admin-backup-choice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.admin-backup-choice {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 126px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(31, 42, 68, .06);
  transition: .16s ease;
}
.admin-backup-choice:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, .28);
  box-shadow: 0 16px 34px rgba(31, 42, 68, .10);
}
.admin-backup-choice input {
  position: absolute;
  inset: 12px 12px auto auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #2563eb;
}
.admin-backup-choice:has(input:checked) {
  border-color: rgba(37, 99, 235, .55);
  background: linear-gradient(180deg, #eff6ff, #fff);
  box-shadow: 0 16px 36px rgba(37, 99, 235, .16);
}
.admin-backup-choice--full:has(input:checked) {
  border-color: rgba(34, 197, 94, .55);
  background: linear-gradient(180deg, #ecfdf5, #fff);
}
.admin-backup-choice__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #eef5ff;
  color: #1d62e0;
  font-size: 24px;
  font-weight: 950;
}
.admin-backup-choice__body {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding-right: 20px;
}
.admin-backup-choice__body strong {
  color: #15223a;
  font-size: 16px;
  line-height: 1.15;
}
.admin-backup-choice__body small {
  color: #64748b;
  font-weight: 750;
  line-height: 1.25;
}
.admin-backup-choice__body code {
  padding: 1px 5px;
  border-radius: 7px;
  background: #eef2ff;
  color: #334155;
}
.admin-backup-custom-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border: 1px dashed rgba(37, 99, 235, .28);
  border-radius: 18px;
  background: #f8fbff;
}
.admin-backup-custom-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  background: #fff;
  color: #15223a;
  font-weight: 850;
  cursor: pointer;
}
.admin-backup-custom-options input {
  accent-color: #2563eb;
}
.admin-backup-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid rgba(245, 158, 11, .22);
  color: #92400e;
  font-weight: 750;
}
.admin-backup-note strong {
  white-space: nowrap;
}
.admin-backup-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #eef5ff;
  color: #1d4ed8;
  font-weight: 900;
  font-size: 13px;
}
@media (max-width: 1320px) {
  .admin-backup-choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .admin-backup-choice-grid { grid-template-columns: 1fr; }
  .admin-backup-note { display: grid; }
}

/* PATCH 2026-05-29: message photo attachments */
.message-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px;margin-top:10px;max-width:360px}.message-photo{display:block;position:relative;overflow:hidden;border-radius:14px;border:1px solid rgba(96,118,170,.20);background:#eef5ff;box-shadow:0 8px 18px rgba(31,42,68,.08)}.message-photo::before{content:"";display:block;padding-top:100%}.message-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.message-attach-box{display:grid;gap:10px;margin-top:10px;padding:12px;border:1px solid rgba(96,118,170,.16);border-radius:18px;background:linear-gradient(180deg,#fff,#f8fbff)}.message-attach-box__head{display:flex;align-items:center;justify-content:space-between;gap:12px}.message-attach-box__head strong{color:#111827;font-weight:950}.message-attach-box__head span{color:#64748b;font-size:12px;font-weight:800}.message-upload-input{display:flex!important;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px dashed rgba(37,99,235,.35);border-radius:14px;background:#f8fbff;color:#1d4ed8;font-weight:900;cursor:pointer}.message-upload-input input{max-width:260px;font-size:12px}.message-profile-photo-picker{border:1px solid rgba(96,118,170,.16);border-radius:14px;background:#fff}.message-profile-photo-picker summary{padding:10px 12px;cursor:pointer;color:#1f2a44;font-weight:900}.message-profile-photo-picker__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(68px,1fr));gap:8px;padding:0 10px 10px}.message-profile-photo-choice{position:relative;display:block;cursor:pointer}.message-profile-photo-choice input{position:absolute;left:8px;top:8px;z-index:2;width:18px;height:18px;accent-color:#2563eb}.message-profile-photo-choice span{display:block;position:relative;overflow:hidden;border-radius:13px;border:2px solid transparent;background:#eef5ff}.message-profile-photo-choice span::before{content:"";display:block;padding-top:100%}.message-profile-photo-choice img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.message-profile-photo-choice input:checked+span{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14)}@media(max-width:720px){.message-attach-box__head{display:grid}.message-upload-input{display:grid!important}.message-upload-input input{max-width:100%}.message-photo-grid{max-width:100%}}

/* PATCH 2026-05-29: admin preview for unpublished ads */
.admin-ad-preview-notice{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 16px;padding:12px 14px;border:1px solid rgba(245,158,11,.35);border-radius:18px;background:linear-gradient(135deg,#fff7ed,#fff);color:#1f2a44;box-shadow:0 10px 24px rgba(217,119,6,.08)}.admin-ad-preview-notice strong{color:#9a3412;font-weight:950}.admin-ad-preview-notice span{flex:1;color:#64748b;font-weight:750}.admin-ad-preview-notice a{font-weight:950;color:#2563eb}@media(max-width:720px){.admin-ad-preview-notice{display:grid}}

/* PATCH 2026-05-29: duplicate ad link in moderation reason */
.admin-duplicate-ad-link{display:inline-flex;align-items:center;min-height:22px;padding:0 8px;border-radius:999px;background:#eef5ff;color:#1d4ed8!important;font-weight:950;text-decoration:none;border:1px solid rgba(37,99,235,.18)}.admin-duplicate-ad-link:hover{background:#dbeafe;color:#1e40af!important;text-decoration:none}

/* PATCH 2026-05-29: compact message composer tools, emoji pack and read states */
.message-reply-form{align-items:stretch}
.message-compose-field{margin:0}
.message-compose-toolbar{display:flex;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap}
.message-compose-tool{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:0 14px;border:1px solid rgba(96,118,170,.18);border-radius:14px;background:#f3f7ff;color:#111827;font-weight:950;cursor:pointer;box-shadow:0 8px 18px rgba(31,42,68,.06)}
.message-compose-tool:hover,.message-compose-tool.is-active{background:#2563eb;border-color:#2563eb;color:#fff;box-shadow:0 10px 22px rgba(37,99,235,.22)}
.message-compose-toolbar__hint{margin-left:auto;color:#64748b;font-size:12px;font-weight:850;white-space:nowrap}
.message-compose-panels{display:grid;gap:8px;margin-top:8px}
.message-compose-panel{padding:10px;border:1px solid rgba(96,118,170,.16);border-radius:16px;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 10px 24px rgba(31,42,68,.07)}
.message-compose-panel[hidden]{display:none!important}
.message-compose-panel__head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.message-compose-panel__head strong{color:#111827;font-size:14px;font-weight:950}
.message-compose-panel__head span{color:#64748b;font-size:12px;font-weight:800}
.message-compose-photo-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.message-upload-input--compact{display:inline-flex!important;align-items:center;justify-content:center;width:auto;min-height:38px;padding:0 12px;border-style:solid;background:#2563eb;color:#fff;border-color:#2563eb;border-radius:14px;box-shadow:0 10px 22px rgba(37,99,235,.20)}
.message-upload-input--compact input{max-width:170px;color:#fff;font-size:11px}
.message-profile-photo-picker--inline{position:relative;display:inline-block;border:0;background:transparent}
.message-profile-photo-picker--inline summary{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 12px;border:1px solid rgba(96,118,170,.18);border-radius:14px;background:#fff;color:#111827;list-style:none;box-shadow:0 8px 18px rgba(31,42,68,.05)}
.message-profile-photo-picker--inline summary::-webkit-details-marker{display:none}
.message-profile-photo-picker--inline[open] summary{border-color:#2563eb;color:#2563eb}
.message-profile-photo-picker--inline .message-profile-photo-picker__grid{position:absolute;left:0;top:calc(100% + 8px);z-index:30;width:min(360px,78vw);max-height:310px;overflow:auto;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));padding:10px;border:1px solid rgba(96,118,170,.18);border-radius:16px;background:#fff;box-shadow:0 18px 42px rgba(31,42,68,.18)}
.message-emoji-grid{display:grid;grid-template-columns:repeat(10,32px);gap:6px;align-items:center}
.message-emoji-button{width:32px;height:32px;border:1px solid rgba(96,118,170,.16);border-radius:10px;background:#fff;font-size:18px;line-height:1;cursor:pointer;box-shadow:0 4px 10px rgba(31,42,68,.05)}
.message-emoji-button:hover{transform:translateY(-1px);border-color:#2563eb;background:#eef5ff;box-shadow:0 8px 16px rgba(37,99,235,.12)}
.message-read-status{display:inline-flex!important;align-items:center;gap:5px;width:max-content;margin-top:8px;padding:4px 8px;border-radius:999px;font-size:11px!important;font-weight:950!important;line-height:1!important}
.message-read-status.is-read{background:rgba(34,197,94,.14);color:#047857!important}
.message-read-status.is-unread{background:rgba(245,158,11,.16);color:#b45309!important}
.message-bubble.is-mine .message-read-status.is-read{background:rgba(255,255,255,.22);color:#fff!important}
.message-bubble.is-mine .message-read-status.is-unread{background:rgba(255,255,255,.18);color:#fff7ed!important}
@media(max-width:720px){.message-compose-toolbar__hint{width:100%;margin-left:0}.message-compose-photo-actions{display:grid}.message-upload-input--compact,.message-profile-photo-picker--inline summary{width:100%}.message-profile-photo-picker--inline .message-profile-photo-picker__grid{position:static;width:100%;margin-top:8px}.message-emoji-grid{grid-template-columns:repeat(8,32px)}}

/* PATCH 2026-05-29: fixed message composer toolbar layout */
.message-reply-form{grid-template-columns:minmax(0,1fr)!important;gap:10px!important;align-items:stretch!important;max-width:100%}
.message-reply-form .message-compose-field{display:grid!important;gap:8px!important;margin:0!important}
.message-reply-form .message-compose-field textarea{min-height:92px!important;width:100%!important}
.message-reply-form .message-compose-toolbar{display:flex!important;align-items:center!important;gap:10px!important;margin:0!important;min-height:40px!important;flex-wrap:wrap!important}
.message-reply-form .message-compose-tool{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:38px!important;width:auto!important;padding:0 16px!important;border:1px solid rgba(96,118,170,.18)!important;border-radius:14px!important;background:#f3f7ff!important;color:#111827!important;font-size:14px!important;font-weight:950!important;line-height:1!important;box-shadow:0 8px 18px rgba(31,42,68,.06)!important;cursor:pointer!important;white-space:nowrap!important}
.message-reply-form .message-compose-tool:hover,.message-reply-form .message-compose-tool.is-active{background:#2563eb!important;border-color:#2563eb!important;color:#fff!important;box-shadow:0 10px 22px rgba(37,99,235,.22)!important;transform:translateY(-1px)}
.message-reply-form .message-compose-toolbar__hint{margin-left:auto!important;color:#64748b!important;font-size:12px!important;font-weight:850!important;white-space:nowrap!important}
.message-reply-form .message-compose-panels{display:block!important;margin:0!important;min-height:0!important}
.message-reply-form .message-compose-panel{margin:0 0 2px!important;padding:12px!important;border:1px solid rgba(96,118,170,.16)!important;border-radius:16px!important;background:linear-gradient(180deg,#fff,#f8fbff)!important;box-shadow:0 10px 24px rgba(31,42,68,.07)!important;max-width:560px!important}
.message-reply-form .message-compose-panel[hidden]{display:none!important}
.message-reply-form .message-compose-panel__head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin-bottom:10px!important}
.message-reply-form .message-compose-photo-actions{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important}
.message-reply-form .message-upload-input--compact{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-height:38px!important;padding:0 12px!important;border:1px solid #2563eb!important;background:#2563eb!important;color:#fff!important;border-radius:14px!important;font-size:13px!important;font-weight:950!important;box-shadow:0 10px 22px rgba(37,99,235,.20)!important;cursor:pointer!important}
.message-reply-form .message-upload-input--compact input{max-width:185px!important;color:#fff!important;font-size:11px!important}
.message-reply-form .message-profile-photo-picker--inline summary{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:38px!important;width:auto!important;padding:0 14px!important;border:1px solid rgba(96,118,170,.18)!important;border-radius:14px!important;background:#fff!important;color:#111827!important;font-size:13px!important;font-weight:950!important;box-shadow:0 8px 18px rgba(31,42,68,.05)!important;cursor:pointer!important;list-style:none!important}
.message-reply-form .message-profile-photo-picker--inline .message-profile-photo-picker__grid{z-index:80!important}
.message-reply-form .message-emoji-grid{display:grid!important;grid-template-columns:repeat(10,32px)!important;gap:6px!important;align-items:center!important}
.message-reply-form button.message-emoji-button{display:inline-grid!important;place-items:center!important;width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;border:1px solid rgba(96,118,170,.16)!important;border-radius:10px!important;background:#fff!important;color:#111827!important;font-size:18px!important;font-weight:400!important;line-height:1!important;box-shadow:0 4px 10px rgba(31,42,68,.05)!important;cursor:pointer!important}
.message-reply-form button.message-emoji-button:hover{background:#eef5ff!important;border-color:#2563eb!important;box-shadow:0 8px 16px rgba(37,99,235,.12)!important;transform:translateY(-1px)}
.message-reply-form>button[type="submit"]{width:100%!important;min-height:52px!important;margin:0!important;border-radius:16px!important}
@media(max-width:720px){.message-reply-form .message-compose-toolbar__hint{width:100%!important;margin-left:0!important}.message-reply-form .message-compose-panel{max-width:100%!important}.message-reply-form .message-compose-photo-actions{display:grid!important}.message-reply-form .message-upload-input--compact,.message-reply-form .message-profile-photo-picker--inline summary{width:100%!important}.message-reply-form .message-emoji-grid{grid-template-columns:repeat(8,32px)!important}}

/* PATCH 2026-05-29: news module */
.news-hero {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  overflow: hidden;
  position: relative;
}
.news-hero::after {
  content: "";
  position: absolute;
  right: -48px;
  top: -58px;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37,99,235,.16), rgba(37,99,235,0));
  pointer-events: none;
}
.news-hero h1,
.news-article h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 52px);
  line-height: .98;
  letter-spacing: -.05em;
}
.news-hero p {
  max-width: 820px;
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 700;
}
.news-list {
  display: grid;
  gap: 14px;
}
.news-card {
  display: grid;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.news-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2563eb, #a855f7);
}
.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
}
.news-card__pin {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff7ed;
  color: #b45309;
  font-size: 12px;
  font-weight: 950;
}
.news-card h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.news-card h2 a {
  color: #111827;
  text-decoration: none;
}
.news-card h2 a:hover {
  color: #2563eb;
}
.news-card p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 650;
}
.news-card__more,
.news-back-link {
  justify-self: start;
  color: #2563eb;
  font-weight: 950;
  text-decoration: none;
}
.news-card__more:hover,
.news-back-link:hover {
  text-decoration: underline;
}
.news-pagination {
  margin-top: 18px;
}
.news-article {
  display: grid;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}
.news-article__lead {
  margin: 0;
  padding: 16px 18px;
  border-radius: 20px;
  background: #f8fbff;
  color: #334155;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 800;
}
.news-richtext {
  color: #1f2937;
  font-size: 17px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}
.news-richtext p {
  margin: 0 0 14px;
}
.news-richtext h2,
.news-richtext h3 {
  margin: 24px 0 10px;
  color: #111827;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.news-richtext h2 {
  font-size: 28px;
}
.news-richtext h3 {
  font-size: 23px;
}
.news-richtext ul,
.news-richtext ol {
  margin: 10px 0 16px 24px;
  padding: 0;
}
.news-richtext li {
  margin: 5px 0;
}
.news-richtext blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 4px solid #2563eb;
  border-radius: 16px;
  background: #f1f5ff;
  color: #24324a;
  font-weight: 750;
}
.news-richtext a {
  color: #2563eb;
  font-weight: 900;
}
.news-richtext pre,
.news-richtext code {
  border-radius: 10px;
  background: #111827;
  color: #f9fafb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.news-richtext code {
  padding: 2px 6px;
}
.news-richtext pre {
  padding: 14px;
  overflow: auto;
}
.admin-page-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}
.admin-news-table .admin-news-actions {
  min-width: 230px;
}
.admin-news-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
.admin-news-actions form {
  margin: 0;
}
.admin-date-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef5ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}
.admin-news-form {
  display: grid;
  gap: 16px;
}
.admin-news-form label {
  display: grid;
  gap: 7px;
  color: #24324a;
  font-weight: 900;
}
.admin-news-form input[type="text"],
.admin-news-form input[type="datetime-local"],
.admin-news-form select,
.admin-news-form textarea {
  width: 100%;
  border: 1px solid rgba(96,118,170,.22);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-weight: 750;
  outline: none;
}
.admin-news-form input:focus,
.admin-news-form select:focus,
.admin-news-form textarea:focus {
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 0 0 4px rgba(37,99,235,.09);
}
.admin-news-form__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 220px 230px;
  gap: 12px;
  align-items: end;
}
.admin-news-pin {
  display: inline-flex!important;
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-content: start;
  gap: 9px!important;
  padding: 10px 12px;
  border-radius: 16px;
  background: #f8fbff;
  color: #1f2a44!important;
}
.admin-news-pin input {
  width: 18px;
  height: 18px;
}
.admin-news-editor-field {
  display: grid;
  gap: 8px;
}
.admin-news-rich-editor {
  border-radius: 20px;
  overflow: hidden;
}
.admin-news-rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.admin-news-rich-toolbar button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 11px;
  font-weight: 950;
}
.admin-news-rich-content {
  min-height: 340px;
  font-size: 16px;
  line-height: 1.65;
}
.admin-news-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
@media (max-width: 1080px) {
  .admin-news-form__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .admin-news-form__grid,
  .admin-page-head__actions {
    grid-template-columns: 1fr;
  }
  .admin-page-head__actions,
  .admin-news-form__actions,
  .admin-news-actions {
    justify-content: stretch;
  }
  .admin-page-head__actions a,
  .admin-news-form__actions a,
  .admin-news-form__actions button {
    width: 100%;
  }
}

/* PATCH 2026-05-29: reliable news editor body source/sync */
.admin-news-rich-source{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    min-height:1px!important;
    padding:0!important;
    margin:-1px!important;
    border:0!important;
    opacity:.01!important;
    overflow:hidden!important;
    clip:rect(0 0 0 0)!important;
    clip-path:inset(50%)!important;
    white-space:nowrap!important;
}
.admin-news-source-details{
    margin-top:10px;
    border:1px solid rgba(96,118,170,.16);
    border-radius:16px;
    background:#f8fbff;
    overflow:hidden;
}
.admin-news-source-details summary{
    cursor:pointer;
    padding:10px 12px;
    color:#1f2a44;
    font-size:13px;
    font-weight:900;
}
.admin-news-source-details p{
    margin:0;
    padding:0 12px 8px;
    color:#64748b;
    font-size:12px;
    font-weight:700;
}
.admin-news-source-mirror{
    display:block;
    width:calc(100% - 24px);
    margin:0 12px 12px;
    min-height:160px;
    font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
    font-size:13px;
    line-height:1.45;
}

/* PATCH 2026-05-29: news editor visual/source modes */
.admin-news-editor-shell{
  display:grid;
  gap:10px;
  border:1px solid rgba(96,118,170,.16);
  border-radius:20px;
  background:#f8fbff;
  overflow:hidden;
}
.admin-news-editor-tabs{
  display:flex;
  gap:8px;
  align-items:center;
  padding:10px 10px 0;
  background:#f8fbff;
}
.admin-news-editor-tabs button{
  min-height:36px;
  padding:0 14px;
  border:1px solid rgba(37,99,235,.18);
  border-radius:12px;
  background:#fff;
  color:#1f2a44;
  font-size:13px;
  font-weight:950;
  cursor:pointer;
}
.admin-news-editor-tabs button:hover{
  border-color:rgba(37,99,235,.42);
  box-shadow:0 8px 18px rgba(37,99,235,.08);
}
.admin-news-editor-tabs button.is-active{
  background:#2563eb;
  border-color:#2563eb;
  color:#fff;
  box-shadow:0 10px 22px rgba(37,99,235,.22);
}
.admin-news-editor-pane{
  padding:0 10px 10px;
}
.admin-news-editor-pane[hidden]{display:none!important}
.admin-news-editor-pane--visual .admin-news-rich-editor{
  border:1px solid rgba(96,118,170,.16);
  background:#fff;
}
.admin-news-source-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  padding:10px 12px;
  border:1px solid rgba(96,118,170,.16);
  border-bottom:0;
  border-radius:16px 16px 0 0;
  background:#eef5ff;
}
.admin-news-source-head strong{
  color:#1f2a44;
  font-size:14px;
  font-weight:950;
}
.admin-news-source-head span{
  color:#64748b;
  font-size:12px;
  font-weight:750;
  line-height:1.25;
  text-align:right;
}
.admin-news-editor-pane--source .admin-news-source-mirror{
  display:block;
  width:100%;
  min-height:420px;
  margin:0;
  padding:14px;
  border:1px solid rgba(96,118,170,.16);
  border-radius:0 0 16px 16px;
  background:#fff;
  color:#111827;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  font-size:14px;
  font-weight:700;
  line-height:1.55;
  resize:vertical;
}
.admin-news-rich-content h2,
.admin-news-rich-content h3,
.news-article__body h2,
.news-article__body h3{
  margin:1em 0 .45em;
  color:#111827;
  line-height:1.15;
}
.admin-news-rich-content p,
.news-article__body p{margin:.7em 0}
.admin-news-rich-content ul,
.admin-news-rich-content ol,
.news-article__body ul,
.news-article__body ol{padding-left:1.35em;margin:.75em 0}
.admin-news-rich-content blockquote,
.news-article__body blockquote{
  margin:1em 0;
  padding:12px 14px;
  border-left:4px solid #2563eb;
  border-radius:14px;
  background:#eef5ff;
  color:#1f2a44;
}
@media(max-width:720px){
  .admin-news-editor-tabs{flex-wrap:wrap}
  .admin-news-editor-tabs button{flex:1 1 140px}
  .admin-news-source-head{display:block}
  .admin-news-source-head span{display:block;margin-top:4px;text-align:left}
}

/* PATCH 2026-05-29: news editor normal visual font and stable focus */
.admin-news-editor-field{
  display:grid!important;
  gap:8px!important;
  font-weight:400!important;
}
.admin-news-editor-title{
  color:#111827!important;
  font-size:14px!important;
  font-weight:950!important;
  line-height:1.25!important;
}
.admin-news-editor-field .admin-news-rich-content,
.admin-news-editor-field .admin-news-source-mirror{
  font-weight:400!important;
}
.admin-news-editor-field .admin-news-rich-content p,
.admin-news-editor-field .admin-news-rich-content li,
.admin-news-editor-field .admin-news-rich-content blockquote,
.news-article__body p,
.news-article__body li,
.news-article__body blockquote{
  font-weight:400!important;
}
.admin-news-editor-field .admin-news-rich-content strong,
.admin-news-editor-field .admin-news-rich-content b,
.news-article__body strong,
.news-article__body b{
  font-weight:850!important;
}
.admin-news-editor-field .admin-news-rich-content h2,
.admin-news-editor-field .admin-news-rich-content h3,
.news-article__body h2,
.news-article__body h3{
  font-weight:950!important;
}
  line-height:1!important;
  box-shadow:0 4px 10px rgba(31,42,68,.05)!important;
  cursor:pointer!important;
}
.message-reply-form button.message-emoji-button:hover{
  background:#eef5ff!important;
  border-color:#2563eb!important;
  box-shadow:0 8px 16px rgba(37,99,235,.12)!important;
  transform:translateY(-1px)!important;
}
.message-reply-form>button[type="submit"]{
  width:100%!important;
  min-height:52px!important;
  margin:0!important;
  border-radius:16px!important;
}
.message-attachment-preview{
  max-width:620px;
  padding:10px 12px;
  border:1px dashed rgba(37,99,235,.25);
  border-radius:16px;
  background:#f8fbff;
}
.message-attachment-preview[hidden]{display:none!important}
.message-attachment-preview__head{
  margin-bottom:8px;
  color:#64748b;
  font-size:12px;
  font-weight:900;
}
.message-attachment-preview__grid{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.message-attachment-preview__item{
  display:block;
  width:62px;
  height:62px;
  overflow:hidden;
  border:1px solid rgba(96,118,170,.18);
  border-radius:14px;
  background:#eef5ff;
}
.message-attachment-preview__item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.message-photo-grid{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin-top:10px!important;
}


/* PATCH 2026-05-29: sender can delete own unread messages; profile-photo message attachments display safely */
.message-bubble__meta-row{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  margin-top:8px!important;
}
.message-bubble__meta-row .message-read-status{
  margin-top:0!important;
}
.message-delete-form{
  display:inline-flex!important;
  margin:0!important;
  padding:0!important;
}
.message-delete-form button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:24px!important;
  padding:0 9px!important;
  border:1px solid rgba(239,68,68,.28)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.16)!important;
  color:#fff!important;
  font-size:11px!important;
  font-weight:950!important;
  line-height:1!important;
  cursor:pointer!important;
  box-shadow:none!important;
}
.message-delete-form button:hover{
  background:#fff!important;
  color:#dc2626!important;
  border-color:#fecaca!important;
}
.message-profile-photo-choice input:checked+span::after{
  content:"✓";
  position:absolute;
  right:6px;
  top:6px;
  z-index:3;
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:999px;
  background:#2563eb;
  color:#fff;
  font-size:13px;
  font-weight:950;
  box-shadow:0 6px 14px rgba(37,99,235,.25);
}
.message-photo-grid .message-photo{
  flex:0 0 86px!important;
  width:86px!important;
  max-width:86px!important;
}
@media(max-width:720px){
  .message-photo-grid .message-photo{flex-basis:74px!important;width:74px!important;max-width:74px!important}
}

/* PATCH: profile self deletion flow */
.cabinet-delete-profile-link{
    display:flex;
    justify-content:flex-end;
    margin:-8px 0 18px;
    padding:0 4px;
}
.cabinet-delete-profile-link a{
    color:#dc2626;
    font-weight:900;
    text-decoration:none;
}
.cabinet-delete-profile-link a:hover{
    color:#991b1b;
    text-decoration:underline;
}
.profile-delete-page{
    border-color:#fecaca;
    background:linear-gradient(135deg,#fff,#fff7f7);
}
.profile-delete-card{
    display:grid;
    grid-template-columns:76px minmax(0,1fr);
    gap:18px;
    align-items:start;
}
.profile-delete-card__icon{
    display:grid;
    place-items:center;
    width:64px;
    height:64px;
    border-radius:22px;
    background:#fee2e2;
    color:#b91c1c;
    font-weight:1000;
    font-size:26px;
    box-shadow:0 12px 28px rgba(220,38,38,.14);
}
.profile-delete-card--vip .profile-delete-card__icon{
    background:#fff7ed;
    color:#b45309;
    font-size:18px;
}
.profile-delete-card__body h2{
    margin:0 0 8px;
    color:#111827;
    font-size:28px;
    letter-spacing:-.02em;
}
.profile-delete-card__body p{
    margin:0 0 18px;
    color:#64748b;
    max-width:860px;
}
.profile-delete-form textarea{
    min-height:120px;
}
.profile-delete-actions{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:10px;
    margin-top:12px;
}
.profile-delete-actions button,
.profile-delete-offer button{
    border:0;
    cursor:pointer;
    font:inherit;
}
.profile-delete-summary{
    display:grid;
    gap:5px;
    padding:14px;
    border:1px solid rgba(220,38,38,.18);
    border-radius:18px;
    background:#fffafa;
}
.profile-delete-summary span{
    color:#991b1b;
    font-size:12px;
    font-weight:900;
    letter-spacing:.06em;
    text-transform:uppercase;
}
.profile-delete-summary small{
    color:#475569;
    line-height:1.45;
}
.profile-delete-offer-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}
.profile-delete-offer{
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:18px;
    border:1px solid rgba(96,118,170,.16);
    border-radius:22px;
    background:linear-gradient(180deg,#fff,#f8fbff);
}
.profile-delete-offer strong{
    font-size:20px;
}
.profile-delete-offer span{
    flex:1;
    color:#64748b;
}
.profile-delete-offer--accept{
    border-color:rgba(34,197,94,.28);
    background:linear-gradient(180deg,#fff,#f0fdf4);
}
.profile-delete-offer--delete{
    border-color:rgba(220,38,38,.24);
    background:linear-gradient(180deg,#fff,#fff5f5);
}
.admin-profile-deletions-comment{
    max-width:360px;
    white-space:normal;
}
.admin-profile-deletions-table td{
    vertical-align:top;
}
@media (max-width:760px){
    .profile-delete-card{
        grid-template-columns:1fr;
    }
    .profile-delete-card__icon{
        width:54px;
        height:54px;
        border-radius:18px;
    }
    .profile-delete-offer-grid{
        grid-template-columns:1fr;
    }
    .profile-delete-actions{
        justify-content:stretch;
    }
    .profile-delete-actions .button-link,
    .profile-delete-actions button,
    .profile-delete-offer button{
        width:100%;
        justify-content:center;
    }
}

/* FINAL profile deletions exact data and full board descriptions */
.admin-profile-deletions-search label{
    display:flex;
    flex-direction:column;
    gap:6px;
    min-width:min(420px,100%);
    font-weight:800;
}
.admin-profile-deletions-search input{
    min-height:42px;
    border:1px solid rgba(96,118,170,.25);
    border-radius:14px;
    padding:10px 12px;
    background:#fff;
    color:#07172f;
    font:inherit;
}
.admin-profile-deletions-search button{
    align-self:flex-end;
}
.admin-profile-deletions-note{
    margin:12px 0 0;
}
.admin-profile-deletions-email,
.admin-profile-deletions-ip{
    min-width:220px;
    max-width:360px;
    word-break:break-word;
    overflow-wrap:anywhere;
}
.admin-profile-deletions-email strong,
.admin-profile-deletions-ip strong{
    display:block;
    color:#07172f;
}
.admin-profile-deletions-email small,
.admin-profile-deletions-ip small{
    display:block;
    margin-top:4px;
    color:#64748b;
    line-height:1.35;
    word-break:break-all;
}
.home-category{
    align-items:center!important;
    min-height:unset!important;
    height:auto!important;
}
.home-category__body{
    min-width:0;
}
.home-category__body small{
    display:block!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    line-height:1.38!important;
    max-height:none!important;
}
.category-card small{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    line-height:1.38!important;
}
@media (max-width:760px){
    .admin-profile-deletions-search label,
    .admin-profile-deletions-search button,
    .admin-profile-deletions-search .button-link{
        width:100%;
        align-self:stretch;
        justify-content:center;
    }
    .home-category{
        grid-template-columns:64px minmax(0,1fr)!important;
    }
    .home-category__meta{
        grid-column:2;
        justify-content:flex-start;
    }
}

/* FINAL user gifts paid services */
.paid-service-card--gift{border-color:rgba(236,72,153,.32);background:linear-gradient(180deg,#fff,#fff7fb);box-shadow:0 18px 42px rgba(190,24,93,.1)}
.paid-service-card--gift .paid-service-card__badge{background:linear-gradient(135deg,#ffe4f1,#fb71b8 55%,#be185d);color:#fff;border-color:#ffc1df}
.paid-service-gift-link{width:100%;justify-content:center;margin-top:10px}
.gift-page-hero{background:linear-gradient(135deg,#fff,#f8fbff 54%,#fff3fb)}
.gift-send-panel,.gift-list-panel{margin-top:20px}
.gift-send-form{display:grid;gap:16px}
.gift-field{display:grid;gap:7px;font-weight:900;color:#344054}
.gift-field input,.gift-field textarea,.gift-field select{width:100%;border:1px solid #d4e0f3;border-radius:14px;padding:12px 14px;background:#fff;color:#172033;font:inherit;font-weight:800}
.gift-field textarea{min-height:98px;resize:vertical;font-weight:650;line-height:1.45}
.gift-field small{color:#667085;font-weight:700;line-height:1.35}
.gift-options-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.gift-option-card{position:relative;display:grid;gap:8px;padding:18px;border:1px solid rgba(96,118,170,.18);border-radius:20px;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 14px 34px rgba(31,42,68,.08);cursor:pointer}
.gift-option-card input{position:absolute;left:14px;top:14px;width:18px;height:18px;accent-color:#2f6bff}
.gift-option-card__badge{justify-self:end;display:inline-grid;place-items:center;padding:5px 9px;border-radius:999px;background:linear-gradient(135deg,#fff4c2,#f7bc42 55%,#d58a16);color:#5b3500;font-size:11px;font-weight:950;letter-spacing:.08em}
.gift-option-card strong{font-size:20px;color:#172033;padding-right:72px}
.gift-option-card em{font-style:normal;font-size:28px;line-height:1;color:#172033;font-weight:950}
.gift-option-card small{color:#667085;line-height:1.4;font-weight:650}
.gift-option-card b{color:#dc2626;font-size:13px}
.gift-option-card:has(input:checked){border-color:#2f6bff;box-shadow:0 18px 42px rgba(47,107,255,.16)}
.gift-option-card.is-disabled{opacity:.68}
.gift-list{display:grid;gap:12px}
.gift-list-card{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:16px;border:1px solid rgba(96,118,170,.16);border-radius:18px;background:#fff;box-shadow:0 12px 30px rgba(31,42,68,.06)}
.gift-list-card span{display:block;color:#7b86a3;text-transform:uppercase;font-size:12px;font-weight:900;letter-spacing:.06em}
.gift-list-card h3{margin:4px 0 4px;color:#172033}
.gift-list-card p{margin:0;color:#667085}.gift-list-card small{display:block;margin-top:6px;color:#475569;font-weight:700}
.gift-history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.gift-history-grid h3{margin:0 0 10px}.gift-history-list{display:grid;gap:10px}
.gift-history-row{display:grid;gap:3px;padding:12px;border:1px solid rgba(96,118,170,.14);border-radius:15px;background:#fff}
.gift-history-row strong{color:#172033}.gift-history-row span,.gift-history-row small{color:#667085;font-size:13px}
.gift-receive-actions{display:flex;gap:10px;flex-wrap:wrap}.gift-receive-form .button-link{justify-content:center}
.gift-modal{position:fixed;inset:0;z-index:10001;display:grid;place-items:center;padding:22px}
.gift-modal__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.62);backdrop-filter:blur(8px)}
.gift-modal__dialog{position:relative;z-index:1;width:min(100%,520px);padding:30px;border-radius:30px;border:1px solid rgba(255,193,223,.84);background:linear-gradient(135deg,#fff 0%,#fff7fb 50%,#f7fbff 100%);box-shadow:0 34px 90px rgba(15,23,42,.28);text-align:center;color:#172033}
.gift-modal__icon{display:inline-grid;place-items:center;width:74px;height:74px;margin:0 auto 14px;border-radius:26px;background:linear-gradient(135deg,#ffe4f1,#fb71b8 55%,#be185d);box-shadow:0 18px 42px rgba(190,24,93,.22);font-size:34px}
.gift-modal__dialog h2{margin:4px 0 10px;font-size:32px;line-height:1.1;letter-spacing:-.04em;color:#172033}
.gift-modal__dialog p{margin:0 auto 14px;max-width:410px;color:#667085;line-height:1.55}.gift-modal__dialog p strong{color:#172033}
.gift-modal__message{padding:10px 12px;border-radius:16px;background:#fff;border:1px solid rgba(236,72,153,.16);font-weight:750;color:#344054!important}
.gift-modal__actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:18px}.gift-modal__actions form{margin:0}
.profile-action-button--gift{background:#fff7fb!important;border-color:#ffc1df!important;color:#be185d!important}
@media(max-width:760px){.gift-history-grid{grid-template-columns:1fr}.gift-list-card{display:grid}.gift-list-card form,.gift-list-card .button-link{width:100%}.gift-modal{padding:14px}.gift-modal__dialog{padding:24px 18px;border-radius:24px}.gift-modal__dialog h2{font-size:26px}.gift-modal__actions{display:grid}.gift-modal__actions .button-link{width:100%;justify-content:center}}

/* FINAL gifts only from public profile */
.gift-public-send-panel{overflow:hidden}
.gift-recipient-status{align-items:flex-start}
.gift-recipient-card{display:grid;gap:4px;padding:16px 18px;border:1px solid rgba(96,118,170,.16);border-radius:18px;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 12px 30px rgba(31,42,68,.06)}
.gift-recipient-card span{color:#7b86a3;text-transform:uppercase;font-size:12px;font-weight:950;letter-spacing:.06em}
.gift-recipient-card strong{color:#172033;font-size:22px;font-weight:950;line-height:1.15}
.gift-recipient-card small{color:#667085;font-weight:750}
.gift-send-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.gift-send-actions .button-link{justify-content:center}
@media(max-width:760px){.gift-send-actions{display:grid}.gift-send-actions .button-link{width:100%}}

/* PATCH safety page and contact warning */
.footer__safety-link{color:inherit;text-decoration:none;border-bottom:1px dashed rgba(255,255,255,.48)}
.footer__safety-link:hover{border-bottom-color:currentColor}
.footer__telegram-link{display:inline-flex;align-items:center;gap:9px}
.footer__telegram-icon{display:block;width:28px;height:28px;flex:0 0 28px;border-radius:50%;object-fit:cover;box-shadow:0 7px 16px rgba(37,99,235,.20)}
@media(max-width:560px){.footer__telegram-icon{width:26px;height:26px;flex-basis:26px}}
.contact-warning-modal[hidden]{display:none!important}
.contact-warning-modal{position:fixed;inset:0;z-index:1700;display:grid;place-items:center;padding:18px}
.contact-warning-modal__backdrop{position:absolute;inset:0;background:rgba(5,15,35,.7);backdrop-filter:blur(5px)}
.contact-warning-modal__dialog{position:relative;z-index:1;width:min(560px,100%);padding:24px;border-radius:22px;background:#fff;box-shadow:0 28px 80px rgba(2,12,32,.28)}
.contact-warning-modal__close{position:absolute;right:14px;top:12px;border:0;background:transparent;font-size:28px;line-height:1;color:#64748b;cursor:pointer}
.contact-warning-modal__icon{display:grid;place-items:center;width:54px;height:54px;margin-bottom:10px;border-radius:18px;background:#fff3cd;color:#b45309;font-size:28px;font-weight:800}
.contact-warning-modal__dialog h2{margin:6px 0 10px;color:#10233f;font-size:24px}
.contact-warning-modal__dialog p{color:#53657d;line-height:1.6}
.contact-warning-modal__detected{padding:10px 12px;border-radius:12px;background:#fff8e1;color:#92400e!important;font-weight:700}
.contact-warning-modal__actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:18px}
.safety-hero{background:linear-gradient(135deg,#fff,#f6fbff 54%,#fff9ec)}
.safety-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}
.safety-card{padding:20px}
.safety-card__icon{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:#eef7ff;font-size:23px}
.safety-card h2{margin:14px 0 8px;color:#10233f;font-size:19px}
.safety-card p{margin:0;color:#617188;line-height:1.55}
.safety-report-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:18px;padding:22px;background:linear-gradient(135deg,#fff,#fff9ec)}
.safety-report-panel h2{margin:6px 0 6px}
.safety-report-panel p{margin:0;color:#617188;line-height:1.55}
@media(max-width:900px){.safety-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.safety-grid{grid-template-columns:1fr}.safety-report-panel{align-items:flex-start;flex-direction:column}.contact-warning-modal__actions{justify-content:stretch}.contact-warning-modal__actions .button-link{width:100%;justify-content:center}}

/* PATCH VIP online strip, city profiles, similar ads and profile completion */
.vip-online-strip{border-top:1px solid #dfeaf6;border-bottom:1px solid #d3e2f1;background:linear-gradient(90deg,#f9fcff,#eef6ff 52%,#f9fcff);color:#10233f;box-shadow:0 8px 22px rgba(35,90,140,.05)}
.vip-online-strip__inner{display:flex;align-items:center;gap:14px;max-width:1440px;margin:0 auto;padding:10px 18px}
.vip-online-strip__title{flex:0 0 auto;display:grid;gap:3px;min-width:150px}
.vip-online-strip__title strong{color:#14345b;font-size:13px;letter-spacing:.04em;text-transform:uppercase}.vip-online-strip__title span{display:flex;align-items:center;gap:6px;color:#5e7894;font-size:12px}.vip-online-strip__title i,.vip-online-person__avatar i,.city-online-card__photo i{display:block;width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.2);animation:bbs-online-pulse 1.6s ease-in-out infinite}
.vip-online-strip__track{display:flex;align-items:center;gap:8px;flex:1 1 auto;min-width:0}.vip-online-strip__rail-wrap{flex:1 1 auto;min-width:0;overflow:hidden}.vip-online-strip__rail{display:flex;gap:8px;min-width:0;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;scroll-behavior:smooth;padding:1px 2px 3px}.vip-online-strip__rail::-webkit-scrollbar{display:none}.vip-online-strip__nav{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:32px;height:32px;padding:0;border:1px solid #d5e5f3;border-radius:999px;background:#fff;color:#1e5e97;cursor:pointer;box-shadow:0 5px 14px rgba(35,90,140,.08);transition:background .2s ease,opacity .2s ease,transform .2s ease}.vip-online-strip__nav[hidden]{display:none!important}.vip-online-strip__nav:hover{background:#eef7ff}.vip-online-strip__nav:active{transform:scale(.96)}.vip-online-strip__nav svg{width:18px;height:18px}.vip-online-strip__nav[disabled]{opacity:.38;cursor:default;pointer-events:none}.vip-online-person{display:flex;align-items:center;gap:7px;flex:0 0 auto;padding:4px 8px 4px 4px;border:1px solid #dce8f3;border-radius:999px;color:#17365b;text-decoration:none;background:#fff;box-shadow:0 5px 14px rgba(35,90,140,.05)}.vip-online-person:hover{border-color:#b9d7ef;background:#f6fbff;text-decoration:none}.vip-online-person.is-vip{border-color:#e4bc37;background:linear-gradient(135deg,#fffdf5,#fff6cf)}
.vip-online-person__avatar{position:relative;display:block;width:34px;height:34px;overflow:hidden;border-radius:50%;background:#e8eef6}.vip-online-person__avatar img{width:100%;height:100%;object-fit:cover}.vip-online-person__avatar i{position:absolute;right:1px;bottom:1px;width:7px;height:7px;border:1px solid #fff}.vip-online-person__copy{display:grid;gap:1px}.vip-online-person__copy strong{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#17365b;font-size:12px}.vip-online-person__copy small{color:#5f7891;font-size:11px}.vip-online-strip__cta{flex:0 0 auto;padding:8px 11px;border-radius:10px;background:linear-gradient(135deg,#2f8cff,#236dff);color:#fff;text-decoration:none;font-size:12px;font-weight:800;box-shadow:0 8px 18px rgba(35,109,255,.2)}.vip-online-strip__cta:hover{color:#fff;text-decoration:none;background:linear-gradient(135deg,#2783f7,#1d63ef)}
.city-online-panel,.similar-ads-panel,.profile-completion-card{margin-top:18px}.city-online-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.city-online-card{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #e1ebf4;border-radius:16px;background:#fff;text-decoration:none;color:#10233f}.city-online-card:hover{border-color:#9ec8e9;box-shadow:0 10px 24px rgba(35,90,140,.1)}.city-online-card.is-vip{border-color:#f1d26a;background:linear-gradient(135deg,#fff,#fffbed)}.city-online-card__photo{position:relative;display:block;flex:0 0 54px;width:54px;height:54px;overflow:hidden;border-radius:15px;background:#edf3f8}.city-online-card__photo img{width:100%;height:100%;object-fit:cover}.city-online-card__photo i{position:absolute;right:4px;bottom:4px;border:1px solid #fff}.city-online-card__body{display:grid;gap:3px;min-width:0}.city-online-card__body strong,.city-online-card__body small,.city-online-card__body em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.city-online-card__body strong{font-size:14px}.city-online-card__body small{color:#14833b;font-size:12px}.city-online-card__body em{color:#718096;font-size:11px;font-style:normal}
.ad-adjacent-nav{display:flex;justify-content:space-between;gap:12px;margin-top:14px}.ad-adjacent-nav a{padding:10px 13px;border:1px solid #dce7f1;border-radius:12px;background:#fff;color:#1e5e97;text-decoration:none;font-weight:700}.ad-adjacent-nav a:hover{border-color:#8bbce0;background:#f4faff}
.profile-completion-card{padding:18px;background:linear-gradient(135deg,#fff,#f5fbff)}.profile-completion-card.is-complete{background:linear-gradient(135deg,#fff,#f2fff6)}.profile-completion-card__head{display:flex;align-items:center;justify-content:space-between;gap:14px}.profile-completion-card__head h2{margin:5px 0 0}.profile-completion-card__bar{height:10px;margin-top:14px;overflow:hidden;border-radius:999px;background:#e5edf4}.profile-completion-card__bar span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1e88d4,#22c55e)}.profile-completion-card__steps{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}.profile-completion-card__steps a{padding:7px 10px;border-radius:999px;background:#eef7ff;color:#17649d;text-decoration:none;font-size:12px;font-weight:700}.profile-completion-card p{margin:12px 0 0;color:#4d6b5a}
@media(max-width:980px){.vip-online-strip__title{min-width:125px}.vip-online-strip__nav{width:30px;height:30px}.city-online-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.vip-online-strip__inner{padding:9px 12px}.vip-online-strip__title{display:none}.vip-online-strip__nav{display:none}.vip-online-strip__cta{padding:7px 9px}.city-online-grid{grid-template-columns:1fr}.ad-adjacent-nav{align-items:stretch;flex-direction:column}.ad-adjacent-nav a{text-align:center}.profile-completion-card__head{align-items:flex-start;flex-direction:column}}


/* PATCH progressive search and richer city/category landing pages */
.home-search--progressive .search-page-actions--primary{grid-column:1/-1;margin-top:0}
.search-advanced{grid-column:1/-1;border:1px solid #dce8f2;border-radius:16px;background:rgba(255,255,255,.76);overflow:visible}
.search-advanced>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;cursor:pointer;list-style:none;color:#1e5e97}
.search-advanced>summary::-webkit-details-marker{display:none}.search-advanced>summary strong{font-size:14px}.search-advanced>summary span{color:#74849a;font-size:12px;text-align:right}.search-advanced>summary:after{content:"+";display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border-radius:50%;background:#eaf5fd;color:#17649d;font-size:20px;font-weight:800}.search-advanced[open]>summary:after{content:"−"}
.search-advanced__grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:0 14px 12px}.search-advanced__toggles{display:flex;flex-wrap:wrap;gap:10px;padding:0 14px 14px}.search-advanced__toggles .home-search__toggle{flex:0 0 auto}
.landing-filter-chips a.is-active{border-color:#2374b5;background:#2374b5;color:#fff}.landing-filter-chips__cta{border-color:#d89a16!important;background:#fff9e7!important;color:#986500!important;font-weight:800}
.landing-discovery-panel{margin-top:18px}.landing-link-group+.landing-link-group{margin-top:16px}.landing-link-group>strong{display:block;margin-bottom:8px;color:#3b526b;font-size:13px;text-transform:uppercase;letter-spacing:.04em}.landing-link-cloud{display:flex;flex-wrap:wrap;gap:8px}.landing-link-cloud a{display:flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #dde9f3;border-radius:999px;background:#fff;color:#1e5e97;text-decoration:none;font-size:13px;font-weight:700}.landing-link-cloud a:hover{border-color:#8dbde0;background:#f5faff}.landing-link-cloud span{display:grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#edf5fb;color:#5c7690;font-size:11px}.landing-link-cloud--compact a{padding:6px 9px;font-size:12px}
@media(max-width:1100px){.search-advanced__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.search-advanced>summary{align-items:flex-start}.search-advanced>summary span{display:none}.search-advanced__grid{grid-template-columns:1fr;padding:0 10px 10px}.search-advanced__toggles{padding:0 10px 10px}.landing-link-cloud a{font-size:12px}}


/* PATCH: refined light VIP strip, compact advanced search and collapsible city links */
.search-advanced__grid{gap:8px;padding:0 12px 10px}
.search-advanced__grid .home-search__field{min-height:42px!important;padding:0 12px!important;border-radius:12px!important;box-shadow:none!important}
.search-advanced__grid .home-search__field input,.search-advanced__grid .home-search__field select{font-size:14px!important}
.search-advanced__toggles{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;padding:0 12px 12px!important}
.search-page-hero .search-advanced__toggles .home-search__toggle,.profiles-page-hero .search-advanced__toggles .home-search__toggle,.search-advanced__toggles .home-search__toggle{display:inline-flex!important;width:auto!important;min-width:0!important;max-width:none!important;min-height:34px!important;padding:0 9px 0 11px!important;border-radius:999px!important;gap:7px!important;justify-content:flex-start!important;overflow:visible!important;white-space:nowrap!important;box-shadow:none!important;font-size:12px!important;line-height:1!important}
.search-advanced__toggles .home-switch{width:32px!important;height:18px!important;flex:0 0 32px!important}
.search-advanced__toggles .home-switch__slider::before{top:2px!important;left:2px!important;width:14px!important;height:14px!important}
.search-advanced__toggles .home-switch input:checked + .home-switch__slider::before{transform:translateX(14px)!important}
.landing-link-group--collapsible{margin-top:10px!important;border:1px solid #e0ebf4;border-radius:14px;background:#fbfdff;overflow:hidden}
.landing-link-group--collapsible>summary{display:flex;align-items:center;gap:8px;padding:11px 13px;cursor:pointer;list-style:none;color:#31506f;font-size:13px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}
.landing-link-group--collapsible>summary::-webkit-details-marker{display:none}
.landing-link-group--collapsible>summary small{margin-left:auto;color:#7890a8;font-size:12px;font-weight:750;text-transform:none;letter-spacing:0}
.landing-link-group--collapsible>summary::after{content:"+";display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#eaf5fd;color:#17649d;font-size:17px;line-height:1;font-weight:900}
.landing-link-group--collapsible[open]>summary::after{content:"−"}
.landing-link-group--collapsible[open]>summary{border-bottom:1px solid #e5eef6;background:#f7fbff}
.landing-link-group--collapsible .landing-link-cloud{padding:11px 12px 12px}
@media(max-width:720px){.search-advanced__grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.search-advanced__toggles{gap:6px!important}.landing-link-group--collapsible>summary{padding:10px 11px}}
@media(max-width:480px){.search-advanced__grid{grid-template-columns:1fr!important}}

/* PATCH: keep search "Кого ищу" dropdown inside the page on the right edge */
.home-search__field--multi-dropdown .search-multi-dropdown.ad-multi-dropdown .ad-multi-dropdown__panel,
.home-search__field--multi-dropdown .search-multi-dropdown.ad-multi-dropdown .search-multi-dropdown__panel.ad-multi-dropdown__panel{
    left:auto!important;
    right:0!important;
    max-width:min(300px,calc(100vw - 36px))!important;
}
@media(max-width:760px){
    .home-search__field--multi-dropdown .search-multi-dropdown.ad-multi-dropdown .ad-multi-dropdown__panel,
    .home-search__field--multi-dropdown .search-multi-dropdown.ad-multi-dropdown .search-multi-dropdown__panel.ad-multi-dropdown__panel{
        left:0!important;
        right:auto!important;
        width:min(100%,calc(100vw - 36px))!important;
        max-width:min(100%,calc(100vw - 36px))!important;
    }
}

/* PROFILE ENGAGEMENT: compliments, matches, lightweight recommendations and quick replies */
.profile-action-button--match{background:#fff1f5!important;border-color:#fecdd3!important;color:#be123c!important}
.profile-action-button--compliment{background:#fffdf2!important;border-color:#fde68a!important;color:#92400e!important;cursor:pointer}
.profile-compliment-picker{position:relative;display:inline-block}
.profile-compliment-picker>summary{list-style:none}.profile-compliment-picker>summary::-webkit-details-marker{display:none}
.profile-compliment-picker__panel{position:absolute;z-index:30;top:calc(100% + 8px);right:0;display:grid;gap:7px;width:min(310px,calc(100vw - 32px));padding:13px;border:1px solid rgba(234,179,8,.28);border-radius:17px;background:#fffdf4;box-shadow:0 20px 44px rgba(31,42,68,.16)}
.profile-compliment-picker__panel strong{color:#172033;font-size:14px}.profile-compliment-picker__panel small{color:#64748b;font-size:12px;line-height:1.35}.profile-compliment-picker__panel form{margin:0}.profile-compliment-picker__panel button{width:100%;border:1px solid rgba(234,179,8,.2);border-radius:12px;padding:9px 10px;background:#fff;color:#5b3a00;text-align:left;font:inherit;font-size:13px;font-weight:850;cursor:pointer}.profile-compliment-picker__panel button:hover{background:#fff7d6;border-color:#facc15}
.profile-activity-hero{display:flex;justify-content:space-between;align-items:center;gap:18px}.profile-activity-hero__actions{display:flex;gap:10px;flex-wrap:wrap}.profile-activity-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.profile-activity-tab{display:flex;align-items:center;gap:7px;padding:10px 12px;border:1px solid rgba(96,118,170,.16);border-radius:14px;background:#fff;color:#344054;text-decoration:none;font-weight:900;box-shadow:0 8px 20px rgba(31,42,68,.04)}.profile-activity-tab b{display:inline-grid;min-width:24px;height:24px;place-items:center;border-radius:999px;background:#eef3ff;color:#3652b5;font-size:12px}.profile-activity-tab.is-active{border-color:#9eb5ff;background:#eef4ff;color:#1d4ed8}.profile-activity-section{margin-top:16px}.profile-activity-section--secondary{background:#fbfdff}
.profile-activity-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}.profile-activity-card{overflow:hidden;border:1px solid rgba(96,118,170,.14);border-radius:19px;background:#fff;box-shadow:0 12px 28px rgba(31,42,68,.06)}.profile-activity-card.is-vip{border-color:rgba(217,119,6,.3);background:linear-gradient(180deg,#fff,#fffaf0)}.profile-activity-card__photo{position:relative;display:block;aspect-ratio:1.15/1;overflow:hidden;background:#edf3ff}.profile-activity-card__photo img{width:100%;height:100%;object-fit:cover}.profile-activity-card__online,.profile-activity-card__vip{position:absolute;top:9px;padding:4px 7px;border-radius:999px;font-size:11px;font-weight:950}.profile-activity-card__online{left:9px;background:#dcfce7;color:#166534}.profile-activity-card__vip{right:9px;background:#fef3c7;color:#92400e}.profile-activity-card__body{display:grid;gap:6px;padding:12px}.profile-activity-card__name{color:#172033;text-decoration:none;font-size:16px;font-weight:950}.profile-activity-card__body small,.profile-activity-card__body time{color:#64748b;font-size:12px}.profile-activity-card__signal{display:inline-flex;justify-self:start;padding:4px 7px;border-radius:999px;background:#eef4ff;color:#3152a6;font-size:12px;font-weight:850}.profile-activity-card__signal--match{background:#fff1f2;color:#be123c}.profile-activity-card__actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:3px}.profile-activity-card__actions form{margin:0}.profile-activity-card__actions .button-link{padding:7px 9px;font-size:12px}
.profile-compliment-list{display:grid;gap:10px}.profile-compliment-card{display:flex;align-items:center;gap:11px;padding:12px;border:1px solid rgba(96,118,170,.14);border-radius:16px;background:#fff}.profile-compliment-card__avatar{display:block;flex:0 0 auto;width:52px;height:52px;overflow:hidden;border-radius:50%;background:#eaf0ff}.profile-compliment-card__avatar img{width:100%;height:100%;object-fit:cover}.profile-compliment-card__body{display:grid;gap:3px;min-width:0;flex:1}.profile-compliment-card__body a{color:#172033;text-decoration:none;font-weight:950}.profile-compliment-card__body strong{color:#92400e}.profile-compliment-card__body small{color:#64748b}
.cabinet-quick-card--activity{border-color:rgba(244,63,94,.22);background:linear-gradient(135deg,#fff,#fff5f7)}.cabinet-quick-card--activity .cabinet-quick-card__icon{background:#ffe4e6;color:#be123c}.cabinet-recommendations{overflow:hidden}.cabinet-recommendations__grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:11px}.cabinet-recommendation-card{display:grid;gap:6px;min-width:0;color:#172033;text-decoration:none}.cabinet-recommendation-card__photo{position:relative;display:block;overflow:hidden;aspect-ratio:1/1;border-radius:16px;background:#edf3ff}.cabinet-recommendation-card__photo img{width:100%;height:100%;object-fit:cover}.cabinet-recommendation-card__photo i{position:absolute;left:7px;bottom:7px;padding:3px 6px;border-radius:999px;background:#dcfce7;color:#166534;font-size:10px;font-style:normal;font-weight:950}.cabinet-recommendation-card strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cabinet-recommendation-card small{color:#64748b;font-size:11px;line-height:1.25}
.message-quick-start{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:8px}.message-quick-start span{color:#64748b;font-size:12px;font-weight:900}.message-quick-start button{border:1px solid rgba(96,118,170,.16);border-radius:999px;padding:6px 9px;background:#f8fbff;color:#344054;font:inherit;font-size:12px;font-weight:850;cursor:pointer}.message-quick-start button:hover{border-color:#9eb5ff;background:#eef4ff;color:#1d4ed8}.message-quick-start--compact{margin:0 0 2px}.message-quick-start--compact button{font-size:11px;padding:5px 8px}
@media(max-width:980px){.cabinet-recommendations__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.profile-activity-hero{align-items:flex-start;flex-direction:column}.profile-activity-hero__actions{width:100%}.profile-activity-hero__actions .button-link{flex:1;justify-content:center}.profile-activity-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.profile-activity-tab{justify-content:space-between}.profile-activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-compliment-card{align-items:flex-start;flex-wrap:wrap}.profile-compliment-card>.button-link{width:100%;justify-content:center}.cabinet-recommendations__grid{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-compliment-picker__panel{left:0;right:auto}}
@media(max-width:480px){.profile-activity-grid{grid-template-columns:1fr}.cabinet-recommendations__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* PATCH: clearer ad header metadata, author profile CTA and compact complaint control */
.ad-view__tech-meta{display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px;margin:0 0 7px;color:#71809a;font-size:11px;font-weight:800;line-height:1.2}
.ad-view__tech-meta span{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border:1px solid rgba(96,118,170,.12);border-radius:999px;background:#f7faff;white-space:nowrap}
.ad-view__tech-meta svg{display:block;width:13px;height:13px;color:#4679c9}
.ad-author-strip{gap:10px!important;padding:9px 10px!important}
.ad-author-strip .ad-author-profile-button{display:inline-flex;align-items:center;gap:9px;min-width:0;padding:7px 10px 7px 7px;border:1px solid rgba(38,111,238,.18);border-radius:13px;background:linear-gradient(135deg,#fff,#f3f8ff);color:#17223b;text-decoration:none!important;box-shadow:0 7px 18px rgba(38,111,238,.07);transition:border-color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease}
.ad-author-strip .ad-author-profile-button:hover{border-color:rgba(38,111,238,.42);background:linear-gradient(135deg,#fff,#eaf3ff);color:#17223b;box-shadow:0 10px 22px rgba(38,111,238,.13);transform:translateY(-1px)}
.ad-author-profile-button__icon{display:grid;flex:0 0 auto;width:31px;height:31px;place-items:center;border-radius:10px;background:#e7f0ff;color:#246df2}
.ad-author-profile-button__icon svg{display:block;width:18px;height:18px}
.ad-author-profile-button__copy{display:grid;min-width:0;gap:1px;line-height:1.1}
.ad-author-profile-button__copy small{color:#6f7f99;font-size:10px;font-weight:850;letter-spacing:.025em;text-transform:uppercase}
.ad-author-profile-button__copy strong{display:flex;align-items:center;gap:6px;min-width:0;color:#17223b;font-size:15px;overflow-wrap:anywhere}
.ad-author-profile-button__arrow{display:grid;flex:0 0 auto;width:23px;height:23px;place-items:center;border-radius:50%;background:#e7f0ff;color:#246df2;font-size:16px;font-weight:950;line-height:1}
.ad-view__header{padding-right:42px!important;min-height:42px!important}
.ad-report-box{width:30px!important;height:30px!important}
.ad-report-box>summary{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;max-width:30px!important;max-height:30px!important;border-width:1px!important;border-radius:10px!important;box-shadow:0 8px 18px rgba(225,0,0,.12)!important}
.ad-report-box>summary span[aria-hidden="true"]{width:17px!important;height:17px!important;font:1000 12px/1 Arial,sans-serif!important}
.ad-report-box>summary:hover{box-shadow:0 10px 22px rgba(225,0,0,.17)!important}
.ad-report-form{top:38px!important}
@media(max-width:640px){.ad-view__tech-meta{gap:5px 6px}.ad-view__tech-meta span{padding:4px 6px;font-size:10px}.ad-author-strip .ad-author-profile-button{width:100%}.ad-author-profile-button__copy{flex:1}.ad-author-strip .public-profile-status{align-self:flex-start}}

/* PATCH: keep top-photo controls inside the mobile viewport */
@media(max-width:640px){
    .top-photo-controls{
        overflow:hidden!important;
    }
    .top-photo-controls .panel__head{
        display:grid!important;
        grid-template-columns:minmax(0,1fr)!important;
        width:100%!important;
        min-width:0!important;
        gap:12px!important;
    }
    .top-photo-controls .panel__head h2{
        min-width:0!important;
        font-size:22px!important;
        line-height:1.15!important;
    }
    .top-photo-controls .per-page-form{
        display:grid!important;
        grid-template-columns:minmax(0,1fr)!important;
        width:100%!important;
        min-width:0!important;
        gap:10px!important;
    }
    .top-photo-controls .per-page-form label,
    .top-photo-controls .per-page-submit{
        width:100%!important;
        min-width:0!important;
    }
    .top-photo-controls .per-page-form label{
        justify-content:space-between!important;
    }
    .top-photo-controls .pagination-summary{
        display:none!important;
    }
}

/* PATCH: keep VIP top-photo card content inside the 4-column grid */
.top-photo-card{
    min-width:0!important;
}
.top-photo-board--photos-only .top-photo-card__body,
.top-photo-card__score--split,
.top-photo-author-line,
.top-photo-card__foot{
    min-width:0!important;
}
.top-photo-card__score--split{
    gap:8px!important;
}
.top-photo-card__score--split small{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    text-align:right!important;
}
.top-photo-author-line a{
    display:block!important;
    flex:1 1 auto!important;
    min-width:0!important;
}
.top-photo-author-line .vip-inline-badge{
    margin-left:4px!important;
    padding:2px 5px!important;
    font-size:9px!important;
    letter-spacing:.04em!important;
}
.top-photo-author-line .vip-inline-badge::before{
    font-size:10px!important;
}
.top-photo-card__foot{
    overflow:hidden!important;
}
.top-photo-card__foot a{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
}

/* PATCH: cabinet feedback chat with administration */
.cabinet-profile-footer-links{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-8px 0 18px;padding:0 4px;flex-wrap:wrap}
.cabinet-feedback-link,.cabinet-delete-profile-link__anchor{font-weight:900;text-decoration:none}
.cabinet-feedback-link{color:#2563eb}.cabinet-feedback-link:hover{color:#1d4ed8;text-decoration:underline}
.cabinet-delete-profile-link__anchor{color:#dc2626}.cabinet-delete-profile-link__anchor:hover{color:#991b1b;text-decoration:underline}
.feedback-intro-modal .contact-warning-modal__icon{background:#eaf3ff;color:#2563eb}
.message-thread-head--feedback{border-color:#cfe1ff;background:linear-gradient(135deg,#fff,#f4f8ff)}
@media(max-width:620px){.cabinet-profile-footer-links{align-items:flex-start;flex-direction:column;gap:12px}.feedback-intro-modal .contact-warning-modal__dialog{padding:22px 18px}.feedback-intro-modal .contact-warning-modal__dialog h2{font-size:22px}}



/* PATCH: neutral public description class; avoids mobile cosmetic ad-block filters matching `.ad-text` */
.ad-body-panel .board-description-content{
    display:block!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    opacity:1!important;
    visibility:visible!important;
    color:#071833!important;
    -webkit-text-fill-color:#071833!important;
    white-space:pre-wrap!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
    font-size:17px!important;
    line-height:1.65!important;
}

/* PATCH: persistent light/dark site theme. Light remains the default. */
.topbar-tools__icon--theme{
    padding:0;
    cursor:pointer;
    font:inherit;
}
.theme-toggle__icon--sun{display:none}
html[data-theme="dark"] .theme-toggle__icon--moon{display:none}
html[data-theme="dark"] .theme-toggle__icon--sun{display:block}

html[data-theme="dark"]{
    color-scheme:dark;
    --bg:#111a2b;
    --panel:#19253a;
    --text:#edf4ff;
    --muted:#aab7cb;
    --line:#31415d;
    --blue:#78a7ff;
    --blue2:#243858;
    --ok:#64d999;
    --bad:#ff8c94;
    --warn:#ffc46b;
    --shadow:0 18px 45px rgba(0,0,0,.22);
}
html[data-theme="dark"] body{
    background:radial-gradient(circle at 10% -10%,#263b5e 0,#111a2b 38%,#111a2b 100%);
    color:var(--text);
}
html[data-theme="dark"] a{color:#91b8ff}
html[data-theme="dark"] a:hover{color:#b8d2ff}
html[data-theme="dark"] ::selection{background:#416fc0;color:#fff}

/* Header and theme control */
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .topbar--modern{
    background:rgba(17,26,43,.94)!important;
    border-bottom-color:#31415d!important;
    box-shadow:0 10px 28px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .brand,
html[data-theme="dark"] .brand__title{color:#edf4ff!important}
html[data-theme="dark"] .brand__subtitle{color:#9aa9c0!important}
html[data-theme="dark"] .topbar--modern .nav--modern .nav-item{
    color:#cbd8ec!important;
}
html[data-theme="dark"] .topbar--modern .nav--modern .nav-item:hover{
    color:#a9c8ff!important;
    background:#1c2b45!important;
    border-color:#344968!important;
}
html[data-theme="dark"] .topbar--modern .nav--modern .nav-item.is-active,
html[data-theme="dark"] .topbar--modern .nav--modern .nav-item--primary.is-active{
    color:#9cc0ff!important;
    background:linear-gradient(180deg,#223451 0%,#1d2d48 100%)!important;
    border-color:#3a5276!important;
    box-shadow:0 12px 28px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .topbar-tools__icon,
html[data-theme="dark"] .user-menu__toggle,
html[data-theme="dark"] .topbar-auth__link{
    color:#d7e5fa!important;
    background:#1a283f!important;
    border-color:#3a4d6b!important;
    box-shadow:0 10px 20px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .topbar-tools__icon:hover,
html[data-theme="dark"] .user-menu__toggle:hover,
html[data-theme="dark"] .topbar-auth__link:hover{
    color:#fff!important;
    background:#233653!important;
    border-color:#4a6590!important;
}
html[data-theme="dark"] .topbar-tools__icon--theme{
    color:#ffd67d!important;
}
html[data-theme="dark"] .topbar-tools__icon.has-unread{
    color:#9fc2ff!important;
    border-color:#5275ad!important;
    background:linear-gradient(135deg,#233754,#1c2e4a)!important;
    box-shadow:0 12px 28px rgba(0,0,0,.2),0 0 0 4px rgba(85,137,255,.1)!important;
}
html[data-theme="dark"] .topbar-tools__badge{border-color:#1a283f!important}
html[data-theme="dark"] .user-menu__arrow{color:#a8b8d0!important}
html[data-theme="dark"] .user-menu__dropdown{
    background:#19263b!important;
    border-color:#344662!important;
    box-shadow:0 24px 44px rgba(0,0,0,.35)!important;
}
html[data-theme="dark"] .user-menu__header{border-bottom-color:#31415d!important}
html[data-theme="dark"] .user-menu__header strong{color:#edf4ff!important}
html[data-theme="dark"] .user-menu__header span{color:#aab7cb!important}
html[data-theme="dark"] .user-menu__dropdown a,
html[data-theme="dark"] .user-menu__dropdown button{color:#d5e1f2!important}
html[data-theme="dark"] .user-menu__dropdown a:hover,
html[data-theme="dark"] .user-menu__dropdown button:hover{
    color:#a9c9ff!important;
    background:#223550!important;
}

/* Reusable surfaces: colors only, never layout. */
html[data-theme="dark"] .panel,
html[data-theme="dark"] .hero>div,
html[data-theme="dark"] .bbs-card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .message-card,
html[data-theme="dark"] .empty,
html[data-theme="dark"] .home-section,
html[data-theme="dark"] .home-latest,
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .home-category,
html[data-theme="dark"] .home-category-card,
html[data-theme="dark"] .profile-photo-grid figure,
html[data-theme="dark"] .photo-admin-grid figure,
html[data-theme="dark"] .photo-source-panel,
html[data-theme="dark"] .ad-photo-option,
html[data-theme="dark"] .current-ad-photos figure,
html[data-theme="dark"] .ad-create-panel,
html[data-theme="dark"] .ad-photo-card,
html[data-theme="dark"] .cabinet-table-wrap,
html[data-theme="dark"] .cabinet-mini-item,
html[data-theme="dark"] .profile-activity-card,
html[data-theme="dark"] .profile-compliment-card,
html[data-theme="dark"] .gift-list-card,
html[data-theme="dark"] .gift-history-row,
html[data-theme="dark"] .message-profile-photo-picker,
html[data-theme="dark"] .message-profile-photo-picker--inline .message-profile-photo-picker__grid,
html[data-theme="dark"] .contact-warning-modal__dialog{
    color:var(--text)!important;
    background:#19253a!important;
    border-color:#31415d!important;
    box-shadow:0 14px 32px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .panel--glow,
html[data-theme="dark"] .cabinet-hero,
html[data-theme="dark"] .gift-page-hero,
html[data-theme="dark"] .safety-hero,
html[data-theme="dark"] .profile-completion-card,
html[data-theme="dark"] .ad-create-hero,
html[data-theme="dark"] .page-title--category{
    color:var(--text)!important;
    background:linear-gradient(135deg,#1b2940 0%,#1a263b 56%,#202d48 100%)!important;
    border-color:#344762!important;
}
html[data-theme="dark"] .city-panel{
    background:linear-gradient(135deg,#1a283e 0%,#1b2b44 56%,#203653 100%)!important;
    border-color:#354f72!important;
}
html[data-theme="dark"] .safety-panel,
html[data-theme="dark"] .safety-report-panel{
    background:linear-gradient(135deg,#1b283d 0%,#242942 54%,#2d2948 100%)!important;
    border-color:#4d4c75!important;
}
html[data-theme="dark"] .hero-box,
html[data-theme="dark"] .home-latest .bbs-card,
html[data-theme="dark"] .ad-body-panel,
html[data-theme="dark"] .photo-source-panel,
html[data-theme="dark"] .ad-upload-box,
html[data-theme="dark"] .profile-delete-offer,
html[data-theme="dark"] .gift-option-card,
html[data-theme="dark"] .gift-recipient-card,
html[data-theme="dark"] .message-compose-panel,
html[data-theme="dark"] .message-reply-form .message-compose-panel,
html[data-theme="dark"] .message-thread-head--feedback{
    color:var(--text)!important;
    background:linear-gradient(180deg,#1b293f,#182438)!important;
    border-color:#31415d!important;
}
html[data-theme="dark"] .profile-delete-page{
    background:linear-gradient(135deg,#211f32,#2a202b)!important;
    border-color:#704653!important;
}
html[data-theme="dark"] .profile-delete-offer--accept{
    background:linear-gradient(180deg,#1b2e2c,#192a28)!important;
    border-color:#356a5a!important;
}
html[data-theme="dark"] .profile-delete-offer--delete{
    background:linear-gradient(180deg,#30232b,#291e27)!important;
    border-color:#754956!important;
}
html[data-theme="dark"] .paid-service-card--gift,
html[data-theme="dark"] .cabinet-quick-card--activity{
    background:linear-gradient(135deg,#2c2235,#22243a)!important;
    border-color:#694a70!important;
}
html[data-theme="dark"] .gift-modal__dialog{
    color:var(--text)!important;
    background:linear-gradient(135deg,#24223a 0%,#2e2236 50%,#1d2b42 100%)!important;
    border-color:#76526e!important;
}
html[data-theme="dark"] .gift-modal__message{background:#1a283d!important;border-color:#66425e!important;color:#dbe6f7!important}

/* Text hierarchy */
html[data-theme="dark"] .hero p,
html[data-theme="dark"] .page-title p,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .empty,
html[data-theme="dark"] .bbs-card__meta,
html[data-theme="dark"] .bbs-card__foot,
html[data-theme="dark"] .ad-view__meta,
html[data-theme="dark"] .ad-view__tech-meta,
html[data-theme="dark"] .cabinet-section__head p,
html[data-theme="dark"] .cabinet-mini-item small,
html[data-theme="dark"] .profile-activity-card small,
html[data-theme="dark"] .profile-compliment-card__body small,
html[data-theme="dark"] .cabinet-recommendation-card small,
html[data-theme="dark"] .message-quick-start span{
    color:#aab7cb!important;
}
html[data-theme="dark"] .bbs-card p,
html[data-theme="dark"] .cabinet-mini-item span,
html[data-theme="dark"] .profile-compliment-card__body a,
html[data-theme="dark"] .cabinet-recommendation-card,
html[data-theme="dark"] .gift-recipient-card,
html[data-theme="dark"] .ad-author-profile-button__copy strong{
    color:#dce7f7!important;
}
html[data-theme="dark"] .kicker,
html[data-theme="dark"] .cabinet-mini-item strong,
html[data-theme="dark"] .cabinet-quick-card__body strong{color:#8db6ff!important}
html[data-theme="dark"] .footer,
html[data-theme="dark"] .footer span:first-child{color:#9cabbe!important}
html[data-theme="dark"] .footer__safety-link{color:#b5c8e4!important}

/* Pills, chips and metadata */
html[data-theme="dark"] .bbs-card__meta span,
html[data-theme="dark"] .ad-view__meta span,
html[data-theme="dark"] .ad-view__meta a,
html[data-theme="dark"] .chips a,
html[data-theme="dark"] .ad-view__tech-meta span,
html[data-theme="dark"] .landing-link-cloud a{
    color:#cbd8eb!important;
    background:#22334f!important;
    border-color:#3a4d6d!important;
}
html[data-theme="dark"] .chips a:hover,
html[data-theme="dark"] .landing-link-cloud a:hover{background:#2a4163!important;color:#fff!important}
html[data-theme="dark"] .status--published,
html[data-theme="dark"] .status--active{background:#1c3b36!important;color:#7ee2aa!important}
html[data-theme="dark"] .status--pending{background:#443622!important;color:#ffd081!important}
html[data-theme="dark"] .status--hidden,
html[data-theme="dark"] .status--rejected,
html[data-theme="dark"] .status--banned{background:#482830!important;color:#ff9ea5!important}

/* Inputs and editable fields */
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .search input,
html[data-theme="dark"] .form input,
html[data-theme="dark"] .form textarea,
html[data-theme="dark"] .form select,
html[data-theme="dark"] .inline-status-form select,
html[data-theme="dark"] .ad-create-panel input,
html[data-theme="dark"] .ad-create-panel select,
html[data-theme="dark"] .ad-create-panel textarea,
html[data-theme="dark"] .gift-field input,
html[data-theme="dark"] .gift-field textarea,
html[data-theme="dark"] .gift-field select,
html[data-theme="dark"] .admin-news-form input[type="text"],
html[data-theme="dark"] .admin-news-form input[type="datetime-local"],
html[data-theme="dark"] .admin-news-form select,
html[data-theme="dark"] .admin-news-form textarea,
html[data-theme="dark"] .admin-profile-deletions-search input{
    color:#edf4ff!important;
    background:#152238!important;
    border-color:#3b4d69!important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:#8f9db2!important;opacity:1}
html[data-theme="dark"] select option{color:#edf4ff;background:#152238}
html[data-theme="dark"] input[type="checkbox"],
html[data-theme="dark"] input[type="radio"]{accent-color:#78a7ff}
html[data-theme="dark"] .home-search__field,
html[data-theme="dark"] .home-search__toggle,
html[data-theme="dark"] .hero-stats,
html[data-theme="dark"] .search-advanced{
    color:var(--text)!important;
    background:rgba(24,37,58,.94)!important;
    border-color:#3b4f6e!important;
    box-shadow:0 8px 18px rgba(0,0,0,.12)!important;
}
html[data-theme="dark"] .home-switch__slider{background:#425570!important}
html[data-theme="dark"] .home-switch__slider::before{background:#d9e6f6!important}
html[data-theme="dark"] .home-switch input:checked + .home-switch__slider{background:linear-gradient(135deg,#548aff,#8b72ff)!important}
html[data-theme="dark"] .admin-news-editor-tabs button,
html[data-theme="dark"] .admin-news-editor-pane--visual .admin-news-rich-editor,
html[data-theme="dark"] .admin-news-editor-pane--source .admin-news-source-mirror,
html[data-theme="dark"] .message-profile-photo-picker--inline summary,
html[data-theme="dark"] .message-reply-form .message-profile-photo-picker--inline summary,
html[data-theme="dark"] .message-emoji-button,
html[data-theme="dark"] .message-reply-form button.message-emoji-button{
    color:#dce7f7!important;
    background:#19273d!important;
    border-color:#3a4c69!important;
}

/* Cabinet and profile cards */
html[data-theme="dark"] .cabinet-quick-card{
    color:#edf4ff!important;
    background:linear-gradient(180deg,#1b293f,#182438)!important;
    border-color:#344762!important;
    box-shadow:0 18px 42px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .cabinet-quick-card:hover,
html[data-theme="dark"] .cabinet-mini-item:hover{background:#223550!important;border-color:#49658e!important}
html[data-theme="dark"] .cabinet-quick-card__icon{background:linear-gradient(135deg,#263d5e,#332f55)!important;box-shadow:none!important}
html[data-theme="dark"] .cabinet-photo-preview__item,
html[data-theme="dark"] .profile-activity-card__photo,
html[data-theme="dark"] .cabinet-recommendation-card__photo{background:#223550!important;border-color:#344762!important}
html[data-theme="dark"] .cabinet-photo-preview__item span{background:rgba(24,37,58,.92)!important;color:#a7c7ff!important}
html[data-theme="dark"] .profile-activity-tab{
    color:#d2dff0!important;
    background:#19263b!important;
    border-color:#344762!important;
}
html[data-theme="dark"] .profile-activity-tab:hover,
html[data-theme="dark"] .profile-activity-tab.is-active{background:#263b5b!important;color:#fff!important;border-color:#5275a9!important}
html[data-theme="dark"] .message-quick-start button{background:#1c2a42!important;color:#d4e0f2!important;border-color:#3a4d69!important}
html[data-theme="dark"] .message-quick-start button:hover{background:#294163!important;color:#fff!important;border-color:#587daf!important}

/* Ads, photo controls and author strip */
html[data-theme="dark"] .ad-body-panel .board-description-content{
    color:#e5eefb!important;
    -webkit-text-fill-color:#e5eefb!important;
}
html[data-theme="dark"] .ad-author-strip .ad-author-profile-button{
    color:#e5eefb!important;
    background:linear-gradient(135deg,#1e2d46,#223653)!important;
    border-color:#3c5b86!important;
    box-shadow:0 7px 18px rgba(0,0,0,.14)!important;
}
html[data-theme="dark"] .ad-author-strip .ad-author-profile-button:hover{background:linear-gradient(135deg,#263a59,#294467)!important;border-color:#5a82b9!important;color:#fff!important}
html[data-theme="dark"] .ad-author-profile-button__icon,
html[data-theme="dark"] .ad-author-profile-button__arrow{background:#2b4264!important;color:#a7c7ff!important}
html[data-theme="dark"] .ad-author-profile-button__copy small{color:#9dafc9!important}
html[data-theme="dark"] .ad-photo-slider__nav,
html[data-theme="dark"] .photo-modal__close{
    color:#d8e7ff!important;
    background:rgba(25,38,59,.96)!important;
    border-color:#465d80!important;
}
html[data-theme="dark"] .ad-photo-slider__nav:hover{background:#294363!important}
html[data-theme="dark"] .ad-photo-card__main-badge{background:#1b2b43!important;color:#a9c8ff!important}
html[data-theme="dark"] .ad-photo-card__check{background:rgba(27,42,65,.94)!important;border-color:#547099!important}

/* Messaging */
html[data-theme="dark"] .conversation-topic,
html[data-theme="dark"] .admin-conversation-topic,
html[data-theme="dark"] .message-thread-head,
html[data-theme="dark"] .message-bubble__content{
    color:#e6eefb!important;
    background:#19263b!important;
    border-color:#344762!important;
}
html[data-theme="dark"] .message-bubble.is-mine .message-bubble__content{
    color:#fff!important;
    background:linear-gradient(135deg,#315caa,#3d6ac0)!important;
    border-color:#537ec7!important;
}
html[data-theme="dark"] .conversation-topic:hover,
html[data-theme="dark"] .admin-conversation-topic:hover{background:#21334f!important;border-color:#49658d!important}

/* Admin tables and utility controls */
html[data-theme="dark"] table{color:#e6eefb}
html[data-theme="dark"] th{color:#a6b4ca!important}
html[data-theme="dark"] th,
html[data-theme="dark"] td{border-bottom-color:#30405b!important}
html[data-theme="dark"] tbody tr:hover{background:rgba(47,72,108,.22)}
html[data-theme="dark"] .inline-form button,
html[data-theme="dark"] .button-link:not(.button-link--primary),
html[data-theme="dark"] .photo-actions button,
html[data-theme="dark"] .vip-online-strip__nav,
html[data-theme="dark"] .ad-adjacent-nav a{
    color:#cfe0f8!important;
    background:#20324e!important;
    border-color:#3b5275!important;
}
html[data-theme="dark"] .inline-form button:hover,
html[data-theme="dark"] .button-link:not(.button-link--primary):hover,
html[data-theme="dark"] .photo-actions button:hover,
html[data-theme="dark"] .vip-online-strip__nav:hover,
html[data-theme="dark"] .ad-adjacent-nav a:hover{background:#2a456a!important;color:#fff!important}
html[data-theme="dark"] .table-actions .inline-form button{background:#40252e!important;border-color:#73434d!important;color:#ffadb3!important}

/* Public strips, cards and notices */
html[data-theme="dark"] .vip-online-person,
html[data-theme="dark"] .city-online-card{
    color:#dbe8f8!important;
    background:#1b2a40!important;
    border-color:#344a69!important;
}
html[data-theme="dark"] .city-online-card.is-vip,
html[data-theme="dark"] .profile-activity-card.is-vip{
    background:linear-gradient(135deg,#302b24,#28261f)!important;
    border-color:#79643a!important;
}
html[data-theme="dark"] .flash--success{background:#1c3b36!important;color:#8be4b4!important}
html[data-theme="dark"] .flash--error{background:#482830!important;color:#ffadb3!important}
html[data-theme="dark"] .admin-ad-preview-notice{background:linear-gradient(135deg,#3b2e22,#2a2830)!important;color:#ffda9a!important;border-color:#755536!important}
html[data-theme="dark"] .feedback-intro-modal .contact-warning-modal__icon{background:#263f62!important;color:#afcdff!important}

/* Keep dark scrollbars discreet without affecting measurements. */
html[data-theme="dark"] *{scrollbar-color:#4a6286 #182438}

/* PATCH: dark theme visual refinement after production review.
   Colors only: no layout, dimensions or responsive rules are changed. */

/* Section headings that have explicit light-theme colors. */
html[data-theme="dark"] .panel__head h2,
html[data-theme="dark"] .panel__head--title h2,
html[data-theme="dark"] .panel__head--stack h2,
html[data-theme="dark"] .city-panel h2,
html[data-theme="dark"] .safety-panel h2,
html[data-theme="dark"] .howto-panel h2,
html[data-theme="dark"] .howto-card strong,
html[data-theme="dark"] .home-vip-profiles .panel__head h2{
    color:#e6efff!important;
}
html[data-theme="dark"] .panel__link{color:#9fc0ff!important}
html[data-theme="dark"] .panel__link:hover{color:#c5d9ff!important}

/* VIP online strip: remove the light horizontal band and keep text readable. */
html[data-theme="dark"] .vip-online-strip{
    color:#dbe8f8!important;
    background:linear-gradient(90deg,#172438 0%,#1a2a41 52%,#172438 100%)!important;
    border-top-color:#2c405c!important;
    border-bottom-color:#304765!important;
    box-shadow:0 8px 22px rgba(0,0,0,.14)!important;
}
html[data-theme="dark"] .vip-online-strip__title strong{color:#e5efff!important}
html[data-theme="dark"] .vip-online-strip__title span{color:#96aac4!important}
html[data-theme="dark"] .vip-online-person{
    color:#dce9f9!important;
    background:#1d2d45!important;
    border-color:#364d6e!important;
    box-shadow:0 5px 14px rgba(0,0,0,.12)!important;
}
html[data-theme="dark"] .vip-online-person:hover{
    color:#fff!important;
    background:#253b59!important;
    border-color:#5579a7!important;
}
html[data-theme="dark"] .vip-online-person.is-vip{
    background:linear-gradient(135deg,#322d23,#2a2922)!important;
    border-color:#76643e!important;
}
html[data-theme="dark"] .vip-online-person__copy strong{color:#dce9f9!important}
html[data-theme="dark"] .vip-online-person__copy small{color:#a9b8cc!important}
html[data-theme="dark"] .vip-online-person__avatar{background:#263954!important}
html[data-theme="dark"] .vip-online-person__avatar i{border-color:#1d2d45!important}

/* Popular cities panel: dark chips and a quieter illustration. */
html[data-theme="dark"] .city-panel__chips a{
    color:#a8c7ff!important;
    background:#243854!important;
    border-color:#3e5a80!important;
    box-shadow:none!important;
}
html[data-theme="dark"] .city-panel__chips a:hover{
    color:#dce9ff!important;
    background:#2b4569!important;
    border-color:#5b7fae!important;
}
html[data-theme="dark"] .city-panel__count{color:#91a6c2!important}
html[data-theme="dark"] .city-panel__chips a:hover .city-panel__count{color:#bdd1eb!important}
html[data-theme="dark"] .city-panel__art{
    opacity:.34!important;
    filter:brightness(.68) saturate(.82) contrast(1.08);
    mix-blend-mode:screen;
}
html[data-theme="dark"] .safety-panel__art{
    opacity:.48!important;
    filter:brightness(.74) saturate(.82) contrast(1.06);
}

/* Home categories and auxiliary text. */
html[data-theme="dark"] .home-category__body strong{color:#edf4ff!important}
html[data-theme="dark"] .home-category__body small{color:#a5b5ca!important}
html[data-theme="dark"] .home-category__meta,
html[data-theme="dark"] .home-category__meta b,
html[data-theme="dark"] .home-category__meta i{color:#91a8c8!important}
html[data-theme="dark"] .home-hero__note{color:#98aac4!important}
html[data-theme="dark"] .safety-panel p,
html[data-theme="dark"] .howto-card p{color:#a4b4ca!important}

/* VIP cards: replace the cream surface with a restrained dark bronze accent. */
html[data-theme="dark"] .bbs-card--vip,
html[data-theme="dark"] .home-latest .bbs-card--vip,
html[data-theme="dark"] .home-new-profile-card--vip,
html[data-theme="dark"] .top-photo-card--vip{
    background:linear-gradient(180deg,#202d40 0%,#1b293d 100%)!important;
    border-color:#76623c!important;
    box-shadow:0 16px 34px rgba(0,0,0,.20),0 0 0 1px rgba(163,127,58,.16)!important;
}
html[data-theme="dark"] .bbs-card--vip::before,
html[data-theme="dark"] .home-new-profile-card--vip::before,
html[data-theme="dark"] .top-photo-card--vip::before{
    background:linear-gradient(135deg,rgba(144,111,51,.16),rgba(255,255,255,0),rgba(116,83,31,.12))!important;
}
html[data-theme="dark"] .bbs-card--vip .bbs-card__body{
    background:linear-gradient(180deg,rgba(47,43,34,.52),rgba(28,40,58,.95))!important;
}
html[data-theme="dark"] .ad-view--vip,
html[data-theme="dark"] .public-profile-hero--vip,
html[data-theme="dark"] .single-photo-hero--vip,
html[data-theme="dark"] .home-vip-profiles{
    color:#edf4ff!important;
    background:linear-gradient(135deg,#282b31,#1b293d)!important;
    border-color:#76623c!important;
    box-shadow:0 18px 40px rgba(0,0,0,.20),0 0 0 1px rgba(163,127,58,.14)!important;
}

/* VIP labels stay visible but no longer dominate the card. */
html[data-theme="dark"] .status--vip,
html[data-theme="dark"] .vip-inline-badge{
    color:#ffe0a0!important;
    background:linear-gradient(135deg,#49391f,#654a20 52%,#77541f 100%)!important;
    border-color:#8a713e!important;
    box-shadow:0 6px 15px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,234,172,.12)!important;
}
html[data-theme="dark"] .vip-photo-badge{
    color:#ffe4a6!important;
    background:linear-gradient(135deg,rgba(73,57,31,.96),rgba(101,74,32,.96) 52%,rgba(119,84,31,.96))!important;
    border-color:#947842!important;
    box-shadow:0 8px 18px rgba(0,0,0,.22),0 0 0 2px rgba(163,127,58,.10)!important;
}

/* Profile counters on ad cards: remove the last bright pills in dark mode. */
html[data-theme="dark"] .bbs-card__profile-stat{
    color:#cbd9ed!important;
    background:rgba(35,51,76,.96)!important;
    border:1px solid #3b5274!important;
    box-shadow:0 7px 16px rgba(0,0,0,.14)!important;
}

/* Secondary card text on ad lists. */
html[data-theme="dark"] .bbs-card__params{color:#b8c7dc!important}

/* PATCH: brighter VIP outlines in dark theme.
   Border/highlight only: layout and card surfaces stay unchanged. */
html[data-theme="dark"] .bbs-card--vip,
html[data-theme="dark"] .home-latest .bbs-card--vip,
html[data-theme="dark"] .home-new-profile-card--vip,
html[data-theme="dark"] .top-photo-card--vip,
html[data-theme="dark"] .ad-view--vip,
html[data-theme="dark"] .public-profile-hero--vip,
html[data-theme="dark"] .single-photo-hero--vip,
html[data-theme="dark"] .home-vip-profiles,
html[data-theme="dark"] .city-online-card.is-vip,
html[data-theme="dark"] .profile-activity-card.is-vip,
html[data-theme="dark"] .vip-online-person.is-vip{
    border-color:#d9ae57!important;
    box-shadow:0 16px 34px rgba(0,0,0,.20),0 0 0 1px rgba(255,211,118,.32),0 0 18px rgba(210,161,70,.10)!important;
}
html[data-theme="dark"] .bbs-card--vip:hover,
html[data-theme="dark"] .home-new-profile-card--vip:hover,
html[data-theme="dark"] .top-photo-card--vip:hover,
html[data-theme="dark"] .city-online-card.is-vip:hover,
html[data-theme="dark"] .profile-activity-card.is-vip:hover,
html[data-theme="dark"] .vip-online-person.is-vip:hover{
    border-color:#f1cb78!important;
    box-shadow:0 18px 38px rgba(0,0,0,.24),0 0 0 1px rgba(255,225,148,.44),0 0 22px rgba(223,173,78,.16)!important;
}

/* PATCH: dark theme ad parameter snapshot and TOP photos refinement.
   Palette only: no layout, dimensions, grid or responsive rules are changed. */

/* Public ad parameter snapshot: remove the remaining light card and inner tiles. */
html[data-theme="dark"] .ad-author-profile-card.ad-profile-snapshot-view,
html[data-theme="dark"] .ad-profile-snapshot-view{
    color:#e8f1ff!important;
    background:linear-gradient(135deg,#1b293f 0%,#18263b 100%)!important;
    border-color:#344b6b!important;
    box-shadow:0 14px 34px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .ad-author-profile-card__head h2{color:#edf4ff!important}
html[data-theme="dark"] .ad-author-profile-card__head span{color:#9db1ce!important}
html[data-theme="dark"] .ad-author-profile-card__head a{
    color:#a9c8ff!important;
    background:#243a5a!important;
}
html[data-theme="dark"] .ad-author-profile-card__head a:hover{
    color:#fff!important;
    background:#2d4a71!important;
}
html[data-theme="dark"] .ad-author-profile-facts > div,
html[data-theme="dark"] .ad-author-profile-texts section{
    color:#dce8f8!important;
    background:#22324a!important;
    border-color:#3a5275!important;
}
html[data-theme="dark"] .ad-author-profile-facts span{color:#9fb1ca!important}
html[data-theme="dark"] .ad-author-profile-facts strong,
html[data-theme="dark"] .ad-author-profile-texts h3{color:#f0f5ff!important}

/* TOP photos hero: restore readable title, note and period chips. */
html[data-theme="dark"] .top-photo-hero{
    color:#edf4ff!important;
    background:linear-gradient(135deg,#1b2940 0%,#1a263b 56%,#202d48 100%)!important;
    border-color:#344762!important;
}
html[data-theme="dark"] .top-photo-hero h1{color:#edf4ff!important}
html[data-theme="dark"] .top-photo-hero p{color:#a9b9cf!important}
html[data-theme="dark"] .top-photo-hero__meta span{
    color:#bdd3ff!important;
    background:#223653!important;
    border:1px solid #3b5578!important;
}

/* TOP photos control strip and card surfaces. */
html[data-theme="dark"] .top-photo-controls{
    color:#edf4ff!important;
    background:#19253a!important;
    border-color:#31415d!important;
    box-shadow:0 14px 32px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .top-photo-controls h2{color:#edf4ff!important}
html[data-theme="dark"] .top-photo-controls .pagination-summary,
html[data-theme="dark"] .top-photo-controls .per-page-form span{color:#afbed4!important}
html[data-theme="dark"] .top-photo-card{
    color:#e7effc!important;
    background:#19263b!important;
    border-color:#344762!important;
    box-shadow:0 16px 34px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .top-photo-card__image{background:#22334e!important}
html[data-theme="dark"] .top-photo-card__body{background:#19263b!important}
html[data-theme="dark"] .top-photo-card__place{
    color:#a9c7ff!important;
    background:rgba(31,48,74,.96)!important;
    border:1px solid #486487!important;
    box-shadow:0 10px 22px rgba(0,0,0,.20)!important;
}
html[data-theme="dark"] .top-photo-card--place-1 .top-photo-card__place{
    color:#fff!important;
    background:linear-gradient(135deg,#dcae43,#b87828)!important;
    border-color:#edc66f!important;
}
html[data-theme="dark"] .top-photo-card--place-2 .top-photo-card__place{
    color:#fff!important;
    background:linear-gradient(135deg,#8ea2c6,#647a9f)!important;
    border-color:#afc0df!important;
}
html[data-theme="dark"] .top-photo-card--place-3 .top-photo-card__place{
    color:#fff!important;
    background:linear-gradient(135deg,#b98255,#925328)!important;
    border-color:#d5a276!important;
}
html[data-theme="dark"] .top-photo-card__score span{
    color:#ffabc5!important;
    background:#3b2838!important;
    border:1px solid #68405a!important;
}
html[data-theme="dark"] .top-photo-card__score small{color:#a9b8cd!important}
html[data-theme="dark"] .top-photo-author-line{
    color:#dce8f8!important;
    background:linear-gradient(135deg,#21334e,#1c2c43)!important;
    border-color:#3b5578!important;
}
html[data-theme="dark"] .top-photo-author-line a{color:#bdd3ff!important}
html[data-theme="dark"] .top-photo-author-line a:hover{color:#fff!important}
html[data-theme="dark"] .top-photo-card__foot{color:#a6b6cc!important}
html[data-theme="dark"] .top-photo-card__foot a{color:#9fc1ff!important}
html[data-theme="dark"] .top-photo-card__foot a:hover{color:#d2e1ff!important}
html[data-theme="dark"] .top-photo-empty{color:#b8c7dc!important}

/* Pagination under TOP photos: remove white pills in dark mode. */
html[data-theme="dark"] .top-photo-pagination a,
html[data-theme="dark"] .top-photo-pagination strong,
html[data-theme="dark"] .top-photo-pagination span{
    color:#c7d7ed!important;
    background:#21334f!important;
    border-color:#3b5275!important;
}
html[data-theme="dark"] .top-photo-pagination strong{
    color:#fff!important;
    background:#315caa!important;
    border-color:#5683ce!important;
}
html[data-theme="dark"] .top-photo-pagination a:hover{
    color:#fff!important;
    background:#2a456a!important;
    border-color:#5a7eae!important;
}

/* PATCH: dark theme create/edit advertisement editor refinement.
   Palette only: no layout, dimensions, grid, responsive or form logic changes. */

/* Page heading and explanatory copy. */
html[data-theme="dark"] .ad-new-hero h1{
    color:#edf4ff!important;
    text-shadow:0 10px 26px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .ad-new-hero p{color:#9fb1ca!important}
html[data-theme="dark"] .ad-new-hero .kicker{color:#8db6ff!important}

/* Main editor steps, preview sidebar and advice cards. */
html[data-theme="dark"] .ad-new-card,
html[data-theme="dark"] .ad-new-preview-card,
html[data-theme="dark"] .ad-new-side-card{
    color:#e6efff!important;
    background:linear-gradient(180deg,#1b293f 0%,#18263b 100%)!important;
    border-color:#344b6b!important;
    box-shadow:0 18px 42px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .ad-new-card h2,
html[data-theme="dark"] .ad-new-preview-card h2,
html[data-theme="dark"] .ad-new-side-card h3,
html[data-theme="dark"] .ad-new-photo-section__title h3{
    color:#edf4ff!important;
}
html[data-theme="dark"] .ad-new-card__head p,
html[data-theme="dark"] .ad-new-note,
html[data-theme="dark"] .ad-new-side-card li,
html[data-theme="dark"] .ad-new-delete-card p,
html[data-theme="dark"] .ad-new-upload-status,
html[data-theme="dark"] .ad-new-photo-section__title span,
html[data-theme="dark"] .ad-new-preview-body p{
    color:#a6b6cc!important;
}
html[data-theme="dark"] .ad-new-field,
html[data-theme="dark"] .ad-new-field__label,
html[data-theme="dark"] .ad-new-confirm{
    color:#dce8f8!important;
}
html[data-theme="dark"] .ad-new-photo-section + .ad-new-photo-section{
    border-top-color:#344b6b!important;
}
html[data-theme="dark"] .ad-new-photo-section__title a{color:#9fc1ff!important}
html[data-theme="dark"] .ad-new-photo-section__title a:hover{color:#d2e1ff!important}

/* Input surfaces, including the “Ищу” multi-select. */
html[data-theme="dark"] .ad-new-field input,
html[data-theme="dark"] .ad-new-field select,
html[data-theme="dark"] .ad-new-field textarea,
html[data-theme="dark"] .ad-new-field--multi-dropdown .search-multi-dropdown summary,
html[data-theme="dark"] .search-multi-dropdown.ad-multi-dropdown summary,
html[data-theme="dark"] .profile-looking-multi .search-multi-dropdown.ad-multi-dropdown summary{
    color:#edf4ff!important;
    background:linear-gradient(180deg,#152238,#17263d)!important;
    border-color:#3b5274!important;
}
html[data-theme="dark"] .ad-new-field input:focus,
html[data-theme="dark"] .ad-new-field select:focus,
html[data-theme="dark"] .ad-new-field textarea:focus,
html[data-theme="dark"] .ad-new-field--multi-dropdown .search-multi-dropdown[open] summary,
html[data-theme="dark"] .ad-new-field--multi-dropdown .search-multi-dropdown summary:focus-visible,
html[data-theme="dark"] .search-multi-dropdown.ad-multi-dropdown[open] summary,
html[data-theme="dark"] .search-multi-dropdown.ad-multi-dropdown summary:focus-visible{
    color:#fff!important;
    background:#192b45!important;
    border-color:#5683ce!important;
    box-shadow:0 0 0 4px rgba(86,131,206,.18)!important;
}
html[data-theme="dark"] .ad-new-field select:disabled{
    color:#8597b0!important;
    background:#172238!important;
}
html[data-theme="dark"] .ad-new-counter{color:#91a3bd!important}
html[data-theme="dark"] .search-multi-dropdown summary i{
    border-right-color:#b7cae6!important;
    border-bottom-color:#b7cae6!important;
}
html[data-theme="dark"] .search-multi-dropdown__panel,
html[data-theme="dark"] .ad-multi-dropdown__panel{
    color:#dce8f8!important;
    background:#1b293f!important;
    border-color:#3a5275!important;
    box-shadow:0 22px 48px rgba(0,0,0,.30)!important;
}
html[data-theme="dark"] .search-multi-dropdown__title{color:#a8b9cf!important}
html[data-theme="dark"] .search-multi-dropdown__panel small{color:#98a9c0!important}
html[data-theme="dark"] .multi-check span{
    color:#dce8f8!important;
    background:#22334f!important;
    border-color:#3b5578!important;
    box-shadow:none!important;
}
html[data-theme="dark"] .multi-check:hover span{
    color:#fff!important;
    background:#2a456a!important;
    border-color:#5a7eae!important;
}
html[data-theme="dark"] .multi-check input:checked + span{
    color:#fff!important;
    background:linear-gradient(135deg,#315caa,#284f94)!important;
    border-color:#5683ce!important;
    box-shadow:0 12px 22px rgba(0,0,0,.18)!important;
}

/* Photo selectors and upload surface inside create/edit forms. */
html[data-theme="dark"] .ad-new-photo-card,
html[data-theme="dark"] .ad-new-form .ad-new-photo-card,
html[data-theme="dark"] .ad-new-form .new-photo-preview-card,
html[data-theme="dark"] .new-photo-preview-card{
    color:#dce8f8!important;
    background:#1d2d45!important;
    border-color:#3a5275!important;
    box-shadow:0 12px 26px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .ad-new-photo-card.is-selected{
    border-color:#6797e5!important;
    box-shadow:0 14px 30px rgba(0,0,0,.18),0 0 0 1px rgba(103,151,229,.22)!important;
}
html[data-theme="dark"] .ad-new-photo-card__media,
html[data-theme="dark"] .new-photo-preview-card__image,
html[data-theme="dark"] .ad-new-form .ad-new-photo-card__media,
html[data-theme="dark"] .ad-new-form .new-photo-preview-card__image,
html[data-theme="dark"] .ad-new-photo-card__media img,
html[data-theme="dark"] .ad-new-photo-card .ad-photo-card__image,
html[data-theme="dark"] .new-photo-preview-card__image img,
html[data-theme="dark"] .ad-new-preview-photo,
html[data-theme="dark"] .ad-new-preview-photo img{
    background:#16243a!important;
}
html[data-theme="dark"] .ad-new-photo-card .photo-card-settings__toggle,
html[data-theme="dark"] .new-photo-preview-card .photo-card-settings__toggle{
    color:#cbd9ed!important;
    background:#223550!important;
    border-color:#3c567b!important;
}
html[data-theme="dark"] .ad-new-photo-card .photo-card-settings__toggle--main,
html[data-theme="dark"] .new-photo-preview-card .photo-card-settings__toggle--main{
    color:#bdd3ff!important;
    background:#253d60!important;
}
html[data-theme="dark"] .ad-new-empty-photo,
html[data-theme="dark"] .ad-new-upload-row{
    color:#cbd9ed!important;
    background:#1a293f!important;
    border-color:#3a5275!important;
}
html[data-theme="dark"] .ad-new-empty-photo p{color:#a6b6cc!important}

/* Live preview and advice blocks. */
html[data-theme="dark"] .ad-new-preview-box{
    color:#e8f1ff!important;
    background:#18263b!important;
    border-color:#3a5275!important;
    box-shadow:0 14px 28px rgba(0,0,0,.20)!important;
}
html[data-theme="dark"] .ad-new-preview-body{background:#1b293f!important}
html[data-theme="dark"] .ad-new-preview-body h3{color:#edf4ff!important}
html[data-theme="dark"] .ad-new-preview-meta span{
    color:#bdd3ff!important;
    background:#243854!important;
    border:1px solid #3e5a80!important;
}
html[data-theme="dark"] .ad-new-moderation-card{
    background:linear-gradient(135deg,#1c3048,#1b293f)!important;
    border-color:#3a5a80!important;
}
html[data-theme="dark"] .ad-new-moderation-card strong{color:#b9d2ff!important}
html[data-theme="dark"] .ad-new-moderation-card p{color:#a8b9cf!important}
html[data-theme="dark"] .ad-new-delete-card{
    background:linear-gradient(180deg,#30232b,#291e27)!important;
    border-color:#754956!important;
}

/* PATCH 2026-06-02: additional dark-theme cleanup for photo page,
   multi-select dropdowns, generic pagination/per-page controls,
   TOP photos toolbar and the profiles directory page.
   Palette only: no HTML, PHP, JS, routes, grids or responsive rules changed. */

/* 1) Single photo page: remove remaining light cards and buttons. */
html[data-theme="dark"] .single-photo-hero{
    color:#edf4ff!important;
    background:linear-gradient(135deg,#1b2940 0%,#1a263b 56%,#202d48 100%)!important;
    border-color:#344762!important;
}
html[data-theme="dark"] .single-photo-hero h1{color:#edf4ff!important}
html[data-theme="dark"] .single-photo-hero p{color:#a9b9cf!important}
html[data-theme="dark"] .single-photo-hero p a{color:#a9c8ff!important}
html[data-theme="dark"] .single-photo-back{
    color:#cfe0ff!important;
    background:#223754!important;
    border:1px solid #3c567b!important;
    box-shadow:none!important;
}
html[data-theme="dark"] .single-photo-back:hover{
    color:#fff!important;
    background:#2b456a!important;
    border-color:#5a7eae!important;
}
html[data-theme="dark"] .single-photo-frame{
    border-color:#344762!important;
    background:#18263b!important;
    box-shadow:0 16px 36px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .single-photo-frame img,
html[data-theme="dark"] .single-photo-frame .photo-lightbox,
html[data-theme="dark"] .single-photo-frame .single-photo-private{
    background:#111c2d!important;
}
html[data-theme="dark"] .single-photo-author-card,
html[data-theme="dark"] .single-photo-comments-card{
    color:#dce8f8!important;
    border-color:#344762!important;
    background:linear-gradient(180deg,#1b293f,#18263b)!important;
    box-shadow:0 16px 36px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .single-photo-author-card__top span:first-child,
html[data-theme="dark"] .single-photo-comments-card__head,
html[data-theme="dark"] .single-photo-comments-card__head span,
html[data-theme="dark"] .single-photo-report,
html[data-theme="dark"] .photo-comments__empty,
html[data-theme="dark"] .photo-comments__owner-note,
html[data-theme="dark"] .photo-comments--guest,
html[data-theme="dark"] .single-photo-login-note{
    color:#9fb1ca!important;
}
html[data-theme="dark"] .single-photo-author-card__top h2,
html[data-theme="dark"] .single-photo-author-card__top h2 a,
html[data-theme="dark"] .single-photo-comments-card h3{
    color:#edf4ff!important;
}
html[data-theme="dark"] .single-photo-stats div{
    color:#dce8f8!important;
    border-color:#3a5275!important;
    background:#22324a!important;
}
html[data-theme="dark"] .single-photo-stats span{color:#9fb1ca!important}
html[data-theme="dark"] .single-photo-stats strong{color:#f0f5ff!important}
html[data-theme="dark"] .single-photo-week{
    color:#bdd3ff!important;
    background:#223653!important;
    border:1px solid #3b5578!important;
}
html[data-theme="dark"] .photo-comments{
    color:#dce8f8!important;
    background:#18263b!important;
}

/* 2) Multi-select dropdown "Кого ищу": make the popup fully dark everywhere. */
html[data-theme="dark"] .search-multi-dropdown,
html[data-theme="dark"] .search-multi-dropdown.ad-multi-dropdown,
html[data-theme="dark"] .home-search__field--multi-dropdown .search-multi-dropdown.ad-multi-dropdown,
html[data-theme="dark"] .profile-looking-multi .search-multi-dropdown.ad-multi-dropdown,
html[data-theme="dark"] .ad-new-field--multi-dropdown .search-multi-dropdown{
    color:#dce8f8!important;
}
html[data-theme="dark"] .search-multi-dropdown summary,
html[data-theme="dark"] .search-multi-dropdown.ad-multi-dropdown summary,
html[data-theme="dark"] .home-search__field--multi-dropdown .search-multi-dropdown.ad-multi-dropdown summary,
html[data-theme="dark"] .profile-looking-multi .search-multi-dropdown.ad-multi-dropdown summary,
html[data-theme="dark"] .ad-new-field--multi-dropdown .search-multi-dropdown summary{
    color:#e8f1ff!important;
    background:#16243a!important;
    border-color:#3a5275!important;
}
html[data-theme="dark"] .search-multi-dropdown__panel,
html[data-theme="dark"] .ad-multi-dropdown__panel,
html[data-theme="dark"] .search-multi-dropdown.ad-multi-dropdown .ad-multi-dropdown__panel,
html[data-theme="dark"] .search-multi-dropdown.ad-multi-dropdown .search-multi-dropdown__panel.ad-multi-dropdown__panel,
html[data-theme="dark"] .home-search__field--multi-dropdown .search-multi-dropdown.ad-multi-dropdown .ad-multi-dropdown__panel,
html[data-theme="dark"] .home-search__field--multi-dropdown .search-multi-dropdown.ad-multi-dropdown .search-multi-dropdown__panel.ad-multi-dropdown__panel,
html[data-theme="dark"] .profile-looking-multi .search-multi-dropdown.ad-multi-dropdown .ad-multi-dropdown__panel,
html[data-theme="dark"] .ad-new-field--multi-dropdown .search-multi-dropdown__panel{
    color:#dce8f8!important;
    background:#1b293f!important;
    border-color:#3a5275!important;
    box-shadow:0 22px 48px rgba(0,0,0,.30)!important;
}
html[data-theme="dark"] .search-multi-dropdown__title{color:#a8b9cf!important}
html[data-theme="dark"] .search-multi-dropdown__panel small,
html[data-theme="dark"] .ad-multi-dropdown__panel small{color:#98a9c0!important}
html[data-theme="dark"] .search-multi-dropdown.ad-multi-dropdown .multi-check,
html[data-theme="dark"] .search-multi-dropdown.ad-multi-dropdown .multi-check span,
html[data-theme="dark"] .multi-check span{
    color:#dce8f8!important;
    background:#22334f!important;
    border-color:#3b5578!important;
    box-shadow:none!important;
}
html[data-theme="dark"] .search-multi-dropdown.ad-multi-dropdown .multi-check:hover span,
html[data-theme="dark"] .multi-check:hover span{
    color:#fff!important;
    background:#2a456a!important;
    border-color:#5a7eae!important;
}
html[data-theme="dark"] .search-multi-dropdown.ad-multi-dropdown .multi-check input:checked + span,
html[data-theme="dark"] .multi-check input:checked + span{
    color:#fff!important;
    background:linear-gradient(135deg,#315caa,#284f94)!important;
    border-color:#5683ce!important;
    box-shadow:0 12px 22px rgba(0,0,0,.18)!important;
}

/* 3) Generic dark pagination and per-page controls. */
html[data-theme="dark"] .pagination a,
html[data-theme="dark"] .pagination strong,
html[data-theme="dark"] .pagination span{
    color:#c7d7ed!important;
    background:#21334f!important;
    border-color:#3b5275!important;
    box-shadow:0 10px 22px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .pagination strong{
    color:#fff!important;
    background:#315caa!important;
    border-color:#5683ce!important;
}
html[data-theme="dark"] .pagination a:hover{
    color:#fff!important;
    background:#2a456a!important;
    border-color:#5a7eae!important;
}
html[data-theme="dark"] .pagination-summary{
    color:#c7d7ed!important;
    background:#21334f!important;
    border-color:#3b5275!important;
}
html[data-theme="dark"] .per-page-form label{
    color:#c7d7ed!important;
    background:#21334f!important;
    border-color:#3b5275!important;
    box-shadow:none!important;
}
html[data-theme="dark"] .per-page-form select,
html[data-theme="dark"] .home-search__field--per-page select,
html[data-theme="dark"] .top-photo-controls .per-page-form select{
    color:#fff!important;
    background:#21334f!important;
}

/* 4) TOP photos toolbar: dark selector shell and page badge. */
html[data-theme="dark"] .top-photo-controls .per-page-form label,
html[data-theme="dark"] .top-photo-controls .pagination-summary{
    color:#c7d7ed!important;
    background:#21334f!important;
    border-color:#3b5275!important;
    box-shadow:none!important;
}
html[data-theme="dark"] .top-photo-controls .per-page-form select{
    color:#fff!important;
    background:#21334f!important;
}

/* 5) Profiles directory page: dark cards, summary strip and list surface. */
html[data-theme="dark"] .profiles-list-panel{
    background:linear-gradient(180deg,#19263b,#18253a)!important;
    border-color:#31415d!important;
    box-shadow:0 14px 32px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .profiles-summary-strip span{
    color:#c7d7ed!important;
    background:#21334f!important;
    border-color:#3b5275!important;
    box-shadow:0 10px 22px rgba(0,0,0,.14)!important;
}
html[data-theme="dark"] .profiles-summary-strip strong{color:#edf4ff!important}
html[data-theme="dark"] .profiles-directory-card{
    color:#e7effc!important;
    background:#19263b!important;
    border-color:#344762!important;
    box-shadow:0 16px 34px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .profiles-directory-card:hover{
    border-color:#5a7eae!important;
    box-shadow:0 20px 40px rgba(0,0,0,.22)!important;
}
html[data-theme="dark"] .profiles-directory-card__photo{background:#22334e!important}
html[data-theme="dark"] .profiles-directory-card__body strong{color:#edf4ff!important}
html[data-theme="dark"] .profiles-directory-card__body small{color:#a6b6cc!important}
html[data-theme="dark"] .profiles-directory-card__pair b{
    color:#bdd3ff!important;
    background:#223653!important;
}
html[data-theme="dark"] .profiles-directory-card__pair em{
    color:#ffabc5!important;
    background:#3b2838!important;
}
html[data-theme="dark"] .profiles-directory-card__about{color:#c3d2e7!important}
html[data-theme="dark"] .profiles-directory-card__stats span{
    color:#c7d7ed!important;
    background:#21334f!important;
    border:1px solid #3b5275!important;
}
html[data-theme="dark"] .profiles-directory-card--vip{
    background:linear-gradient(180deg,#202d40 0%,#1b293d 100%)!important;
    border-color:#d9ae57!important;
    box-shadow:0 16px 34px rgba(0,0,0,.20),0 0 0 1px rgba(255,211,118,.32),0 0 18px rgba(210,161,70,.10)!important;
}
html[data-theme="dark"] .profiles-directory-card--vip::before{
    background:linear-gradient(135deg,rgba(144,111,51,.16),rgba(255,255,255,0),rgba(116,83,31,.12))!important;
}

/* PATCH 2026-06-02: public news dark-theme cleanup.
   Palette only: no layout, dimensions, HTML, PHP, JS or routes changed. */
html[data-theme="dark"] .news-hero,
html[data-theme="dark"] .news-article{
    color:#e8f1ff!important;
}
html[data-theme="dark"] .news-hero h1,
html[data-theme="dark"] .news-article h1{
    color:#edf4ff!important;
}
html[data-theme="dark"] .news-hero p{
    color:#a9b9cf!important;
}
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .news-list .news-card,
html[data-theme="dark"] .news-card.panel{
    color:#dce8f8!important;
    background:linear-gradient(180deg,#1b293f 0%,#18263b 100%)!important;
    border-color:#344762!important;
    box-shadow:0 14px 32px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .news-card__meta{
    color:#9fb1ca!important;
}
html[data-theme="dark"] .news-card__pin{
    color:#ffd493!important;
    background:#483621!important;
    border:1px solid #745731!important;
}
html[data-theme="dark"] .news-card h2,
html[data-theme="dark"] .news-card h2 a{
    color:#edf4ff!important;
}
html[data-theme="dark"] .news-card h2 a:hover{
    color:#9fc1ff!important;
}
html[data-theme="dark"] .news-card p{
    color:#c2d0e4!important;
    background:transparent!important;
}
html[data-theme="dark"] .news-card__more,
html[data-theme="dark"] .news-back-link{
    color:#9fc1ff!important;
}
html[data-theme="dark"] .news-card__more:hover,
html[data-theme="dark"] .news-back-link:hover{
    color:#d2e1ff!important;
}
html[data-theme="dark"] .news-article{
    color:#dce8f8!important;
}
html[data-theme="dark"] .news-article__lead{
    color:#dce8f8!important;
    background:#22324a!important;
    border:1px solid #3a5275!important;
    box-shadow:none!important;
}
html[data-theme="dark"] .news-richtext,
html[data-theme="dark"] .news-article__body{
    color:#dce8f8!important;
}
html[data-theme="dark"] .news-richtext p,
html[data-theme="dark"] .news-article__body p,
html[data-theme="dark"] .news-richtext li,
html[data-theme="dark"] .news-article__body li{
    color:#dce8f8!important;
}
html[data-theme="dark"] .news-richtext h2,
html[data-theme="dark"] .news-richtext h3,
html[data-theme="dark"] .news-article__body h2,
html[data-theme="dark"] .news-article__body h3{
    color:#edf4ff!important;
}
html[data-theme="dark"] .news-richtext blockquote,
html[data-theme="dark"] .news-article__body blockquote{
    color:#dce8f8!important;
    background:#22324a!important;
    border-left-color:#6f9fff!important;
}
html[data-theme="dark"] .news-richtext a,
html[data-theme="dark"] .news-article__body a{
    color:#9fc1ff!important;
}
html[data-theme="dark"] .news-richtext a:hover,
html[data-theme="dark"] .news-article__body a:hover{
    color:#d2e1ff!important;
}

/* PATCH 2026-06-02: dark theme cabinet remaining light areas */
html[data-theme="dark"] .cabinet-profile-settings,
html[data-theme="dark"] .cabinet-mail-settings,
html[data-theme="dark"] .cabinet-favorites,
html[data-theme="dark"] .cabinet-my-ads,
html[data-theme="dark"] .cabinet-messages,
html[data-theme="dark"] .cabinet-photos,
html[data-theme="dark"] .cabinet-section{
    background:linear-gradient(180deg,#1b293f,#182438)!important;
    border-color:#31415d!important;
    box-shadow:0 14px 32px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .cabinet-profile-settings__item,
html[data-theme="dark"] .cabinet-mail-settings__card,
html[data-theme="dark"] .cabinet-favorite-card,
html[data-theme="dark"] .profile-security-toggle,
html[data-theme="dark"] .toggle-row--inline{
    color:#edf4ff!important;
    background:linear-gradient(180deg,#1a273c,#162236)!important;
    border-color:#344863!important;
    box-shadow:0 12px 28px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .cabinet-profile-settings__item span,
html[data-theme="dark"] .cabinet-mail-settings__card span,
html[data-theme="dark"] .cabinet-mail-settings__card small,
html[data-theme="dark"] .cabinet-favorite-card span,
html[data-theme="dark"] .cabinet-favorite-card small,
html[data-theme="dark"] .toggle-row--inline span,
html[data-theme="dark"] .toggle-row--inline small,
html[data-theme="dark"] .profile-security-toggle small{
    color:#9fb1ca!important;
}
html[data-theme="dark"] .cabinet-profile-settings__item strong,
html[data-theme="dark"] .cabinet-mail-settings__card strong,
html[data-theme="dark"] .cabinet-favorite-card strong,
html[data-theme="dark"] .profile-security-toggle strong,
html[data-theme="dark"] .cabinet-profile-settings__richtext,
html[data-theme="dark"] .cabinet-profile-settings__richtext p,
html[data-theme="dark"] .cabinet-profile-settings__richtext li,
html[data-theme="dark"] .cabinet-profile-settings__richtext strong,
html[data-theme="dark"] .cabinet-profile-settings__richtext b,
html[data-theme="dark"] .cabinet-profile-settings__richtext em,
html[data-theme="dark"] .cabinet-profile-settings__richtext i,
html[data-theme="dark"] .cabinet-favorite-card{
    color:#e4edf9!important;
}
html[data-theme="dark"] .cabinet-profile-settings__head .button-link,
html[data-theme="dark"] .cabinet-mail-settings__head .button-link,
html[data-theme="dark"] .profile-completion-card__steps a{
    background:#20324e!important;
    border-color:#41597d!important;
    color:#bcd0ee!important;
}
html[data-theme="dark"] .cabinet-profile-settings__head .button-link:hover,
html[data-theme="dark"] .cabinet-mail-settings__head .button-link:hover,
html[data-theme="dark"] .profile-completion-card__steps a:hover{
    background:#294163!important;
    border-color:#5e81b3!important;
    color:#fff!important;
}
html[data-theme="dark"] .mail-status--ok{
    color:#8bf0b7!important;
    background:rgba(17,94,72,.35)!important;
    border-color:rgba(52,211,153,.32)!important;
}
html[data-theme="dark"] .mail-status--warn{
    color:#ffd48a!important;
    background:rgba(120,68,12,.28)!important;
    border-color:rgba(245,158,11,.34)!important;
}
html[data-theme="dark"] .cabinet-profile-footer-links{
    border-top:1px solid rgba(73,100,140,.35);
    padding-top:14px;
}
html[data-theme="dark"] .cabinet-feedback-link{color:#8db6ff!important}
html[data-theme="dark"] .cabinet-feedback-link:hover{color:#bfd6ff!important}
html[data-theme="dark"] .cabinet-delete-profile-link__anchor{color:#ff8d8d!important}
html[data-theme="dark"] .cabinet-delete-profile-link__anchor:hover{color:#ffb1b1!important}

/* PATCH 2026-06-02: dark theme cleanup for /profile/settings */
html[data-theme="dark"] .profile-settings-hero{
    color:#e7efff!important;
    background:linear-gradient(135deg,#1b2940 0%,#1a263b 55%,#202d48 100%)!important;
    border-color:#344b6b!important;
    box-shadow:0 18px 42px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .profile-settings-hero h1{color:#edf4ff!important;text-shadow:0 10px 26px rgba(0,0,0,.18)!important}
html[data-theme="dark"] .profile-settings-hero p{color:#9fb1ca!important}
html[data-theme="dark"] .profile-settings-hero .kicker{color:#8db6ff!important}
html[data-theme="dark"] .profile-settings-public-link,
html[data-theme="dark"] .profile-settings-back{
    color:#cfe0ff!important;
    background:#223754!important;
    border-color:#3c567b!important;
}
html[data-theme="dark"] .profile-settings-public-link:hover,
html[data-theme="dark"] .profile-settings-back:hover{
    color:#fff!important;
    background:#2b456a!important;
    border-color:#5a7eae!important;
}
html[data-theme="dark"] .profile-security-toggle{
    color:#e7efff!important;
    background:linear-gradient(180deg,#1a273c,#162236)!important;
    border-color:#344863!important;
    box-shadow:0 12px 28px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .profile-security-toggle span,
html[data-theme="dark"] .profile-security-message-rule,
html[data-theme="dark"] .profile-security-message-rule .ad-new-field__label{
    color:#e7efff!important;
}
html[data-theme="dark"] .profile-rich-editor{
    background:#18263b!important;
    border-color:#3a5275!important;
    box-shadow:0 12px 28px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .profile-rich-toolbar{
    background:#1f314b!important;
    border-bottom-color:#334b6d!important;
}
html[data-theme="dark"] .profile-rich-toolbar button{
    color:#dce8f8!important;
    background:#243854!important;
    border-color:#3c567b!important;
}
html[data-theme="dark"] .profile-rich-toolbar button:hover{
    color:#fff!important;
    background:#2d4a70!important;
    border-color:#5b83b7!important;
}
html[data-theme="dark"] .profile-rich-content{
    color:#e7efff!important;
    background:#18263b!important;
}
html[data-theme="dark"] .profile-rich-content.is-empty::before{color:#90a4c0!important}
html[data-theme="dark"] .profile-settings-warning{
    background:linear-gradient(180deg,#34281d,#2b2118)!important;
    border-color:#7a5b33!important;
}
html[data-theme="dark"] .profile-settings-warning h2{color:#ffe1a8!important}
html[data-theme="dark"] .profile-settings-warning p,
html[data-theme="dark"] .profile-settings-warning .ad-new-card__num{color:#ffd08a!important}

/* PATCH 2026-06-02: dark theme cleanup for /profile/photos and /profile/services */
html[data-theme="dark"] .profile-photos-hero,
html[data-theme="dark"] .paid-services-hero{
    color:#e7efff!important;
    background:linear-gradient(135deg,#1b2940 0%,#1a263b 58%,#202d48 100%)!important;
    border-color:#344b6b!important;
    box-shadow:0 18px 42px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .profile-photos-hero h1,
html[data-theme="dark"] .paid-services-hero h1{color:#edf4ff!important;text-shadow:0 10px 26px rgba(0,0,0,.18)!important}
html[data-theme="dark"] .profile-photos-hero p,
html[data-theme="dark"] .paid-services-hero p{color:#9fb1ca!important}
html[data-theme="dark"] .profile-photos-hero .kicker,
html[data-theme="dark"] .paid-services-hero .kicker{color:#8db6ff!important}

html[data-theme="dark"] .profile-photos-preview-card{
    background:#18263b!important;
    border-color:#3a5275!important;
    box-shadow:0 12px 28px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .profile-photos-preview-card__photo{background:#21324a!important}
html[data-theme="dark"] .profile-photos-preview-card__top{color:#9fb1ca!important}
html[data-theme="dark"] .profile-photos-preview-card__top strong{
    background:#1d3b2e!important;
    color:#9cf4bf!important;
}
html[data-theme="dark"] .profile-photos-preview-card__top strong::before{box-shadow:0 0 0 4px rgba(34,197,94,.14)!important}
html[data-theme="dark"] .profile-photos-preview-card h2{color:#edf4ff!important}
html[data-theme="dark"] .profile-photos-preview-card__chips span{
    background:#223754!important;
    color:#cfe0ff!important;
    border:1px solid #385273!important;
}
html[data-theme="dark"] .profile-photos-preview-card__facts div{
    background:#1e3049!important;
    border-color:#334b6d!important;
}
html[data-theme="dark"] .profile-photos-preview-card__facts dt,
html[data-theme="dark"] .profile-photos-preview-card__empty{color:#9fb1ca!important}
html[data-theme="dark"] .profile-photos-preview-card__facts dd{color:#edf4ff!important}
html[data-theme="dark"] .profile-photos-preview-card__link{
    background:#2f6bff!important;
    color:#fff!important;
}
html[data-theme="dark"] .profile-photos-preview-card__link:hover{background:#4c82ff!important}

html[data-theme="dark"] .photo-quota-panel,
html[data-theme="dark"] .activation-limits-panel{
    background:linear-gradient(135deg,#1b2940,#1a263b)!important;
    border-color:#365075!important;
}
html[data-theme="dark"] .photo-quota-panel h2,
html[data-theme="dark"] .activation-limits-panel h2{color:#edf4ff!important}
html[data-theme="dark"] .photo-quota-panel p,
html[data-theme="dark"] .activation-limits-panel p,
html[data-theme="dark"] .photo-quota-panel .muted{color:#9fb1ca!important}

html[data-theme="dark"] .profile-bulk-upload-form{
    background:#18263b!important;
    border-color:#344b6b!important;
}
html[data-theme="dark"] .profile-bulk-upload-form label:not(.checkline),
html[data-theme="dark"] .profile-bulk-upload-form .muted,
html[data-theme="dark"] .profile-bulk-upload-form .section-head p{color:#9fb1ca!important}
html[data-theme="dark"] .profile-bulk-upload-form h2{color:#edf4ff!important}
html[data-theme="dark"] .profile-bulk-upload-form select,
html[data-theme="dark"] .profile-bulk-upload-form input[type="text"],
html[data-theme="dark"] .profile-photo-edit-form select,
html[data-theme="dark"] .album-create-form input[type="text"],
html[data-theme="dark"] .profile-album-form input[type="text"]{
    background:#16253a!important;
    color:#edf4ff!important;
    border-color:#446082!important;
}
html[data-theme="dark"] .profile-bulk-upload-form select::placeholder,
html[data-theme="dark"] .profile-bulk-upload-form input[type="text"]::placeholder,
html[data-theme="dark"] .album-create-form input[type="text"]::placeholder,
html[data-theme="dark"] .profile-album-form input[type="text"]::placeholder{color:#8ea3bf!important}
html[data-theme="dark"] .profile-bulk-upload-form .checkline,
html[data-theme="dark"] .profile-photo-edit-check{color:#dce8f8!important}
html[data-theme="dark"] .profile-bulk-upload-box,
html[data-theme="dark"] .profile-bulk-upload-row{
    background:#1c2c44!important;
    border-color:#334b6d!important;
}
html[data-theme="dark"] .ad-new-upload-status{color:#9fb1ca!important}
html[data-theme="dark"] .profile-photo-edit-form label:not(.checkline),
html[data-theme="dark"] .album-create-form label:not(.checkline),
html[data-theme="dark"] .profile-album-form label:not(.checkline){color:#c9d8ee!important}
html[data-theme="dark"] .profile-photo-sync-check{
    background:#1f314b!important;
    border-color:#365075!important;
}
html[data-theme="dark"] .profile-photo-current-main{
    background:#1d3b2e!important;
    color:#9cf4bf!important;
}

html[data-theme="dark"] .album-create-form,
html[data-theme="dark"] .profile-album-card,
html[data-theme="dark"] .profile-photo-card{
    background:#18263b!important;
    border-color:#3a5275!important;
    box-shadow:0 12px 28px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .profile-album-meta span{
    background:#223754!important;
    color:#cfe0ff!important;
    border:1px solid #385273!important;
}
html[data-theme="dark"] .profile-album-delete{border-top-color:#334b6d!important}

html[data-theme="dark"] .paid-services-status .status,
html[data-theme="dark"] .paid-services-rate{
    background:#223754!important;
    color:#cfe0ff!important;
    border:1px solid #385273!important;
}
html[data-theme="dark"] .paid-services-alert{
    background:linear-gradient(180deg,#34281d,#2b2118)!important;
    border-color:#7a5b33!important;
}
html[data-theme="dark"] .paid-services-alert h2{color:#ffe1a8!important}
html[data-theme="dark"] .paid-services-alert p{color:#ffd08a!important}

html[data-theme="dark"] .paid-balance-panel{
    background:linear-gradient(135deg,#1b2940 0%,#1a263b 58%,#202d48 100%)!important;
    border-color:#344b6b!important;
}
html[data-theme="dark"] .paid-balance-topup-form,
html[data-theme="dark"] .paid-service-card,
html[data-theme="dark"] .payment-order-card{
    background:#18263b!important;
    border-color:#3a5275!important;
    box-shadow:0 12px 28px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .paid-balance-topup-form label,
html[data-theme="dark"] .paid-service-select-label,
html[data-theme="dark"] .paid-services-panel .panel__head p,
html[data-theme="dark"] .paid-service-card p,
html[data-theme="dark"] .payment-order-actions small,
html[data-theme="dark"] .payment-order-note,
html[data-theme="dark"] .paid-balance-topup-form small,
html[data-theme="dark"] .paid-service-form-stack small{color:#9fb1ca!important}
html[data-theme="dark"] .paid-balance-topup-form input,
html[data-theme="dark"] .paid-service-select-label select{
    background:#16253a!important;
    color:#edf4ff!important;
    border-color:#446082!important;
}
html[data-theme="dark"] .paid-service-card h3,
html[data-theme="dark"] .payment-order-card__head h3,
html[data-theme="dark"] .paid-services-panel h2{color:#edf4ff!important}
html[data-theme="dark"] .paid-service-card__price strong,
html[data-theme="dark"] .paid-service-card__price span{color:#edf4ff!important}
html[data-theme="dark"] .paid-service-card--bump,
html[data-theme="dark"] .paid-service-card--gift{
    background:#18263b!important;
}
html[data-theme="dark"] .payment-order-card--active{
    background:linear-gradient(180deg,#1b2940,#18263b)!important;
    border-color:#4a678f!important;
}
html[data-theme="dark"] .payment-wallet-box{background:#101828!important;color:#fff!important}
html[data-theme="dark"] .payment-order-details div{
    background:#1f314b!important;
    border-color:#334b6d!important;
}
html[data-theme="dark"] .payment-order-details span{color:#9fb1ca!important}
html[data-theme="dark"] .payment-order-details strong,
html[data-theme="dark"] .payment-wallet-code{color:#edf4ff!important}
html[data-theme="dark"] .payment-wallet-code{
    background:#223754!important;
    border:1px solid #385273!important;
}
html[data-theme="dark"] .balance-tx-plus{color:#78e6a5!important}
html[data-theme="dark"] .balance-tx-minus{color:#ff8f8f!important}
html[data-theme="dark"] .paid-services-panel .empty,
html[data-theme="dark"] .profile-photos-preview-card .empty{color:#9fb1ca!important}

/* PATCH 2026-06-02: dark theme cleanup for admin dashboard */
html[data-theme="dark"] .admin-dashboard-head{
    background:linear-gradient(135deg,#1b2940 0%,#1a263b 58%,#202d48 100%)!important;
    border-color:#344b6b!important;
    box-shadow:0 18px 42px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .admin-dashboard-head h1{color:#edf4ff!important}
html[data-theme="dark"] .admin-dashboard-head p,
html[data-theme="dark"] .admin-dashboard-head .muted{color:#9fb1ca!important}
html[data-theme="dark"] .admin-dashboard-kicker{
    background:#223754!important;
    color:#8db6ff!important;
    border:1px solid #385273!important;
}
html[data-theme="dark"] .admin-site-switch__button{
    background:#18263b!important;
    color:#edf4ff!important;
    border-color:#3a5275!important;
    box-shadow:0 12px 28px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .admin-site-switch__button:hover{
    box-shadow:0 16px 32px rgba(0,0,0,.22)!important;
}
html[data-theme="dark"] .admin-site-switch__text strong{color:#edf4ff!important}
html[data-theme="dark"] .admin-site-switch__text small{color:#9fb1ca!important}
html[data-theme="dark"] .admin-site-switch__track{
    background:#334155!important;
    box-shadow:inset 0 2px 8px rgba(0,0,0,.35)!important;
}

html[data-theme="dark"] .admin-dashboard-stat,
html[data-theme="dark"] .admin-dashboard-chart-card,
html[data-theme="dark"] .admin-dashboard-section-card{
    background:linear-gradient(180deg,#18263b,#1b2940)!important;
    border-color:#3a5275!important;
    color:#edf4ff!important;
    box-shadow:0 12px 28px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .admin-dashboard-stat:hover,
html[data-theme="dark"] .admin-dashboard-section-card:hover{
    border-color:#5b83c0!important;
    box-shadow:0 18px 36px rgba(0,0,0,.22)!important;
}
html[data-theme="dark"] .admin-dashboard-stat::before,
html[data-theme="dark"] .admin-dashboard-chart-card::before{
    opacity:.9;
}
html[data-theme="dark"] .admin-dashboard-stat__icon,
html[data-theme="dark"] .admin-dashboard-section-card__icon{
    background:#223754!important;
    color:#8db6ff!important;
    border:1px solid #385273!important;
}
html[data-theme="dark"] .admin-dashboard-stat__body strong,
html[data-theme="dark"] .admin-dashboard-chart-card__head > strong,
html[data-theme="dark"] .admin-dashboard-split-metrics b,
html[data-theme="dark"] .admin-dashboard-section-title h2,
html[data-theme="dark"] .admin-dashboard-section-card__body strong,
html[data-theme="dark"] .admin-dashboard-chart-card h2{
    color:#edf4ff!important;
}
html[data-theme="dark"] .admin-dashboard-stat__body span{color:#e6eefc!important}
html[data-theme="dark"] .admin-dashboard-stat__body small,
html[data-theme="dark"] .admin-dashboard-chart-card p,
html[data-theme="dark"] .admin-dashboard-chart-card__head > strong span,
html[data-theme="dark"] .admin-dashboard-section-title p,
html[data-theme="dark"] .admin-dashboard-section-card__body small,
html[data-theme="dark"] .admin-dashboard-bar small,
html[data-theme="dark"] .admin-dashboard-split-metrics span{
    color:#9fb1ca!important;
}
html[data-theme="dark"] .admin-dashboard-stat--warn .admin-dashboard-stat__icon{background:#3a2a17!important;color:#ffcc80!important;border-color:#8a6331!important}
html[data-theme="dark"] .admin-dashboard-stat--ok .admin-dashboard-stat__icon{background:#173425!important;color:#8ff0b5!important;border-color:#2f7a57!important}
html[data-theme="dark"] .admin-dashboard-stat--danger .admin-dashboard-stat__icon{background:#3b1e2a!important;color:#ff9fba!important;border-color:#8d4561!important}
html[data-theme="dark"] .admin-dashboard-stat--gold .admin-dashboard-stat__icon{background:#3a2f18!important;color:#ffd88a!important;border-color:#8a6a2f!important}
html[data-theme="dark"] .admin-dashboard-stat--violet .admin-dashboard-stat__icon{background:#2a2347!important;color:#c9b5ff!important;border-color:#6250a4!important}
html[data-theme="dark"] .admin-dashboard-stat--cyan .admin-dashboard-stat__icon{background:#183847!important;color:#86e8ff!important;border-color:#2c7089!important}
html[data-theme="dark"] .admin-dashboard-stat--warn::before{background:rgba(245,158,11,.16)!important}
html[data-theme="dark"] .admin-dashboard-stat--ok::before{background:rgba(34,197,94,.16)!important}
html[data-theme="dark"] .admin-dashboard-stat--danger::before{background:rgba(225,29,72,.14)!important}
html[data-theme="dark"] .admin-dashboard-stat--gold::before{background:rgba(217,119,6,.16)!important}
html[data-theme="dark"] .admin-dashboard-stat--violet::before{background:rgba(109,40,217,.16)!important}
html[data-theme="dark"] .admin-dashboard-stat--cyan::before{background:rgba(8,145,178,.16)!important}

html[data-theme="dark"] .admin-dashboard-bars{
    background:linear-gradient(180deg,#1f314b,#1b2940)!important;
    border-color:#334b6d!important;
}
html[data-theme="dark"] .admin-dashboard-bar__value{
    box-shadow:0 10px 18px rgba(37,99,235,.22)!important;
}
html[data-theme="dark"] .admin-dashboard-split-metrics div{
    background:#1f314b!important;
    border-color:#334b6d!important;
}

html[data-theme="dark"] .admin-dashboard-sections{
    background:linear-gradient(135deg,#1b2940 0%,#1a263b 58%,#202d48 100%)!important;
    border-color:#344b6b!important;
    box-shadow:0 18px 42px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .admin-dashboard-section-card em{
    background:#223754!important;
    color:#8db6ff!important;
    border:1px solid #385273!important;
}

/* PATCH 2026-06-02: dark theme fix for actual admin dashboard v2 classes */
html[data-theme="dark"] .admin-dashboard-v2-head,
html[data-theme="dark"] .admin-dashboard-v2-sections{
    background:linear-gradient(135deg,#1b2940 0%,#1a263b 58%,#202d48 100%) !important;
    border-color:#344b6b !important;
    box-shadow:0 18px 42px rgba(0,0,0,.18) !important;
}
html[data-theme="dark"] .admin-dashboard-v2-title h1,
html[data-theme="dark"] .admin-dashboard-v2-sections__head h2,
html[data-theme="dark"] .admin-dashboard-v2-chart__head h2,
html[data-theme="dark"] .admin-dashboard-v2-section__body strong,
html[data-theme="dark"] .admin-dashboard-v2-stat__body strong,
html[data-theme="dark"] .admin-dashboard-v2-chart__value b{
    color:#edf4ff !important;
}
html[data-theme="dark"] .admin-dashboard-v2-title span{
    color:#8db6ff !important;
}
html[data-theme="dark"] .admin-dashboard-v2-sections__head p,
html[data-theme="dark"] .admin-dashboard-v2-chart__head p,
html[data-theme="dark"] .admin-dashboard-v2-section__body small,
html[data-theme="dark"] .admin-dashboard-v2-stat__body small,
html[data-theme="dark"] .admin-dashboard-v2-chart__value span,
html[data-theme="dark"] .admin-dashboard-v2-bar small,
html[data-theme="dark"] .admin-dashboard-v2-switch__text small{
    color:#9fb1ca !important;
}
html[data-theme="dark"] .admin-dashboard-v2-stat__body span{
    color:#e6eefc !important;
}

html[data-theme="dark"] .admin-dashboard-v2-switch button{
    background:#18263b !important;
    color:#edf4ff !important;
    border-color:#3a5275 !important;
    box-shadow:0 12px 28px rgba(0,0,0,.16) !important;
}
html[data-theme="dark"] .admin-dashboard-v2-switch button:hover{
    box-shadow:0 16px 32px rgba(0,0,0,.22) !important;
}
html[data-theme="dark"] .admin-dashboard-v2-switch__track{
    background:#334155 !important;
    box-shadow:inset 0 2px 8px rgba(0,0,0,.35) !important;
}
html[data-theme="dark"] .admin-dashboard-v2-switch .is-on .admin-dashboard-v2-switch__track{
    background:#22c55e !important;
}
html[data-theme="dark"] .admin-dashboard-v2-switch__text strong{
    color:#edf4ff !important;
}

html[data-theme="dark"] .admin-dashboard-v2-stat,
html[data-theme="dark"] .admin-dashboard-v2-chart,
html[data-theme="dark"] .admin-dashboard-v2-section{
    background:linear-gradient(180deg,#18263b,#1b2940) !important;
    border-color:#3a5275 !important;
    color:#edf4ff !important;
    box-shadow:0 12px 28px rgba(0,0,0,.16) !important;
}
html[data-theme="dark"] .admin-dashboard-v2-stat:hover,
html[data-theme="dark"] .admin-dashboard-v2-chart:hover,
html[data-theme="dark"] .admin-dashboard-v2-section:hover{
    border-color:#5b83c0 !important;
    box-shadow:0 18px 36px rgba(0,0,0,.22) !important;
}
html[data-theme="dark"] .admin-dashboard-v2-stat::before,
html[data-theme="dark"] .admin-dashboard-v2-chart::before{
    opacity:.9;
}
html[data-theme="dark"] .admin-dashboard-v2-stat__icon,
html[data-theme="dark"] .admin-dashboard-v2-section__icon{
    background:#223754 !important;
    color:#8db6ff !important;
    border:1px solid #385273 !important;
}
html[data-theme="dark"] .admin-dashboard-v2-stat--orange .admin-dashboard-v2-stat__icon{background:#3a2a17 !important;color:#ffcc80 !important;border-color:#8a6331 !important}
html[data-theme="dark"] .admin-dashboard-v2-stat--green .admin-dashboard-v2-stat__icon{background:#173425 !important;color:#8ff0b5 !important;border-color:#2f7a57 !important}
html[data-theme="dark"] .admin-dashboard-v2-stat--red .admin-dashboard-v2-stat__icon{background:#3b1e2a !important;color:#ff9fba !important;border-color:#8d4561 !important}
html[data-theme="dark"] .admin-dashboard-v2-stat--gold .admin-dashboard-v2-stat__icon{background:#3a2f18 !important;color:#ffd88a !important;border-color:#8a6a2f !important}
html[data-theme="dark"] .admin-dashboard-v2-stat--violet .admin-dashboard-v2-stat__icon{background:#2a2347 !important;color:#c9b5ff !important;border-color:#6250a4 !important}
html[data-theme="dark"] .admin-dashboard-v2-stat--cyan .admin-dashboard-v2-stat__icon{background:#183847 !important;color:#86e8ff !important;border-color:#2c7089 !important}
html[data-theme="dark"] .admin-dashboard-v2-stat--blue .admin-dashboard-v2-stat__icon{background:#223754 !important;color:#8db6ff !important;border-color:#385273 !important}
html[data-theme="dark"] .admin-dashboard-v2-stat--orange::before{background:rgba(245,158,11,.16) !important}
html[data-theme="dark"] .admin-dashboard-v2-stat--green::before{background:rgba(34,197,94,.16) !important}
html[data-theme="dark"] .admin-dashboard-v2-stat--red::before{background:rgba(225,29,72,.14) !important}
html[data-theme="dark"] .admin-dashboard-v2-stat--gold::before{background:rgba(217,119,6,.16) !important}
html[data-theme="dark"] .admin-dashboard-v2-stat--violet::before{background:rgba(109,40,217,.16) !important}
html[data-theme="dark"] .admin-dashboard-v2-stat--cyan::before{background:rgba(8,145,178,.16) !important}
html[data-theme="dark"] .admin-dashboard-v2-stat--blue::before{background:rgba(37,99,235,.16) !important}

html[data-theme="dark"] .admin-dashboard-v2-bars{
    background:linear-gradient(180deg,#1f314b,#1b2940) !important;
    border-color:#334b6d !important;
}
html[data-theme="dark"] .admin-dashboard-v2-bar{
    color:#9fb1ca !important;
}
html[data-theme="dark"] .admin-dashboard-v2-bar__fill{
    box-shadow:0 10px 18px rgba(37,99,235,.22) !important;
}
html[data-theme="dark"] .admin-dashboard-v2-chart__value,
html[data-theme="dark"] .admin-dashboard-v2-section em{
    background:#223754 !important;
    color:#8db6ff !important;
    border:1px solid #385273 !important;
}

/* PATCH 2026-06-02: dark theme fix for admin user detail page and admin detail panels */
html[data-theme="dark"] .body--admin .admin-user-email-card,
html[data-theme="dark"] .body--admin .panel.table-wrap,
html[data-theme="dark"] .body--admin .panel.page-title{
    background:linear-gradient(135deg,#1b2940 0%,#1a263b 58%,#202d48 100%) !important;
    border-color:#344b6b !important;
    box-shadow:0 18px 42px rgba(0,0,0,.18) !important;
}
html[data-theme="dark"] .body--admin .admin-user-email-card h2,
html[data-theme="dark"] .body--admin .admin-user-email-card h3,
html[data-theme="dark"] .body--admin .panel.table-wrap h2,
html[data-theme="dark"] .body--admin .panel.page-title h1,
html[data-theme="dark"] .body--admin .panel.page-title h2{
    color:#edf4ff !important;
}
html[data-theme="dark"] .body--admin .panel.page-title p,
html[data-theme="dark"] .body--admin .admin-user-email-card > p,
html[data-theme="dark"] .body--admin .admin-inline-settings > div p,
html[data-theme="dark"] .body--admin .admin-vip-box p,
html[data-theme="dark"] .body--admin .admin-balance-box__head p,
html[data-theme="dark"] .body--admin .empty,
html[data-theme="dark"] .body--admin th{
    color:#9fb1ca !important;
}
html[data-theme="dark"] .body--admin .admin-user-email-grid > div{
    background:linear-gradient(180deg,#223754,#1d304b) !important;
    border-color:#385273 !important;
    box-shadow:0 12px 28px rgba(0,0,0,.14) !important;
}
html[data-theme="dark"] .body--admin .admin-user-email-grid strong,
html[data-theme="dark"] .body--admin .admin-inline-settings label span,
html[data-theme="dark"] .body--admin .admin-vip-form label span,
html[data-theme="dark"] .body--admin .admin-balance-form label span{
    color:#a9bdd9 !important;
}
html[data-theme="dark"] .body--admin .admin-user-email-grid span,
html[data-theme="dark"] .body--admin .admin-user-email-grid small,
html[data-theme="dark"] .body--admin td,
html[data-theme="dark"] .body--admin .admin-balance-box__head h3,
html[data-theme="dark"] .body--admin .admin-inline-settings > div strong{
    color:#edf4ff !important;
}
html[data-theme="dark"] .body--admin .admin-inline-settings input,
html[data-theme="dark"] .body--admin .admin-inline-settings select,
html[data-theme="dark"] .body--admin .photo-admin-status-form select,
html[data-theme="dark"] .body--admin .admin-filter-panel input,
html[data-theme="dark"] .body--admin .admin-filter-panel select,
html[data-theme="dark"] .body--admin .table-wrap input,
html[data-theme="dark"] .body--admin .table-wrap select,
html[data-theme="dark"] .body--admin input[type="datetime-local"],
html[data-theme="dark"] .body--admin input[type="text"],
html[data-theme="dark"] .body--admin input[type="number"],
html[data-theme="dark"] .body--admin textarea{
    background:#152338 !important;
    border-color:#3a5275 !important;
    color:#edf4ff !important;
    box-shadow:none !important;
}
html[data-theme="dark"] .body--admin .admin-inline-settings input::placeholder,
html[data-theme="dark"] .body--admin .admin-inline-settings textarea::placeholder,
html[data-theme="dark"] .body--admin .admin-balance-form input::placeholder,
html[data-theme="dark"] .body--admin .admin-vip-form input::placeholder{
    color:#8395b1 !important;
}
html[data-theme="dark"] .body--admin .admin-inline-settings button,
html[data-theme="dark"] .body--admin .photo-admin-status-form button,
html[data-theme="dark"] .body--admin .admin-table .admin-status-form button,
html[data-theme="dark"] .body--admin .admin-inline-filters button,
html[data-theme="dark"] .body--admin .admin-photo-card__actions button{
    background:linear-gradient(180deg,#4f8dff,#3a74ea) !important;
    color:#fff !important;
    border:1px solid #6d9cf6 !important;
    box-shadow:0 10px 22px rgba(37,99,235,.24) !important;
}
html[data-theme="dark"] .body--admin .button-danger,
html[data-theme="dark"] .body--admin .inline-form .button-danger{
    background:linear-gradient(180deg,#a83a48,#8b2230) !important;
    border-color:#c55a67 !important;
    color:#fff !important;
}
html[data-theme="dark"] .body--admin .admin-vip-box{
    background:linear-gradient(135deg,rgba(83,63,24,.72),rgba(39,32,22,.92)) !important;
    border-color:#8a6a2f !important;
    box-shadow:0 14px 32px rgba(0,0,0,.20) !important;
}
html[data-theme="dark"] .body--admin .admin-vip-box h3,
html[data-theme="dark"] .body--admin .admin-vip-box strong{
    color:#ffe6a7 !important;
}
html[data-theme="dark"] .body--admin .admin-vip-box p,
html[data-theme="dark"] .body--admin .admin-vip-box small{
    color:#f1d9a0 !important;
}
html[data-theme="dark"] .body--admin .admin-balance-box{
    background:linear-gradient(135deg,#1f304a,#1a283d) !important;
    border-color:#395274 !important;
    box-shadow:0 14px 32px rgba(0,0,0,.18) !important;
}
html[data-theme="dark"] .body--admin .admin-balance-box__head strong{
    background:#0f1726 !important;
    color:#ffffff !important;
    box-shadow:0 10px 24px rgba(0,0,0,.24) !important;
}
html[data-theme="dark"] .body--admin .table-wrap table{
    background:transparent !important;
}
html[data-theme="dark"] .body--admin .table-wrap tr,
html[data-theme="dark"] .body--admin .table-wrap td,
html[data-theme="dark"] .body--admin .table-wrap th{
    border-color:#314765 !important;
}
html[data-theme="dark"] .body--admin .table-wrap tbody tr:hover td{
    background:rgba(255,255,255,.025) !important;
}
html[data-theme="dark"] .body--admin .photo-admin-grid figure,
html[data-theme="dark"] .body--admin .admin-photo-card{
    background:linear-gradient(180deg,#1d304b,#1a2b42) !important;
    border-color:#37506f !important;
    box-shadow:0 12px 28px rgba(0,0,0,.16) !important;
}
html[data-theme="dark"] .body--admin .photo-admin-grid figcaption{
    color:#edf4ff !important;
}
html[data-theme="dark"] .body--admin .photo-admin-grid .chips a,
html[data-theme="dark"] .body--admin .chips a,
html[data-theme="dark"] .body--admin .button-link,
html[data-theme="dark"] .body--admin .inline-form button:not(.button-danger){
    background:#223754 !important;
    border-color:#385273 !important;
    color:#edf4ff !important;
}
html[data-theme="dark"] .body--admin .chips a:hover,
html[data-theme="dark"] .body--admin .button-link:hover,
html[data-theme="dark"] .body--admin .inline-form button:hover:not(.button-danger){
    background:#294264 !important;
    color:#fff !important;
}
html[data-theme="dark"] .body--admin .status--published{background:#173425 !important;color:#8ff0b5 !important}
html[data-theme="dark"] .body--admin .status--pending{background:#3a2a17 !important;color:#ffd18a !important}
html[data-theme="dark"] .body--admin .status--hidden,
html[data-theme="dark"] .body--admin .status--rejected{background:#3b1e2a !important;color:#ff9fba !important}
html[data-theme="dark"] .body--admin .status--inactive{background:#243449 !important;color:#bfd0ea !important}
html[data-theme="dark"] .body--admin .status--info{background:#223754 !important;color:#8db6ff !important}

html[data-theme="dark"] .body--admin input:-webkit-autofill,
html[data-theme="dark"] .body--admin input:-webkit-autofill:hover,
html[data-theme="dark"] .body--admin input:-webkit-autofill:focus,
html[data-theme="dark"] .body--admin textarea:-webkit-autofill,
html[data-theme="dark"] .body--admin select:-webkit-autofill{
    -webkit-text-fill-color:#edf4ff !important;
    -webkit-box-shadow:0 0 0 1000px #152338 inset !important;
    transition:background-color 9999s ease-in-out 0s !important;
}

/* PATCH 2026-06-02: dark theme message text visibility in user/admin threads */
html[data-theme="dark"] .message-bubble.is-theirs .message-bubble__content,
html[data-theme="dark"] .admin-message-thread-panel .message-bubble.is-theirs .message-bubble__content{
    background:#19263b !important;
    border-color:#344762 !important;
    color:#e8f1ff !important;
}
html[data-theme="dark"] .message-bubble.is-theirs .message-bubble__content p,
html[data-theme="dark"] .admin-message-thread-panel .message-bubble.is-theirs .message-bubble__content p,
html[data-theme="dark"] .message-bubble.is-theirs .message-bubble__content a,
html[data-theme="dark"] .admin-message-thread-panel .message-bubble.is-theirs .message-bubble__content a{
    color:#e8f1ff !important;
    -webkit-text-fill-color:#e8f1ff !important;
}
html[data-theme="dark"] .message-bubble.is-theirs .message-bubble__top,
html[data-theme="dark"] .message-bubble.is-theirs .message-bubble__top strong,
html[data-theme="dark"] .admin-message-thread-panel .message-bubble.is-theirs .message-bubble__top,
html[data-theme="dark"] .admin-message-thread-panel .message-bubble.is-theirs .message-bubble__top strong{
    color:#a8c2ec !important;
}
html[data-theme="dark"] .message-bubble.is-theirs .message-bubble__content small,
html[data-theme="dark"] .admin-message-thread-panel .message-bubble.is-theirs .message-bubble__content small,
html[data-theme="dark"] .message-bubble.is-theirs .message-read-status,
html[data-theme="dark"] .admin-message-thread-panel .message-bubble.is-theirs .message-read-status{
    color:#9fb1ca !important;
}
html[data-theme="dark"] .message-bubble.is-mine .message-bubble__content p,
html[data-theme="dark"] .message-bubble.is-mine .message-bubble__content a,
html[data-theme="dark"] .message-bubble.is-mine .message-bubble__top,
html[data-theme="dark"] .message-bubble.is-mine .message-bubble__top strong,
html[data-theme="dark"] .message-bubble.is-mine .message-bubble__content small,
html[data-theme="dark"] .admin-message-thread-panel .message-bubble.is-mine .message-bubble__content p,
html[data-theme="dark"] .admin-message-thread-panel .message-bubble.is-mine .message-bubble__content a,
html[data-theme="dark"] .admin-message-thread-panel .message-bubble.is-mine .message-bubble__top,
html[data-theme="dark"] .admin-message-thread-panel .message-bubble.is-mine .message-bubble__top strong,
html[data-theme="dark"] .admin-message-thread-panel .message-bubble.is-mine .message-bubble__content small{
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
}
html[data-theme="dark"] .message-thread-panel,
html[data-theme="dark"] .admin-message-thread-panel{
    background:linear-gradient(180deg,#1b293f,#182438) !important;
    border-color:#31415d !important;
}

/* PATCH 2026-06-02: admin contact exchange audit log */
.admin-contact-exchanges-title{display:grid;gap:16px}
.admin-contact-exchanges-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.admin-contact-exchanges-summary>div{display:grid;gap:5px;padding:14px;border:1px solid rgba(96,118,170,.16);border-radius:16px;background:linear-gradient(180deg,#fff,#f8fbff)}
.admin-contact-exchanges-summary span{color:#64748b;font-size:13px;font-weight:800}
.admin-contact-exchanges-summary strong{color:#172033;font-size:28px;line-height:1}
.admin-contact-exchanges-filter .admin-inline-filters{align-items:end}
.admin-contact-exchanges-filter label{display:grid;gap:6px;font-weight:800}
.admin-contact-exchanges-filter label span{color:#64748b;font-size:13px}
.admin-contact-exchange-list{display:grid;gap:14px}
.admin-contact-exchange-card{display:grid;gap:14px}
.admin-contact-exchange-card__head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.admin-contact-exchange-card__head>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.admin-contact-exchange-card__head time{color:#64748b;font-weight:800;font-size:13px}
.admin-contact-exchange-card__route{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:14px;align-items:center}
.admin-contact-exchange-card__route>div{display:grid;gap:3px;padding:13px 14px;border:1px solid rgba(96,118,170,.16);border-radius:14px;background:#f8fbff}
.admin-contact-exchange-card__route span,.admin-contact-exchange-card__message>span{color:#64748b;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.admin-contact-exchange-card__route a{font-weight:900}
.admin-contact-exchange-card__route small{color:#64748b}
.admin-contact-exchange-card__route>b{color:#8ba6cf;font-size:22px}
.admin-contact-exchange-card__flags{display:flex;gap:8px;flex-wrap:wrap}
.admin-contact-exchange-card__flags span{padding:7px 10px;border:1px solid rgba(96,118,170,.16);border-radius:999px;background:#f8fbff;color:#475569;font-size:13px}
.admin-contact-exchange-card__flags .is-ok{background:#ecfdf5;color:#166534;border-color:#bbf7d0}
.admin-contact-exchange-card__flags .is-danger{background:#fff1f2;color:#be123c;border-color:#fecdd3}
.admin-contact-exchange-card__message{display:grid;gap:7px}
.admin-contact-exchange-card__message>div{padding:14px;border:1px solid rgba(96,118,170,.16);border-radius:14px;background:#fff;color:#172033;white-space:normal;word-break:break-word}
.admin-contact-exchange-card__actions{align-items:center}
.admin-contact-exchange-card__message-id{color:#64748b;font-size:13px;font-weight:800}
@media(max-width:900px){.admin-contact-exchanges-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.admin-contact-exchanges-summary,.admin-contact-exchange-card__route{grid-template-columns:1fr}.admin-contact-exchange-card__route>b{transform:rotate(90deg);justify-self:center}}

html[data-theme="dark"] .admin-contact-exchanges-summary>div,
html[data-theme="dark"] .admin-contact-exchange-card,
html[data-theme="dark"] .admin-contact-exchange-card__route>div,
html[data-theme="dark"] .admin-contact-exchange-card__flags span,
html[data-theme="dark"] .admin-contact-exchange-card__message>div{
    background:linear-gradient(180deg,#1d304b,#1a2b42)!important;
    border-color:#37506f!important;
    color:#edf4ff!important;
    box-shadow:0 12px 28px rgba(0,0,0,.14)!important;
}
html[data-theme="dark"] .admin-contact-exchanges-summary span,
html[data-theme="dark"] .admin-contact-exchange-card__head time,
html[data-theme="dark"] .admin-contact-exchange-card__route span,
html[data-theme="dark"] .admin-contact-exchange-card__route small,
html[data-theme="dark"] .admin-contact-exchange-card__message>span,
html[data-theme="dark"] .admin-contact-exchange-card__message-id,
html[data-theme="dark"] .admin-contact-exchanges-filter label span{
    color:#9fb1ca!important;
}
html[data-theme="dark"] .admin-contact-exchanges-summary strong,
html[data-theme="dark"] .admin-contact-exchange-card__route a{
    color:#edf4ff!important;
}
html[data-theme="dark"] .admin-contact-exchange-card__route>b{color:#8db6ff!important}
html[data-theme="dark"] .admin-contact-exchange-card__flags .is-ok{background:#173425!important;color:#8ff0b5!important;border-color:#2f7a57!important}
html[data-theme="dark"] .admin-contact-exchange-card__flags .is-danger{background:#3b1e2a!important;color:#ff9fba!important;border-color:#8d4561!important}

/* PATCH 2026-06-02: admin moderation controls on public entities and direct ad photos */
.admin-entity-toolbar{
  display:grid;
  gap:14px;
  padding:18px 20px;
  border:1px solid rgba(36,124,255,.22);
  border-radius:18px;
  background:linear-gradient(135deg,#f8fbff,#eef5ff);
  box-shadow:0 14px 32px rgba(31,42,68,.08);
}
.admin-entity-toolbar--embedded{margin-bottom:18px}
.admin-entity-toolbar__head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}
.admin-entity-toolbar h2{margin:4px 0 5px;font-size:22px}
.admin-entity-toolbar p{margin:0;color:#64748b;font-weight:700}
.admin-entity-toolbar__links,.admin-entity-toolbar__actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.admin-entity-toolbar__actions .admin-inline-settings{margin:0}
.admin-entity-toolbar__actions .admin-inline-settings label{min-width:170px}
.admin-inline-moderation-link{color:#b45309!important;font-weight:900!important}
.admin-photo-card__meta-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.admin-photo-card__links{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.admin-photo-card__links a{display:inline-flex;padding:6px 9px;border-radius:999px;background:#eef5ff;color:#145bc9;font-size:12px;font-weight:850}
.admin-moderation-photo form{display:flex;gap:5px;align-items:center;flex-wrap:wrap}
.admin-moderation-photo form select{min-width:104px}
@media(max-width:720px){
  .admin-entity-toolbar__head,.admin-entity-toolbar__actions{align-items:stretch;flex-direction:column}
  .admin-entity-toolbar__links{align-items:stretch;flex-direction:column}
  .admin-entity-toolbar__links .button-link,.admin-entity-toolbar__actions .admin-inline-settings,.admin-entity-toolbar__actions .admin-inline-settings label,.admin-entity-toolbar__actions .admin-inline-settings button{width:100%}
}
html[data-theme="dark"] .admin-entity-toolbar{
  background:linear-gradient(135deg,#1b2940,#1a263b)!important;
  border-color:#344b6b!important;
  box-shadow:0 18px 42px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .admin-entity-toolbar h2{color:#edf4ff!important}
html[data-theme="dark"] .admin-entity-toolbar p{color:#9fb1ca!important}
html[data-theme="dark"] .admin-photo-card__links a{
  background:#223754!important;
  color:#cfe0ff!important;
  border:1px solid #385273!important;
}
html[data-theme="dark"] .admin-photo-card__links a:hover{background:#294264!important;color:#fff!important;text-decoration:none}

/* PATCH 2026-06-02: stable layout for admin moderation controls on photo page */
@media (min-width:721px){
  .admin-entity-toolbar__actions{
    display:grid;
    grid-template-columns:minmax(320px,340px) minmax(390px,420px) max-content;
    align-items:end;
    gap:12px;
  }
  .admin-entity-toolbar__actions .admin-inline-settings{
    display:grid;
    grid-template-columns:minmax(168px,1fr) max-content;
    align-items:end;
    gap:10px;
    min-width:0;
  }
  .admin-entity-toolbar__actions .admin-inline-settings:last-child{
    display:flex;
    align-items:end;
    justify-content:flex-start;
  }
  .admin-entity-toolbar__actions .admin-inline-settings label{
    display:grid;
    grid-template-rows:auto 42px;
    gap:6px;
    min-width:0;
    width:100%;
  }
  .admin-entity-toolbar__actions .admin-inline-settings select,
  .admin-entity-toolbar__actions .admin-inline-settings button{
    min-height:42px;
    height:42px;
    margin:0;
  }
  .admin-entity-toolbar__actions .admin-inline-settings select{
    width:100%;
  }
  .admin-entity-toolbar__actions .admin-inline-settings button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    white-space:nowrap;
  }
}
@media (max-width:1100px) and (min-width:721px){
  .admin-entity-toolbar__actions{
    grid-template-columns:minmax(300px,1fr) minmax(360px,1fr);
  }
  .admin-entity-toolbar__actions .admin-inline-settings:last-child{
    grid-column:1/-1;
  }
}
@media (max-width:720px){
  .admin-entity-toolbar__actions .admin-inline-settings{
    display:grid;
    gap:8px;
  }
  .admin-entity-toolbar__actions .admin-inline-settings select,
  .admin-entity-toolbar__actions .admin-inline-settings button{
    min-height:42px;
    height:42px;
  }
}

/* PATCH: admin photo moderation AJAX feedback */
.admin-photo-ajax-feedback{
    min-height:18px;
    margin-top:4px;
    color:#64748b;
    font-size:12px;
    font-weight:800;
}
.admin-photo-ajax-feedback.is-success{color:#168a4a}
.admin-photo-ajax-feedback.is-error{color:#c93535}
html[data-theme="dark"] .admin-photo-ajax-feedback{color:#9fb1ca}
html[data-theme="dark"] .admin-photo-ajax-feedback.is-success{color:#8ff0b5}
html[data-theme="dark"] .admin-photo-ajax-feedback.is-error{color:#ff9fba}

/* PATCH 2026-06-03: groups module */
.groups-hero,
.group-thread-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
  overflow:hidden;
  position:relative;
}
.groups-hero::after,
.group-thread-head::after{
  content:"";
  position:absolute;
  right:-58px;
  top:-74px;
  width:210px;
  height:210px;
  border-radius:999px;
  background:radial-gradient(circle,rgba(37,99,235,.15),rgba(37,99,235,0));
  pointer-events:none;
}
.groups-hero>*,.group-thread-head>*{position:relative;z-index:1}
.groups-hero h1,.group-thread-head h1{margin:2px 0 8px;color:#111827;font-size:clamp(30px,4vw,48px);line-height:1;letter-spacing:-.045em}
.groups-hero p,.group-thread-head p{max-width:820px;margin:0;color:#64748b;font-weight:750;line-height:1.6}
.groups-hero__actions,.group-thread-head__actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.groups-hero--compact{align-items:center}
.group-list-panel{display:grid;gap:14px}
.group-card-list{display:grid;gap:12px}
.group-card{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:14px;padding:15px;border:1px solid rgba(96,118,170,.15);border-radius:18px;background:linear-gradient(180deg,#fff,#fbfdff);box-shadow:0 10px 24px rgba(31,42,68,.055);transition:.18s ease}
.group-card:hover{transform:translateY(-2px);border-color:rgba(37,99,235,.35);box-shadow:0 18px 34px rgba(31,42,68,.10)}
.group-card__icon{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:#eef5ff;font-size:26px;box-shadow:inset 0 0 0 1px rgba(37,99,235,.12)}
.group-card__body{display:grid;gap:7px;min-width:0}
.group-card__title-row,.group-thread-head__title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.group-card h3{margin:0;font-size:19px;line-height:1.2}
.group-card h3 a{color:#10233f;text-decoration:none}
.group-card h3 a:hover{color:#2563eb;text-decoration:underline}
.group-card p{margin:0;color:#64748b;font-size:14px;font-weight:700;line-height:1.5}
.group-card__meta,.group-thread-head__meta{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;color:#64748b;font-size:12px;font-weight:850}
.group-card__meta a,.group-thread-head__meta a{color:#2563eb}
.group-card__open{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 13px;border-radius:13px;background:#eef5ff;color:#145bc9;font-size:13px;font-weight:950;text-decoration:none;white-space:nowrap}
.group-card__open:hover{background:#2563eb;color:#fff;text-decoration:none}
.group-visibility-badge,.group-membership-badge{display:inline-flex;align-items:center;min-height:24px;padding:0 9px;border-radius:999px;font-size:11px;font-weight:950;letter-spacing:.02em}
.group-visibility-badge.is-open{background:#e8f8ee;color:#087443;border:1px solid rgba(8,116,67,.15)}
.group-visibility-badge.is-closed{background:#fff3cd;color:#9a5c00;border:1px solid rgba(154,92,0,.17)}
.group-membership-badge{background:#eaf3ff;color:#145bc9;border:1px solid rgba(20,91,201,.16)}
.group-membership-badge.is-pending{background:#fff4dd;color:#a45f00;border-color:rgba(164,95,0,.18)}
.group-create-panel{max-width:920px;margin-inline:auto}
.group-settings-form{display:grid;gap:14px}
.group-settings-form label{display:grid;gap:7px;color:#334155;font-size:13px;font-weight:900}
.group-settings-form input[type="text"],.group-settings-form textarea,.group-settings-form select{width:100%;border:1px solid rgba(96,118,170,.23);border-radius:14px;background:#fff;color:#111827;padding:12px 13px;font:inherit;line-height:1.45;box-shadow:0 8px 18px rgba(31,42,68,.045)}
.group-settings-form textarea{resize:vertical}
.group-visibility-choice{display:grid;gap:9px;margin:0;padding:14px;border:1px solid rgba(96,118,170,.18);border-radius:16px;background:#fbfdff}
.group-visibility-choice legend{padding:0 6px;color:#334155;font-size:13px;font-weight:950}
.group-visibility-choice label{display:flex;align-items:flex-start;gap:10px;padding:11px;border:1px solid rgba(96,118,170,.15);border-radius:13px;background:#fff;cursor:pointer}
.group-visibility-choice input{margin-top:3px}
.group-visibility-choice span{display:grid;gap:3px}
.group-visibility-choice strong{color:#111827}
.group-visibility-choice small{color:#64748b;font-weight:750;line-height:1.45}
.group-thread-head__main{display:grid;gap:7px;min-width:0}
.group-thread-head__actions form{margin:0}
.group-join-panel{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;border-color:rgba(37,99,235,.19);background:linear-gradient(135deg,#fff,#f5f9ff)}
.group-join-panel h2,.group-access-panel h2{margin:0 0 5px;color:#10233f;font-size:22px}
.group-join-panel p,.group-access-panel p{margin:0;color:#64748b;font-weight:750;line-height:1.55}
.group-join-panel__actions{display:flex;gap:8px;flex-wrap:wrap}
.group-access-panel{display:grid;place-items:center;gap:8px;min-height:250px;text-align:center}
.group-access-panel__icon{display:grid;place-items:center;width:66px;height:66px;border-radius:20px;background:#fff4dd;font-size:31px}
.group-chat-panel{display:grid;gap:12px;margin-bottom:16px}
.group-chat-panel__head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.group-chat-panel h2,.group-moderation-panel h2{margin:2px 0 0;color:#10233f;font-size:25px}
.group-chat-notice{padding:10px 12px;border:1px solid rgba(37,99,235,.15);border-radius:13px;background:#eef5ff;color:#3d5d8b;font-size:12px;font-weight:800;line-height:1.5}
.group-message-thread{max-height:660px;overflow:auto;padding:6px 4px 6px 1px;scroll-behavior:smooth}
.group-message-bubble .message-bubble__top a{color:inherit;text-decoration:none}
.group-message-bubble .message-bubble__top a:hover{text-decoration:underline}
.group-message-delete-form{display:flex;justify-content:flex-end;margin-top:8px}
.group-message-delete-form button,.button-danger-compact{min-height:30px;padding:0 9px;border:1px solid rgba(220,38,38,.20);border-radius:10px;background:#fff1f2;color:#b91c1c;font-size:11px;font-weight:950;cursor:pointer}
.group-message-delete-form button:hover,.button-danger-compact:hover{background:#dc2626;color:#fff}
.group-message-photo--locked{position:relative;overflow:hidden;cursor:default}
.group-message-photo--locked span{position:absolute;right:6px;bottom:6px;display:grid;place-items:center;min-width:32px;height:25px;padding:0 5px;border-radius:9px;background:rgba(153,27,27,.92);color:#fff;font-size:12px;font-weight:950}
.group-private-photo-toggle{display:flex!important;align-items:flex-start!important;gap:8px!important;padding:10px 11px;border:1px solid rgba(220,38,38,.17);border-radius:13px;background:#fff8f8;color:#9f1239!important;font-size:12px!important;line-height:1.4}
.group-private-photo-toggle input{margin-top:2px}
.group-moderation-panel{display:grid;gap:16px;margin-top:16px}
.group-moderation-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.group-settings-form--moderation,.group-moderation-column,.group-members-panel{padding:14px;border:1px solid rgba(96,118,170,.15);border-radius:16px;background:#fbfdff}
.group-settings-form--moderation h3,.group-moderation-column h3,.group-members-panel h3{margin:0 0 10px;color:#10233f;font-size:18px}
.group-moderation-column{display:grid;align-content:start;gap:8px}
.group-moderation-user,.group-member-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border:1px solid rgba(96,118,170,.14);border-radius:12px;background:#fff}
.group-moderation-user>div,.group-member-row>div{display:grid;gap:2px;min-width:0}
.group-moderation-user a,.group-member-row a{color:#145bc9;font-weight:950;text-decoration:none;overflow:hidden;text-overflow:ellipsis}
.group-moderation-user small,.group-member-row span{color:#64748b;font-size:11px;font-weight:850}
.group-moderation-user form,.group-member-row form{display:flex;align-items:center;gap:6px;margin:0;flex-wrap:wrap}
.group-moderation-user button,.group-member-row button{min-height:30px;padding:0 9px;border-radius:10px;font-size:11px;font-weight:950;cursor:pointer}
.group-member-list{display:grid;gap:7px}
.group-member-row.is-muted{opacity:.7;background:#f8fafc}
@media(max-width:920px){
  .group-moderation-grid{grid-template-columns:1fr}
}
@media(max-width:720px){
  .groups-hero,.group-thread-head,.group-join-panel{align-items:stretch;flex-direction:column}
  .groups-hero__actions,.group-thread-head__actions,.group-join-panel__actions{justify-content:flex-start}
  .group-card{grid-template-columns:48px minmax(0,1fr);align-items:start;padding:12px}
  .group-card__icon{width:48px;height:48px;border-radius:15px;font-size:22px}
  .group-card__open{grid-column:1/-1;width:100%}
  .group-message-thread{max-height:560px}
  .group-moderation-user,.group-member-row{align-items:flex-start;flex-direction:column}
}
html[data-theme="dark"] .groups-hero h1,
html[data-theme="dark"] .group-thread-head h1,
html[data-theme="dark"] .group-card h3 a,
html[data-theme="dark"] .group-chat-panel h2,
html[data-theme="dark"] .group-moderation-panel h2,
html[data-theme="dark"] .group-settings-form--moderation h3,
html[data-theme="dark"] .group-moderation-column h3,
html[data-theme="dark"] .group-members-panel h3,
html[data-theme="dark"] .group-join-panel h2,
html[data-theme="dark"] .group-access-panel h2{color:#edf4ff!important}
html[data-theme="dark"] .groups-hero p,
html[data-theme="dark"] .group-thread-head p,
html[data-theme="dark"] .group-card p,
html[data-theme="dark"] .group-card__meta,
html[data-theme="dark"] .group-thread-head__meta,
html[data-theme="dark"] .group-join-panel p,
html[data-theme="dark"] .group-access-panel p,
html[data-theme="dark"] .group-moderation-user small,
html[data-theme="dark"] .group-member-row span{color:#9fb1ca!important}
html[data-theme="dark"] .group-card,
html[data-theme="dark"] .group-settings-form--moderation,
html[data-theme="dark"] .group-moderation-column,
html[data-theme="dark"] .group-members-panel,
html[data-theme="dark"] .group-moderation-user,
html[data-theme="dark"] .group-member-row,
html[data-theme="dark"] .group-visibility-choice,
html[data-theme="dark"] .group-visibility-choice label{background:#1b2940!important;border-color:#344b6b!important;box-shadow:0 16px 34px rgba(0,0,0,.16)!important}
html[data-theme="dark"] .group-card:hover{background:#21334f!important;border-color:#49658d!important}
html[data-theme="dark"] .group-card__icon{background:#223754!important}
html[data-theme="dark"] .group-card__open{background:#223754!important;color:#cfe0ff!important}
html[data-theme="dark"] .group-card__open:hover{background:#31537d!important;color:#fff!important}
html[data-theme="dark"] .group-join-panel{background:linear-gradient(135deg,#1b2940,#1a263b)!important;border-color:#344b6b!important}
html[data-theme="dark"] .group-chat-notice{background:#223754!important;color:#cfe0ff!important;border-color:#385273!important}
html[data-theme="dark"] .group-settings-form label,
html[data-theme="dark"] .group-visibility-choice legend{color:#c9d8ee!important}
html[data-theme="dark"] .group-settings-form input[type="text"],
html[data-theme="dark"] .group-settings-form textarea,
html[data-theme="dark"] .group-settings-form select{background:#17243a!important;color:#edf4ff!important;border-color:#385273!important}
html[data-theme="dark"] .group-visibility-choice strong{color:#edf4ff!important}
html[data-theme="dark"] .group-visibility-choice small{color:#9fb1ca!important}
html[data-theme="dark"] .group-private-photo-toggle{background:#3b1e2a!important;color:#ffb6c7!important;border-color:#8d4561!important}
html[data-theme="dark"] .group-member-row.is-muted{background:#17243a!important}


/* PATCH 2026-06-03: public user page dark-theme text visibility.
   Narrow palette override only for /user/{id} content blocks. */
html[data-theme="dark"] .public-profile-card,
html[data-theme="dark"] .public-profile-photos,
html[data-theme="dark"] .public-profile-viewers,
html[data-theme="dark"] .public-profile-report-inline{
    color:#e8f1ff!important;
    background:linear-gradient(135deg,#1b293f 0%,#18263b 100%)!important;
    border-color:#344b6b!important;
    box-shadow:0 14px 34px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .public-profile-card h2,
html[data-theme="dark"] .public-profile-photos h2,
html[data-theme="dark"] .public-profile-viewers h2{
    color:#edf4ff!important;
}
html[data-theme="dark"] .public-profile-richtext,
html[data-theme="dark"] .public-profile-richtext p,
html[data-theme="dark"] .public-profile-richtext li,
html[data-theme="dark"] .public-profile-viewers,
html[data-theme="dark"] .public-profile-viewers li{
    color:#cdd9ea!important;
}
html[data-theme="dark"] .public-profile-richtext strong,
html[data-theme="dark"] .public-profile-richtext b,
html[data-theme="dark"] .public-profile-viewers strong{
    color:#f4f8ff!important;
}
html[data-theme="dark"] .public-profile-richtext a,
html[data-theme="dark"] .public-profile-viewers a,
html[data-theme="dark"] .public-profile-card a{
    color:#9fc5ff!important;
}
html[data-theme="dark"] .public-profile-richtext a:hover,
html[data-theme="dark"] .public-profile-viewers a:hover,
html[data-theme="dark"] .public-profile-card a:hover{
    color:#d3e6ff!important;
}
html[data-theme="dark"] .public-profile-card .empty,
html[data-theme="dark"] .public-profile-photos .empty,
html[data-theme="dark"] .public-profile-viewers .empty{
    color:#9db1ce!important;
}
html[data-theme="dark"] .public-profile-facts > div{
    background:#22334f!important;
    border-color:#3b5275!important;
}
html[data-theme="dark"] .public-profile-facts span,
html[data-theme="dark"] .public-profile-facts--details span{
    color:#9db1ce!important;
}
html[data-theme="dark"] .public-profile-facts strong,
html[data-theme="dark"] .public-profile-facts--details strong{
    color:#edf4ff!important;
}


/* PATCH 2026-06-03: notifications page dark-theme cleanup.
   Palette-only override for /notifications cards and states. */
html[data-theme="dark"] .notifications-panel{
    background:#19263b!important;
    border-color:#344b6b!important;
    box-shadow:0 14px 34px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .notifications-panel .panel__head{
    background:#1d2d45!important;
    border-color:#344b6b!important;
}
html[data-theme="dark"] .notifications-panel .panel__head h2{
    color:#edf4ff!important;
}
html[data-theme="dark"] .notification-card{
    color:#dbe7f7!important;
    background:#1b2940!important;
    border-color:#344b6b!important;
}
html[data-theme="dark"] .notification-card:hover{
    background:#233653!important;
    box-shadow:0 14px 34px rgba(0,0,0,.20)!important;
}
html[data-theme="dark"] .notification-card.is-unread{
    background:linear-gradient(90deg,#2d2b3b 0%,#20304a 100%)!important;
    box-shadow:inset 4px 0 0 #d9ae57!important;
}
html[data-theme="dark"] .notification-card.is-unread:hover{
    background:linear-gradient(90deg,#373044 0%,#273b59 100%)!important;
}
html[data-theme="dark"] .notification-card__icon{
    color:#ffabc5!important;
    background:#3b2838!important;
    border:1px solid #65405b!important;
}
html[data-theme="dark"] .notification-card__body strong{
    color:#edf4ff!important;
}
html[data-theme="dark"] .notification-card__body p,
html[data-theme="dark"] .notification-card__body small{
    color:#b9c9dd!important;
}
html[data-theme="dark"] .notification-card__time{
    color:#93a7c1!important;
}
html[data-theme="dark"] .notifications-panel .empty{
    color:#9db1ce!important;
}
html[data-theme="dark"] .notifications-panel .button-link{
    color:#d8e7ff!important;
    background:#243a5a!important;
    border-color:#3b5a82!important;
}
html[data-theme="dark"] .notifications-panel .button-link:hover{
    color:#fff!important;
    background:#31537d!important;
    border-color:#5a7eae!important;
}


/* PATCH 2026-06-03: generic button-primary site style.
   Fixes plain browser-looking primary buttons in groups and other forms. */
.button-primary{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:42px;
    padding:0 16px;
    border:1px solid transparent;
    border-radius:14px;
    background:linear-gradient(135deg,#4e7dff,#2f69ff);
    color:#fff!important;
    font:800 14px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    text-decoration:none!important;
    cursor:pointer;
    box-shadow:0 14px 26px rgba(47,105,255,.22);
    transition:transform .16s ease, box-shadow .16s ease, background .16s ease, opacity .16s ease;
}
.button-primary:hover{
    background:linear-gradient(135deg,#5c88ff,#3a73ff);
    color:#fff!important;
    text-decoration:none!important;
    transform:translateY(-1px);
    box-shadow:0 18px 30px rgba(47,105,255,.26);
}
.button-primary:focus-visible{
    outline:none;
    box-shadow:0 0 0 3px rgba(255,255,255,.55),0 0 0 6px rgba(47,105,255,.35),0 18px 30px rgba(47,105,255,.26);
}
.button-primary:active{
    transform:translateY(0);
    box-shadow:0 10px 18px rgba(47,105,255,.22);
}
.button-primary[disabled],
.button-primary.is-disabled{
    opacity:.65;
    cursor:not-allowed;
    transform:none;
    box-shadow:none;
}
html[data-theme="dark"] .button-primary{
    box-shadow:0 16px 30px rgba(26,94,255,.28);
}
html[data-theme="dark"] .button-primary:hover{
    box-shadow:0 18px 34px rgba(26,94,255,.34);
}


/* PATCH 2026-06-03: notifications panel header spacing fix.
   Prevents title/action row from touching panel edges in all themes. */
.notifications-panel .panel__head{
    margin:0;
    padding:14px 18px;
    border-bottom:1px solid rgba(148,163,184,.18);
    align-items:center;
}
.notifications-panel .panel__head form{
    margin:0;
}
.notifications-panel .panel__head .button-link{
    flex-shrink:0;
}
.notifications-panel .empty{
    padding:18px;
}
@media (max-width:640px){
    .notifications-panel .panel__head{
        display:grid;
        gap:12px;
        padding:14px 14px;
    }
    .notifications-panel .panel__head .button-link{
        justify-content:center;
        width:100%;
    }
}
html[data-theme="dark"] .notifications-panel .panel__head{
    border-bottom-color:#344b6b!important;
}


/* PATCH 2026-06-03: personal messages dark-theme readability.
   Narrow palette override for /messages inbox and private conversation pages. */
html[data-theme="dark"] .message-page-title,
html[data-theme="dark"] .conversation-list-panel,
html[data-theme="dark"] .message-thread-head,
html[data-theme="dark"] .message-thread-panel{
    color:#e8f1ff!important;
    background:linear-gradient(135deg,#1b293f 0%,#18263b 100%)!important;
    border-color:#344b6b!important;
    box-shadow:0 14px 34px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .message-page-title h1,
html[data-theme="dark"] .conversation-list-panel h2,
html[data-theme="dark"] .message-thread-head h1{
    color:#f4f8ff!important;
}
html[data-theme="dark"] .message-page-title p,
html[data-theme="dark"] .message-thread-head p{
    color:#b9c9dd!important;
}
html[data-theme="dark"] .conversation-list-panel__head span,
html[data-theme="dark"] .admin-conversation-panel .panel__head span{
    color:#d8e7ff!important;
    background:#243a5a!important;
    border:1px solid #3b5a82!important;
}
html[data-theme="dark"] .conversation-topic{
    color:#e8f1ff!important;
    background:#1b2940!important;
    border-color:#344b6b!important;
    box-shadow:0 10px 26px rgba(0,0,0,.14)!important;
}
html[data-theme="dark"] .conversation-topic:hover{
    background:#233653!important;
    border-color:#5a7eae!important;
    box-shadow:0 16px 34px rgba(0,0,0,.20)!important;
}
html[data-theme="dark"] .conversation-topic.has-unread{
    background:linear-gradient(135deg,#233a5c,#1d304c)!important;
    border-color:#5f8fd1!important;
    box-shadow:inset 4px 0 0 #4f86ff,0 12px 28px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .conversation-topic__title{
    color:#edf4ff!important;
    -webkit-text-fill-color:#edf4ff!important;
}
html[data-theme="dark"] .conversation-topic__meta{
    color:#a9bdd8!important;
    -webkit-text-fill-color:#a9bdd8!important;
}
html[data-theme="dark"] .conversation-topic__meta a{
    color:#a9c8ff!important;
    -webkit-text-fill-color:#a9c8ff!important;
}
html[data-theme="dark"] .conversation-topic__snippet{
    color:#c1d0e3!important;
    -webkit-text-fill-color:#c1d0e3!important;
}
html[data-theme="dark"] .conversation-topic__side,
html[data-theme="dark"] .conversation-topic__side em{
    color:#8db6ff!important;
    -webkit-text-fill-color:#8db6ff!important;
}
html[data-theme="dark"] .conversation-topic__avatar,
html[data-theme="dark"] .message-bubble__avatar{
    background:linear-gradient(135deg,#243a5a,#2d4264)!important;
    color:#b9d2ff!important;
    box-shadow:inset 0 0 0 1px #3d5b82!important;
}
html[data-theme="dark"] .message-thread-head__actions a{
    color:#d8e7ff!important;
    background:#243a5a!important;
    border:1px solid #3b5a82!important;
}
html[data-theme="dark"] .message-thread-head__actions a:hover{
    color:#fff!important;
    background:#31537d!important;
    border-color:#5a7eae!important;
}
html[data-theme="dark"] .message-reply-form{
    border-top-color:#344b6b!important;
}
html[data-theme="dark"] .message-reply-form label{
    color:#dbe7f7!important;
}
html[data-theme="dark"] .message-reply-form textarea{
    color:#edf4ff!important;
    background:#152338!important;
    border-color:#3b5275!important;
}
html[data-theme="dark"] .message-reply-form textarea::placeholder{
    color:#8fa3bf!important;
}
html[data-theme="dark"] .message-reply-form .message-compose-toolbar__hint{
    color:#9fb1ca!important;
}
html[data-theme="dark"] .message-reply-form .message-compose-tool,
html[data-theme="dark"] .message-reply-form .message-profile-photo-picker--inline summary{
    color:#d8e7ff!important;
    background:#20324e!important;
    border-color:#3b5275!important;
}
html[data-theme="dark"] .message-reply-form .message-compose-tool:hover,
html[data-theme="dark"] .message-reply-form .message-compose-tool.is-active,
html[data-theme="dark"] .message-reply-form .message-profile-photo-picker--inline summary:hover{
    color:#fff!important;
    background:#31537d!important;
    border-color:#5a7eae!important;
}
html[data-theme="dark"] .message-reply-form .message-compose-panel{
    color:#dbe7f7!important;
    background:linear-gradient(180deg,#1b2940,#17243a)!important;
    border-color:#344b6b!important;
    box-shadow:0 10px 24px rgba(0,0,0,.16)!important;
}


/* PATCH 2026-06-03: compact My groups page actions.
   Dropdown keeps one link; leave controls live on /groups?view=mine. */
.group-card__actions{display:grid;justify-items:stretch;gap:7px;min-width:132px}
.group-card__actions form{margin:0}
.group-card__leave{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:34px;padding:0 10px;border:1px solid rgba(220,38,38,.22);border-radius:11px;background:#fff1f2;color:#b91c1c;font-size:11px;font-weight:950;cursor:pointer}
.group-card__leave:hover{background:#dc2626;color:#fff}
.group-card__moderator-note{display:block;color:#64748b;font-size:11px;font-weight:850;text-align:center}
@media(max-width:720px){.group-card__actions{grid-column:1/-1;width:100%}}
html[data-theme="dark"] .group-card__leave{background:#3b1e2a!important;color:#ffb6c7!important;border-color:#8d4561!important}
html[data-theme="dark"] .group-card__leave:hover{background:#9f1239!important;color:#fff!important}
html[data-theme="dark"] .group-card__moderator-note{color:#9fb1ca!important}

/* PATCH 2026-06-03: groups information popup. */
.groups-hero__aside{
    display:grid;
    justify-items:end;
    align-content:start;
    gap:10px;
    flex:0 0 auto;
}
.groups-info-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:30px;
    padding:4px 9px;
    border:0;
    background:transparent;
    color:#2563eb;
    font:850 13px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    text-decoration:underline;
    text-decoration-style:dotted;
    text-underline-offset:4px;
    cursor:pointer;
}
.groups-info-link:hover{
    color:#1749b5;
    text-decoration-style:solid;
}
.groups-info-modal-open{
    overflow:hidden;
}
.groups-info-modal__dialog{
    width:min(720px,100%);
}
.groups-info-modal__icon{
    background:#eaf3ff;
    color:#2563eb;
}
.groups-info-modal__grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin:16px 0;
}
.groups-info-modal__grid article{
    padding:13px;
    border:1px solid rgba(96,118,170,.16);
    border-radius:15px;
    background:#f8fbff;
}
.groups-info-modal__grid strong{
    display:block;
    margin-bottom:5px;
    color:#10233f;
    font-size:15px;
}
.groups-info-modal__grid p{
    margin:0;
    color:#53657d;
    font-size:13px;
    line-height:1.55;
}
.groups-info-modal__note{
    margin:0!important;
    padding:11px 12px;
    border:1px solid rgba(217,119,6,.16);
    border-radius:13px;
    background:#fff8e1;
    color:#92400e!important;
    font-size:13px;
    font-weight:750;
}
@media(max-width:720px){
    .groups-hero__aside{
        justify-items:start;
        width:100%;
    }
    .groups-info-modal__grid{
        grid-template-columns:1fr;
    }
}
html[data-theme="dark"] .groups-info-link{
    color:#9fc5ff;
}
html[data-theme="dark"] .groups-info-link:hover{
    color:#d3e6ff;
}
html[data-theme="dark"] .groups-info-modal__icon{
    background:#263f62!important;
    color:#afcdff!important;
}
html[data-theme="dark"] .groups-info-modal__grid article{
    background:#1b2940!important;
    border-color:#344b6b!important;
}
html[data-theme="dark"] .groups-info-modal__grid strong{
    color:#edf4ff!important;
}
html[data-theme="dark"] .groups-info-modal__grid p{
    color:#b9c9dd!important;
}
html[data-theme="dark"] .groups-info-modal__note{
    background:#3b3020!important;
    border-color:#705a2a!important;
    color:#f6d890!important;
}


/* PATCH 2026-06-03: paginated conversations, top composer and inline quote UX. */
.message-thread-panel > .message-reply-form,
.group-chat-panel > .message-reply-form{
    margin:2px 0 14px;
    padding-top:0;
    padding-bottom:16px;
    border-top:0;
    border-bottom:1px solid rgba(96,118,170,.18);
}
.thread-pagination-bar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px 14px;
    flex-wrap:wrap;
    margin:10px 0;
    padding:10px 12px;
    border:1px solid rgba(96,118,170,.16);
    border-radius:14px;
    background:#f8fbff;
}
.thread-pagination-bar__summary{
    display:grid;
    gap:2px;
    color:#64748b;
    font-size:12px;
    font-weight:800;
    line-height:1.35;
}
.thread-pagination-bar__summary strong{
    color:#10233f;
    font-size:13px;
    font-weight:950;
}
.thread-pagination-bar__size{
    margin-left:auto;
}
.thread-pagination-bar__size label{
    display:flex;
    align-items:center;
    gap:7px;
    color:#52617e;
    font-size:12px;
    font-weight:850;
}
.thread-pagination-bar__size select{
    min-height:34px;
    padding:0 28px 0 9px;
    border:1px solid rgba(96,118,170,.22);
    border-radius:10px;
    background:#fff;
    color:#10233f;
    font:850 12px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    cursor:pointer;
}
.thread-pagination{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:5px;
    flex-wrap:wrap;
    margin:0;
}
.thread-pagination a,
.thread-pagination strong,
.thread-pagination span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:32px;
    min-height:32px;
    padding:0 8px;
    border:1px solid rgba(96,118,170,.18);
    border-radius:9px;
    background:#fff;
    color:#3152a6;
    font-size:12px;
    font-weight:950;
    line-height:1;
    text-decoration:none;
}
.thread-pagination a:hover{
    border-color:#2563eb;
    background:#eef5ff;
    color:#1749b5;
    text-decoration:none;
}
.thread-pagination strong{
    border-color:#2563eb;
    background:#2563eb;
    color:#fff;
}
.thread-pagination span{
    color:#94a3b8;
    background:#f8fafc;
}
.message-bubble__text{
    display:grid;
    gap:7px;
    min-width:0;
    overflow-wrap:anywhere;
}
.message-inline-text{
    white-space:normal;
    overflow-wrap:anywhere;
}
.message-bubble.is-theirs .message-inline-text{
    color:#1f2c45;
}
.message-bubble.is-mine .message-inline-text{
    color:#fff;
}
.message-inline-quote{
    margin:0 0 4px;
    padding:8px 10px;
    border-left:3px solid #7ea6ff;
    border-radius:9px;
    background:#eef5ff;
    color:#29476f;
    font-size:13px;
    font-weight:700;
    line-height:1.45;
    overflow-wrap:anywhere;
}
.message-bubble.is-mine .message-inline-quote{
    border-left-color:rgba(255,255,255,.78);
    background:rgba(255,255,255,.16);
    color:#fff;
}
.message-quote-action{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:27px;
    padding:0 8px;
    border:1px solid rgba(49,82,166,.18);
    border-radius:9px;
    background:#eef5ff;
    color:#3152a6;
    font:900 11px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    cursor:pointer;
}
.message-quote-action:hover{
    border-color:#2563eb;
    background:#2563eb;
    color:#fff;
}
.message-bubble.is-mine .message-quote-action{
    border-color:rgba(255,255,255,.32);
    background:rgba(255,255,255,.14);
    color:#fff;
}
.message-bubble.is-mine .message-quote-action:hover{
    background:rgba(255,255,255,.28);
}
.group-message-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:7px;
    flex-wrap:wrap;
}
.group-message-actions .group-message-delete-form{
    margin:0;
}
.notifications-settings-panel{
    margin-bottom:18px;
}
@media(max-width:720px){
    .thread-pagination-bar{
        display:grid;
        gap:8px;
        padding:10px;
    }
    .thread-pagination-bar__size{
        margin-left:0;
    }
    .thread-pagination-bar__size label{
        justify-content:space-between;
    }
    .thread-pagination{
        justify-content:flex-start;
    }
}
html[data-theme="dark"] .message-thread-panel > .message-reply-form,
html[data-theme="dark"] .group-chat-panel > .message-reply-form{
    border-bottom-color:#344b6b!important;
}
html[data-theme="dark"] .thread-pagination-bar{
    border-color:#344b6b!important;
    background:#1b2940!important;
}
html[data-theme="dark"] .thread-pagination-bar__summary{
    color:#9fb1ca!important;
}
html[data-theme="dark"] .thread-pagination-bar__summary strong{
    color:#edf4ff!important;
}
html[data-theme="dark"] .thread-pagination-bar__size label{
    color:#b9c9dd!important;
}
html[data-theme="dark"] .thread-pagination-bar__size select{
    border-color:#385273!important;
    background:#17243a!important;
    color:#edf4ff!important;
}
html[data-theme="dark"] .thread-pagination a,
html[data-theme="dark"] .thread-pagination span{
    border-color:#385273!important;
    background:#223754!important;
    color:#cfe0ff!important;
}
html[data-theme="dark"] .thread-pagination a:hover{
    border-color:#5a7eae!important;
    background:#31537d!important;
    color:#fff!important;
}
html[data-theme="dark"] .thread-pagination strong{
    border-color:#4677ff!important;
    background:#315fce!important;
    color:#fff!important;
}
html[data-theme="dark"] .message-bubble.is-theirs .message-inline-text,
html[data-theme="dark"] .admin-message-thread-panel .message-bubble.is-theirs .message-inline-text{
    color:#dbe7f7!important;
}
html[data-theme="dark"] .message-bubble.is-theirs .message-inline-quote,
html[data-theme="dark"] .admin-message-thread-panel .message-bubble.is-theirs .message-inline-quote{
    border-left-color:#6e9fe8!important;
    background:#243a5a!important;
    color:#d8e7ff!important;
}
html[data-theme="dark"] .message-bubble.is-theirs .message-quote-action,
html[data-theme="dark"] .admin-message-thread-panel .message-bubble.is-theirs .message-quote-action{
    border-color:#49658d!important;
    background:#243a5a!important;
    color:#cfe0ff!important;
}
html[data-theme="dark"] .message-bubble.is-theirs .message-quote-action:hover,
html[data-theme="dark"] .admin-message-thread-panel .message-bubble.is-theirs .message-quote-action:hover{
    border-color:#5a7eae!important;
    background:#31537d!important;
    color:#fff!important;
}

/* PATCH 2026-06-03: compact notifications settings panel.
   Keep the controls above the feed without pushing notifications below the fold. */
.notifications-settings-panel{
    display:grid;
    gap:12px;
    margin-bottom:14px;
    padding:16px 18px;
}
.notifications-settings-panel__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
}
.notifications-settings-panel__head h2{
    margin:0;
    color:#17223b;
    font-size:21px;
    line-height:1.15;
}
.notifications-settings-panel__head p{
    margin:4px 0 0;
    color:#64748b;
    font-size:13px;
    line-height:1.35;
}
.notifications-settings-panel__email{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:9px;
    flex-wrap:wrap;
    min-width:0;
}
.notifications-settings-panel__email .mail-status{
    padding:6px 10px;
    font-size:11px;
}
.notifications-settings-panel__email small{
    color:#64748b;
    font-size:12px;
    font-weight:800;
    overflow-wrap:anywhere;
}
.notifications-settings-compact-form{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
}
.notifications-settings-options{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
    flex:1 1 auto;
    min-width:0;
}
.notifications-settings-option{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
    min-height:42px;
    padding:9px 11px;
    border:1px solid rgba(37,99,235,.14);
    border-radius:12px;
    background:rgba(239,246,255,.72);
    color:#263a64;
    font-size:13px;
    font-weight:900;
    line-height:1.25;
    cursor:pointer;
}
.notifications-settings-option input{
    flex:0 0 auto;
    margin:0;
}
.notifications-settings-save{
    flex:0 0 auto;
    min-height:42px;
    padding-inline:15px;
}
.notifications-settings-panel__note{
    display:block;
    color:#b45309;
    font-size:12px;
    font-weight:800;
}
.notifications-settings-unverified{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
    color:#64748b;
    font-size:13px;
    font-weight:800;
}
.notifications-settings-unverified form{
    margin:0;
}
@media(max-width:820px){
    .notifications-settings-panel__head,
    .notifications-settings-compact-form{
        align-items:stretch;
        flex-direction:column;
    }
    .notifications-settings-panel__email{
        justify-content:flex-start;
    }
    .notifications-settings-save{
        align-self:flex-start;
    }
}
@media(max-width:620px){
    .notifications-settings-panel{
        padding:14px;
    }
    .notifications-settings-options{
        grid-template-columns:1fr;
    }
    .notifications-settings-save{
        width:100%;
        justify-content:center;
    }
}
html[data-theme="dark"] .notifications-settings-panel{
    background:#19263b!important;
    border-color:#344b6b!important;
    box-shadow:0 14px 34px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .notifications-settings-panel__head h2{
    color:#edf4ff!important;
}
html[data-theme="dark"] .notifications-settings-panel__head p,
html[data-theme="dark"] .notifications-settings-panel__email small,
html[data-theme="dark"] .notifications-settings-unverified{
    color:#9fb1ca!important;
}
html[data-theme="dark"] .notifications-settings-option{
    color:#d8e7ff!important;
    background:#223754!important;
    border-color:#385273!important;
}


/* PATCH 2026-06-03: direct internal reply from admin reports. */
.admin-report-quick-actions{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:9px;
}
.admin-report-private-reply{
    justify-content:center;
    min-height:36px;
    padding:7px 12px;
    border-radius:12px;
    font-size:13px;
    font-weight:950;
    white-space:nowrap;
}

/* PATCH 2026-06-03: admin-managed board categories. */
.admin-categories-hero,
.admin-category-edit-hero{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
}
.admin-page-head__actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    flex-wrap:wrap;
}
.admin-category-migration-warning{
    display:flex;
    align-items:flex-start;
    gap:8px 14px;
    flex-wrap:wrap;
    padding:14px 16px;
    border-color:rgba(217,119,6,.24)!important;
    background:#fff8e8!important;
    color:#8a5200;
}
.admin-category-migration-warning strong{font-weight:950}
.admin-category-migration-warning code{font-weight:900}
.admin-categories-panel{display:grid;gap:14px}
.admin-category-grid{display:grid;gap:12px}
.admin-category-card{
    display:grid;
    grid-template-columns:76px minmax(0,1fr) auto;
    align-items:center;
    gap:14px;
    padding:14px;
    border:1px solid rgba(96,118,170,.16);
    border-radius:18px;
    background:linear-gradient(180deg,#fff,#fbfdff);
    box-shadow:0 10px 24px rgba(31,42,68,.055);
}
.admin-category-card.is-disabled{opacity:.76;background:#f8fafc}
.admin-category-card__icon{
    display:grid;
    place-items:center;
    width:76px;
    height:76px;
    overflow:hidden;
    border:1px solid rgba(96,118,170,.16);
    border-radius:18px;
    background:linear-gradient(135deg,#eef5ff,#f8fbff);
    color:#3152a6;
    font-size:32px;
    font-weight:950;
}
.admin-category-card__icon img{width:100%;height:100%;object-fit:cover;display:block}
.admin-category-card__body{display:grid;gap:7px;min-width:0}
.admin-category-card__title-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.admin-category-card h3{margin:0;color:#10233f;font-size:18px;line-height:1.2}
.admin-category-card p{margin:0;color:#64748b;font-size:13px;font-weight:700;line-height:1.45}
.admin-category-card__meta{display:flex;gap:7px 12px;flex-wrap:wrap;color:#64748b;font-size:11px;font-weight:850}
.admin-category-card__actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.admin-category-edit-panel{padding:18px}
.admin-category-form{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px}
.admin-category-form__main{display:grid;gap:14px;min-width:0}
.admin-category-form label{display:grid;gap:7px;color:#334155;font-size:13px;font-weight:900}
.admin-category-form input[type="text"],
.admin-category-form input[type="number"],
.admin-category-form input[type="file"],
.admin-category-form textarea{
    width:100%;
    border:1px solid rgba(96,118,170,.23);
    border-radius:14px;
    background:#fff;
    color:#111827;
    padding:11px 12px;
    font:inherit;
    line-height:1.4;
    box-shadow:0 8px 18px rgba(31,42,68,.04);
}
.admin-category-form textarea{resize:vertical;min-height:112px}
.admin-category-form small{color:#64748b;font-size:11px;font-weight:750;line-height:1.45}
.admin-category-form__row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.admin-category-form__checks{display:grid;gap:8px;margin:0;padding:13px;border:1px solid rgba(96,118,170,.16);border-radius:16px;background:#fbfdff}
.admin-category-form__checks legend{padding:0 6px;color:#334155;font-size:13px;font-weight:950}
.admin-category-form__checks label{display:flex;align-items:flex-start;gap:9px;padding:9px 10px;border:1px solid rgba(96,118,170,.13);border-radius:12px;background:#fff;cursor:pointer}
.admin-category-form__checks input{margin-top:3px}
.admin-category-form__checks span{display:grid;gap:2px}
.admin-category-form__checks strong{color:#172033}
.admin-category-icon-editor{display:grid;align-content:start;gap:12px;padding:14px;border:1px solid rgba(96,118,170,.16);border-radius:18px;background:#fbfdff}
.admin-category-icon-editor h2{margin:0;color:#10233f;font-size:19px}
.admin-category-icon-preview{display:grid;place-items:center;width:100%;aspect-ratio:1/1;overflow:hidden;border:1px solid rgba(96,118,170,.16);border-radius:20px;background:linear-gradient(135deg,#eef5ff,#f8fbff);color:#3152a6;font-size:64px;font-weight:950}
.admin-category-icon-preview img{width:100%;height:100%;object-fit:cover;display:block}
.admin-category-icon-upload{display:grid;gap:7px}
.admin-category-remove-icon{display:flex!important;align-items:flex-start;gap:8px!important;padding:10px;border:1px solid rgba(220,38,38,.16);border-radius:12px;background:#fff7f7;color:#9f1239!important;font-size:12px!important;line-height:1.4}
.admin-category-remove-icon input{margin-top:2px}
.admin-category-form__actions{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:8px;padding-top:4px}
@media(max-width:860px){
    .admin-categories-hero,.admin-category-edit-hero{display:grid}
    .admin-page-head__actions{justify-content:flex-start}
    .admin-category-form{grid-template-columns:1fr}
    .admin-category-icon-editor{grid-template-columns:130px minmax(0,1fr);align-items:start}
    .admin-category-icon-editor h2{grid-column:1/-1}
    .admin-category-icon-preview{width:130px}
}
@media(max-width:680px){
    .admin-category-card{grid-template-columns:58px minmax(0,1fr);align-items:start;padding:11px}
    .admin-category-card__icon{width:58px;height:58px;border-radius:15px;font-size:25px}
    .admin-category-card__actions{grid-column:1/-1;justify-content:stretch}
    .admin-category-card__actions .button-link{flex:1;justify-content:center}
    .admin-category-form__row{grid-template-columns:1fr}
    .admin-category-icon-editor{display:grid;grid-template-columns:1fr}
    .admin-category-icon-preview{width:min(220px,100%)}
    .admin-category-form__actions{display:grid}
    .admin-category-form__actions .button-link,.admin-category-form__actions .button-primary{width:100%;justify-content:center}
}
html[data-theme="dark"] .admin-category-migration-warning{background:#3b2e1d!important;border-color:#7b5c2d!important;color:#ffd38a!important}
html[data-theme="dark"] .admin-category-card,
html[data-theme="dark"] .admin-category-form__checks,
html[data-theme="dark"] .admin-category-icon-editor{
    color:#e8f1ff!important;
    background:#19283e!important;
    border-color:#344b6b!important;
    box-shadow:0 14px 34px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .admin-category-card.is-disabled{background:#17243a!important}
html[data-theme="dark"] .admin-category-card h3,
html[data-theme="dark"] .admin-category-icon-editor h2,
html[data-theme="dark"] .admin-category-form__checks strong{color:#edf4ff!important}
html[data-theme="dark"] .admin-category-card p,
html[data-theme="dark"] .admin-category-card__meta,
html[data-theme="dark"] .admin-category-form small{color:#a6b6cc!important}
html[data-theme="dark"] .admin-category-card__icon,
html[data-theme="dark"] .admin-category-icon-preview{background:#223754!important;border-color:#3b5275!important;color:#bdd3ff!important}
html[data-theme="dark"] .admin-category-form label,
html[data-theme="dark"] .admin-category-form__checks legend{color:#c9d8ee!important}
html[data-theme="dark"] .admin-category-form input[type="text"],
html[data-theme="dark"] .admin-category-form input[type="number"],
html[data-theme="dark"] .admin-category-form input[type="file"],
html[data-theme="dark"] .admin-category-form textarea{background:#17243a!important;color:#edf4ff!important;border-color:#385273!important}
html[data-theme="dark"] .admin-category-form__checks label{background:#1b2940!important;border-color:#344b6b!important}
html[data-theme="dark"] .admin-category-remove-icon{background:#3b1e2a!important;color:#ffb6c7!important;border-color:#8d4561!important}

/* PATCH 2026-06-03: clean install-template generator in admin backups. */
.admin-install-template-create{display:grid;gap:12px;border-color:rgba(37,99,235,.18);background:linear-gradient(135deg,#fff,#f6f9ff)}
.admin-install-template-create .panel__head{margin:0}
.admin-install-template-safe-grid{display:flex;flex-wrap:wrap;gap:8px}
.admin-install-template-safe-grid span{display:inline-flex;align-items:center;min-height:30px;padding:0 10px;border:1px solid rgba(22,131,74,.16);border-radius:999px;background:#eefbf3;color:#167443;font-size:12px;font-weight:900}
.admin-install-template-form{display:flex;justify-content:flex-end;margin:0}
html[data-theme="dark"] .admin-install-template-create{background:linear-gradient(135deg,#1b2940,#17243a)!important;border-color:#344b6b!important}
html[data-theme="dark"] .admin-install-template-safe-grid span{color:#a7f0c0!important;background:#1c3a32!important;border-color:#376754!important}
@media(max-width:640px){.admin-install-template-form .button-primary{width:100%}.admin-install-template-safe-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.admin-install-template-safe-grid span{justify-content:center;text-align:center}}

/* PATCH 2026-06-03: profile monetization and temporary “Свободен сейчас” mode. */
.profiles-now-hero-actions,
.profile-now-hero__actions,
.profile-now-form__actions{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}
.profile-now-hero{display:grid;gap:10px;background:linear-gradient(135deg,#fff8ec,#fff,#f4f8ff)}
.profile-now-hero p,.profile-now-info li{line-height:1.55}
.profile-now-active-card,.profile-now-options,.profile-now-info{display:grid;gap:14px}
.profile-now-active-card{border-color:rgba(234,88,12,.2);background:linear-gradient(135deg,#fff8ed,#fff)}
.profile-now-active-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}
.profile-now-active-card h2,.profile-now-options h2,.profile-now-info h2{margin:0}
.profile-now-active-card p,.profile-now-options p{margin:5px 0 0;color:#65748c}
.profile-now-options__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.profile-now-option-card{display:grid;align-content:start;gap:10px;padding:15px;border:1px solid rgba(96,118,170,.17);border-radius:18px;background:#fff;box-shadow:0 10px 24px rgba(31,42,68,.05)}
.profile-now-option-card--paid{background:linear-gradient(135deg,#fff8ed,#fff)}
.profile-now-option-card__label{width:max-content;padding:5px 9px;border-radius:999px;background:#eef5ff;color:#3152a6;font-size:11px;font-weight:950;letter-spacing:.04em;text-transform:uppercase}
.profile-now-option-card--paid .profile-now-option-card__label{background:#fff0d5;color:#a54b08}
.profile-now-option-card h3{margin:0;color:#16213a;font-size:25px}
.profile-now-option-card p{margin:0;color:#65748c;font-size:13px;line-height:1.5}
.profile-now-option-card strong{color:#16213a}
.profile-now-form{display:grid;gap:9px;margin:0}
.profile-now-form label{display:grid;gap:6px;color:#334155;font-size:12px;font-weight:900}
.profile-now-form textarea{width:100%;min-height:76px;resize:vertical;border:1px solid rgba(96,118,170,.22);border-radius:13px;background:#fff;color:#111827;padding:10px 11px;font:inherit;line-height:1.45}
.profile-now-form small,.profile-now-deactivate-form small{color:#6b7a91;font-size:11px;font-weight:700;line-height:1.45}
.profile-now-deactivate-form{margin:0}
.profile-now-info ul{display:grid;gap:7px;margin:0;padding-left:19px;color:#5d6e87;font-size:13px}
.profile-now-badge,.profile-promoted-badge{display:inline-flex;align-items:center;justify-content:center;width:max-content;border:1px solid rgba(234,88,12,.2);border-radius:999px;background:#fff0d8;color:#b54708;font-size:10px;font-weight:950;line-height:1;letter-spacing:.035em;white-space:nowrap}
.profile-now-badge--large{padding:8px 11px;font-size:11px}
.profile-now-badge--title{margin-left:8px;padding:6px 8px;vertical-align:middle}
.profile-now-badge--thumb{position:absolute;left:7px;bottom:7px;z-index:3;max-width:calc(100% - 14px);padding:5px 7px;font-size:8px;overflow:hidden;text-overflow:ellipsis}
.profile-promoted-badge{margin-left:5px;padding:4px 6px;background:#eaf3ff;border-color:rgba(37,99,235,.16);color:#3152a6;font-size:9px;vertical-align:middle}
.profiles-directory-card__photo{position:relative}
.profiles-directory-card--now{border-color:rgba(234,88,12,.28);box-shadow:0 12px 26px rgba(234,88,12,.1)}
.profiles-directory-card--highlighted:not(.profiles-directory-card--vip){background:linear-gradient(135deg,#fff7e7,#fff);border-color:rgba(217,119,6,.25);box-shadow:0 12px 26px rgba(217,119,6,.1)}
.profiles-directory-card__now-text{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;padding:6px 8px;border-radius:10px;background:#fff4e4;color:#9b4b0f;font-size:12px;font-weight:800;line-height:1.35}
.profiles-summary-strip a{display:inline-flex;align-items:center;min-height:28px;padding:0 9px;border:1px solid rgba(234,88,12,.18);border-radius:999px;background:#fff4e4;color:#a64c0b;font-size:12px;font-weight:850;text-decoration:none}
.public-profile-hero--highlighted:not(.public-profile-hero--vip){border-color:rgba(217,119,6,.28);background:linear-gradient(135deg,#fff7e8,#fff)}
.public-profile-hero--now{box-shadow:0 16px 34px rgba(234,88,12,.11)}
.public-profile-now-note{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;margin:8px 0 2px;padding:9px 11px;border:1px solid rgba(234,88,12,.18);border-radius:13px;background:#fff4e4;color:#98450a}
.public-profile-now-note strong{font-size:13px}.public-profile-now-note span{font-size:13px;font-weight:750}
.cabinet-quick-card--now{border-color:rgba(234,88,12,.2);background:linear-gradient(135deg,#fff7e9,#fff)}
.cabinet-quick-card--now .cabinet-quick-card__icon{background:#fff0d5;color:#ae4d09}
@media(max-width:760px){
    .profile-now-options__grid{grid-template-columns:1fr}
    .profile-now-badge--title{display:inline-flex;margin:7px 0 0}
    .public-profile-now-note{display:grid}
}
html[data-theme="dark"] .profile-now-hero,
html[data-theme="dark"] .profile-now-active-card,
html[data-theme="dark"] .profile-now-option-card,
html[data-theme="dark"] .cabinet-quick-card--now,
html[data-theme="dark"] .profiles-directory-card--highlighted:not(.profiles-directory-card--vip),
html[data-theme="dark"] .public-profile-hero--highlighted:not(.public-profile-hero--vip){background:linear-gradient(135deg,#2f291f,#1b2940)!important;border-color:#685235!important;color:#edf4ff!important}
html[data-theme="dark"] .profile-now-active-card p,
html[data-theme="dark"] .profile-now-option-card p,
html[data-theme="dark"] .profile-now-info li,
html[data-theme="dark"] .profile-now-form small{color:#b7c5da!important}
html[data-theme="dark"] .profile-now-option-card h3,
html[data-theme="dark"] .profile-now-option-card strong,
html[data-theme="dark"] .profile-now-form label{color:#edf4ff!important}
html[data-theme="dark"] .profile-now-form textarea{background:#17243a!important;color:#edf4ff!important;border-color:#385273!important}
html[data-theme="dark"] .profile-now-badge,
html[data-theme="dark"] .profile-now-option-card--paid .profile-now-option-card__label,
html[data-theme="dark"] .profiles-directory-card__now-text,
html[data-theme="dark"] .public-profile-now-note,
html[data-theme="dark"] .profiles-summary-strip a{background:#3b2e1d!important;border-color:#76582d!important;color:#ffd18a!important}

/* PATCH 2026-06-03: saved profile searches and daily digest notifications. */
.profiles-save-search-toggle{border-color:rgba(37,99,235,.16);background:#f3f7ff}
.profiles-save-search-note{display:flex;align-items:center;justify-content:space-between;gap:8px 14px;flex-wrap:wrap;grid-column:1/-1;margin-top:2px;padding:8px 10px;border:1px solid rgba(96,118,170,.15);border-radius:12px;background:#f8faff;color:#66758c;font-size:12px;font-weight:750}
.profiles-save-search-note a{color:#3152a6;font-weight:900;text-decoration:none}.profiles-save-search-note a:hover{text-decoration:underline}
.profiles-save-search-note [data-profile-save-search-feedback].is-success{color:#167443}.profiles-save-search-note [data-profile-save-search-feedback].is-error{color:#b42318}
.saved-searches-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;background:linear-gradient(135deg,#f5f8ff,#fff)}
.saved-searches-hero h1,.saved-searches-info h2,.saved-search-card h2{margin:0}.saved-searches-hero p,.saved-searches-info p{margin:6px 0 0;line-height:1.55;color:#65748c}
.saved-searches-hero__actions,.saved-search-card__actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.saved-searches-info{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.saved-searches-info>span{display:inline-flex;padding:6px 10px;border-radius:999px;background:#eef5ff;color:#3152a6;font-size:12px;font-weight:900}
.saved-searches-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.saved-search-card{display:grid;align-content:start;gap:12px;margin:0}.saved-search-card.is-paused{opacity:.78}
.saved-search-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.saved-search-card__head h2{margin-top:5px;font-size:18px;line-height:1.25;color:#16213a}
.saved-search-card__status{display:inline-flex;padding:5px 8px;border-radius:999px;background:#eef1f6;color:#6b7280;font-size:11px;font-weight:900;white-space:nowrap}.saved-search-card__status.is-active{background:#eaf9ef;color:#167443}
.saved-search-card__summary{margin:0;color:#52627a;font-size:13px;line-height:1.5}
.saved-search-card__meta{display:grid;gap:4px;padding:9px 10px;border-radius:12px;background:#f8faff;color:#75839a;font-size:11px;font-weight:750}
.saved-search-card__settings{display:grid;gap:9px;margin:0}.saved-search-card__settings label{display:grid;gap:5px;color:#40506a;font-size:12px;font-weight:850}.saved-search-card__settings input[type="text"]{width:100%;min-height:40px;border:1px solid rgba(96,118,170,.2);border-radius:11px;background:#fff;color:#16213a;padding:0 10px;font:inherit}
.saved-search-card__switch{display:flex!important;align-items:center;gap:8px!important}.saved-search-card__switch input{width:17px;height:17px}
.saved-search-card__actions{justify-content:space-between}.saved-search-card__actions form{margin:0}
.cabinet-quick-card--saved-searches{border-color:rgba(37,99,235,.18);background:linear-gradient(135deg,#f4f8ff,#fff)}.cabinet-quick-card--saved-searches .cabinet-quick-card__icon{background:#eaf2ff;color:#3152a6}
@media(max-width:760px){.saved-searches-grid{grid-template-columns:1fr}.saved-search-card__actions{display:grid}.saved-search-card__actions .button-link,.saved-search-card__actions form,.saved-search-card__actions button{width:100%;justify-content:center}.profiles-save-search-note{display:grid}}
html[data-theme="dark"] .profiles-save-search-toggle,
html[data-theme="dark"] .profiles-save-search-note,
html[data-theme="dark"] .saved-searches-hero,
html[data-theme="dark"] .saved-searches-info,
html[data-theme="dark"] .saved-search-card,
html[data-theme="dark"] .saved-search-card__meta,
html[data-theme="dark"] .cabinet-quick-card--saved-searches{background:linear-gradient(135deg,#1b2940,#17243a)!important;border-color:#344b6b!important;color:#edf4ff!important}
html[data-theme="dark"] .saved-searches-hero p,html[data-theme="dark"] .saved-searches-info p,html[data-theme="dark"] .saved-search-card__summary,html[data-theme="dark"] .saved-search-card__meta,html[data-theme="dark"] .profiles-save-search-note{color:#b7c5da!important}
html[data-theme="dark"] .saved-search-card__head h2,html[data-theme="dark"] .saved-search-card__settings label{color:#edf4ff!important}
html[data-theme="dark"] .saved-search-card__settings input[type="text"]{background:#17243a!important;color:#edf4ff!important;border-color:#385273!important}
html[data-theme="dark"] .profiles-save-search-note a{color:#bdd3ff!important}

/* HOTFIX 2026-06-03: keep “Кого ищу” popup inside the visible viewport */
.home-search__field--multi-dropdown .search-multi-dropdown.ad-multi-dropdown .ad-multi-dropdown__panel,
.home-search__field--multi-dropdown .search-multi-dropdown.ad-multi-dropdown .search-multi-dropdown__panel.ad-multi-dropdown__panel {
    left: 0 !important;
    right: auto !important;
    width: min(300px, calc(100vw - 24px)) !important;
    max-width: min(300px, calc(100vw - 24px)) !important;
    transform: translateX(var(--bbs-multi-dropdown-viewport-shift, 0px)) !important;
}
@media (max-width: 760px) {
    .home-search__field--multi-dropdown .search-multi-dropdown.ad-multi-dropdown .ad-multi-dropdown__panel,
    .home-search__field--multi-dropdown .search-multi-dropdown.ad-multi-dropdown .search-multi-dropdown__panel.ad-multi-dropdown__panel {
        left: 0 !important;
        right: auto !important;
        width: min(300px, calc(100vw - 24px)) !important;
        max-width: min(300px, calc(100vw - 24px)) !important;
    }
}



/* FINAL paid services accepts BTC block */
.paid-accepts-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 20px;border:1px solid #f2ddb1;border-radius:22px;background:linear-gradient(135deg,#fffdf7 0%,#fff7e6 100%);box-shadow:0 14px 34px rgba(190,141,36,.10)}
.paid-accepts-panel__label{font-size:14px;font-weight:950;letter-spacing:.06em;text-transform:uppercase;color:#8a5b00}
.paid-accepts-list{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.paid-accepts-item{display:inline-flex;align-items:center;gap:12px;padding:10px 14px;border-radius:18px;background:#fff;border:1px solid #edd7ad;box-shadow:0 10px 24px rgba(190,141,36,.08)}
.paid-accepts-item img{display:block;width:56px;height:56px;border-radius:16px;object-fit:cover;box-shadow:0 10px 24px rgba(195,141,25,.22);flex:none}
.paid-accepts-item span{font-size:16px;font-weight:950;letter-spacing:.04em;color:#8a5b00}
@media(max-width:640px){.paid-accepts-panel{align-items:flex-start;flex-direction:column}.paid-accepts-item img{width:52px;height:52px}}
html[data-theme="dark"] .paid-accepts-panel{background:linear-gradient(135deg,#2b2214 0%,#3a2a13 100%);border-color:#7e5d24;box-shadow:0 16px 36px rgba(0,0,0,.22)}
html[data-theme="dark"] .paid-accepts-panel__label{color:#f0cc7f!important}
html[data-theme="dark"] .paid-accepts-item{background:rgba(18,23,34,.92);border-color:rgba(217,174,87,.45);box-shadow:0 10px 26px rgba(0,0,0,.24)}
html[data-theme="dark"] .paid-accepts-item span{color:#f3d898!important}

.paid-accepts-note{margin:0;max-width:620px;color:#7a5a18;font-size:13px;font-weight:800;line-height:1.45}
@media(max-width:640px){.paid-accepts-note{max-width:none}}
html[data-theme="dark"] .paid-accepts-note{color:#e6c982!important}

/* PATCH 2026-06-04: bank card topups with manual admin review and receipt complaints. */
.paid-card-icon{display:block!important;width:56px;height:56px;border-radius:16px;object-fit:cover;box-shadow:0 10px 24px rgba(30,64,130,.18);flex:none}
.paid-topup-method__logo{display:block;width:38px;height:38px;border-radius:10px;object-fit:cover;flex:none;box-shadow:0 6px 14px rgba(30,64,130,.12)}
.paid-accepts-item--card{border-color:#c8d7f2}.paid-accepts-item--card>span:last-child{color:#294f92}
.paid-topup-methods{display:grid;gap:8px;margin:0;padding:0;border:0}.paid-topup-methods legend{margin-bottom:2px;color:#344054;font-weight:900}
.paid-topup-method{display:flex!important;align-items:flex-start;gap:10px;padding:10px 11px;border:1px solid #dce6fa;border-radius:14px;background:#f8fbff;color:#344054;cursor:pointer}
.paid-topup-method input{width:17px!important;height:17px;margin:2px 0 0;flex:none}.paid-topup-method span{display:grid;gap:2px}.paid-topup-method strong{font-size:14px}.paid-topup-method small{font-size:12px;line-height:1.35}
.payment-card-box{display:grid;gap:6px;background:linear-gradient(135deg,#173260,#284f91)}.payment-card-box small{color:#dbe7ff;font-weight:750}.payment-card-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;font-weight:850;letter-spacing:.035em;white-space:nowrap}
.card-payment-complaint-details{min-width:220px}.card-payment-complaint-details summary{color:#b42318;font-weight:900;cursor:pointer}.card-payment-complaint-form{display:grid;gap:8px;margin-top:8px;padding:10px;border:1px solid #f0c7c1;border-radius:12px;background:#fff8f7}.card-payment-complaint-form label{display:grid;gap:5px;color:#7a271a;font-size:12px;font-weight:900}.card-payment-complaint-form textarea,.card-payment-complaint-form input[type=file]{width:100%;border:1px solid #e5b7af;border-radius:10px;background:#fff;padding:8px;font:inherit}.card-payment-complaint-form small{color:#9b4a3f;font-size:11px}
.admin-payment-method-title{background:linear-gradient(135deg,#f6f9ff,#fff)}.admin-payment-method-title h2{margin:0}.admin-payment-method-title p{margin:6px 0 0;color:#65748c}.admin-card-settings-grid{grid-template-columns:minmax(0,620px)}.admin-payment-cards-table .admin-wallet-inline-form{min-width:240px}.admin-card-payments-table td,.admin-card-complaints-table td{vertical-align:top}
@media(max-width:640px){.paid-card-icon{width:52px;height:52px}.paid-topup-method__logo{width:36px;height:36px}.payment-card-code{font-size:12px}.card-payment-complaint-details{min-width:180px}}
html[data-theme="dark"] .paid-topup-method,html[data-theme="dark"] .admin-payment-method-title{background:#17243a!important;border-color:#385273!important;color:#edf4ff!important}
html[data-theme="dark"] .paid-topup-methods legend,html[data-theme="dark"] .paid-topup-method strong{color:#edf4ff!important}html[data-theme="dark"] .paid-topup-method small{color:#b7c5da!important}
html[data-theme="dark"] .paid-accepts-item--card{border-color:#385273!important}html[data-theme="dark"] .paid-accepts-item--card>span:last-child{color:#bdd3ff!important}
html[data-theme="dark"] .card-payment-complaint-form{background:#2b1d1d!important;border-color:#71433c!important}html[data-theme="dark"] .card-payment-complaint-form label,html[data-theme="dark"] .card-payment-complaint-details summary{color:#ffc1b8!important}html[data-theme="dark"] .card-payment-complaint-form textarea,html[data-theme="dark"] .card-payment-complaint-form input[type=file]{background:#17243a!important;border-color:#71433c!important;color:#edf4ff!important}


/* FINAL admin unified payment journal */
.admin-payment-journal-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px}.admin-payment-journal-toolbar h2{margin:0 0 5px}.admin-payment-journal-toolbar p{margin:0;color:#667085}.admin-payment-journal-summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.admin-payment-journal-summary span{padding:8px 11px;border-radius:999px;background:#eef5ff;color:#24446f;font-size:13px;font-weight:850}.admin-payment-journal-filters{display:grid;gap:14px}.admin-payment-filter-group{display:grid;gap:8px}.admin-payment-filter-group>strong{font-size:13px;color:#344054;text-transform:uppercase;letter-spacing:.06em}.admin-payment-journal-table td{vertical-align:top}.admin-payment-row--attention{background:#fffaf0}.admin-payment-method-badge{display:inline-flex;align-items:center;justify-content:center;min-width:60px;padding:6px 9px;border-radius:999px;font-size:12px;font-weight:950;letter-spacing:.04em;text-transform:uppercase}.admin-payment-method-badge--btc{background:#fff0c7;color:#8a5700}.admin-payment-method-badge--card{background:#eaf1ff;color:#2357a5}.admin-payment-row-actions{display:grid;gap:7px;min-width:122px}.admin-payment-row-actions form{margin:0}.admin-payment-row-actions .button-link{width:100%;justify-content:center;text-align:center}.admin-payment-detail-title p{max-width:920px}.admin-payment-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.admin-payment-detail-card{display:grid;gap:5px;padding:16px;border:1px solid #dce6f6;border-radius:18px;background:#fbfdff}.admin-payment-detail-card span:first-child,.admin-payment-detail-list span{color:#667085;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.admin-payment-detail-card strong{color:#172033}.admin-payment-detail-card small{color:#667085}.admin-payment-detail-panel{display:grid;gap:14px}.admin-payment-detail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.admin-payment-detail-list>div{display:grid;gap:6px;padding:13px 15px;border:1px solid #e4eaf4;border-radius:15px;background:#fff}.admin-payment-detail-list strong{color:#172033;overflow-wrap:anywhere}.admin-payment-detail-actions{display:grid;gap:10px}.admin-payment-detail-action{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:12px;border:1px solid #e0e7f2;border-radius:16px;background:#fbfdff}.admin-payment-detail-action label{display:grid;gap:6px;min-width:min(100%,340px);flex:1;color:#475467;font-size:13px;font-weight:850}.admin-payment-detail-action input{width:100%;padding:10px 12px;border:1px solid #d7dfec;border-radius:12px;background:#fff;color:#172033;font:inherit}.admin-payment-complaint-detail{border-color:#f3d6a2;background:#fffdfa}
@media(max-width:980px){.admin-payment-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-payment-journal-toolbar{align-items:flex-start;flex-direction:column}}
@media(max-width:640px){.admin-payment-detail-grid,.admin-payment-detail-list{grid-template-columns:1fr}.admin-payment-detail-action{align-items:stretch;flex-direction:column}.admin-payment-detail-action label{min-width:0;width:100%}}
html[data-theme="dark"] .admin-payment-journal-toolbar p,html[data-theme="dark"] .admin-payment-filter-group>strong{color:#aebdd3!important}html[data-theme="dark"] .admin-payment-journal-summary span{background:#202d43;color:#c8d9f5}html[data-theme="dark"] .admin-payment-row--attention{background:rgba(117,76,10,.20)!important}html[data-theme="dark"] .admin-payment-method-badge--btc{background:rgba(145,97,12,.30);color:#ffd98d}html[data-theme="dark"] .admin-payment-method-badge--card{background:rgba(42,91,168,.28);color:#bdd4ff}html[data-theme="dark"] .admin-payment-detail-card,html[data-theme="dark"] .admin-payment-detail-list>div,html[data-theme="dark"] .admin-payment-detail-action{background:#151d2b;border-color:#2c394d}html[data-theme="dark"] .admin-payment-detail-card strong,html[data-theme="dark"] .admin-payment-detail-list strong{color:#edf4ff!important}html[data-theme="dark"] .admin-payment-detail-card span:first-child,html[data-theme="dark"] .admin-payment-detail-list span,html[data-theme="dark"] .admin-payment-detail-card small,html[data-theme="dark"] .admin-payment-detail-action label{color:#aebdd3!important}html[data-theme="dark"] .admin-payment-detail-action input{background:#101722;border-color:#334257;color:#edf4ff}html[data-theme="dark"] .admin-payment-complaint-detail{background:#251f15;border-color:#74572b}


/* FINAL admin payments compact navigation and photo profile link */
.admin-payments-compact-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px}
.admin-payments-compact-nav .chips{margin:0}
.admin-payments-compact-nav .admin-inline-action{margin:0}
.admin-photo-card__body>strong a{color:inherit;text-decoration:none}
.admin-photo-card__body>strong a:hover{text-decoration:underline}
@media(max-width:760px){.admin-payments-compact-nav{align-items:flex-start;flex-direction:column}.admin-payments-compact-nav .admin-inline-action,.admin-payments-compact-nav .admin-inline-action .button-link{width:100%}}


/* HOTFIX 2026-06-04: script request private-message action and non-blocking gift flow. */
.admin-script-private-message-link{display:flex;width:100%;justify-content:center;margin-top:10px;text-align:center}

/* PATCH 2026-06-04: editable neutral SEO landing page /znakomstva and admin editor. */
.seo-landing-hero{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:24px;align-items:center;padding:clamp(24px,4vw,48px);overflow:hidden}.seo-landing-hero__copy{display:grid;gap:16px}.seo-landing-hero h1{max-width:820px;margin:0;color:#101828;font-size:clamp(36px,5vw,68px);line-height:1.02;letter-spacing:-.055em}.seo-landing-hero p{max-width:840px;margin:0;color:#596780;font-size:clamp(16px,2vw,20px);line-height:1.65}.seo-landing-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.seo-landing-hero__trust{display:flex;gap:8px;flex-wrap:wrap}.seo-landing-hero__trust span{padding:7px 10px;border:1px solid #dce7f8;border-radius:999px;background:#f8fbff;color:#315b97;font-size:12px;font-weight:900}.seo-landing-hero__card{display:grid;gap:12px;padding:22px;border:1px solid #dce7f8;border-radius:22px;background:linear-gradient(145deg,#f7fbff,#eef5ff);box-shadow:0 16px 34px rgba(31,76,145,.10)}.seo-landing-hero__card strong{color:#16488c;font-size:20px}.seo-landing-hero__card p{color:#596780;font-size:14px;line-height:1.55}.seo-landing-hero__card ul{display:grid;gap:8px;margin:0;padding-left:20px;color:#284d82;font-weight:850}.seo-landing-section{display:grid;gap:18px;margin-top:18px}.seo-landing-section.panel{padding:clamp(20px,3vw,34px)}.seo-landing-section__intro{max-width:980px}.seo-landing-section__head{display:grid;gap:4px}.seo-landing-section h2,.seo-landing-cta h2{margin:0;color:#101828;font-size:clamp(26px,3vw,40px);line-height:1.1;letter-spacing:-.04em}.seo-landing-section p,.seo-landing-cta p{margin:10px 0 0;color:#596780;line-height:1.7}.seo-landing-grid{display:grid;gap:14px}.seo-landing-grid--benefits{grid-template-columns:repeat(4,minmax(0,1fr))}.seo-landing-card{display:grid;gap:10px;padding:20px}.seo-landing-card__number{display:grid;place-items:center;width:36px;height:36px;border-radius:13px;background:#edf5ff;color:#1e63d5;font-weight:950}.seo-landing-card h3{margin:0;color:#1d2b45;font-size:18px}.seo-landing-card p{margin:0;color:#65748b;font-size:14px;line-height:1.58}.seo-landing-steps{background:linear-gradient(145deg,#fff,#f7fbff)}.seo-landing-steps__list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;counter-reset:landing-step;margin:0;padding:0;list-style:none}.seo-landing-steps__list li{display:grid;gap:8px;padding:16px;border:1px solid #e0e9f7;border-radius:18px;background:#fff;counter-increment:landing-step}.seo-landing-steps__list li::before{content:counter(landing-step);display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#2868d8;color:#fff;font-size:13px;font-weight:950}.seo-landing-steps__list strong{color:#1d2b45}.seo-landing-steps__list span{color:#65748b;font-size:14px;line-height:1.55}.seo-landing-safety{grid-template-columns:auto minmax(0,1fr);align-items:start;background:linear-gradient(145deg,#f7fff9,#fff)}.seo-landing-safety__icon{display:grid;place-items:center;width:48px;height:48px;border-radius:18px;background:#e7f9ed;color:#188542;font-size:24px;font-weight:950}.seo-landing-text-link{display:inline-block;margin-top:12px;color:#1762d6;font-weight:900;text-decoration:none}.seo-landing-text-link:hover{text-decoration:underline}.seo-landing-faq{display:grid;gap:10px}.seo-landing-faq__item{padding:0;overflow:hidden}.seo-landing-faq__item summary{cursor:pointer;padding:16px 18px;color:#1d2b45;font-weight:950;list-style:none}.seo-landing-faq__item summary::-webkit-details-marker{display:none}.seo-landing-faq__item summary::after{content:"+";float:right;color:#2469d8}.seo-landing-faq__item[open] summary::after{content:"−"}.seo-landing-faq__item p{margin:0;padding:0 18px 17px;color:#65748b;line-height:1.6}.seo-landing-cta{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:18px;padding:clamp(22px,3vw,34px);background:linear-gradient(135deg,#f7fbff,#fff)}
.admin-seo-landing-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}.admin-seo-landing-head p{max-width:900px}.admin-seo-landing-note{border-color:#cfe0fb;background:#f8fbff}.admin-seo-landing-form{display:grid;gap:18px}.admin-seo-landing-form fieldset{display:grid;gap:13px;margin:0;padding:16px;border:1px solid #dce6f5;border-radius:16px}.admin-seo-landing-form legend{padding:0 8px;color:#23589e;font-weight:950}.admin-seo-landing-form label{display:grid;gap:6px;color:#344054;font-weight:850}.admin-seo-landing-form small{color:#68768c;font-size:12px;font-weight:700;line-height:1.5}.admin-seo-landing-form textarea{min-height:90px;resize:vertical}.admin-seo-landing-two-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.admin-seo-landing-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
@media(max-width:980px){.seo-landing-hero{grid-template-columns:1fr}.seo-landing-grid--benefits,.seo-landing-steps__list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.seo-landing-hero{padding:22px}.seo-landing-hero h1{font-size:clamp(34px,11vw,48px)}.seo-landing-grid--benefits,.seo-landing-steps__list,.admin-seo-landing-two-columns{grid-template-columns:1fr}.seo-landing-safety{grid-template-columns:1fr}.seo-landing-cta,.admin-seo-landing-head{align-items:flex-start;flex-direction:column}}
html[data-theme="dark"] .seo-landing-hero h1,html[data-theme="dark"] .seo-landing-section h2,html[data-theme="dark"] .seo-landing-cta h2,html[data-theme="dark"] .seo-landing-card h3,html[data-theme="dark"] .seo-landing-steps__list strong,html[data-theme="dark"] .seo-landing-faq__item summary{color:#edf4ff!important}html[data-theme="dark"] .seo-landing-hero p,html[data-theme="dark"] .seo-landing-section p,html[data-theme="dark"] .seo-landing-cta p,html[data-theme="dark"] .seo-landing-card p,html[data-theme="dark"] .seo-landing-steps__list span,html[data-theme="dark"] .seo-landing-faq__item p{color:#aebdd3!important}html[data-theme="dark"] .seo-landing-hero__card,html[data-theme="dark"] .seo-landing-steps,html[data-theme="dark"] .seo-landing-cta,html[data-theme="dark"] .admin-seo-landing-note{background:#17243a!important;border-color:#385273!important}html[data-theme="dark"] .seo-landing-hero__card strong,html[data-theme="dark"] .seo-landing-hero__card ul{color:#bdd3ff!important}html[data-theme="dark"] .seo-landing-hero__trust span,html[data-theme="dark"] .seo-landing-card__number{background:#202d43!important;border-color:#385273!important;color:#bdd3ff!important}html[data-theme="dark"] .seo-landing-steps__list li{background:#151d2b!important;border-color:#2c394d!important}html[data-theme="dark"] .seo-landing-safety{background:#16281e!important}html[data-theme="dark"] .admin-seo-landing-form fieldset{border-color:#334257!important}html[data-theme="dark"] .admin-seo-landing-form legend{color:#bdd3ff!important}html[data-theme="dark"] .admin-seo-landing-form label{color:#edf4ff!important}html[data-theme="dark"] .admin-seo-landing-form small{color:#aebdd3!important}


/* PATCH 2026-06-05: compact responsive public-member odometer in the site header. */
.topbar-brand-cluster{
    justify-self:start;
    display:flex;
    align-items:center;
    min-width:0;
    gap:14px;
}
.topbar-brand-cluster .brand--modern{
    flex:0 0 auto;
}
.topbar-members{
    display:grid;
    gap:4px;
    flex:0 0 auto;
    min-width:0;
    padding-left:14px;
    border-left:1px solid #dfe7f3;
}
.topbar-members__label{
    color:#71809b;
    font-size:10px;
    font-weight:950;
    line-height:1;
    letter-spacing:.08em;
    text-transform:uppercase;
    white-space:nowrap;
}
.topbar-members__digits{
    display:flex;
    align-items:center;
    gap:3px;
}
.topbar-members__digit{
    display:block;
    width:1.4em;
    height:1.666667em;
    overflow:hidden;
    border:1px solid #d8e2f0;
    border-radius:.4em;
    background:linear-gradient(180deg,#ffffff 0%,#f5f8fd 100%);
    color:#18315d;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 4px 10px rgba(34,73,137,.08);
    contain:paint;
    font:950 15px/1 system-ui,-apple-system,"Segoe UI",sans-serif;
}
.topbar-members__track{
    display:flex;
    flex-direction:column;
    width:100%;
    will-change:transform;
    animation:topbar-members-roll 1.18s cubic-bezier(.14,.78,.18,1) both;
}
.topbar-members__track span{
    display:grid;
    place-items:center;
    width:100%;
    height:1.666667em;
    flex:0 0 1.666667em;
}
.topbar-members__digit:nth-child(2) .topbar-members__track{animation-delay:45ms}
.topbar-members__digit:nth-child(3) .topbar-members__track{animation-delay:90ms}
.topbar-members__digit:nth-child(4) .topbar-members__track{animation-delay:135ms}
.topbar-members__digit:nth-child(5) .topbar-members__track{animation-delay:180ms}
.topbar-members__digit:nth-child(6) .topbar-members__track{animation-delay:225ms}
.topbar-members__digit:nth-child(7) .topbar-members__track{animation-delay:270ms}
.topbar-members__digit:nth-child(8) .topbar-members__track{animation-delay:315ms}
.topbar-members__digit:nth-child(9) .topbar-members__track{animation-delay:360ms}
.topbar-members__digit:nth-child(10) .topbar-members__track{animation-delay:405ms}
.topbar-members__track--to-0{--topbar-members-roll-offset:-50em}
.topbar-members__track--to-1{--topbar-members-roll-offset:-51.666667em}
.topbar-members__track--to-2{--topbar-members-roll-offset:-53.333334em}
.topbar-members__track--to-3{--topbar-members-roll-offset:-55em}
.topbar-members__track--to-4{--topbar-members-roll-offset:-56.666667em}
.topbar-members__track--to-5{--topbar-members-roll-offset:-58.333334em}
.topbar-members__track--to-6{--topbar-members-roll-offset:-60em}
.topbar-members__track--to-7{--topbar-members-roll-offset:-61.666667em}
.topbar-members__track--to-8{--topbar-members-roll-offset:-63.333334em}
.topbar-members__track--to-9{--topbar-members-roll-offset:-65em}
@keyframes topbar-members-roll{
    from{transform:translateY(0)}
    to{transform:translateY(var(--topbar-members-roll-offset))}
}
html[data-theme="dark"] .topbar-members{
    border-left-color:#31415d;
}
html[data-theme="dark"] .topbar-members__label{
    color:#aebdd3;
}
html[data-theme="dark"] .topbar-members__digit{
    border-color:#3a4d6b;
    background:linear-gradient(180deg,#22344f 0%,#1a293f 100%);
    color:#edf4ff;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 4px 10px rgba(0,0,0,.18);
}
@media(max-width:1100px){
    .topbar-brand-cluster{
        flex:0 1 auto;
    }
}
@media(max-width:640px){
    .topbar-brand-cluster{
        gap:9px;
    }
    .topbar-members{
        gap:3px;
        padding-left:9px;
    }
    .topbar-members__label{
        font-size:9px;
    }
    .topbar-members__digits{
        gap:2px;
    }
    .topbar-members__digit{
        font-size:13px;
        border-radius:.38em;
    }
}
@media(max-width:360px){
    .topbar-brand-cluster{
        gap:7px;
    }
    .topbar-members{
        padding-left:7px;
    }
    .topbar-members__digit{
        font-size:12px;
    }
}
@media(prefers-reduced-motion:reduce){
    .topbar-members__track{
        animation:none;
        transform:translateY(var(--topbar-members-roll-offset));
    }
}

/* Retention Core: personal updates, city activity and favorite profile watch */
.cabinet-retention,.cabinet-city-today{margin:18px 0}
.cabinet-retention-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.cabinet-retention-card{display:flex;min-height:126px;flex-direction:column;justify-content:center;gap:5px;padding:14px;border:1px solid rgba(96,118,170,.16);border-radius:18px;background:linear-gradient(145deg,#fff,#f7faff);color:inherit;text-decoration:none;box-shadow:0 10px 24px rgba(31,42,68,.06);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.cabinet-retention-card:hover{transform:translateY(-2px);border-color:rgba(67,97,238,.42);box-shadow:0 14px 30px rgba(31,42,68,.1)}
.cabinet-retention-card__icon{font-size:22px;line-height:1}
.cabinet-retention-card strong{font-size:27px;line-height:1.05;color:#22315e}
.cabinet-retention-card small{color:#64748b;line-height:1.35}
.cabinet-city-today-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.cabinet-city-today-grid a{display:flex;min-height:92px;flex-direction:column;justify-content:center;gap:4px;padding:13px;border:1px solid rgba(96,118,170,.16);border-radius:17px;background:#fff;color:inherit;text-decoration:none;transition:border-color .18s ease,transform .18s ease}
.cabinet-city-today-grid a:hover{transform:translateY(-2px);border-color:rgba(67,97,238,.42)}
.cabinet-city-today-grid strong{font-size:24px;color:#22315e}.cabinet-city-today-grid span{font-size:13px;color:#64748b}
.retention-fresh-badge{position:absolute;left:8px;bottom:8px;z-index:3;display:inline-flex;align-items:center;max-width:calc(100% - 16px);padding:5px 8px;border-radius:999px;background:rgba(31,41,55,.84);color:#fff;font-size:10px;font-weight:800;line-height:1.1;letter-spacing:.03em;text-transform:uppercase;box-shadow:0 5px 14px rgba(0,0,0,.18);backdrop-filter:blur(7px)}
.profile-action-button--watch{background:#f8fafc!important;border-color:#cbd5e1!important;color:#475569!important}.profile-action-button--watch.is-active{background:#eff6ff!important;border-color:#93c5fd!important;color:#1d4ed8!important}
.cabinet-favorite-item{display:flex;min-width:0;flex-direction:column;border:1px solid rgba(96,118,170,.14);border-radius:16px;background:#fff;overflow:hidden}.cabinet-favorite-item .cabinet-favorite-card{flex:1;border:0;border-radius:0}.cabinet-favorite-watch-form{display:flex;padding:0 12px 12px}.cabinet-favorite-watch-button{width:100%;border:1px solid #cbd5e1;border-radius:11px;padding:7px 9px;background:#f8fafc;color:#475569;font-size:12px;font-weight:800;cursor:pointer}.cabinet-favorite-watch-button.is-active{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}
html[data-theme="dark"] .cabinet-retention-card,html[data-theme="dark"] .cabinet-city-today-grid a,html[data-theme="dark"] .cabinet-favorite-item{background:linear-gradient(145deg,#1b2940,#17243a)!important;border-color:#344b6b!important;color:#edf4ff!important}
html[data-theme="dark"] .cabinet-retention-card strong,html[data-theme="dark"] .cabinet-city-today-grid strong{color:#edf4ff!important}html[data-theme="dark"] .cabinet-retention-card small,html[data-theme="dark"] .cabinet-city-today-grid span{color:#b7c5da!important}
html[data-theme="dark"] .cabinet-favorite-watch-button,html[data-theme="dark"] .profile-action-button--watch{background:#202d43!important;border-color:#385273!important;color:#bdd3ff!important}html[data-theme="dark"] .cabinet-favorite-watch-button.is-active,html[data-theme="dark"] .profile-action-button--watch.is-active{background:#1f3a60!important;border-color:#4c79b8!important;color:#d8e8ff!important}
@media(max-width:900px){.cabinet-city-today-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.cabinet-retention-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.cabinet-retention-card{min-height:110px;padding:11px}.cabinet-retention-card strong{font-size:23px}.cabinet-retention-card small{font-size:12px}.cabinet-city-today-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.cabinet-city-today-grid a{min-height:82px;padding:10px}.cabinet-city-today-grid strong{font-size:21px}.retention-fresh-badge{left:6px;bottom:6px;padding:4px 7px;font-size:9px}}
.home-city-today{margin:22px 0}


/* PATCH: active published ads on authenticated public profile view */
.public-profile-ads{grid-column:1/-1}
.public-profile-ads .panel__head{align-items:flex-start;gap:12px}
.public-profile-ads .panel__head p{margin:4px 0 0;color:#64748b;font-size:14px}
.public-profile-ads__count{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 10px;border-radius:999px;background:#eef2ff;color:#3348a4;font-size:14px;font-weight:850}
.public-profile-ads__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.public-profile-ad-card{display:flex;min-width:0;flex-direction:column;gap:8px;padding:14px;border:1px solid rgba(96,118,170,.15);border-radius:16px;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 10px 26px rgba(31,42,68,.06)}
.public-profile-ad-card__meta{display:flex;flex-wrap:wrap;gap:6px}
.public-profile-ad-card__meta span{display:inline-flex;padding:4px 7px;border-radius:999px;background:#eef2ff;color:#44516f;font-size:11px;font-weight:750}
.public-profile-ad-card h3{margin:0;font-size:16px;line-height:1.28}
.public-profile-ad-card h3 a{color:#26376f;text-decoration:none}
.public-profile-ad-card h3 a:hover{text-decoration:underline}
.public-profile-ad-card p{margin:0;color:#64748b;font-size:13px;line-height:1.5}
.public-profile-ad-card__foot{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;margin-top:auto;color:#64748b;font-size:12px}
.public-profile-ad-card__foot a{margin-left:auto;color:#2f5fd0;font-weight:800;text-decoration:none}
.public-profile-ad-card__foot a:hover{text-decoration:underline}
html[data-theme="dark"] .public-profile-ads .panel__head p{color:#a9b8d0}
html[data-theme="dark"] .public-profile-ads__count{background:#243551;color:#c8d9ff}
html[data-theme="dark"] .public-profile-ad-card{border-color:#30425d;background:linear-gradient(180deg,#1d2b42,#19263b);box-shadow:none}
html[data-theme="dark"] .public-profile-ad-card__meta span{background:#273a57;color:#c2d0e5}
html[data-theme="dark"] .public-profile-ad-card h3 a{color:#e5efff}
html[data-theme="dark"] .public-profile-ad-card p,html[data-theme="dark"] .public-profile-ad-card__foot{color:#a9b8d0}
html[data-theme="dark"] .public-profile-ad-card__foot a{color:#9dbdff}
@media(max-width:760px){.public-profile-ads__list{grid-template-columns:1fr}.public-profile-ad-card__foot a{width:100%;margin-left:0}.public-profile-ads .panel__head{display:flex}}

/* FINAL neon mobile remaining white surfaces and news readability fix */
html[data-theme="neon"] .hero-stats,
html[data-theme="neon"] .hero-stat,
html[data-theme="neon"] .profiles-summary-strip,
html[data-theme="neon"] .profiles-summary-strip span,
html[data-theme="neon"] .profiles-summary-strip a,
html[data-theme="neon"] .pagination-summary,
html[data-theme="neon"] .profiles-save-search-toggle,
html[data-theme="neon"] .profiles-save-search-note,
html[data-theme="neon"] .search-advanced,
html[data-theme="neon"] .search-advanced__grid .home-search__field,
html[data-theme="neon"] .search-advanced__toggles .home-search__toggle,
html[data-theme="neon"] .conversation-list-panel,
html[data-theme="neon"] .conversation-topic,
html[data-theme="neon"] .conversation-list-panel__head span,
html[data-theme="neon"] .photo-comments,
html[data-theme="neon"] .photo-comment,
html[data-theme="neon"] .photo-comment-message summary,
html[data-theme="neon"] .photo-comment-message form,
html[data-theme="neon"] .photo-comment-message textarea,
html[data-theme="neon"] .photo-comment-form textarea,
html[data-theme="neon"] .photo-comment-message button,
html[data-theme="neon"] .photo-comment-form button,
html[data-theme="neon"] .single-photo-comments-card,
html[data-theme="neon"] .news-hero,
html[data-theme="neon"] .news-card,
html[data-theme="neon"] .news-article,
html[data-theme="neon"] .landing-discovery-panel,
html[data-theme="neon"] .landing-link-cloud a,
html[data-theme="neon"] .landing-link-group--collapsible,
html[data-theme="neon"] .city-panel__chips a,
html[data-theme="neon"] .top-photo-card,
html[data-theme="neon"] .top-photo-card__body,
html[data-theme="neon"] .top-photo-card__foot,
html[data-theme="neon"] .top-photo-author-line,
html[data-theme="neon"] .home-category,
html[data-theme="neon"] .home-category-card,
html[data-theme="neon"] .hero-stat__icon,
html[data-theme="neon"] .public-profile-status.is-hidden{
    background:linear-gradient(180deg,rgba(14,6,30,.96),rgba(20,9,46,.96))!important;
    border-color:rgba(113,78,255,.34)!important;
    color:#eef1ff!important;
    box-shadow:0 14px 36px rgba(0,0,0,.26),0 0 0 1px rgba(87,56,210,.10) inset!important;
}
html[data-theme="neon"] .hero-stats{overflow:hidden}
html[data-theme="neon"] .hero-stat+.hero-stat{border-left-color:rgba(113,78,255,.22)!important}
html[data-theme="neon"] .hero-stat strong,
html[data-theme="neon"] .hero-stat b,
html[data-theme="neon"] .profiles-list-panel h2,
html[data-theme="neon"] .profiles-summary-strip strong,
html[data-theme="neon"] .conversation-list-panel h2,
html[data-theme="neon"] .conversation-topic__title,
html[data-theme="neon"] .photo-comment__top strong,
html[data-theme="neon"] .news-card h2,
html[data-theme="neon"] .news-card h2 a,
html[data-theme="neon"] .news-article h1,
html[data-theme="neon"] .news-richtext h2,
html[data-theme="neon"] .news-richtext h3,
html[data-theme="neon"] .landing-discovery-panel h2,
html[data-theme="neon"] .landing-link-group strong,
html[data-theme="neon"] .top-photo-card h2,
html[data-theme="neon"] .top-photo-card h2 a,
html[data-theme="neon"] .top-photo-author-line a,
html[data-theme="neon"] .home-category strong,
html[data-theme="neon"] .city-panel__name{
    color:#f6f7ff!important;
}
html[data-theme="neon"] .hero-stat small,
html[data-theme="neon"] .profiles-summary-strip span,
html[data-theme="neon"] .conversation-topic__meta,
html[data-theme="neon"] .conversation-topic__snippet,
html[data-theme="neon"] .photo-comment p,
html[data-theme="neon"] .photo-comment time,
html[data-theme="neon"] .photo-comments__empty,
html[data-theme="neon"] .photo-comments__owner-note,
html[data-theme="neon"] .photo-comments--guest,
html[data-theme="neon"] .news-card__meta,
html[data-theme="neon"] .news-card p,
html[data-theme="neon"] .news-article__lead,
html[data-theme="neon"] .news-richtext,
html[data-theme="neon"] .news-richtext p,
html[data-theme="neon"] .news-richtext li,
html[data-theme="neon"] .news-back-link,
html[data-theme="neon"] .landing-link-group--collapsible summary,
html[data-theme="neon"] .landing-link-group--collapsible summary small,
html[data-theme="neon"] .landing-link-cloud a span,
html[data-theme="neon"] .top-photo-card p,
html[data-theme="neon"] .top-photo-card__score,
html[data-theme="neon"] .top-photo-card__foot,
html[data-theme="neon"] .top-photo-author-line,
html[data-theme="neon"] .home-category small,
html[data-theme="neon"] .city-panel__count,
html[data-theme="neon"] .profiles-save-search-note,
html[data-theme="neon"] .search-advanced>summary span{
    color:#c8cffd!important;
}
html[data-theme="neon"] .hero-stat__icon{background:linear-gradient(180deg,rgba(60,78,214,.28),rgba(124,85,255,.20))!important;color:#8ed3ff!important}
html[data-theme="neon"] .profiles-save-search-toggle,
html[data-theme="neon"] .search-advanced__toggles .home-search__toggle,
html[data-theme="neon"] .conversation-list-panel__head span,
html[data-theme="neon"] .photo-comment-message summary,
html[data-theme="neon"] .photo-comment-message button,
html[data-theme="neon"] .photo-comment-form button,
html[data-theme="neon"] .news-card__more,
html[data-theme="neon"] .news-back-link,
html[data-theme="neon"] .landing-link-cloud a,
html[data-theme="neon"] .city-panel__chips a,
html[data-theme="neon"] .profiles-summary-strip a,
html[data-theme="neon"] .pagination-summary,
html[data-theme="neon"] .top-photo-card__foot a{
    background:linear-gradient(180deg,rgba(34,26,72,.95),rgba(26,18,60,.95))!important;
    border-color:rgba(103,82,228,.42)!important;
    color:#8ed3ff!important;
}
html[data-theme="neon"] .profiles-save-search-note a,
html[data-theme="neon"] .news-card h2 a:hover,
html[data-theme="neon"] .news-card__more:hover,
html[data-theme="neon"] .news-back-link:hover,
html[data-theme="neon"] .landing-link-cloud a:hover,
html[data-theme="neon"] .city-panel__chips a:hover,
html[data-theme="neon"] .top-photo-card__foot a:hover,
html[data-theme="neon"] .top-photo-author-line a:hover{
    color:#ffffff!important;
    text-decoration:none!important;
}
html[data-theme="neon"] .search-advanced>summary{
    color:#eaf1ff!important;
}
html[data-theme="neon"] .search-advanced>summary:after{
    background:linear-gradient(180deg,rgba(58,74,194,.34),rgba(118,82,245,.22))!important;
    color:#8ed3ff!important;
}
html[data-theme="neon"] .search-advanced__grid .home-search__field,
html[data-theme="neon"] .photo-comment-message textarea,
html[data-theme="neon"] .photo-comment-form textarea{
    background:rgba(12,8,31,.92)!important;
    color:#eef1ff!important;
}
html[data-theme="neon"] .search-advanced__grid .home-search__field input,
html[data-theme="neon"] .search-advanced__grid .home-search__field select,
html[data-theme="neon"] .photo-comment-message textarea,
html[data-theme="neon"] .photo-comment-form textarea{
    color:#eef1ff!important;
}
html[data-theme="neon"] .search-advanced__grid .home-search__field input::placeholder,
html[data-theme="neon"] .photo-comment-message textarea::placeholder,
html[data-theme="neon"] .photo-comment-form textarea::placeholder{
    color:#aab5ef!important;
}
html[data-theme="neon"] .conversation-topic:hover,
html[data-theme="neon"] .conversation-topic.has-unread,
html[data-theme="neon"] .landing-link-cloud a:hover,
html[data-theme="neon"] .city-panel__chips a:hover,
html[data-theme="neon"] .top-photo-card:hover,
html[data-theme="neon"] .home-category:hover{
    background:linear-gradient(180deg,rgba(20,10,44,.98),rgba(28,14,62,.98))!important;
    border-color:rgba(106,132,255,.58)!important;
    box-shadow:0 18px 42px rgba(0,0,0,.30),0 0 22px rgba(64,120,255,.14)!important;
}
html[data-theme="neon"] .conversation-topic__avatar,
html[data-theme="neon"] .top-photo-card__score span,
html[data-theme="neon"] .news-card__pin{
    background:linear-gradient(135deg,rgba(68,87,255,.28),rgba(153,82,255,.30))!important;
    border-color:rgba(126,97,245,.38)!important;
    color:#f6f7ff!important;
}
html[data-theme="neon"] .news-card__pin{box-shadow:none!important}
html[data-theme="neon"] .news-richtext blockquote{
    background:rgba(29,17,68,.82)!important;
    border-left-color:#7f72ff!important;
    color:#eef1ff!important;
}
html[data-theme="neon"] .news-richtext a{
    color:#8ed3ff!important;
}
html[data-theme="neon"] .news-richtext a:hover{
    color:#ffffff!important;
}
html[data-theme="neon"] .news-richtext pre,
html[data-theme="neon"] .news-richtext code{
    background:rgba(12,8,31,.92)!important;
    color:#f4f6ff!important;
}
html[data-theme="neon"] .top-photo-card,
html[data-theme="neon"] .top-photo-card__body,
html[data-theme="neon"] .top-photo-card__foot,
html[data-theme="neon"] .top-photo-author-line,
html[data-theme="neon"] .top-photo-card h2,
html[data-theme="neon"] .top-photo-card h2 a,
html[data-theme="neon"] .top-photo-card p,
html[data-theme="neon"] .top-photo-card__score,
html[data-theme="neon"] .top-photo-card__score small,
html[data-theme="neon"] .top-photo-author-line .public-profile-status,
html[data-theme="neon"] .top-photo-card .public-profile-status{
    color:#eef1ff!important;
}
html[data-theme="neon"] .top-photo-card__score span,
html[data-theme="neon"] .top-photo-card .public-profile-status{
    box-shadow:none!important;
}
html[data-theme="neon"] .home-category__meta b,
html[data-theme="neon"] .city-panel__count,
html[data-theme="neon"] .top-photo-card__foot a,
html[data-theme="neon"] .conversation-topic__side,
html[data-theme="neon"] .conversation-topic__side em,
html[data-theme="neon"] .profiles-summary-strip a,
html[data-theme="neon"] .profiles-save-search-note a{
    color:#8ed3ff!important;
}
html[data-theme="neon"] .landing-link-group--collapsible summary,
html[data-theme="neon"] .landing-link-group--collapsible{
    background:transparent!important;
}
html[data-theme="neon"] .landing-link-group--collapsible summary{border-bottom-color:rgba(98,83,190,.24)!important}
html[data-theme="neon"] .landing-link-cloud a span,
html[data-theme="neon"] .city-panel__count{
    background:rgba(255,255,255,.08)!important;
    border-color:rgba(255,255,255,.08)!important;
}
html[data-theme="neon"] .bbs-card,
html[data-theme="neon"] .bbs-card h3,
html[data-theme="neon"] .bbs-card h3 a,
html[data-theme="neon"] .bbs-card p,
html[data-theme="neon"] .bbs-card__meta,
html[data-theme="neon"] .bbs-card__meta span,
html[data-theme="neon"] .bbs-card__foot,
html[data-theme="neon"] .bbs-card__params{
    color:#eef1ff!important;
}
html[data-theme="neon"] .bbs-card{
    background:linear-gradient(180deg,rgba(14,6,30,.96),rgba(20,9,46,.96))!important;
    border-color:rgba(113,78,255,.34)!important;
    box-shadow:0 14px 36px rgba(0,0,0,.26)!important;
}
html[data-theme="neon"] .bbs-card__meta span,
html[data-theme="neon"] .bbs-card__profile-stat{
    background:rgba(255,255,255,.06)!important;
    color:#d7defe!important;
}
html[data-theme="neon"] .hero-stats .hero-stat__icon--violet,
html[data-theme="neon"] .hero-stats .hero-stat__icon--sky,
html[data-theme="neon"] .hero-stats .hero-stat__icon--mint{color:#8ed3ff!important}
@media(max-width:820px){
    html[data-theme="neon"] .hero-stat+.hero-stat{border-top-color:rgba(113,78,255,.22)!important}
}

/* HOTFIX: neon theme payment methods accept panel */
html[data-theme="neon"] .paid-accepts-panel{
    background:linear-gradient(180deg,rgba(14,6,30,.96),rgba(20,9,46,.96))!important;
    border-color:rgba(203,148,52,.38)!important;
    box-shadow:0 18px 40px rgba(0,0,0,.28),0 0 0 1px rgba(203,148,52,.08) inset!important;
}
html[data-theme="neon"] .paid-accepts-panel__label{
    color:#ffd77d!important;
}
html[data-theme="neon"] .paid-accepts-item{
    background:linear-gradient(180deg,rgba(28,15,58,.98),rgba(22,11,46,.98))!important;
    border-color:rgba(113,78,255,.34)!important;
    box-shadow:0 12px 28px rgba(0,0,0,.24)!important;
}
html[data-theme="neon"] .paid-accepts-item img{
    box-shadow:0 10px 22px rgba(0,0,0,.24)!important;
}
html[data-theme="neon"] .paid-accepts-item span{
    color:#eef1ff!important;
}
html[data-theme="neon"] .paid-accepts-item--card{
    border-color:rgba(91,155,255,.34)!important;
}
html[data-theme="neon"] .paid-accepts-item--card > span:last-child{
    color:#bdd3ff!important;
}
html[data-theme="neon"] .paid-accepts-note{
    color:#e7c87c!important;
}

/* FIX: restore separate 3-style theme switcher instead of combined icon */
.theme-switcher{
    display:inline-flex;
    align-items:center;
    gap:4px;
    padding:4px;
    border:1px solid #d9e2f0;
    border-radius:16px;
    background:#fff;
    box-shadow:0 10px 20px rgba(24,65,140,.05);
    flex:0 0 auto;
}
.theme-switcher__option{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    padding:0;
    border:0;
    border-radius:12px;
    background:transparent;
    color:#6a7ea7;
    cursor:pointer;
    transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.theme-switcher__option:hover{
    background:#f3f7ff;
    color:#22325d;
}
.theme-switcher__option.is-active{
    transform:translateY(-1px);
    box-shadow:0 8px 16px rgba(24,65,140,.10);
}
.theme-switcher__option[data-theme-set="light"].is-active{
    background:linear-gradient(180deg,#eef5ff 0%,#e4efff 100%);
    color:#2563eb;
}
.theme-switcher__option[data-theme-set="dark"].is-active{
    background:linear-gradient(180deg,#2b3f61 0%,#223451 100%);
    color:#d7e5fa;
}
.theme-switcher__option[data-theme-set="neon"].is-active{
    background:linear-gradient(180deg,#37246d 0%,#241246 100%);
    color:#cba3ff;
}
.theme-switcher__option svg{
    width:18px;
    height:18px;
}
@media(max-width:720px){
    .theme-switcher{gap:3px;padding:3px;border-radius:14px}
    .theme-switcher__option{width:30px;height:30px;border-radius:10px}
    .theme-switcher__option svg{width:16px;height:16px}
}
html[data-theme="dark"] .theme-switcher{
    background:#1a283f!important;
    border-color:#3a4d6b!important;
    box-shadow:0 10px 20px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .theme-switcher__option{
    color:#9fb4d4!important;
}
html[data-theme="dark"] .theme-switcher__option:hover{
    background:#233653!important;
    color:#ffffff!important;
}
html[data-theme="neon"] .theme-switcher{
    background:linear-gradient(180deg,rgba(18,8,36,.96),rgba(28,12,58,.96))!important;
    border-color:rgba(113,78,255,.34)!important;
    box-shadow:0 14px 30px rgba(0,0,0,.22),0 0 0 1px rgba(131,92,255,.10) inset!important;
}
html[data-theme="neon"] .theme-switcher__option{
    color:#b8c2ff!important;
}
html[data-theme="neon"] .theme-switcher__option:hover{
    background:rgba(108,78,232,.18)!important;
    color:#ffffff!important;
}
html[data-theme="neon"] .theme-switcher__option[data-theme-set="light"].is-active{
    background:linear-gradient(180deg,rgba(73,120,255,.24),rgba(45,84,210,.22))!important;
    color:#9fdbff!important;
}
html[data-theme="neon"] .theme-switcher__option[data-theme-set="dark"].is-active{
    background:linear-gradient(180deg,rgba(54,66,111,.78),rgba(31,39,72,.86))!important;
    color:#eef1ff!important;
}
html[data-theme="neon"] .theme-switcher__option[data-theme-set="neon"].is-active{
    background:linear-gradient(180deg,rgba(124,77,255,.36),rgba(84,44,212,.34))!important;
    color:#ffd0ff!important;
    box-shadow:0 10px 20px rgba(88,55,214,.24)!important;
}

/* FIX: restore full neon theme sweep after theme switcher recovery.
   Colors/surfaces only: no layout or responsive measurements are changed. */
html[data-theme="neon"]{
    color-scheme:dark;
}
html[data-theme="neon"] body{
    background:
        radial-gradient(circle at 12% -8%, rgba(78,132,255,.22), transparent 28%),
        radial-gradient(circle at 88% 0%, rgba(196,79,255,.16), transparent 24%),
        radial-gradient(circle at 50% 35%, rgba(41,12,90,.22), transparent 48%),
        linear-gradient(180deg,#0b0316 0%, #110420 30%, #140624 68%, #12041e 100%)!important;
    color:#eaf0ff!important;
}
html[data-theme="neon"] a{color:#78c7ff}
html[data-theme="neon"] a:hover{color:#b9e5ff}
html[data-theme="neon"] .page,
html[data-theme="neon"] .flash,
html[data-theme="neon"] .footer{color:#ced7fb!important}
html[data-theme="neon"] .topbar,
html[data-theme="neon"] .topbar--modern{
    background:rgba(15,6,31,.88)!important;
    border-bottom-color:rgba(102,76,205,.34)!important;
    box-shadow:0 12px 34px rgba(0,0,0,.22)!important;
    backdrop-filter:blur(16px)!important;
}
html[data-theme="neon"] .brand,
html[data-theme="neon"] .brand__text,
html[data-theme="neon"] .brand__mark{color:#f4f7ff!important}
html[data-theme="neon"] .nav a,
html[data-theme="neon"] .topbar--modern .nav--modern .nav-item{
    color:#5b8dff!important;
    background:rgba(22,9,44,.68)!important;
    border-color:rgba(104,76,214,.28)!important;
    box-shadow:inset 0 0 0 1px rgba(135,102,255,.08)!important;
}
html[data-theme="neon"] .nav a:hover,
html[data-theme="neon"] .topbar--modern .nav--modern .nav-item:hover,
html[data-theme="neon"] .topbar--modern .nav--modern .nav-item.is-active,
html[data-theme="neon"] .topbar--modern .nav--modern .nav-item--primary.is-active{
    color:#8fdcff!important;
    background:linear-gradient(180deg,rgba(44,74,182,.34),rgba(57,28,120,.52))!important;
    border-color:rgba(92,190,255,.44)!important;
    box-shadow:0 10px 24px rgba(45,22,112,.28), inset 0 0 0 1px rgba(126,212,255,.18)!important;
}
html[data-theme="neon"] .topbar--modern .nav-item__icon,
html[data-theme="neon"] .topbar--modern .nav-item__label{color:inherit!important}
html[data-theme="neon"] .topbar-tools__icon,
html[data-theme="neon"] .user-menu__toggle,
html[data-theme="neon"] .topbar-auth__link,
html[data-theme="neon"] .topbar-auth__button{
    color:#f3f6ff!important;
    background:rgba(18,8,36,.78)!important;
    border-color:rgba(102,76,205,.34)!important;
    box-shadow:0 10px 24px rgba(0,0,0,.18)!important;
}
html[data-theme="neon"] .topbar-tools__icon:hover,
html[data-theme="neon"] .user-menu__toggle:hover,
html[data-theme="neon"] .topbar-auth__link:hover,
html[data-theme="neon"] .topbar-auth__button:hover{
    background:rgba(45,24,95,.88)!important;
    border-color:rgba(118,202,255,.42)!important;
}
html[data-theme="neon"] .vip-online-strip{
    color:#eff3ff!important;
    background:linear-gradient(90deg,rgba(14,5,30,.92) 0%, rgba(19,9,41,.94) 48%, rgba(14,5,30,.92) 100%)!important;
    border-top-color:rgba(99,76,199,.30)!important;
    border-bottom-color:rgba(99,76,199,.32)!important;
    box-shadow:0 10px 26px rgba(0,0,0,.16)!important;
}
html[data-theme="neon"] .vip-online-strip__title strong,
html[data-theme="neon"] .vip-online-strip__title span,
html[data-theme="neon"] .vip-online-person__copy strong,
html[data-theme="neon"] .vip-online-person__copy small{color:inherit!important}
html[data-theme="neon"] .vip-online-strip__title span{color:#aeb8ef!important}
html[data-theme="neon"] .vip-online-person,
html[data-theme="neon"] .city-online-card,
html[data-theme="neon"] .home-new-profile-card,
html[data-theme="neon"] .profile-activity-card,
html[data-theme="neon"] .cabinet-quick-card,
html[data-theme="neon"] .cabinet-mini-item{
    color:#edf2ff!important;
    background:linear-gradient(180deg,rgba(23,10,48,.95),rgba(17,6,34,.96))!important;
    border-color:rgba(110,82,225,.34)!important;
    box-shadow:0 18px 42px rgba(0,0,0,.20), inset 0 0 0 1px rgba(132,103,255,.10)!important;
}
html[data-theme="neon"] .hero>div,
html[data-theme="neon"] .panel,
html[data-theme="neon"] .home-hero,
html[data-theme="neon"] .city-panel,
html[data-theme="neon"] .safety-panel,
html[data-theme="neon"] .howto-card,
html[data-theme="neon"] .hero-box,
html[data-theme="neon"] .empty,
html[data-theme="neon"] .empty--nice,
html[data-theme="neon"] .search-advanced,
html[data-theme="neon"] .pagination-summary,
html[data-theme="neon"] .profiles-save-search-note,
html[data-theme="neon"] .notifications-panel .empty,
html[data-theme="neon"] .public-profile-ads,
html[data-theme="neon"] .public-profile-ad-card,
html[data-theme="neon"] .public-profile-viewers,
html[data-theme="neon"] .paid-services-panel,
html[data-theme="neon"] .photo-side-panel,
html[data-theme="neon"] .photo-comments,
html[data-theme="neon"] .single-photo-comments-card,
html[data-theme="neon"] .conversation-list-panel,
html[data-theme="neon"] .conversation-topic,
html[data-theme="neon"] .message-thread-head,
html[data-theme="neon"] .message-bubble__content,
html[data-theme="neon"] .news-hero,
html[data-theme="neon"] .news-card,
html[data-theme="neon"] .news-article,
html[data-theme="neon"] .top-photo-controls,
html[data-theme="neon"] .top-photo-card,
html[data-theme="neon"] .top-photo-card__body,
html[data-theme="neon"] .top-photo-card__foot,
html[data-theme="neon"] .paid-accepts-panel{
    color:#eaf0ff!important;
    background:linear-gradient(180deg,rgba(18,7,37,.96) 0%, rgba(14,4,27,.97) 100%)!important;
    border-color:rgba(103,77,209,.34)!important;
    box-shadow:0 18px 42px rgba(0,0,0,.20), inset 0 0 0 1px rgba(132,103,255,.08)!important;
}
html[data-theme="neon"] .panel__head h2,
html[data-theme="neon"] .panel__head--title h2,
html[data-theme="neon"] .panel__head--stack h2,
html[data-theme="neon"] .city-panel h2,
html[data-theme="neon"] .safety-panel h2,
html[data-theme="neon"] .howto-panel h2,
html[data-theme="neon"] .hero h1,
html[data-theme="neon"] .page-title h1,
html[data-theme="neon"] .home-category__body strong,
html[data-theme="neon"] .home-category-card__body strong,
html[data-theme="neon"] .bbs-card h3,
html[data-theme="neon"] .bbs-card h3 a,
html[data-theme="neon"] .category-card strong,
html[data-theme="neon"] .news-card h2,
html[data-theme="neon"] .news-card h2 a,
html[data-theme="neon"] .news-article h1,
html[data-theme="neon"] .news-richtext h2,
html[data-theme="neon"] .news-richtext h3,
html[data-theme="neon"] .top-photo-card h2,
html[data-theme="neon"] .top-photo-card h2 a,
html[data-theme="neon"] .top-photo-controls h2,
html[data-theme="neon"] .public-profile-ad-card__title,
html[data-theme="neon"] .public-profile-ad-card__title a,
html[data-theme="neon"] .message-compose-panel__head strong,
html[data-theme="neon"] .notifications-settings-panel__head h2,
html[data-theme="neon"] .notifications-panel .panel__head h2{
    color:#f7fbff!important;
}
html[data-theme="neon"] .hero p,
html[data-theme="neon"] .page-title p,
html[data-theme="neon"] .home-hero__note,
html[data-theme="neon"] .home-category__body small,
html[data-theme="neon"] .home-category-card__body small,
html[data-theme="neon"] .bbs-card p,
html[data-theme="neon"] .bbs-card__meta,
html[data-theme="neon"] .bbs-card__foot,
html[data-theme="neon"] .bbs-card__params,
html[data-theme="neon"] .muted,
html[data-theme="neon"] .city-panel__count,
html[data-theme="neon"] .news-card__meta,
html[data-theme="neon"] .news-card p,
html[data-theme="neon"] .news-article__lead,
html[data-theme="neon"] .news-richtext,
html[data-theme="neon"] .news-richtext p,
html[data-theme="neon"] .news-richtext li,
html[data-theme="neon"] .photo-comment p,
html[data-theme="neon"] .photo-comment time,
html[data-theme="neon"] .conversation-topic__meta,
html[data-theme="neon"] .conversation-topic__snippet,
html[data-theme="neon"] .message-compose-panel__head span,
html[data-theme="neon"] .notifications-settings-panel__head p,
html[data-theme="neon"] .public-profile-ads .panel__head p,
html[data-theme="neon"] .paid-accepts-note{
    color:#afbbe9!important;
}
html[data-theme="neon"] .news-richtext strong,
html[data-theme="neon"] .news-richtext b,
html[data-theme="neon"] .news-richtext em,
html[data-theme="neon"] .board-description-content,
html[data-theme="neon"] .ad-body-panel .board-description-content{
    color:#edf2ff!important;
    -webkit-text-fill-color:#edf2ff!important;
}
html[data-theme="neon"] .home-search__field,
html[data-theme="neon"] .home-search__toggle,
html[data-theme="neon"] .hero-stats,
html[data-theme="neon"] .search-advanced__grid .home-search__field,
html[data-theme="neon"] .search-advanced__toggles .home-search__toggle,
html[data-theme="neon"] .category-card,
html[data-theme="neon"] .home-category,
html[data-theme="neon"] .home-category-card,
html[data-theme="neon"] .city-panel__chips a,
html[data-theme="neon"] .chips a,
html[data-theme="neon"] .bbs-card,
html[data-theme="neon"] .bbs-card__meta span,
html[data-theme="neon"] .ad-view__meta span,
html[data-theme="neon"] .top-photo-card__place,
html[data-theme="neon"] .top-photo-card__score,
html[data-theme="neon"] .conversation-list-panel__head span,
html[data-theme="neon"] .admin-conversation-panel .panel__head span,
html[data-theme="neon"] .notifications-panel .panel__head .button-link,
html[data-theme="neon"] .button-link:not(.button-link--primary),
html[data-theme="neon"] .inline-form button,
html[data-theme="neon"] .photo-actions button,
html[data-theme="neon"] .ad-adjacent-nav a,
html[data-theme="neon"] .vip-online-strip__nav,
html[data-theme="neon"] .paid-accepts-item,
html[data-theme="neon"] .profile-activity-tab,
html[data-theme="neon"] .message-quick-start button,
html[data-theme="neon"] .ad-author-profile-card__head a,
html[data-theme="neon"] .top-photo-hero__meta span,
html[data-theme="neon"] .topbar__counter,
html[data-theme="neon"] .public-profile-status,
html[data-theme="neon"] .status,
html[data-theme="neon"] .notification-item,
html[data-theme="neon"] .message-thread-date,
html[data-theme="neon"] .message-profile-photo-picker--inline summary,
html[data-theme="neon"] .message-emoji-button,
html[data-theme="neon"] .message-reply-form button.message-emoji-button{
    color:#9fdcff!important;
    background:rgba(28,14,58,.90)!important;
    border-color:rgba(100,79,201,.36)!important;
    box-shadow:0 10px 24px rgba(0,0,0,.16)!important;
}
html[data-theme="neon"] .city-panel__chips a:hover,
html[data-theme="neon"] .chips a:hover,
html[data-theme="neon"] .button-link:not(.button-link--primary):hover,
html[data-theme="neon"] .inline-form button:hover,
html[data-theme="neon"] .photo-actions button:hover,
html[data-theme="neon"] .ad-adjacent-nav a:hover,
html[data-theme="neon"] .vip-online-strip__nav:hover,
html[data-theme="neon"] .message-quick-start button:hover,
html[data-theme="neon"] .profile-activity-tab:hover,
html[data-theme="neon"] .profile-activity-tab.is-active,
html[data-theme="neon"] .conversation-topic:hover,
html[data-theme="neon"] .conversation-topic.has-unread,
html[data-theme="neon"] .home-category:hover,
html[data-theme="neon"] .home-category-card:hover,
html[data-theme="neon"] .top-photo-card:hover,
html[data-theme="neon"] .paid-accepts-item:hover{
    color:#d8f3ff!important;
    background:rgba(45,25,93,.95)!important;
    border-color:rgba(118,202,255,.40)!important;
}
html[data-theme="neon"] .search input,
html[data-theme="neon"] .form input,
html[data-theme="neon"] .form textarea,
html[data-theme="neon"] .form select,
html[data-theme="neon"] .inline-status-form select,
html[data-theme="neon"] .home-search__field input,
html[data-theme="neon"] .home-search__field select,
html[data-theme="neon"] .search-advanced__grid .home-search__field input,
html[data-theme="neon"] .search-advanced__grid .home-search__field select,
html[data-theme="neon"] .photo-comment-message textarea,
html[data-theme="neon"] .photo-comment-form textarea,
html[data-theme="neon"] .ad-create-panel input,
html[data-theme="neon"] .ad-create-panel select,
html[data-theme="neon"] .ad-create-panel textarea,
html[data-theme="neon"] .gift-field input,
html[data-theme="neon"] .gift-field textarea,
html[data-theme="neon"] .gift-field select,
html[data-theme="neon"] .admin-news-form input[type="text"],
html[data-theme="neon"] .admin-news-form input[type="datetime-local"],
html[data-theme="neon"] .admin-news-form select,
html[data-theme="neon"] .admin-news-form textarea{
    color:#eef4ff!important;
    background:rgba(19,8,39,.96)!important;
    border-color:rgba(103,77,209,.34)!important;
}
html[data-theme="neon"] input::placeholder,
html[data-theme="neon"] textarea::placeholder{color:#8898d2!important;opacity:1}
html[data-theme="neon"] select option{color:#eef4ff;background:#16082d}
html[data-theme="neon"] .search button,
html[data-theme="neon"] .form button,
html[data-theme="neon"] .inline-status-form button,
html[data-theme="neon"] .home-search__button,
html[data-theme="neon"] .button-link--primary,
html[data-theme="neon"] .news-card__more,
html[data-theme="neon"] .news-back-link,
html[data-theme="neon"] .top-photo-card__foot a,
html[data-theme="neon"] .public-profile-ad-card__foot a,
html[data-theme="neon"] .ad-author-profile-button,
html[data-theme="neon"] .contact-warning-modal__button--primary{
    color:#f9fcff!important;
    background:linear-gradient(135deg,#3678ff 0%,#7f4dff 100%)!important;
    border-color:rgba(138,198,255,.34)!important;
    box-shadow:0 16px 30px rgba(40,38,146,.30)!important;
}
html[data-theme="neon"] .search button:hover,
html[data-theme="neon"] .form button:hover,
html[data-theme="neon"] .inline-status-form button:hover,
html[data-theme="neon"] .home-search__button:hover,
html[data-theme="neon"] .button-link--primary:hover,
html[data-theme="neon"] .news-card__more:hover,
html[data-theme="neon"] .news-back-link:hover,
html[data-theme="neon"] .top-photo-card__foot a:hover,
html[data-theme="neon"] .public-profile-ad-card__foot a:hover,
html[data-theme="neon"] .ad-author-profile-button:hover{
    filter:brightness(1.08);
}
html[data-theme="neon"] .hero-stat__icon,
html[data-theme="neon"] .home-category__icon,
html[data-theme="neon"] .home-category-card__icon,
html[data-theme="neon"] .category-card__icon,
html[data-theme="neon"] .cabinet-quick-card__icon,
html[data-theme="neon"] .ad-author-profile-button__icon,
html[data-theme="neon"] .ad-author-profile-button__arrow{
    background:linear-gradient(180deg,rgba(60,78,214,.28),rgba(124,85,255,.20))!important;
    color:#9fdbff!important;
    box-shadow:none!important;
}
html[data-theme="neon"] .city-panel__art{
    opacity:.22!important;
    filter:brightness(.66) saturate(1.05) contrast(1.02) hue-rotate(12deg);
    mix-blend-mode:screen;
}
html[data-theme="neon"] .safety-panel__art{
    opacity:.44!important;
    filter:brightness(.84) saturate(1.08) contrast(1.04);
}
html[data-theme="neon"] .flash--success{background:rgba(16,56,42,.90)!important;color:#89f2bf!important;border:1px solid rgba(71,179,118,.34)!important}
html[data-theme="neon"] .flash--error{background:rgba(72,20,42,.92)!important;color:#ffb0cb!important;border:1px solid rgba(208,72,126,.34)!important}
html[data-theme="neon"] .table-wrap,
html[data-theme="neon"] table{color:#e8f0ff!important}
html[data-theme="neon"] th{color:#98a8db!important}
html[data-theme="neon"] th,
html[data-theme="neon"] td{border-bottom-color:rgba(99,76,199,.22)!important}
html[data-theme="neon"] tbody tr:hover{background:rgba(68,37,132,.18)!important}
html[data-theme="neon"] .photo-comments__empty,
html[data-theme="neon"] .top-photo-empty,
html[data-theme="neon"] .profile-photos-preview-card__empty,
html[data-theme="neon"] .notifications-panel .empty,
html[data-theme="neon"] .public-profile-viewers .empty,
html[data-theme="neon"] .message-empty,
html[data-theme="neon"] .empty{
    color:#b7c3ec!important;
}
html[data-theme="neon"] .photo-comment-message button,
html[data-theme="neon"] .photo-comment-form button,
html[data-theme="neon"] .profile-activity-card__photo,
html[data-theme="neon"] .cabinet-photo-preview__item,
html[data-theme="neon"] .cabinet-recommendation-card__photo,
html[data-theme="neon"] .top-photo-card__image,
html[data-theme="neon"] .bbs-card__photo,
html[data-theme="neon"] .hero-stat,
html[data-theme="neon"] .ad-author-profile-facts > div,
html[data-theme="neon"] .ad-author-profile-texts section,
html[data-theme="neon"] .photo-comment,
html[data-theme="neon"] .top-photo-author-line,
html[data-theme="neon"] .photo-comment-message form{
    background:rgba(25,10,52,.92)!important;
    border-color:rgba(100,79,201,.28)!important;
}
html[data-theme="neon"] .message-bubble.is-mine .message-bubble__content,
html[data-theme="neon"] .group-chat-message.is-mine,
html[data-theme="neon"] .group-chat-message.group-chat-message--mine{
    color:#fff!important;
    background:linear-gradient(135deg,#4857ff,#7a4dff)!important;
    border-color:rgba(147,212,255,.26)!important;
}
html[data-theme="neon"] .group-chat-message,
html[data-theme="neon"] .group-settings-card,
html[data-theme="neon"] .group-members-card,
html[data-theme="neon"] .group-requests-card,
html[data-theme="neon"] .group-member-row,
html[data-theme="neon"] .group-chat-panel,
html[data-theme="neon"] .group-chat-pagination,
html[data-theme="neon"] .group-chat-per-page{
    color:#ebf1ff!important;
    background:linear-gradient(180deg,rgba(18,7,37,.96),rgba(14,4,27,.97))!important;
    border-color:rgba(103,77,209,.34)!important;
}
html[data-theme="neon"] .group-chat-message,
html[data-theme="neon"] .group-chat-message p,
html[data-theme="neon"] .group-chat-message .message-inline-text,
html[data-theme="neon"] .group-chat-message blockquote{color:#e8efff!important}
html[data-theme="neon"] *{scrollbar-color:#6a4bd2 #12051f}

/* HOTFIX: complete neon sweep for remaining white cards across home/cabinet/profile/feed pages */
html[data-theme="neon"] .cabinet-retention-card,
html[data-theme="neon"] .cabinet-city-today-grid a,
html[data-theme="neon"] .cabinet-favorite-item,
html[data-theme="neon"] .cabinet-favorite-card,
html[data-theme="neon"] .profile-security-toggle,
html[data-theme="neon"] .ad-profile-snapshot-view,
html[data-theme="neon"] .home-city-today,
html[data-theme="neon"] .home-latest,
html[data-theme="neon"] .home-new-profiles,
html[data-theme="neon"] .home-vip-profiles,
html[data-theme="neon"] .message-thread-warning{
    color:#eef3ff!important;
    background:linear-gradient(180deg,rgba(17,7,35,.96) 0%,rgba(12,4,24,.97) 100%)!important;
    border-color:rgba(107,78,220,.34)!important;
    box-shadow:0 18px 42px rgba(0,0,0,.22), inset 0 0 0 1px rgba(132,103,255,.08)!important;
}
html[data-theme="neon"] .cabinet-retention-card strong,
html[data-theme="neon"] .cabinet-city-today-grid strong,
html[data-theme="neon"] .home-city-today h2,
html[data-theme="neon"] .home-latest .panel__head h2,
html[data-theme="neon"] .home-new-profiles .panel__head h2,
html[data-theme="neon"] .home-vip-profiles .panel__head h2,
html[data-theme="neon"] .cabinet-favorite-card strong{color:#f7fbff!important}
html[data-theme="neon"] .cabinet-retention-card small,
html[data-theme="neon"] .cabinet-city-today-grid span,
html[data-theme="neon"] .cabinet-favorite-card small,
html[data-theme="neon"] .cabinet-favorite-card span,
html[data-theme="neon"] .home-city-today .panel__head p,
html[data-theme="neon"] .message-thread-warning{color:#b4c0ee!important}
html[data-theme="neon"] .cabinet-retention-card:hover,
html[data-theme="neon"] .cabinet-city-today-grid a:hover,
html[data-theme="neon"] .cabinet-favorite-item:hover{
    border-color:rgba(120,205,255,.42)!important;
    box-shadow:0 22px 46px rgba(0,0,0,.26), inset 0 0 0 1px rgba(120,205,255,.14)!important;
}
html[data-theme="neon"] .cabinet-favorite-watch-button,
html[data-theme="neon"] .profile-action-button--watch,
html[data-theme="neon"] .message-safety-actions button,
html[data-theme="neon"] .message-report-box button,
html[data-theme="neon"] .public-profile-ads__count{
    color:#9fdcff!important;
    background:rgba(28,14,58,.90)!important;
    border:1px solid rgba(100,79,201,.36)!important;
    box-shadow:0 10px 24px rgba(0,0,0,.16)!important;
}
html[data-theme="neon"] .cabinet-favorite-watch-button.is-active,
html[data-theme="neon"] .profile-action-button--watch.is-active{
    color:#e7f8ff!important;
    background:linear-gradient(135deg,rgba(53,118,255,.34),rgba(127,77,255,.30))!important;
    border-color:rgba(120,205,255,.42)!important;
}
html[data-theme="neon"] .cabinet-favorite-watch-button:hover,
html[data-theme="neon"] .profile-action-button--watch:hover,
html[data-theme="neon"] .message-safety-actions button:hover,
html[data-theme="neon"] .message-report-box button:hover{
    color:#e7f8ff!important;
    background:rgba(45,25,93,.95)!important;
    border-color:rgba(120,205,255,.42)!important;
}

/* VIP surfaces must stay dark-neon in neon theme, not cream/white. */
html[data-theme="neon"] .bbs-card--vip,
html[data-theme="neon"] .home-latest .bbs-card--vip,
html[data-theme="neon"] .home-new-profile-card--vip,
html[data-theme="neon"] .top-photo-card--vip{
    background:linear-gradient(180deg,rgba(30,20,44,.96) 0%,rgba(16,8,31,.98) 100%)!important;
    border-color:rgba(210,160,72,.46)!important;
    box-shadow:0 18px 42px rgba(0,0,0,.24),0 0 0 1px rgba(210,160,72,.12)!important;
}
html[data-theme="neon"] .bbs-card--vip::before,
html[data-theme="neon"] .home-new-profile-card--vip::before,
html[data-theme="neon"] .top-photo-card--vip::before{
    background:linear-gradient(135deg,rgba(255,207,110,.14),rgba(255,255,255,0),rgba(164,105,30,.12))!important;
}
html[data-theme="neon"] .bbs-card--vip .bbs-card__body{
    background:linear-gradient(180deg,rgba(30,17,47,.74),rgba(16,7,30,.94))!important;
    border-radius:14px!important;
}
html[data-theme="neon"] .ad-view--vip,
html[data-theme="neon"] .public-profile-hero--vip,
html[data-theme="neon"] .single-photo-hero--vip,
html[data-theme="neon"] .home-vip-profiles{
    color:#eef3ff!important;
    background:linear-gradient(135deg,rgba(30,20,44,.96),rgba(16,8,31,.98))!important;
    border-color:rgba(210,160,72,.46)!important;
    box-shadow:0 20px 48px rgba(0,0,0,.24),0 0 0 1px rgba(210,160,72,.12)!important;
}
html[data-theme="neon"] .home-vip-profiles .panel__head h2{color:#ffe8a8!important}
html[data-theme="neon"] .bbs-card--vip h3,
html[data-theme="neon"] .bbs-card--vip h3 a,
html[data-theme="neon"] .bbs-card--vip p,
html[data-theme="neon"] .bbs-card--vip .bbs-card__meta,
html[data-theme="neon"] .bbs-card--vip .bbs-card__foot,
html[data-theme="neon"] .bbs-card--vip .bbs-card__params,
html[data-theme="neon"] .home-new-profile-card--vip strong,
html[data-theme="neon"] .home-new-profile-card--vip small{color:#eef3ff!important}
html[data-theme="neon"] .bbs-card--vip .bbs-card__meta span,
html[data-theme="neon"] .bbs-card--vip .bbs-card__profile-stat,
html[data-theme="neon"] .home-new-profile-card--vip em{
    background:rgba(255,255,255,.08)!important;
    color:#dfe8ff!important;
}

/* Additional home feed/card readability in neon theme. */
html[data-theme="neon"] .bbs-card__profile-stat{backdrop-filter:blur(8px)}
html[data-theme="neon"] .home-latest .bbs-card,
html[data-theme="neon"] .home-latest .bbs-card__body{
    color:#eef3ff!important;
}
html[data-theme="neon"] .home-latest .bbs-card__photo,
html[data-theme="neon"] .home-new-profile-card__photo,
html[data-theme="neon"] .cabinet-favorite-card img,
html[data-theme="neon"] .ad-profile-snapshot-view .public-profile-photo{
    background:rgba(25,10,52,.92)!important;
}
html[data-theme="neon"] .home-latest .panel__link,
html[data-theme="neon"] .home-city-today .panel__link,
html[data-theme="neon"] .home-new-profiles .panel__link,
html[data-theme="neon"] .home-vip-profiles .panel__link{color:#8fdcff!important}
html[data-theme="neon"] .home-latest .panel__link:hover,
html[data-theme="neon"] .home-city-today .panel__link:hover,
html[data-theme="neon"] .home-new-profiles .panel__link:hover,
html[data-theme="neon"] .home-vip-profiles .panel__link:hover{color:#d7f4ff!important}

/* HOTFIX 2026-06-06: neon theme full remaining white surfaces sweep (ad create, search, profiles, top photos, groups, news, header counter). */
html[data-theme="neon"] .topbar-members{
    background:rgba(18,8,38,.88)!important;
    border-color:rgba(105,79,208,.34)!important;
    box-shadow:0 12px 30px rgba(0,0,0,.18), inset 0 0 0 1px rgba(132,103,255,.07)!important;
}
html[data-theme="neon"] .topbar-members__label{color:#aeb9ef!important}
html[data-theme="neon"] .topbar-members__digit{
    border-color:rgba(110,82,225,.34)!important;
    background:linear-gradient(180deg,rgba(26,13,54,.98),rgba(18,8,39,.98))!important;
    color:#eef4ff!important;
    box-shadow:0 8px 18px rgba(0,0,0,.18), inset 0 0 0 1px rgba(132,103,255,.10)!important;
}
html[data-theme="neon"] .topbar-members__track span{color:#eef4ff!important}

html[data-theme="neon"] .home-section,
html[data-theme="neon"] .latest-section,
html[data-theme="neon"] .profiles-list-panel,
html[data-theme="neon"] .groups-page-list,
html[data-theme="neon"] .top-photo-grid-wrap{
    background:linear-gradient(180deg,rgba(18,7,37,.96) 0%,rgba(14,4,27,.97) 100%)!important;
    border:1px solid rgba(103,77,209,.34)!important;
    border-radius:24px!important;
    box-shadow:0 18px 42px rgba(0,0,0,.20), inset 0 0 0 1px rgba(132,103,255,.08)!important;
}
html[data-theme="neon"] .home-section .panel__head h2,
html[data-theme="neon"] .home-section .panel__head--title h2,
html[data-theme="neon"] .latest-section .panel__head h2,
html[data-theme="neon"] .latest-section .panel__head--title h2{color:#f7fbff!important}

html[data-theme="neon"] .ad-new-card,
html[data-theme="neon"] .ad-new-preview-card,
html[data-theme="neon"] .ad-new-side-card,
html[data-theme="neon"] .ad-new-preview-box,
html[data-theme="neon"] .ad-new-photo-card,
html[data-theme="neon"] .ad-new-empty-photo,
html[data-theme="neon"] .ad-new-upload-row,
html[data-theme="neon"] .ad-new-moderation-card{
    color:#eef3ff!important;
    background:linear-gradient(180deg,rgba(18,7,37,.96) 0%,rgba(13,5,27,.97) 100%)!important;
    border-color:rgba(103,77,209,.34)!important;
    box-shadow:0 18px 42px rgba(0,0,0,.18), inset 0 0 0 1px rgba(132,103,255,.08)!important;
}
html[data-theme="neon"] .ad-new-card h2,
html[data-theme="neon"] .ad-new-preview-card h2,
html[data-theme="neon"] .ad-new-side-card h3,
html[data-theme="neon"] .ad-new-photo-section__title h3,
html[data-theme="neon"] .ad-new-preview-body h3{color:#f7fbff!important}
html[data-theme="neon"] .ad-new-card__head p,
html[data-theme="neon"] .ad-new-note,
html[data-theme="neon"] .ad-new-empty-photo p,
html[data-theme="neon"] .ad-new-upload-status,
html[data-theme="neon"] .ad-new-preview-body p,
html[data-theme="neon"] .ad-new-side-card li,
html[data-theme="neon"] .ad-new-photo-section__title span,
html[data-theme="neon"] .ad-new-photo-section__title a,
html[data-theme="neon"] .ad-new-counter{color:#afbbe9!important}
html[data-theme="neon"] .ad-new-field{color:#dfe8ff!important}
html[data-theme="neon"] .ad-new-field input,
html[data-theme="neon"] .ad-new-field select,
html[data-theme="neon"] .ad-new-field textarea{
    color:#eef4ff!important;
    background:rgba(19,8,39,.96)!important;
    border-color:rgba(103,77,209,.34)!important;
}
html[data-theme="neon"] .ad-new-field input::placeholder,
html[data-theme="neon"] .ad-new-field textarea::placeholder{color:#8898d2!important;opacity:1}
html[data-theme="neon"] .ad-new-field select:disabled{
    color:#92a1d4!important;
    background:rgba(28,14,58,.88)!important;
}
html[data-theme="neon"] .ad-new-preview-photo{background:linear-gradient(135deg,rgba(30,13,62,.96),rgba(20,8,42,.96))!important}
html[data-theme="neon"] .ad-new-preview-meta span,
html[data-theme="neon"] .ad-new-photo-card .photo-card-settings__toggle{
    color:#9fdcff!important;
    background:rgba(28,14,58,.90)!important;
    border-color:rgba(100,79,201,.36)!important;
}
html[data-theme="neon"] .ad-new-photo-card__media{background:rgba(26,11,54,.94)!important}
html[data-theme="neon"] .ad-new-photo-section + .ad-new-photo-section{border-top-color:rgba(103,77,209,.28)!important}
html[data-theme="neon"] .ad-new-submit{box-shadow:0 16px 34px rgba(36,124,255,.22)!important}

html[data-theme="neon"] .per-page-form label,
html[data-theme="neon"] .top-photo-controls .per-page-form label,
html[data-theme="neon"] .pagination a,
html[data-theme="neon"] .pagination strong,
html[data-theme="neon"] .pagination span,
html[data-theme="neon"] .top-photo-pagination a,
html[data-theme="neon"] .top-photo-pagination strong,
html[data-theme="neon"] .top-photo-pagination span{
    color:#d7ecff!important;
    background:rgba(28,14,58,.90)!important;
    border-color:rgba(100,79,201,.36)!important;
    box-shadow:0 10px 24px rgba(0,0,0,.16)!important;
}
html[data-theme="neon"] .per-page-form select,
html[data-theme="neon"] .top-photo-controls .per-page-form select{
    color:#eef4ff!important;
    background:rgba(19,8,39,.96)!important;
    border-color:rgba(103,77,209,.34)!important;
}
html[data-theme="neon"] .pagination a:hover,
html[data-theme="neon"] .top-photo-pagination a:hover,
html[data-theme="neon"] .per-page-form label:hover{
    color:#eef9ff!important;
    background:rgba(45,25,93,.95)!important;
    border-color:rgba(118,202,255,.40)!important;
}
html[data-theme="neon"] .pagination strong,
html[data-theme="neon"] .top-photo-pagination strong{color:#9fdcff!important}

html[data-theme="neon"] .profiles-directory-card,
html[data-theme="neon"] .profiles-directory-card--highlighted:not(.profiles-directory-card--vip),
html[data-theme="neon"] .profiles-directory-card--now{
    color:#e7effc!important;
    background:linear-gradient(180deg,rgba(18,7,37,.96),rgba(13,5,27,.97))!important;
    border-color:rgba(103,77,209,.34)!important;
    box-shadow:0 18px 42px rgba(0,0,0,.20), inset 0 0 0 1px rgba(132,103,255,.08)!important;
}
html[data-theme="neon"] .profiles-directory-card:hover{
    border-color:rgba(118,202,255,.40)!important;
    box-shadow:0 22px 48px rgba(0,0,0,.24), inset 0 0 0 1px rgba(120,205,255,.08)!important;
}
html[data-theme="neon"] .profiles-directory-card__photo{background:rgba(24,10,50,.96)!important}
html[data-theme="neon"] .profiles-directory-card__body strong{color:#f7fbff!important}
html[data-theme="neon"] .profiles-directory-card__body small,
html[data-theme="neon"] .profiles-directory-card__about{color:#afbbe9!important}
html[data-theme="neon"] .profiles-directory-card__pair b{
    color:#bfe5ff!important;
    background:rgba(34,19,72,.92)!important;
}
html[data-theme="neon"] .profiles-directory-card__pair em{
    color:#ffb5d1!important;
    background:rgba(67,24,56,.88)!important;
}
html[data-theme="neon"] .profiles-directory-card__stats span{
    color:#d6e5ff!important;
    background:rgba(28,14,58,.90)!important;
    border:1px solid rgba(100,79,201,.36)!important;
}
html[data-theme="neon"] .profiles-directory-card__now-text{
    color:#ffd8b4!important;
    background:rgba(93,44,13,.70)!important;
}
html[data-theme="neon"] .profiles-directory-card--vip{
    background:linear-gradient(180deg,rgba(35,22,52,.96),rgba(18,8,31,.98))!important;
    border-color:rgba(210,160,72,.46)!important;
    box-shadow:0 18px 42px rgba(0,0,0,.24),0 0 0 1px rgba(210,160,72,.12)!important;
}
html[data-theme="neon"] .profiles-directory-card--vip::before{
    background:linear-gradient(135deg,rgba(255,207,110,.14),rgba(255,255,255,0),rgba(164,105,30,.12))!important;
}

html[data-theme="neon"] .group-card{
    color:#eef3ff!important;
    background:linear-gradient(180deg,rgba(18,7,37,.96),rgba(13,5,27,.97))!important;
    border-color:rgba(103,77,209,.34)!important;
    box-shadow:0 18px 42px rgba(0,0,0,.18), inset 0 0 0 1px rgba(132,103,255,.08)!important;
}
html[data-theme="neon"] .group-card:hover{border-color:rgba(118,202,255,.40)!important}
html[data-theme="neon"] .group-card__icon{background:rgba(28,14,58,.90)!important;box-shadow:inset 0 0 0 1px rgba(100,79,201,.36)!important}
html[data-theme="neon"] .group-card h3 a{color:#f7fbff!important}
html[data-theme="neon"] .group-card p,
html[data-theme="neon"] .group-card__meta,
html[data-theme="neon"] .group-card__moderator-note{color:#afbbe9!important}
html[data-theme="neon"] .group-card__meta a{color:#8fdcff!important}
html[data-theme="neon"] .group-card__open,
html[data-theme="neon"] .group-card__leave{
    color:#d7ecff!important;
    background:rgba(28,14,58,.90)!important;
    border-color:rgba(100,79,201,.36)!important;
}
html[data-theme="neon"] .group-card__open:hover,
html[data-theme="neon"] .group-card__leave:hover{
    color:#eef9ff!important;
    background:rgba(45,25,93,.95)!important;
    border-color:rgba(118,202,255,.40)!important;
}

html[data-theme="neon"] .news-article__lead{
    color:#d9e7ff!important;
    background:linear-gradient(180deg,rgba(28,14,58,.92),rgba(21,9,43,.94))!important;
    border:1px solid rgba(100,79,201,.36)!important;
    box-shadow:0 12px 28px rgba(0,0,0,.16), inset 0 0 0 1px rgba(132,103,255,.06)!important;
}

/* HOTFIX 2026-06-06: neon public profile facts cards cleanup */
html[data-theme="neon"] .public-profile-facts > div,
html[data-theme="neon"] .public-profile-facts--details > div,
html[data-theme="neon"] .public-profile-hero-facts > div,
html[data-theme="neon"] .public-profile-hero-facts__item{
    color:#eef3ff!important;
    background:linear-gradient(180deg,rgba(24,11,50,.96) 0%,rgba(16,7,34,.98) 100%)!important;
    border-color:rgba(103,77,209,.36)!important;
    box-shadow:0 14px 30px rgba(0,0,0,.20),inset 0 0 0 1px rgba(132,103,255,.08)!important;
}
html[data-theme="neon"] .public-profile-hero--vip .public-profile-hero-facts > div,
html[data-theme="neon"] .public-profile-hero--vip .public-profile-hero-facts__item{
    background:linear-gradient(180deg,rgba(35,24,52,.96) 0%,rgba(20,11,34,.98) 100%)!important;
    border-color:rgba(210,160,72,.42)!important;
    box-shadow:0 14px 30px rgba(0,0,0,.22),inset 0 0 0 1px rgba(210,160,72,.10)!important;
}
html[data-theme="neon"] .public-profile-facts span,
html[data-theme="neon"] .public-profile-facts--details span,
html[data-theme="neon"] .public-profile-hero-facts span,
html[data-theme="neon"] .public-profile-hero-facts__label{
    color:#aeb9ef!important;
}
html[data-theme="neon"] .public-profile-facts strong,
html[data-theme="neon"] .public-profile-facts--details strong,
html[data-theme="neon"] .public-profile-hero-facts strong,
html[data-theme="neon"] .public-profile-hero-facts__value{
    color:#f7fbff!important;
}
html[data-theme="neon"] .public-profile-texts,
html[data-theme="neon"] .public-profile-texts section,
html[data-theme="neon"] .public-profile-richtext{
    color:#e7efff!important;
}
html[data-theme="neon"] .public-profile-texts h2,
html[data-theme="neon"] .public-profile-photos h2{
    color:#f7fbff!important;
}

/* PATCH: content rules page, upload confirmations and critical moderation action */
.content-rules-hero{max-width:1080px;margin-inline:auto}
.content-rules-alert{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:start;max-width:1080px;margin:0 auto 20px;padding:22px;border-radius:22px}
.content-rules-alert--critical{border:1px solid rgba(220,38,38,.28);background:linear-gradient(145deg,#fff4f4,#fff);box-shadow:0 16px 34px rgba(190,24,93,.08)}
.content-rules-alert__icon{display:grid;place-items:center;width:62px;height:62px;border-radius:20px;background:#dc2626;color:#fff;font-size:22px;font-weight:950;box-shadow:0 12px 24px rgba(220,38,38,.22)}
.content-rules-alert h2,.content-rules-card h2,.content-rules-report h2{margin:0 0 10px;color:#17223a;font-size:24px;line-height:1.15}
.content-rules-alert p,.content-rules-card p,.content-rules-card li,.content-rules-report p{color:#55647f;line-height:1.65}
.content-rules-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:1080px;margin:0 auto 20px}
.content-rules-card{max-width:1080px;margin:0 auto 20px}
.content-rules-card ul{display:grid;gap:8px;margin:0;padding-left:22px}
.content-rules-report{display:flex;align-items:center;justify-content:space-between;gap:18px;max-width:1080px;margin:0 auto 24px}
.content-rules-confirm{align-items:flex-start!important;gap:10px!important;padding:12px 14px;border:1px solid rgba(96,118,170,.18);border-radius:14px;background:#f8fbff;color:#44516f!important;font-size:13px;line-height:1.5}
.content-rules-confirm input{flex:0 0 auto;width:18px!important;height:18px!important;margin-top:2px!important;accent-color:#247cff}
.content-rules-confirm a{font-weight:900}
.content-rules-confirm--compact{margin-top:10px;padding:10px 11px;font-size:12px}
.admin-critical-purge-button{border-color:rgba(190,24,93,.42)!important;background:#7f1d1d!important;color:#fff!important;font-weight:950!important}
.admin-critical-purge-button:hover{background:#991b1b!important;color:#fff!important}
@media(max-width:760px){.content-rules-alert{grid-template-columns:1fr;padding:18px}.content-rules-grid{grid-template-columns:1fr}.content-rules-report{align-items:stretch;flex-direction:column}.content-rules-alert__icon{width:54px;height:54px;border-radius:17px}}
html[data-theme="dark"] .content-rules-alert--critical{border-color:#7f3543;background:linear-gradient(145deg,#3c1e2b,#2b1a25);box-shadow:none}
html[data-theme="dark"] .content-rules-alert h2,html[data-theme="dark"] .content-rules-card h2,html[data-theme="dark"] .content-rules-report h2{color:#edf4ff}
html[data-theme="dark"] .content-rules-alert p,html[data-theme="dark"] .content-rules-card p,html[data-theme="dark"] .content-rules-card li,html[data-theme="dark"] .content-rules-report p{color:#b7c5da}
html[data-theme="dark"] .content-rules-confirm{border-color:#385273;background:#202d43;color:#c2d0e5!important}
html[data-theme="neon"] .content-rules-hero,
html[data-theme="neon"] .content-rules-card,
html[data-theme="neon"] .content-rules-report{
    color:#eef3ff!important;
    background:linear-gradient(180deg,rgba(18,7,37,.96),rgba(13,5,27,.97))!important;
    border-color:rgba(103,77,209,.34)!important;
    box-shadow:0 18px 42px rgba(0,0,0,.20),inset 0 0 0 1px rgba(132,103,255,.08)!important;
}
html[data-theme="neon"] .content-rules-alert--critical{border-color:rgba(244,63,94,.48)!important;background:linear-gradient(145deg,rgba(66,15,42,.94),rgba(25,7,32,.97))!important;box-shadow:0 18px 42px rgba(0,0,0,.20)!important}
html[data-theme="neon"] .content-rules-alert h2,html[data-theme="neon"] .content-rules-card h2,html[data-theme="neon"] .content-rules-report h2{color:#f7fbff!important}
html[data-theme="neon"] .content-rules-alert p,html[data-theme="neon"] .content-rules-card p,html[data-theme="neon"] .content-rules-card li,html[data-theme="neon"] .content-rules-report p{color:#b7c4ed!important}
html[data-theme="neon"] .content-rules-confirm{border-color:rgba(103,77,209,.34)!important;background:rgba(28,14,58,.90)!important;color:#dbe6ff!important;box-shadow:inset 0 0 0 1px rgba(132,103,255,.06)!important}
html[data-theme="neon"] .content-rules-confirm a{color:#8fdcff!important}


/* HOTFIX 2026-06-07: restore fortune wheel UI after route/theme merge */
html.fortune-wheel-open{overflow:hidden}
.fortune-wheel-root{position:relative;z-index:78}
.fortune-wheel-launcher{position:fixed;right:22px;bottom:22px;z-index:78;display:grid;width:62px;height:62px;place-items:center;border:1px solid rgba(255,255,255,.58);border-radius:50%;background:linear-gradient(145deg,#7c3aed,#e11d88 58%,#f59e0b);color:#fff;box-shadow:0 18px 38px rgba(124,58,237,.30),0 0 0 7px rgba(124,58,237,.10);cursor:pointer;font-size:29px;transition:transform .18s ease,box-shadow .18s ease}
.fortune-wheel-launcher:hover{transform:translateY(-3px) rotate(-7deg);box-shadow:0 22px 44px rgba(124,58,237,.38),0 0 0 9px rgba(124,58,237,.13)}
.fortune-wheel-modal[hidden]{display:none!important}
.fortune-wheel-modal{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:18px}
.fortune-wheel-modal__backdrop{position:absolute;inset:0;background:rgba(11,18,32,.72);backdrop-filter:blur(7px)}
.fortune-wheel-modal__dialog{position:relative;display:grid;width:min(980px,100%);max-height:min(920px,calc(100vh - 36px));overflow:auto;padding:24px;border:1px solid rgba(126,92,255,.30);border-radius:25px;background:linear-gradient(145deg,#fff,#f7f3ff 62%,#fff8ec);box-shadow:0 28px 80px rgba(15,23,42,.38)}
.fortune-wheel-modal__close{position:absolute;right:13px;top:11px;z-index:2;display:grid;width:36px;height:36px;place-items:center;border:1px solid rgba(100,116,139,.20);border-radius:50%;background:rgba(255,255,255,.80);color:#475569;cursor:pointer;font-size:25px;line-height:1}
.fortune-wheel-modal__copy{padding-right:42px}.fortune-wheel-modal__copy h2{margin:3px 0 6px;font-size:clamp(27px,4vw,42px);line-height:1.04}.fortune-wheel-modal__copy p{margin:0 0 16px;color:#64748b}
.fortune-wheel-layout{display:grid;grid-template-columns:minmax(290px,1fr) minmax(260px,.88fr);gap:24px;align-items:center}
.fortune-wheel-stage{position:relative;display:grid;min-height:390px;place-items:center;padding:20px}
.fortune-wheel-pointer{position:absolute;left:50%;top:7px;z-index:4;width:0;height:0;border-left:17px solid transparent;border-right:17px solid transparent;border-top:40px solid #f43f5e;filter:drop-shadow(0 7px 7px rgba(159,18,57,.26));transform:translateX(-50%)}
.fortune-wheel-disc{position:relative;width:min(360px,78vw);aspect-ratio:1;border:12px solid rgba(255,255,255,.92);border-radius:50%;box-shadow:0 18px 45px rgba(30,41,59,.20),inset 0 0 0 2px rgba(30,41,59,.10);transition:transform 3.4s cubic-bezier(.12,.72,.08,1)}
.fortune-wheel-disc__labels{position:absolute;inset:0}.fortune-wheel-disc__label{position:absolute;left:50%;top:50%;display:block;width:54px;margin-left:-27px;margin-top:-12px;color:#fff;font-size:14px;font-weight:950;letter-spacing:.01em;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.44);transform:rotate(var(--fortune-label-angle)) translateY(-139px) rotate(calc(var(--fortune-label-angle) * -1))}
.fortune-wheel-disc__hub{position:absolute;left:50%;top:50%;display:grid;width:72px;height:72px;place-items:center;border:8px solid rgba(255,255,255,.86);border-radius:50%;background:linear-gradient(145deg,#6d28d9,#ec4899);color:#fff;box-shadow:0 10px 22px rgba(88,28,135,.28);font-size:28px;transform:translate(-50%,-50%)}
.fortune-wheel-controls{display:grid;gap:12px}.fortune-wheel-ad-choice{display:grid;gap:7px;color:#334155;font-size:13px;font-weight:850}.fortune-wheel-ad-choice select,.admin-fortune-reset-form input{width:100%;border:1px solid var(--line);border-radius:12px;padding:11px 12px;background:#fff;color:var(--text);font:inherit}.fortune-wheel-note,.fortune-wheel-next,.fortune-wheel-result{margin:0;color:#64748b;font-size:14px}.fortune-wheel-result{min-height:24px;color:#334155}.fortune-wheel-spin{justify-content:center;min-height:46px;border:0!important;background:linear-gradient(135deg,#6d28d9,#db2777)!important;color:#fff!important;box-shadow:0 12px 24px rgba(109,40,217,.20);cursor:pointer}.fortune-wheel-spin:disabled{cursor:not-allowed;opacity:.62}.fortune-wheel-rules{border:1px solid rgba(100,116,139,.16);border-radius:14px;padding:10px 12px;background:rgba(255,255,255,.58);color:#64748b;font-size:13px}.fortune-wheel-rules summary{cursor:pointer;color:#475569;font-weight:850}.fortune-wheel-rules p{margin:8px 0 0}
.fortune-wheel-legend{margin-top:17px;padding-top:15px;border-top:1px solid rgba(100,116,139,.16)}.fortune-wheel-legend__head h3{margin:0 0 10px;font-size:17px}.fortune-wheel-legend__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.fortune-wheel-legend__item{display:flex;align-items:center;gap:8px;min-width:0;padding:8px 9px;border:1px solid rgba(100,116,139,.14);border-radius:12px;background:rgba(255,255,255,.62)}.fortune-wheel-legend__swatch{width:12px;height:12px;flex:0 0 12px;border-radius:50%}.fortune-wheel-legend__text{min-width:0}.fortune-wheel-legend__text strong{display:block;overflow:hidden;color:#334155;font-size:12px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.fortune-wheel-legend__empty{margin:0;color:#64748b;font-size:13px}
.admin-fortune-title{background:linear-gradient(135deg,#fff,#f7f3ff 58%,#fff8ec)}.admin-fortune-settings{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}.admin-fortune-settings .admin-fortune-checkbox{grid-column:1/-1}.admin-fortune-settings button{justify-self:start}.admin-fortune-checkbox{display:flex!important;align-items:center;gap:9px}.admin-fortune-checkbox input{width:18px!important;height:18px!important;margin:0!important;accent-color:#7c3aed}.admin-fortune-create{grid-template-columns:repeat(6,minmax(0,1fr));align-items:end;margin-bottom:18px;padding:16px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,#fbfdff,#f8f5ff)}.admin-fortune-create h3{grid-column:1/-1;margin:0}.admin-fortune-create__code,.admin-fortune-create__title{grid-column:span 2}.admin-fortune-create__active{align-self:center}.admin-fortune-create__submit{min-height:42px}.admin-fortune-prize-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.admin-fortune-prize-card{gap:10px;padding:14px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(180deg,#fff,#fbfdff);box-shadow:0 10px 22px rgba(21,50,100,.05)}.admin-fortune-prize-card.is-disabled{opacity:.70}.admin-fortune-prize-card__head{display:flex;align-items:start;justify-content:space-between;gap:10px}.admin-fortune-prize-card__head span{display:inline-flex;padding:4px 8px;border-radius:999px;background:#f3e8ff;color:#7e22ce;font-size:12px;font-weight:950}.admin-fortune-prize-card__row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.admin-fortune-prize-card small{color:var(--muted);line-height:1.45}.admin-fortune-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.admin-fortune-tools h2{margin-top:0}.admin-fortune-reset-form,.admin-inline-settings{display:flex;align-items:end;gap:9px;flex-wrap:wrap}.admin-fortune-reset-form input{max-width:190px}.admin-inline-settings label{display:grid;gap:6px}.admin-inline-settings input{min-width:290px;border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:#fff;color:var(--text);font:inherit}.admin-inline-settings button{border:0;border-radius:12px;padding:11px 16px;background:var(--blue);color:#fff;font:800 14px/1 system-ui;cursor:pointer}
html[data-theme="dark"] .fortune-wheel-modal__dialog,html[data-theme="dark"] .admin-fortune-title,html[data-theme="dark"] .admin-fortune-create,html[data-theme="dark"] .admin-fortune-prize-card{color:#edf4ff;background:linear-gradient(145deg,#1f2940,#271f3d 62%,#302538)!important;border-color:#4b4268!important}html[data-theme="dark"] .fortune-wheel-modal__copy p,html[data-theme="dark"] .fortune-wheel-note,html[data-theme="dark"] .fortune-wheel-next{color:#b7c5da}html[data-theme="dark"] .fortune-wheel-result,html[data-theme="dark"] .fortune-wheel-rules summary,html[data-theme="dark"] .fortune-wheel-legend__text strong{color:#e8efff}html[data-theme="dark"] .fortune-wheel-rules,html[data-theme="dark"] .fortune-wheel-legend__item{background:rgba(21,31,51,.76);border-color:#435270}html[data-theme="dark"] .fortune-wheel-ad-choice{color:#d9e6f8}html[data-theme="dark"] .fortune-wheel-ad-choice select,html[data-theme="dark"] .admin-fortune-reset-form input,html[data-theme="dark"] .admin-inline-settings input{background:#152238;color:#edf4ff;border-color:#425575}html[data-theme="dark"] .fortune-wheel-modal__close{background:#253653;color:#d7e6ff;border-color:#4b5e7c}html[data-theme="dark"] .admin-fortune-prize-card__head span{background:#352852;color:#e5c8ff}
html[data-theme="neon"] .fortune-wheel-modal__dialog,html[data-theme="neon"] .admin-fortune-title,html[data-theme="neon"] .admin-fortune-create,html[data-theme="neon"] .admin-fortune-prize-card{color:#eef3ff;background:linear-gradient(145deg,rgba(18,7,37,.98),rgba(32,12,61,.98) 62%,rgba(42,14,47,.98))!important;border-color:rgba(140,107,255,.48)!important;box-shadow:0 24px 64px rgba(0,0,0,.38),inset 0 0 0 1px rgba(168,134,255,.08)!important}html[data-theme="neon"] .fortune-wheel-modal__copy p,html[data-theme="neon"] .fortune-wheel-note,html[data-theme="neon"] .fortune-wheel-next{color:#b7c4ed}html[data-theme="neon"] .fortune-wheel-result,html[data-theme="neon"] .fortune-wheel-rules summary,html[data-theme="neon"] .fortune-wheel-legend__text strong{color:#f7fbff}html[data-theme="neon"] .fortune-wheel-rules,html[data-theme="neon"] .fortune-wheel-legend__item{background:rgba(28,14,58,.90);border-color:rgba(103,77,209,.42)}html[data-theme="neon"] .fortune-wheel-ad-choice{color:#dbe6ff}html[data-theme="neon"] .fortune-wheel-ad-choice select,html[data-theme="neon"] .admin-fortune-reset-form input,html[data-theme="neon"] .admin-inline-settings input{background:rgba(22,9,46,.96);color:#eef3ff;border-color:rgba(103,77,209,.54)}html[data-theme="neon"] .fortune-wheel-modal__close{background:rgba(36,18,70,.96);color:#edf4ff;border-color:rgba(118,202,255,.40)}html[data-theme="neon"] .admin-fortune-prize-card__head span{background:rgba(88,52,165,.44);color:#eedbff}
@media(max-width:980px){.fortune-wheel-layout{grid-template-columns:1fr}.fortune-wheel-stage{min-height:330px}.admin-fortune-settings{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-fortune-create{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-fortune-prize-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.fortune-wheel-launcher{right:14px;bottom:14px;width:54px;height:54px;font-size:25px}.fortune-wheel-modal{padding:10px}.fortune-wheel-modal__dialog{max-height:calc(100vh - 20px);padding:18px 14px;border-radius:20px}.fortune-wheel-stage{min-height:286px;padding:10px}.fortune-wheel-disc{width:min(292px,82vw);border-width:9px}.fortune-wheel-disc__label{transform:rotate(var(--fortune-label-angle)) translateY(-112px) rotate(calc(var(--fortune-label-angle) * -1));font-size:12px}.fortune-wheel-disc__hub{width:62px;height:62px;border-width:7px;font-size:24px}.fortune-wheel-legend__list{grid-template-columns:1fr}.admin-fortune-settings,.admin-fortune-create,.admin-fortune-prize-grid,.admin-fortune-tools{grid-template-columns:1fr}.admin-fortune-create__code,.admin-fortune-create__title{grid-column:auto}.admin-inline-settings,.admin-fortune-reset-form{align-items:stretch;flex-direction:column}.admin-inline-settings input,.admin-fortune-reset-form input{min-width:0;max-width:none;width:100%}}

/* PATCH 2026-06-07: persistent weekly TOP-3 photo awards in public profile */
.profile-weekly-awards{display:grid;gap:16px;overflow:hidden;background:linear-gradient(145deg,#fff,#fbfdff 58%,#fffaf0)}
.profile-weekly-awards__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.profile-weekly-awards__head h2{margin:3px 0 5px;color:#17223a;font-size:clamp(22px,3vw,30px);line-height:1.08}
.profile-weekly-awards__head p{margin:0;color:#64748b;line-height:1.5}
.profile-weekly-awards__count{display:grid;min-width:38px;height:38px;place-items:center;border:1px solid rgba(148,103,16,.20);border-radius:999px;background:rgba(255,247,220,.88);color:#8a5a09;font-size:14px;font-weight:950;box-shadow:0 7px 16px rgba(180,122,18,.10)}
.profile-weekly-awards__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.profile-weekly-award{--award-color:#a16207;--award-border:rgba(180,122,18,.26);--award-shadow:rgba(180,122,18,.12);position:relative;display:flex;min-width:0;gap:14px;align-items:center;padding:15px;border:1px solid var(--award-border);border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(255,250,232,.92));box-shadow:0 12px 28px var(--award-shadow);isolation:isolate;overflow:hidden}
.profile-weekly-award::after{position:absolute;right:-25px;bottom:-38px;z-index:-1;width:112px;height:112px;border-radius:50%;background:var(--award-color);content:"";opacity:.08;filter:blur(2px)}
.profile-weekly-award--place-1{--award-color:#b77908;--award-border:rgba(203,146,29,.38);--award-shadow:rgba(203,146,29,.18);background:linear-gradient(145deg,#fffdf5,#fff3c9)}
.profile-weekly-award--place-2{--award-color:#64748b;--award-border:rgba(100,116,139,.32);--award-shadow:rgba(100,116,139,.13);background:linear-gradient(145deg,#fff,#edf3f8)}
.profile-weekly-award--place-3{--award-color:#a45120;--award-border:rgba(164,81,32,.30);--award-shadow:rgba(164,81,32,.13);background:linear-gradient(145deg,#fffaf7,#f8dfcf)}
.profile-weekly-award__trophy{display:grid;width:58px;height:58px;flex:0 0 58px;place-items:center;border:1px solid color-mix(in srgb,var(--award-color) 28%,transparent);border-radius:18px;background:rgba(255,255,255,.76);color:var(--award-color);box-shadow:0 10px 21px var(--award-shadow)}
.profile-weekly-award__trophy svg{width:39px;height:39px;fill:currentColor;filter:drop-shadow(0 4px 5px var(--award-shadow))}
.profile-weekly-award__body{display:grid;min-width:0;gap:2px}
.profile-weekly-award__eyebrow{color:var(--award-color);font-size:10px;font-weight:950;letter-spacing:.12em;text-transform:uppercase}
.profile-weekly-award__title{color:#17223a;font-size:24px;font-weight:1000;line-height:1}
.profile-weekly-award__week{overflow:hidden;color:#334155;font-size:14px;font-weight:900;text-overflow:ellipsis;white-space:nowrap}
.profile-weekly-award small{color:#64748b;font-size:12px;font-weight:750;line-height:1.35}
html[data-theme="dark"] .profile-weekly-awards{border-color:#45516b;background:linear-gradient(145deg,#1f2b42,#222c43 58%,#302b35)}
html[data-theme="dark"] .profile-weekly-awards__head h2{color:#edf4ff}
html[data-theme="dark"] .profile-weekly-awards__head p{color:#b7c5da}
html[data-theme="dark"] .profile-weekly-awards__count{border-color:#69583b;background:#332e28;color:#f0c978}
html[data-theme="dark"] .profile-weekly-award{background:linear-gradient(145deg,#202c42,#243047);border-color:color-mix(in srgb,var(--award-color) 48%,#40506d);box-shadow:0 12px 28px rgba(0,0,0,.18)}
html[data-theme="dark"] .profile-weekly-award--place-1{background:linear-gradient(145deg,#2d2b28,#3c3427)}
html[data-theme="dark"] .profile-weekly-award--place-2{background:linear-gradient(145deg,#242e3d,#303b4a)}
html[data-theme="dark"] .profile-weekly-award--place-3{background:linear-gradient(145deg,#302923,#3b2c28)}
html[data-theme="dark"] .profile-weekly-award__trophy{background:rgba(13,22,37,.52);border-color:color-mix(in srgb,var(--award-color) 52%,#29374f)}
html[data-theme="dark"] .profile-weekly-award__title{color:#f7fbff}
html[data-theme="dark"] .profile-weekly-award__week{color:#dce7f6}
html[data-theme="dark"] .profile-weekly-award small{color:#b7c5da}
html[data-theme="neon"] .profile-weekly-awards{color:#eef3ff!important;border-color:rgba(103,77,209,.40)!important;background:linear-gradient(145deg,rgba(18,7,37,.97),rgba(25,10,51,.98) 58%,rgba(42,17,42,.97))!important;box-shadow:0 18px 42px rgba(0,0,0,.22),inset 0 0 0 1px rgba(132,103,255,.08)!important}
html[data-theme="neon"] .profile-weekly-awards__head h2{color:#f7fbff!important}
html[data-theme="neon"] .profile-weekly-awards__head p{color:#b7c4ed!important}
html[data-theme="neon"] .profile-weekly-awards__count{border-color:rgba(255,198,87,.36);background:rgba(74,47,22,.70);color:#ffd88a;box-shadow:0 0 22px rgba(255,176,65,.14)}
html[data-theme="neon"] .profile-weekly-award{border-color:color-mix(in srgb,var(--award-color) 58%,rgba(103,77,209,.50));background:linear-gradient(145deg,rgba(30,14,58,.96),rgba(25,12,48,.98));box-shadow:0 14px 34px rgba(0,0,0,.26),0 0 20px var(--award-shadow)}
html[data-theme="neon"] .profile-weekly-award--place-1{--award-color:#ffd166;--award-shadow:rgba(255,209,102,.17);background:linear-gradient(145deg,rgba(60,42,18,.93),rgba(44,25,36,.97))}
html[data-theme="neon"] .profile-weekly-award--place-2{--award-color:#cbd5e1;--award-shadow:rgba(203,213,225,.13);background:linear-gradient(145deg,rgba(35,35,61,.96),rgba(27,20,52,.98))}
html[data-theme="neon"] .profile-weekly-award--place-3{--award-color:#e69a6b;--award-shadow:rgba(230,154,107,.15);background:linear-gradient(145deg,rgba(56,29,27,.95),rgba(37,20,47,.98))}
html[data-theme="neon"] .profile-weekly-award__trophy{background:rgba(18,8,35,.70);border-color:color-mix(in srgb,var(--award-color) 55%,rgba(118,202,255,.30));box-shadow:0 0 20px var(--award-shadow)}
html[data-theme="neon"] .profile-weekly-award__title{color:#f7fbff!important}
html[data-theme="neon"] .profile-weekly-award__week{color:#e7efff!important}
html[data-theme="neon"] .profile-weekly-award small{color:#b7c4ed!important}
@media(max-width:640px){.profile-weekly-awards{gap:13px}.profile-weekly-awards__head{gap:10px}.profile-weekly-awards__grid{grid-template-columns:1fr}.profile-weekly-award{padding:13px}.profile-weekly-award__trophy{width:52px;height:52px;flex-basis:52px;border-radius:16px}.profile-weekly-award__trophy svg{width:35px;height:35px}.profile-weekly-award__title{font-size:22px}}

/* HOTFIX 2026-06-07: keep fortune wheel hidden until the server allows opening */
.fortune-wheel-root [hidden]{display:none!important}
.fortune-wheel-launcher{overflow:hidden;line-height:1}
.fortune-wheel-launcher>span{display:grid;place-items:center;line-height:1}
.fortune-wheel-launcher>b{display:none!important}

/* PATCH 2026-06-07: legal pages and visible 18+ footer notice */
.footer__adult-notice{display:inline-flex;align-items:center;gap:8px;color:inherit;text-decoration:none;font-weight:850}
.footer__adult-notice:hover{text-decoration:none}
.footer__adult-badge{display:inline-grid;place-items:center;min-width:34px;height:34px;padding:0 5px;border:2px solid #dc2626;border-radius:50%;background:linear-gradient(145deg,#fff,#fff3f3);color:#c81e1e;font-size:12px;font-weight:950;line-height:1;box-shadow:0 7px 16px rgba(220,38,38,.16)}
.footer__adult-notice:hover .footer__adult-badge{transform:translateY(-1px);box-shadow:0 10px 20px rgba(220,38,38,.22)}
.legal-page-hero{max-width:1080px;margin-inline:auto}
.legal-page-nav{display:flex;align-items:center;justify-content:center;gap:8px;max-width:1080px;margin:0 auto 18px;padding:12px;flex-wrap:wrap}
.legal-page-nav a{display:inline-flex;align-items:center;min-height:38px;padding:8px 12px;border:1px solid rgba(96,118,170,.16);border-radius:999px;background:#f8fbff;color:#36527e;font-size:13px;font-weight:850;text-decoration:none}
.legal-page-nav a:hover,.legal-page-nav a.is-current{border-color:rgba(37,99,235,.36);background:#edf5ff;color:#145bc9;text-decoration:none}
.legal-document{max-width:1080px;margin:0 auto 24px;padding:26px}
.legal-document__meta{margin-bottom:18px;color:#7183a3;font-size:13px;font-weight:800}
.legal-document section{padding:18px 0;border-top:1px solid rgba(96,118,170,.14)}
.legal-document section:first-of-type{padding-top:0;border-top:0}
.legal-document section:last-child{padding-bottom:0}
.legal-document h2{margin:0 0 10px;color:#17223a;font-size:23px;line-height:1.18}
.legal-document p,.legal-document li{color:#55647f;line-height:1.68}
.legal-document p{margin:0 0 10px}
.legal-document p:last-child{margin-bottom:0}
.legal-document ul{display:grid;gap:7px;margin:0;padding-left:22px}
.legal-document a{font-weight:850}
@media(max-width:760px){.legal-document{padding:19px}.legal-document h2{font-size:20px}.legal-page-nav{align-items:stretch;justify-content:flex-start}.legal-page-nav a{justify-content:center;flex:1 1 220px}.footer__adult-badge{min-width:32px;height:32px}}
html[data-theme="dark"] .footer__adult-notice{color:#c4d2e6!important}
html[data-theme="dark"] .footer__adult-badge{border-color:#fb7185;background:linear-gradient(145deg,#3b1e2a,#2d1721);color:#ffb5c0;box-shadow:none}
html[data-theme="dark"] .legal-page-nav a{border-color:#385273;background:#202d43;color:#c2d0e5}
html[data-theme="dark"] .legal-page-nav a:hover,html[data-theme="dark"] .legal-page-nav a.is-current{border-color:#5d83b7;background:#283b58;color:#d9e9ff}
html[data-theme="dark"] .legal-document__meta{color:#9cadc4}
html[data-theme="dark"] .legal-document section{border-top-color:#385273}
html[data-theme="dark"] .legal-document h2{color:#edf4ff}
html[data-theme="dark"] .legal-document p,html[data-theme="dark"] .legal-document li{color:#b7c5da}
html[data-theme="neon"] .footer__adult-notice{color:#e6eeff!important}
html[data-theme="neon"] .footer__adult-badge{border-color:#ff4f87;background:linear-gradient(145deg,rgba(92,12,55,.92),rgba(42,7,33,.98));color:#ffbdd2;box-shadow:0 0 20px rgba(255,79,135,.28)}
html[data-theme="neon"] .legal-page-hero,html[data-theme="neon"] .legal-page-nav,html[data-theme="neon"] .legal-document{border-color:rgba(103,77,209,.34)!important;background:linear-gradient(145deg,rgba(28,14,58,.95),rgba(10,20,55,.96))!important;box-shadow:0 18px 42px rgba(0,0,0,.20),inset 0 0 0 1px rgba(132,103,255,.06)!important}
html[data-theme="neon"] .legal-page-nav a{border-color:rgba(132,103,255,.30);background:rgba(27,17,63,.88);color:#dbe6ff}
html[data-theme="neon"] .legal-page-nav a:hover,html[data-theme="neon"] .legal-page-nav a.is-current{border-color:rgba(80,214,255,.58);background:rgba(20,44,87,.86);color:#8fdcff}
html[data-theme="neon"] .legal-document__meta{color:#aebde8}
html[data-theme="neon"] .legal-document section{border-top-color:rgba(132,103,255,.20)}
html[data-theme="neon"] .legal-document h2{color:#f7fbff!important}
html[data-theme="neon"] .legal-document p,html[data-theme="neon"] .legal-document li{color:#b7c4ed!important}

/* PATCH 2026-06-07: structured multi-column footer */
.footer--columns{
    display:grid;
    grid-template-columns:minmax(220px,1.08fr) minmax(155px,.78fr) minmax(235px,1.12fr) minmax(245px,1.12fr);
    gap:26px;
    align-items:start;
    margin-top:18px;
    padding:24px 28px;
    border:1px solid rgba(96,118,170,.16);
    border-radius:22px;
    background:rgba(255,255,255,.72);
    box-shadow:0 14px 34px rgba(57,78,120,.08);
}
.footer__column{display:grid;align-content:start;gap:10px;min-width:0}
.footer__column--brand{gap:7px}
.footer__column--community{gap:15px}
.footer__brand{color:#52617d;font-size:15px;font-weight:950;letter-spacing:.01em}
.footer__brand-note{max-width:260px;color:#8795ad;font-size:13px;line-height:1.45}
.footer__column-title{color:#52617d;font-size:13px;font-weight:950;letter-spacing:.07em;text-transform:uppercase}
.footer__link-list{display:grid;gap:8px}
.footer--columns .footer__safety-link{width:max-content;max-width:100%;border-bottom-color:rgba(82,97,125,.30);color:#7183a3;line-height:1.35}
.footer--columns .footer__safety-link:hover{color:#145bc9}
.footer--columns .footer__script-credit{margin-top:6px;align-items:baseline;flex-wrap:wrap;color:#7183a3;font-size:13px;line-height:1.4}
.footer--columns .footer__adult-notice{width:fit-content;max-width:100%;line-height:1.35}
.footer--columns .footer__telegram-link{width:fit-content;border-bottom:0;font-weight:800}
@media(max-width:1040px){
    .footer--columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 30px}
}
@media(max-width:620px){
    .footer--columns{grid-template-columns:1fr;gap:19px;margin:10px 14px 24px;padding:20px;border-radius:18px}
    .footer__column{gap:8px}
    .footer__column--community{gap:13px;padding-top:2px}
    .footer__brand-note{max-width:none}
}
html[data-theme="dark"] .footer--columns{border-color:#324764;background:rgba(27,39,59,.88);box-shadow:0 14px 34px rgba(0,0,0,.12)}
html[data-theme="dark"] .footer__brand,html[data-theme="dark"] .footer__column-title{color:#e6eefb}
html[data-theme="dark"] .footer__brand-note,html[data-theme="dark"] .footer--columns .footer__script-credit{color:#9cadc4}
html[data-theme="dark"] .footer--columns .footer__safety-link{border-bottom-color:rgba(181,200,228,.38);color:#b5c8e4!important}
html[data-theme="dark"] .footer--columns .footer__safety-link:hover{color:#d9e9ff!important}
html[data-theme="neon"] .footer--columns{border-color:rgba(103,77,209,.34)!important;background:linear-gradient(145deg,rgba(18,7,37,.96),rgba(13,5,27,.97))!important;box-shadow:0 18px 42px rgba(0,0,0,.20),inset 0 0 0 1px rgba(132,103,255,.08)!important}
html[data-theme="neon"] .footer__brand,html[data-theme="neon"] .footer__column-title{color:#f7fbff!important}
html[data-theme="neon"] .footer__brand-note,html[data-theme="neon"] .footer--columns .footer__script-credit{color:#aebde8!important}
html[data-theme="neon"] .footer--columns .footer__safety-link{border-bottom-color:rgba(143,220,255,.38);color:#cdd9ff!important}
html[data-theme="neon"] .footer--columns .footer__safety-link:hover{color:#8fdcff!important}

/* HOTFIX 2026-06-07: make paid highlighted ads clearly visible in the light theme. */
html[data-theme="light"] .bbs-card--highlighted:not(.bbs-card--vip){
    border:2px solid rgba(245,158,11,.88)!important;
    background:linear-gradient(105deg,#fff2c9 0%,#fff8e8 38%,#fffdf8 72%,#fff 100%)!important;
    box-shadow:inset 5px 0 0 #f59e0b,0 18px 38px rgba(217,119,6,.18),0 0 0 1px rgba(251,191,36,.16)!important;
}
html[data-theme="light"] .home-latest .bbs-card--highlighted:not(.bbs-card--vip){
    background:linear-gradient(105deg,#fff2c9 0%,#fff8e8 38%,#fffdf8 72%,#fff 100%)!important;
}
html[data-theme="light"] .bbs-card--highlighted:not(.bbs-card--vip) .bbs-card__meta span{
    background:rgba(255,247,222,.96);
    border:1px solid rgba(245,158,11,.16);
    color:#7c4a08;
}
html[data-theme="light"] .highlighted-inline-badge{
    border-color:rgba(194,92,5,.92)!important;
    background:linear-gradient(135deg,#ffce4f 0%,#ff9f1c 48%,#f06414 100%)!important;
    color:#4b2100!important;
    box-shadow:0 9px 22px rgba(234,88,12,.28),0 0 0 3px rgba(255,191,36,.16),inset 0 1px 0 rgba(255,255,255,.68)!important;
}
html[data-theme="light"] .highlighted-inline-badge::before{content:'✦'!important;color:#6b2e00}
html[data-theme="light"] .public-profile-ad-card--highlighted{
    border:2px solid rgba(245,158,11,.74)!important;
    background:linear-gradient(135deg,#fff3cf,#fffaf0 56%,#fff)!important;
    box-shadow:inset 4px 0 0 #f59e0b,0 14px 30px rgba(217,119,6,.15)!important;
}
html[data-theme="light"] .public-profile-ad-card__highlight{
    border:1px solid rgba(194,92,5,.48)!important;
    background:linear-gradient(135deg,#ffcf55,#ff9f1c)!important;
    color:#4b2100!important;
    font-weight:950!important;
    box-shadow:0 7px 16px rgba(234,88,12,.20)!important;
}
@media(max-width:640px){
    html[data-theme="light"] .bbs-card--highlighted:not(.bbs-card--vip){
        box-shadow:inset 4px 0 0 #f59e0b,0 14px 30px rgba(217,119,6,.16),0 0 0 1px rgba(251,191,36,.14)!important;
    }
}

/* PATCH: stronger VIP card styling in light theme so VIP reads above highlighted */
html[data-theme="light"] .bbs-card--vip,
html[data-theme="light"] .home-latest .bbs-card--vip,
html[data-theme="light"] .home-new-profile-card--vip,
html[data-theme="light"] .ad-view--vip,
html[data-theme="light"] .public-profile-hero--vip{
  position:relative;
  border-color:rgba(106,74,196,.44)!important;
  background:
    radial-gradient(circle at top right, rgba(255,215,125,.18), transparent 28%),
    linear-gradient(135deg, #fcfbff 0%, #f6f0ff 48%, #eef4ff 100%)!important;
  box-shadow:0 24px 54px rgba(80,52,164,.18), 0 0 0 2px rgba(106,74,196,.12), inset 0 1px 0 rgba(255,255,255,.96)!important;
}
html[data-theme="light"] .bbs-card--vip::before,
html[data-theme="light"] .home-new-profile-card--vip::before,
html[data-theme="light"] .ad-view--vip::before,
html[data-theme="light"] .public-profile-hero--vip::before{
  content:'';
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  background:linear-gradient(135deg, rgba(110,64,212,.15), rgba(255,255,255,0) 46%, rgba(255,192,74,.14) 100%);
  pointer-events:none;
}
html[data-theme="light"] .bbs-card--vip::after,
html[data-theme="light"] .home-new-profile-card--vip::after,
html[data-theme="light"] .ad-view--vip::after,
html[data-theme="light"] .public-profile-hero--vip::after{
  content:'';
  position:absolute;
  left:0;
  top:16px;
  bottom:16px;
  width:5px;
  border-radius:999px;
  background:linear-gradient(180deg, #7c3aed 0%, #a855f7 48%, #f0b429 100%);
  box-shadow:0 0 0 1px rgba(255,255,255,.55), 0 10px 24px rgba(124,58,237,.28);
  pointer-events:none;
}
html[data-theme="light"] .bbs-card--vip > *,
html[data-theme="light"] .home-new-profile-card--vip > *,
html[data-theme="light"] .ad-view--vip > *,
html[data-theme="light"] .public-profile-hero--vip > *{
  position:relative;
  z-index:1;
}
html[data-theme="light"] .bbs-card--vip .bbs-card__body{
  background:transparent!important;
}
html[data-theme="light"] .bbs-card--vip .bbs-card__meta span,
html[data-theme="light"] .public-profile-hero--vip .public-profile-hero-facts > div,
html[data-theme="light"] .public-profile-hero--vip .public-profile-hero-facts__item{
  background:rgba(116,82,210,.08)!important;
  border-color:rgba(116,82,210,.16)!important;
}
html[data-theme="light"] .vip-inline-badge,
html[data-theme="light"] .status--vip,
html[data-theme="light"] .vip-photo-badge{
  border-color:rgba(101,53,202,.62)!important;
  background:linear-gradient(135deg, #5b21b6 0%, #7c3aed 46%, #2563eb 100%)!important;
  color:#fff6c7!important;
  box-shadow:0 12px 28px rgba(91,33,182,.30), inset 0 1px 0 rgba(255,255,255,.18)!important;
}
html[data-theme="light"] .vip-inline-badge::before,
html[data-theme="light"] .status--vip::before{
  color:#ffd56a!important;
}
html[data-theme="light"] .home-vip-profiles{
  border-color:rgba(106,74,196,.28)!important;
  background:linear-gradient(135deg, rgba(248,243,255,.94), rgba(240,246,255,.96))!important;
  box-shadow:0 20px 44px rgba(80,52,164,.12)!important;
}
html[data-theme="light"] .home-vip-profiles .panel__head h2{
  color:#5b21b6!important;
}
@media (max-width: 640px){
  html[data-theme="light"] .bbs-card--vip,
  html[data-theme="light"] .home-latest .bbs-card--vip,
  html[data-theme="light"] .home-new-profile-card--vip,
  html[data-theme="light"] .ad-view--vip,
  html[data-theme="light"] .public-profile-hero--vip{
    box-shadow:0 14px 30px rgba(80,52,164,.14), 0 0 0 2px rgba(106,74,196,.10)!important;
  }
  html[data-theme="light"] .bbs-card--vip::after,
  html[data-theme="light"] .home-new-profile-card--vip::after,
  html[data-theme="light"] .ad-view--vip::after,
  html[data-theme="light"] .public-profile-hero--vip::after{
    top:12px;
    bottom:12px;
  }
}

/* PATCH: growth marketing, visibility packages and fortune rules */
.growth-trigger{position:relative;display:flex;align-items:center;gap:14px;max-width:1320px;margin:14px auto;padding:14px 52px 14px 18px;border:1px solid rgba(37,99,235,.18);border-radius:20px;background:linear-gradient(135deg,#f6f9ff,#fff);box-shadow:0 16px 34px rgba(31,42,68,.08)}
.growth-trigger__icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:15px;background:rgba(37,99,235,.1);font-size:24px}.growth-trigger__copy{display:grid;gap:3px;flex:1;min-width:0}.growth-trigger__copy strong{font-size:16px}.growth-trigger__copy span{color:#64748b;font-size:14px;line-height:1.45}.growth-trigger__cta{white-space:nowrap}.growth-trigger__dismiss{position:absolute;top:10px;right:12px;border:0;background:transparent;color:#94a3b8;font-size:24px;line-height:1;cursor:pointer}.growth-trigger--orange{border-color:rgba(234,88,12,.24);background:linear-gradient(135deg,#fff7ed,#fff)}.growth-trigger--orange .growth-trigger__icon{background:rgba(234,88,12,.1)}.growth-trigger--violet{border-color:rgba(124,58,237,.24);background:linear-gradient(135deg,#f8f4ff,#fff)}.growth-trigger--violet .growth-trigger__icon{background:rgba(124,58,237,.1)}
.visibility-packages{scroll-margin-top:20px}.visibility-package-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.visibility-package-card{position:relative;display:flex;flex-direction:column;gap:12px;padding:20px;border:1px solid rgba(99,102,241,.18);border-radius:22px;background:linear-gradient(150deg,#fff,#f7f9ff);box-shadow:0 14px 30px rgba(31,42,68,.07)}.visibility-package-card--featured{border-color:rgba(124,58,237,.46);background:linear-gradient(150deg,#fbf7ff,#f4f7ff);box-shadow:0 20px 42px rgba(91,33,182,.16),0 0 0 2px rgba(124,58,237,.08)}.visibility-package-card__badge{align-self:flex-start;padding:5px 9px;border-radius:999px;background:linear-gradient(135deg,#5b21b6,#2563eb);color:#fff;font-size:10px;font-weight:900;letter-spacing:.08em}.visibility-package-card h3,.visibility-package-card p{margin:0}.visibility-package-card ul{display:grid;gap:7px;margin:0;padding-left:18px;color:#475569;font-size:14px}.visibility-package-card__price{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;margin-top:auto}.visibility-package-card__price strong{font-size:25px;color:#4f46e5}.visibility-package-card__price del{color:#94a3b8}.visibility-package-card__price em{padding:3px 7px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:11px;font-style:normal;font-weight:800}.paid-balance-card__bonus{display:block!important;margin-top:8px;color:#6d28d9!important;font-weight:750}.fortune-rules-page section{padding:12px 0;border-top:1px solid rgba(148,163,184,.2)}.fortune-rules-page h2{font-size:20px}.growth-admin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.growth-admin-stats article{display:grid;gap:6px;padding:16px;border:1px solid rgba(148,163,184,.22);border-radius:18px;background:#fff}.growth-admin-stats small{color:#64748b}.growth-admin-stats strong{font-size:24px}.growth-admin-stats em{color:#64748b;font-size:12px;font-style:normal}
html[data-theme="dark"] .growth-trigger,html[data-theme="dark"] .visibility-package-card,html[data-theme="dark"] .growth-admin-stats article{background:linear-gradient(145deg,#18243a,#111c30);border-color:#31435f;color:#edf4ff}html[data-theme="dark"] .growth-trigger__copy span,html[data-theme="dark"] .visibility-package-card ul,html[data-theme="dark"] .growth-admin-stats small,html[data-theme="dark"] .growth-admin-stats em{color:#b8c7dc}html[data-theme="neon"] .growth-trigger,html[data-theme="neon"] .visibility-package-card,html[data-theme="neon"] .growth-admin-stats article{background:linear-gradient(145deg,#12182b,#0a1020);border-color:rgba(61,240,255,.34);color:#f4f7ff;box-shadow:0 0 26px rgba(61,240,255,.08)}html[data-theme="neon"] .growth-trigger__copy span,html[data-theme="neon"] .visibility-package-card ul,html[data-theme="neon"] .growth-admin-stats small,html[data-theme="neon"] .growth-admin-stats em{color:#b9c8e7}
@media(max-width:900px){.visibility-package-grid{grid-template-columns:1fr}.growth-admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.growth-trigger{align-items:flex-start;flex-wrap:wrap;margin:10px 12px;padding:14px 42px 14px 14px}.growth-trigger__icon{flex-basis:38px;width:38px;height:38px}.growth-trigger__copy{flex:1 1 calc(100% - 56px)}.growth-trigger__cta{margin-left:52px}.growth-admin-stats{grid-template-columns:1fr}}

/* PATCH 2026-06-07: keep /admin/reports action column compact and inside table panel. */
.admin-reports-table-wrap{
    overflow-x:auto;
    overscroll-behavior-inline:contain;
}
.admin-reports-table{
    min-width:1480px;
}
.admin-reports-table th:last-child,
.admin-reports-table .admin-report-actions{
    position:sticky;
    right:0;
    min-width:272px!important;
    width:272px;
    max-width:272px;
    box-sizing:border-box;
}
.admin-reports-table th:last-child{
    z-index:4;
    background:#f8fbff;
    box-shadow:-12px 0 20px rgba(31,42,68,.06);
}
.admin-reports-table .admin-report-actions{
    z-index:3;
    vertical-align:top;
    background:#fff;
    box-shadow:-12px 0 20px rgba(31,42,68,.07);
}
.admin-reports-table tbody tr:nth-child(even) .admin-report-actions{
    background:#fbfdff;
}
.admin-reports-table .admin-report-quick-actions{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    align-items:stretch;
    gap:7px;
    min-width:0;
    margin-bottom:9px;
}
.admin-reports-table .admin-report-quick-actions form,
.admin-reports-table .admin-report-quick-actions .button-link,
.admin-reports-table .admin-report-quick-actions button{
    display:flex;
    width:100%;
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
    align-items:center;
    justify-content:center;
    white-space:normal;
    overflow-wrap:anywhere;
    text-align:center;
    line-height:1.18;
}
.admin-reports-table .admin-report-quick-actions .button-link,
.admin-reports-table .admin-report-quick-actions button{
    min-height:36px;
    padding:8px 9px;
    border-radius:11px;
    font-size:12px;
    font-weight:900;
}
.admin-reports-table .admin-critical-purge-button{
    min-height:48px!important;
    background:#991b1b!important;
    border-color:#7f1d1d!important;
    color:#fff!important;
}
.admin-reports-table .admin-status-form{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:7px;
    min-width:0;
    margin-bottom:10px;
}
.admin-reports-table .admin-status-form select,
.admin-reports-table .admin-status-form input{
    width:100%;
    min-width:0;
    box-sizing:border-box;
}
.admin-reports-table .admin-status-form input{
    grid-column:1 / -1;
}
.admin-reports-table .admin-status-form button{
    min-width:44px;
}
.admin-reports-table .admin-report-reply{
    min-width:0;
}
html[data-theme="dark"] .admin-reports-table th:last-child,
html[data-theme="neon"] .admin-reports-table th:last-child{
    background:#1a2b42!important;
    box-shadow:-12px 0 20px rgba(0,0,0,.24);
}
html[data-theme="dark"] .admin-reports-table .admin-report-actions,
html[data-theme="dark"] .admin-reports-table tbody tr:nth-child(even) .admin-report-actions,
html[data-theme="neon"] .admin-reports-table .admin-report-actions,
html[data-theme="neon"] .admin-reports-table tbody tr:nth-child(even) .admin-report-actions{
    background:#192b43!important;
    box-shadow:-12px 0 20px rgba(0,0,0,.22);
}
@media(max-width:900px){
    .admin-reports-table{
        min-width:1360px;
    }
    .admin-reports-table th:last-child,
    .admin-reports-table .admin-report-actions{
        min-width:244px!important;
        width:244px;
        max-width:244px;
    }
}

/* PATCH 2026-06-07: explicit report actions and journal-only delete. */
.admin-reports-table .admin-report-action-explainer{
    display:block;
    margin:0;
    padding:7px 8px;
    border:1px solid rgba(148,163,184,.24);
    border-radius:10px;
    background:#f8fbff;
    color:#475569;
    font-size:11px;
    line-height:1.35;
    overflow-wrap:anywhere;
}
.admin-reports-table .admin-report-action-explainer strong{
    color:#1e293b;
}
.admin-reports-table .admin-report-action-explainer--critical{
    border-color:rgba(220,38,38,.22);
    background:#fff5f5;
    color:#991b1b;
}
.admin-reports-table .admin-report-delete-row{
    margin-top:10px;
    padding-top:10px;
    border-top:1px dashed rgba(148,163,184,.34);
}
.admin-reports-table .admin-report-delete-row button{
    display:flex;
    width:100%;
    min-height:36px;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
    padding:8px 9px;
    border-color:rgba(220,38,38,.28)!important;
    border-radius:11px;
    background:#fff!important;
    color:#b91c1c!important;
    font-size:12px;
    font-weight:900;
    line-height:1.18;
    white-space:normal;
    overflow-wrap:anywhere;
    text-align:center;
}
.admin-reports-table .admin-report-delete-row button:hover{
    background:#fff1f2!important;
    color:#991b1b!important;
}
html[data-theme="dark"] .admin-reports-table .admin-report-action-explainer,
html[data-theme="neon"] .admin-reports-table .admin-report-action-explainer{
    border-color:rgba(148,163,184,.22);
    background:#14243a;
    color:#bfd0e8;
}
html[data-theme="dark"] .admin-reports-table .admin-report-action-explainer strong,
html[data-theme="neon"] .admin-reports-table .admin-report-action-explainer strong{
    color:#f3f7ff;
}
html[data-theme="dark"] .admin-reports-table .admin-report-action-explainer--critical,
html[data-theme="neon"] .admin-reports-table .admin-report-action-explainer--critical{
    border-color:rgba(248,113,113,.36);
    background:#3a1b24;
    color:#fecaca;
}
html[data-theme="dark"] .admin-reports-table .admin-report-delete-row button,
html[data-theme="neon"] .admin-reports-table .admin-report-delete-row button{
    border-color:rgba(248,113,113,.34)!important;
    background:#2d1a24!important;
    color:#fecaca!important;
}


/* PATCH 2026-06-08: stronger visual separation for highlighted profiles/ads across all themes + visible BBS favicon support. */
.profiles-directory-card__spotlight{
    position:absolute;
    left:10px;
    top:10px;
    z-index:4;
    display:inline-flex;
    align-items:center;
    min-height:26px;
    max-width:calc(100% - 20px);
    padding:5px 10px;
    border-radius:999px;
    border:1px solid rgba(194,92,5,.42);
    background:linear-gradient(135deg,#ffcf55,#ff9f1c 56%,#f06414 100%);
    color:#4b2100;
    font-size:10px;
    font-weight:950;
    letter-spacing:.06em;
    box-shadow:0 10px 24px rgba(234,88,12,.26),0 0 0 3px rgba(255,191,36,.14);
    white-space:nowrap;
}
.profile-promoted-badge--highlight{
    margin-left:7px;
    padding:5px 8px;
    border-color:rgba(194,92,5,.44)!important;
    background:linear-gradient(135deg,#ffcf55,#ff9f1c 56%,#f06414 100%)!important;
    color:#4b2100!important;
    font-size:10px!important;
    box-shadow:0 8px 18px rgba(234,88,12,.18),0 0 0 2px rgba(255,191,36,.12)!important;
}
.profile-promoted-badge--title{
    margin-left:8px;
    padding:6px 9px;
    vertical-align:middle;
}
.profiles-directory-card--highlighted:not(.profiles-directory-card--vip){
    border:2px solid rgba(245,158,11,.82);
    background:
        radial-gradient(circle at top right, rgba(255,214,102,.24), transparent 28%),
        linear-gradient(135deg,#fff3cf 0%,#fff8e8 42%,#fffdf8 72%,#fff 100%);
    box-shadow:inset 5px 0 0 #f59e0b,0 22px 42px rgba(217,119,6,.16),0 0 0 1px rgba(251,191,36,.16);
}
.profiles-directory-card--highlighted:not(.profiles-directory-card--vip):hover{
    border-color:rgba(194,92,5,.9);
    box-shadow:inset 5px 0 0 #f59e0b,0 26px 48px rgba(217,119,6,.22),0 0 0 1px rgba(251,191,36,.22);
}
.profiles-directory-card--highlighted:not(.profiles-directory-card--vip) .profiles-directory-card__photo{
    box-shadow:inset 0 -2px 0 rgba(245,158,11,.16);
}
.profiles-directory-card--highlighted:not(.profiles-directory-card--vip) .profiles-directory-card__stats span{
    background:rgba(255,247,222,.96);
    border:1px solid rgba(245,158,11,.14);
    color:#7c4a08;
}
.public-profile-hero--highlighted:not(.public-profile-hero--vip){
    border:2px solid rgba(245,158,11,.7)!important;
    background:
        radial-gradient(circle at top right, rgba(255,214,102,.18), transparent 26%),
        linear-gradient(135deg,#fff3cf,#fffaf0 58%,#fff)!important;
    box-shadow:inset 5px 0 0 #f59e0b,0 18px 38px rgba(217,119,6,.12)!important;
}
.bbs-card--highlighted:not(.bbs-card--vip),
.public-profile-ad-card--highlighted{
    position:relative;
}
html[data-theme="dark"] .bbs-card--highlighted:not(.bbs-card--vip){
    border:2px solid rgba(245,158,11,.54)!important;
    background:
        radial-gradient(circle at top right, rgba(255,189,89,.18), transparent 24%),
        linear-gradient(135deg,#362913 0%,#231a11 28%,#1b2940 100%)!important;
    box-shadow:inset 5px 0 0 #f59e0b,0 18px 38px rgba(0,0,0,.26),0 0 0 1px rgba(255,191,36,.12)!important;
}
html[data-theme="dark"] .bbs-card--highlighted:not(.bbs-card--vip) .bbs-card__meta span,
html[data-theme="dark"] .public-profile-ad-card--highlighted .public-profile-ad-card__meta span,
html[data-theme="dark"] .public-profile-ad-card--highlighted .public-profile-ad-card__meta a{
    background:#352816!important;
    border-color:#7b5b2d!important;
    color:#ffd79b!important;
}
html[data-theme="dark"] .highlighted-inline-badge,
html[data-theme="dark"] .public-profile-ad-card__highlight,
html[data-theme="dark"] .profile-promoted-badge--highlight,
html[data-theme="dark"] .profiles-directory-card__spotlight{
    border-color:#8d6226!important;
    background:linear-gradient(135deg,#ffdb72 0%,#ffb02e 52%,#ff7b2f 100%)!important;
    color:#3d1c00!important;
    box-shadow:0 10px 24px rgba(0,0,0,.28),0 0 0 2px rgba(255,191,36,.14)!important;
}
html[data-theme="dark"] .profiles-directory-card--highlighted:not(.profiles-directory-card--vip),
html[data-theme="dark"] .public-profile-hero--highlighted:not(.public-profile-hero--vip){
    border:2px solid rgba(245,158,11,.52)!important;
    background:
        radial-gradient(circle at top right, rgba(255,189,89,.16), transparent 24%),
        linear-gradient(135deg,#362913 0%,#241a10 26%,#1b2940 100%)!important;
    box-shadow:inset 5px 0 0 #f59e0b,0 18px 38px rgba(0,0,0,.28),0 0 0 1px rgba(255,191,36,.10)!important;
    color:#edf4ff!important;
}
html[data-theme="dark"] .profiles-directory-card--highlighted:not(.profiles-directory-card--vip) .profiles-directory-card__photo{
    background:#2a2130!important;
    box-shadow:inset 0 -2px 0 rgba(245,158,11,.22)!important;
}
html[data-theme="dark"] .profiles-directory-card--highlighted:not(.profiles-directory-card--vip) .profiles-directory-card__body strong,
html[data-theme="dark"] .public-profile-hero--highlighted:not(.public-profile-hero--vip) h1{
    color:#fff4d6!important;
}
html[data-theme="dark"] .profiles-directory-card--highlighted:not(.profiles-directory-card--vip) .profiles-directory-card__stats span{
    background:#322719!important;
    border-color:#70532c!important;
    color:#ffd79b!important;
}
html[data-theme="neon"] .bbs-card--highlighted:not(.bbs-card--vip){
    border:2px solid rgba(255,176,46,.72)!important;
    background:
        radial-gradient(circle at top right, rgba(255,190,84,.18), transparent 22%),
        linear-gradient(180deg,rgba(39,19,9,.94),rgba(16,7,31,.98))!important;
    box-shadow:inset 5px 0 0 #ffb02e,0 0 0 1px rgba(255,176,46,.18),0 0 28px rgba(255,160,67,.18),0 18px 44px rgba(0,0,0,.24)!important;
}
html[data-theme="neon"] .bbs-card--highlighted:not(.bbs-card--vip) .bbs-card__meta span,
html[data-theme="neon"] .public-profile-ad-card--highlighted .public-profile-ad-card__meta span,
html[data-theme="neon"] .public-profile-ad-card--highlighted .public-profile-ad-card__meta a{
    background:rgba(70,38,12,.78)!important;
    border-color:rgba(255,176,46,.30)!important;
    color:#ffe1a9!important;
}
html[data-theme="neon"] .highlighted-inline-badge,
html[data-theme="neon"] .public-profile-ad-card__highlight,
html[data-theme="neon"] .profile-promoted-badge--highlight,
html[data-theme="neon"] .profiles-directory-card__spotlight{
    border-color:rgba(255,183,57,.54)!important;
    background:linear-gradient(135deg,#ffe17e 0%,#ffb02e 46%,#ff6b6b 100%)!important;
    color:#341600!important;
    box-shadow:0 0 24px rgba(255,176,46,.22),0 10px 24px rgba(0,0,0,.20)!important;
}
html[data-theme="neon"] .profiles-directory-card--highlighted:not(.profiles-directory-card--vip),
html[data-theme="neon"] .public-profile-hero--highlighted:not(.public-profile-hero--vip){
    border:2px solid rgba(255,176,46,.66)!important;
    background:
        radial-gradient(circle at top right, rgba(255,190,84,.16), transparent 22%),
        linear-gradient(180deg,rgba(39,19,9,.94),rgba(16,7,31,.98))!important;
    box-shadow:inset 5px 0 0 #ffb02e,0 0 0 1px rgba(255,176,46,.16),0 0 30px rgba(255,176,46,.14),0 18px 44px rgba(0,0,0,.24)!important;
    color:#f6fbff!important;
}
html[data-theme="neon"] .profiles-directory-card--highlighted:not(.profiles-directory-card--vip) .profiles-directory-card__photo{
    background:linear-gradient(180deg,rgba(55,27,10,.98),rgba(24,10,50,.96))!important;
    box-shadow:inset 0 -2px 0 rgba(255,176,46,.20)!important;
}
html[data-theme="neon"] .profiles-directory-card--highlighted:not(.profiles-directory-card--vip) .profiles-directory-card__body strong,
html[data-theme="neon"] .public-profile-hero--highlighted:not(.public-profile-hero--vip) h1{
    color:#fff1cf!important;
}
html[data-theme="neon"] .profiles-directory-card--highlighted:not(.profiles-directory-card--vip) .profiles-directory-card__stats span{
    background:rgba(74,38,12,.76)!important;
    border-color:rgba(255,176,46,.26)!important;
    color:#ffe1a9!important;
}
@media(max-width:760px){
    .profiles-directory-card__spotlight{left:8px;top:8px;min-height:24px;padding:4px 8px;font-size:9px}
    .profile-promoted-badge--title{display:inline-flex;margin:7px 0 0}
}


/* PATCH 2026-06-08: user-cabinet fortune-wheel countdown card. */
.cabinet-fortune-card{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    gap:16px;
    margin-top:18px;
    padding:18px;
    border:1px solid rgba(124,58,237,.22);
    background:
        radial-gradient(circle at top right,rgba(99,102,241,.12),transparent 28%),
        linear-gradient(135deg,#fbf7ff,#f5f8ff 56%,#fff);
    box-shadow:0 16px 34px rgba(76,29,149,.08);
}
.cabinet-fortune-card.is-ready{
    border-color:rgba(217,119,6,.38);
    background:
        radial-gradient(circle at top right,rgba(255,190,84,.22),transparent 30%),
        linear-gradient(135deg,#fff4d5,#fff9ec 54%,#fff);
    box-shadow:0 18px 38px rgba(217,119,6,.12),inset 5px 0 0 #f59e0b;
}
.cabinet-fortune-card.is-disabled{opacity:.78}
.cabinet-fortune-card__icon{
    display:grid;
    place-items:center;
    width:62px;
    height:62px;
    border-radius:20px;
    background:linear-gradient(135deg,#ede9fe,#dbeafe);
    font-size:31px;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.82),0 10px 22px rgba(79,70,229,.10);
}
.cabinet-fortune-card.is-ready .cabinet-fortune-card__icon{background:linear-gradient(135deg,#fff0b8,#ffd98b)}
.cabinet-fortune-card__body{display:grid;gap:5px;min-width:0}
.cabinet-fortune-card__body h2{margin:0;color:#18213a;font-size:22px}
.cabinet-fortune-card__body p{margin:0;color:#64748b;line-height:1.45}
.cabinet-fortune-card__side{display:grid;justify-items:end;gap:7px;text-align:right}
.cabinet-fortune-card__countdown{
    color:#5b21b6;
    font-size:26px;
    font-variant-numeric:tabular-nums;
    letter-spacing:.035em;
    white-space:nowrap;
}
.cabinet-fortune-card.is-ready .cabinet-fortune-card__countdown{color:#a54b08}
.cabinet-fortune-card__side small{color:#718096;font-size:12px;font-weight:750}
.cabinet-fortune-card__rules{color:#6d28d9;font-size:12px;font-weight:850;text-decoration:none}
.cabinet-fortune-card__rules:hover{text-decoration:underline}
html[data-theme="dark"] .cabinet-fortune-card{
    border-color:#4a4273!important;
    background:
        radial-gradient(circle at top right,rgba(108,92,231,.16),transparent 28%),
        linear-gradient(135deg,#211d3b,#17243a 58%,#1b2940)!important;
    box-shadow:0 18px 38px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .cabinet-fortune-card.is-ready{
    border-color:#76582d!important;
    background:
        radial-gradient(circle at top right,rgba(255,189,89,.14),transparent 28%),
        linear-gradient(135deg,#362913,#241a10 28%,#1b2940)!important;
    box-shadow:inset 5px 0 0 #f59e0b,0 18px 38px rgba(0,0,0,.24)!important;
}
html[data-theme="dark"] .cabinet-fortune-card__icon{background:linear-gradient(135deg,#302759,#263d5e)!important}
html[data-theme="dark"] .cabinet-fortune-card.is-ready .cabinet-fortune-card__icon{background:linear-gradient(135deg,#60471f,#3b2e1d)!important}
html[data-theme="dark"] .cabinet-fortune-card__body h2{color:#edf4ff!important}
html[data-theme="dark"] .cabinet-fortune-card__body p,
html[data-theme="dark"] .cabinet-fortune-card__side small{color:#b8c7dc!important}
html[data-theme="dark"] .cabinet-fortune-card__countdown{color:#c4b5fd!important}
html[data-theme="dark"] .cabinet-fortune-card.is-ready .cabinet-fortune-card__countdown{color:#ffd18a!important}
html[data-theme="dark"] .cabinet-fortune-card__rules{color:#c4b5fd!important}
html[data-theme="neon"] .cabinet-fortune-card{
    border-color:rgba(103,77,209,.42)!important;
    background:
        radial-gradient(circle at top right,rgba(89,70,220,.20),transparent 28%),
        linear-gradient(145deg,rgba(18,7,37,.98),rgba(13,5,27,.98))!important;
    box-shadow:0 0 26px rgba(61,240,255,.07),0 18px 42px rgba(0,0,0,.24)!important;
}
html[data-theme="neon"] .cabinet-fortune-card.is-ready{
    border-color:rgba(255,176,46,.62)!important;
    background:
        radial-gradient(circle at top right,rgba(255,190,84,.16),transparent 25%),
        linear-gradient(145deg,rgba(44,21,7,.96),rgba(16,7,31,.98))!important;
    box-shadow:inset 5px 0 0 #ffb02e,0 0 28px rgba(255,176,46,.14),0 18px 42px rgba(0,0,0,.24)!important;
}
html[data-theme="neon"] .cabinet-fortune-card__icon{background:linear-gradient(135deg,rgba(54,31,108,.96),rgba(25,48,92,.96))!important}
html[data-theme="neon"] .cabinet-fortune-card.is-ready .cabinet-fortune-card__icon{background:linear-gradient(135deg,rgba(107,67,13,.96),rgba(66,35,13,.96))!important}
html[data-theme="neon"] .cabinet-fortune-card__body h2{color:#f7fbff!important}
html[data-theme="neon"] .cabinet-fortune-card__body p,
html[data-theme="neon"] .cabinet-fortune-card__side small{color:#afbbe9!important}
html[data-theme="neon"] .cabinet-fortune-card__countdown{color:#a5b4fc!important;text-shadow:0 0 15px rgba(129,140,248,.24)}
html[data-theme="neon"] .cabinet-fortune-card.is-ready .cabinet-fortune-card__countdown{color:#ffe1a9!important;text-shadow:0 0 17px rgba(255,176,46,.28)}
html[data-theme="neon"] .cabinet-fortune-card__rules{color:#9fdcff!important}
@media(max-width:720px){
    .cabinet-fortune-card{grid-template-columns:auto minmax(0,1fr);align-items:start;gap:12px;padding:15px}
    .cabinet-fortune-card__icon{width:52px;height:52px;border-radius:17px;font-size:27px}
    .cabinet-fortune-card__side{grid-column:1/-1;justify-items:start;text-align:left}
    .cabinet-fortune-card__countdown{font-size:24px}
}


/* HOTFIX 2026-06-08: align paid service cards and keep service actions visually level. */
.paid-service-grid{align-items:stretch}
.paid-service-card{
  display:flex;
  flex-direction:column;
  gap:12px;
  height:100%;
}
.paid-service-card h3{
  min-height:3.2em;
  margin:0 78px 0 0;
}
.paid-service-card p{
  margin:0;
}
.paid-service-benefits{
  margin:0;
  flex:1 1 auto;
}
.paid-service-card__price{
  display:flex;
  align-items:flex-end;
  align-content:flex-end;
  flex-wrap:wrap;
  gap:8px 12px;
  min-height:72px;
  margin:0;
}
.paid-service-card__price > *{
  align-self:flex-end;
}
.paid-service-card__price strong{
  margin-right:auto;
}
.paid-service-card__price del,
.paid-service-card__price s{
  color:#98a2b3;
  font-weight:800;
  text-decoration-thickness:2px;
}
.paid-service-card__price em{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:4px 10px;
  border-radius:999px;
  background:#e8f7ee;
  color:#087443;
  font-size:12px;
  font-style:normal;
  font-weight:900;
  line-height:1.15;
}
.paid-service-card > form,
.paid-service-card > .paid-service-form-stack{
  margin-top:auto;
}
.paid-service-form-stack{
  align-content:end;
}
.paid-service-select-label select,
.paid-service-form-stack .button-link{
  min-height:50px;
}
html[data-theme="dark"] .paid-service-card__price del,
html[data-theme="dark"] .paid-service-card__price s{
  color:#8fa2bf!important;
}
html[data-theme="dark"] .paid-service-card__price em{
  background:#153427!important;
  color:#8df0bb!important;
  border:1px solid rgba(141,240,187,.16)!important;
}
html[data-theme="neon"] .paid-service-card__price del,
html[data-theme="neon"] .paid-service-card__price s{
  color:#94a8d4!important;
}
html[data-theme="neon"] .paid-service-card__price em{
  background:rgba(14,74,44,.72)!important;
  color:#8df0bb!important;
  border:1px solid rgba(141,240,187,.14)!important;
  box-shadow:0 0 18px rgba(12,123,77,.12)!important;
}
@media(max-width:900px){
  .paid-service-card h3{min-height:0}
  .paid-service-card__price{min-height:0}
}

/* PATCH 2026-06-08: trophies on the exact weekly TOP-awarded photo */
.single-photo-awards{
    display:grid!important;
    gap:8px!important;
    margin-top:10px!important;
    padding:10px 11px!important;
    border:1px solid #dbe6f7!important;
    border-radius:14px!important;
    background:linear-gradient(145deg,#fffdf7,#fff7df)!important;
}
.single-photo-awards__head{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    color:#8a5a09!important;
    font-size:12px!important;
    font-weight:1000!important;
}
.single-photo-awards__head b{
    display:grid!important;
    min-width:22px!important;
    height:22px!important;
    place-items:center!important;
    border:1px solid rgba(180,122,18,.22)!important;
    border-radius:999px!important;
    background:rgba(255,255,255,.78)!important;
    color:#8a5a09!important;
    font-size:11px!important;
}
.single-photo-awards__list{
    position:relative!important;
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px!important;
}
.single-photo-award{
    --single-award-color:#a16207;
    --single-award-border:rgba(180,122,18,.36);
    --single-award-shadow:rgba(180,122,18,.17);
    position:static!important;
    display:inline-grid!important;
    width:44px!important;
    height:44px!important;
    padding:0!important;
    place-items:center!important;
    border:1px solid var(--single-award-border)!important;
    border-radius:14px!important;
    background:rgba(255,255,255,.88)!important;
    color:var(--single-award-color)!important;
    cursor:help!important;
    box-shadow:0 7px 16px var(--single-award-shadow)!important;
}
.single-photo-award--place-1{--single-award-color:#b77908;--single-award-border:rgba(203,146,29,.48);--single-award-shadow:rgba(203,146,29,.20)}
.single-photo-award--place-2{--single-award-color:#64748b;--single-award-border:rgba(100,116,139,.38);--single-award-shadow:rgba(100,116,139,.15)}
.single-photo-award--place-3{--single-award-color:#a45120;--single-award-border:rgba(164,81,32,.38);--single-award-shadow:rgba(164,81,32,.16)}
.single-photo-award svg{
    grid-area:1 / 1!important;
    width:29px!important;
    height:29px!important;
    fill:currentColor!important;
    filter:drop-shadow(0 3px 4px var(--single-award-shadow))!important;
}
.single-photo-award>strong{
    grid-area:1 / 1!important;
    align-self:end!important;
    justify-self:end!important;
    width:16px!important;
    height:16px!important;
    margin:0 -4px -4px 0!important;
    border:1px solid rgba(255,255,255,.92)!important;
    border-radius:999px!important;
    background:var(--single-award-color)!important;
    color:#fff!important;
    font-size:10px!important;
    font-weight:1000!important;
    line-height:14px!important;
    text-align:center!important;
    box-shadow:0 3px 7px var(--single-award-shadow)!important;
}
.single-photo-award__tooltip{
    position:absolute!important;
    left:0!important;
    bottom:calc(100% + 9px)!important;
    z-index:40!important;
    display:grid!important;
    width:min(292px,calc(100vw - 58px))!important;
    gap:3px!important;
    padding:11px 12px!important;
    border:1px solid var(--single-award-border)!important;
    border-radius:13px!important;
    background:#17223a!important;
    color:#fff!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    text-align:left!important;
    box-shadow:0 16px 32px rgba(15,23,42,.24)!important;
    transform:translateY(3px)!important;
    transition:opacity .10s ease,transform .10s ease,visibility .10s ease!important;
}
.single-photo-award__tooltip::after{
    position:absolute!important;
    left:16px!important;
    bottom:-6px!important;
    width:11px!important;
    height:11px!important;
    border-right:1px solid var(--single-award-border)!important;
    border-bottom:1px solid var(--single-award-border)!important;
    background:#17223a!important;
    content:""!important;
    transform:rotate(45deg)!important;
}
.single-photo-award__tooltip strong{color:#fff!important;font-size:13px!important;line-height:1.25!important}
.single-photo-award__tooltip span{color:#dbeafe!important;font-size:12px!important;font-weight:850!important;line-height:1.3!important}
.single-photo-award__tooltip small{color:#b9c8df!important;font-size:11px!important;font-weight:750!important;line-height:1.3!important}
.single-photo-award:hover .single-photo-award__tooltip,
.single-photo-award:focus .single-photo-award__tooltip,
.single-photo-award:focus-visible .single-photo-award__tooltip{
    opacity:1!important;
    visibility:visible!important;
    transform:translateY(0)!important;
}
.single-photo-award:focus-visible{
    outline:3px solid rgba(36,124,255,.28)!important;
    outline-offset:2px!important;
}
html[data-theme="dark"] .single-photo-awards{
    border-color:#4d5564!important;
    background:linear-gradient(145deg,#2d2b28,#3c3427)!important;
}
html[data-theme="dark"] .single-photo-awards__head,
html[data-theme="dark"] .single-photo-awards__head b{color:#f0c978!important}
html[data-theme="dark"] .single-photo-awards__head b{border-color:#69583b!important;background:#332e28!important}
html[data-theme="dark"] .single-photo-award{background:rgba(13,22,37,.72)!important}
html[data-theme="neon"] .single-photo-awards{
    border-color:rgba(255,198,87,.36)!important;
    background:linear-gradient(145deg,rgba(60,42,18,.90),rgba(44,25,36,.96))!important;
    box-shadow:0 0 22px rgba(255,176,65,.10)!important;
}
html[data-theme="neon"] .single-photo-awards__head,
html[data-theme="neon"] .single-photo-awards__head b{color:#ffd88a!important}
html[data-theme="neon"] .single-photo-awards__head b{border-color:rgba(255,198,87,.36)!important;background:rgba(18,8,35,.72)!important}
html[data-theme="neon"] .single-photo-award{background:rgba(18,8,35,.74)!important;box-shadow:0 0 18px var(--single-award-shadow)!important}
html[data-theme="neon"] .single-photo-award--place-1{--single-award-color:#ffd166;--single-award-shadow:rgba(255,209,102,.18)}
html[data-theme="neon"] .single-photo-award--place-2{--single-award-color:#cbd5e1;--single-award-shadow:rgba(203,213,225,.14)}
html[data-theme="neon"] .single-photo-award--place-3{--single-award-color:#e69a6b;--single-award-shadow:rgba(230,154,107,.16)}
@media(max-width:720px){
    .single-photo-awards{padding:10px!important}
    .single-photo-award{width:42px!important;height:42px!important;border-radius:13px!important}
    .single-photo-award svg{width:27px!important;height:27px!important}
    .single-photo-award>strong{margin:0 -4px -4px 0!important}
}



/* PATCH 2026-06-08: compact delete control for terminal rows in the admin payment journal. */
.admin-payment-delete-form{margin:0;display:inline-flex;align-items:center}
.admin-payment-row-actions .admin-payment-delete-button{min-width:42px;width:42px;justify-self:end;padding-inline:0;font-size:18px;line-height:1}
.admin-payment-delete-panel{border-color:rgba(220,38,38,.22)}
.admin-payment-delete-panel .panel__head p{max-width:860px}

/* PATCH 2026-06-09: visible mobile-friendly validation for advertisement forms. */
.ad-form-validation-summary{
    margin:0 0 16px;
    padding:13px 15px;
    border:1px solid #f0a3aa;
    border-radius:14px;
    color:#9b1c2b;
    background:#fff0f2;
    box-shadow:0 10px 24px rgba(160,35,50,.08);
    font-size:14px;
    line-height:1.45;
}
.ad-new-field.is-invalid input,
.ad-new-field.is-invalid select,
.ad-new-field.is-invalid textarea,
.ad-new-field input.is-invalid,
.ad-new-field select.is-invalid,
.ad-new-field textarea.is-invalid,
.ad-new-confirm.is-invalid,
.ad-looking-multi.is-invalid .search-multi-dropdown summary,
.ad-looking-multi .search-multi-dropdown summary.is-invalid{
    border-color:#dc3545!important;
    box-shadow:0 0 0 4px rgba(220,53,69,.14)!important;
}
.ad-new-field-error{
    display:block;
    color:#b42332;
    font-size:12px;
    font-weight:800;
    line-height:1.35;
}
.ad-new-confirm.is-invalid{
    border-radius:14px;
    outline:2px solid rgba(220,53,69,.72);
    outline-offset:5px;
}
html[data-theme="dark"] .ad-form-validation-summary{
    color:#ffb4be;
    background:#482830;
    border-color:#a04b5b;
    box-shadow:0 10px 24px rgba(0,0,0,.18);
}
html[data-theme="dark"] .ad-new-field-error{color:#ffadb8}
html[data-theme="neon"] .ad-form-validation-summary{
    color:#ffc0d9;
    background:rgba(72,20,42,.94);
    border-color:rgba(208,72,126,.66);
    box-shadow:0 12px 28px rgba(0,0,0,.24);
}
html[data-theme="neon"] .ad-new-field-error{color:#ffb0cb}
@media (max-width:700px){
    .ad-form-validation-summary{position:relative;margin-bottom:14px;font-size:13px}
    .ad-new-field-error{font-size:12px}
}

/* PATCH 2026-06-09: anonymous mutually-confirmed successful meetings module. */
.topbar-successful-meetings .topbar-members__label{color:#1a8b69}
.topbar-successful-meetings .topbar-members__digit{border-color:#bfe8d9;background:linear-gradient(180deg,#fff 0%,#effbf6 100%);color:#11624d;box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 4px 10px rgba(20,132,98,.10)}
.successful-meeting-card{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;margin:16px 0;padding:17px 18px;border:1px solid #cce9df;border-radius:20px;background:linear-gradient(145deg,#f7fffc,#effaf6);box-shadow:0 12px 28px rgba(20,132,98,.07)}
.successful-meeting-card__icon{display:grid;place-items:center;width:44px;height:44px;border-radius:16px;background:#dff7ed;font-size:23px}
.successful-meeting-card__body{display:grid;gap:10px;min-width:0}.successful-meeting-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}.successful-meeting-card h2{margin:2px 0 0;color:#164d40;font-size:20px}.successful-meeting-card p{margin:0;color:#4e6d66;line-height:1.55}.successful-meeting-card__text{max-width:960px}.successful-meeting-card__privacy{font-size:13px}.successful-meeting-card__pair-count{display:inline-flex;padding:5px 9px;border-radius:999px;background:#e0f5ed;color:#23715e;font-size:12px;font-weight:850}.successful-meeting-card__notice{display:grid;gap:8px;padding:12px 13px;border:1px solid #cce9df;border-radius:14px;background:rgba(255,255,255,.72)}.successful-meeting-card__notice--action{border-color:#a8dbc9;background:#f7fffb}.successful-meeting-card__notice--waiting{border-color:#c7d8ef;background:#f7faff}.successful-meeting-card__notice strong{color:#1f4f45}.successful-meeting-card__notice small,.successful-meeting-card__reason{display:block;color:#698078;font-size:12px;line-height:1.45}.successful-meeting-card__actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.successful-meeting-card form{margin:0}.successful-meeting-card__reject{border-color:#efc7cd!important;color:#b13b4d!important;background:#fff7f8!important}
.admin-successful-meetings-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}.admin-successful-meetings-head p{max-width:920px}.admin-successful-meetings-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.admin-successful-meetings-stat{display:grid;gap:5px;margin:0;padding:16px}.admin-successful-meetings-stat strong{color:#1d385f;font-size:28px;line-height:1}.admin-successful-meetings-stat span{color:#65748b;font-size:13px;font-weight:850}.admin-successful-meetings-filter-form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}.admin-successful-meetings-filter-form label{display:grid;gap:5px;min-width:min(100%,220px);color:#53627a;font-size:13px;font-weight:850}.admin-successful-meetings-filter-form input{min-width:min(100%,300px)}.admin-successful-meetings-privacy-note{padding:11px 13px;border:1px solid #cce9df;border-radius:13px;background:#f6fffb;color:#4f6e65;font-size:13px}.admin-successful-meetings-table{min-width:1140px}.admin-successful-meetings-table td{vertical-align:top}.admin-successful-meetings-table small{color:#7b8798}.admin-successful-meetings-pair-arrow{color:#94a3b8}.successful-meeting-status{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:11px;font-weight:900;white-space:nowrap}.successful-meeting-status--pending{background:#fff7df;color:#9b6800}.successful-meeting-status--confirmed{background:#dcfce7;color:#187242}.successful-meeting-status--rejected{background:#ffe5e8;color:#a93548}.successful-meeting-status--expired{background:#e9eef5;color:#5c6d83}.successful-meeting-status--hidden{margin-top:5px;background:#f2e8ff;color:#7243a5}.admin-successful-meeting-row--hidden{opacity:.76}.admin-successful-meetings-actions{display:grid;gap:7px;min-width:154px}.admin-successful-meetings-actions form{margin:0}.admin-successful-meetings-actions .button-link{width:100%;justify-content:center;text-align:center}.admin-successful-meetings-delete{border-color:#f0bdc5!important;background:#fff5f6!important;color:#b53649!important}
html[data-theme="dark"] .topbar-successful-meetings .topbar-members__label{color:#91d7c4}html[data-theme="dark"] .topbar-successful-meetings .topbar-members__digit{border-color:#356b60;background:linear-gradient(180deg,#1c3f3a,#17322f);color:#d8fff4}html[data-theme="dark"] .successful-meeting-card,html[data-theme="dark"] .successful-meeting-card__notice,html[data-theme="dark"] .admin-successful-meetings-privacy-note{border-color:#315b56!important;background:linear-gradient(145deg,#172d2c,#152522)!important}html[data-theme="dark"] .successful-meeting-card h2,html[data-theme="dark"] .successful-meeting-card__notice strong{color:#d9fff4!important}html[data-theme="dark"] .successful-meeting-card p,html[data-theme="dark"] .successful-meeting-card__notice small,html[data-theme="dark"] .successful-meeting-card__reason,html[data-theme="dark"] .admin-successful-meetings-privacy-note{color:#afd1c8!important}html[data-theme="dark"] .successful-meeting-card__icon,html[data-theme="dark"] .successful-meeting-card__pair-count{background:#214640!important;color:#b8f7e6!important}html[data-theme="dark"] .admin-successful-meetings-stat strong{color:#edf4ff!important}html[data-theme="dark"] .admin-successful-meetings-stat span,html[data-theme="dark"] .admin-successful-meetings-filter-form label{color:#b7c5da!important}
html[data-theme="neon"] .topbar-successful-meetings .topbar-members__label{color:#8ef5d4!important}html[data-theme="neon"] .topbar-successful-meetings .topbar-members__digit{border-color:rgba(67,216,176,.40)!important;background:linear-gradient(180deg,rgba(17,58,56,.96),rgba(13,39,40,.98))!important;color:#cafff1!important}html[data-theme="neon"] .successful-meeting-card,html[data-theme="neon"] .successful-meeting-card__notice,html[data-theme="neon"] .admin-successful-meetings-privacy-note{border-color:rgba(68,219,182,.34)!important;background:linear-gradient(145deg,rgba(11,43,44,.95),rgba(15,26,43,.97))!important;box-shadow:0 14px 32px rgba(0,0,0,.18)!important}html[data-theme="neon"] .successful-meeting-card h2,html[data-theme="neon"] .successful-meeting-card__notice strong{color:#dbfff6!important}html[data-theme="neon"] .successful-meeting-card p,html[data-theme="neon"] .successful-meeting-card__notice small,html[data-theme="neon"] .successful-meeting-card__reason,html[data-theme="neon"] .admin-successful-meetings-privacy-note{color:#a8d9d0!important}
@media(max-width:1100px){.topbar-brand-cluster{flex-wrap:wrap}.topbar-successful-meetings{padding-left:11px}}
@media(max-width:760px){.admin-successful-meetings-head{align-items:flex-start;flex-direction:column}.admin-successful-meetings-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-successful-meetings-filter-form{align-items:stretch;flex-direction:column}.admin-successful-meetings-filter-form label,.admin-successful-meetings-filter-form input,.admin-successful-meetings-filter-form select,.admin-successful-meetings-filter-form button{width:100%;min-width:0}}
@media(max-width:640px){.topbar-brand-cluster{align-items:center;gap:7px}.topbar-successful-meetings{flex-basis:auto;padding-left:7px}.topbar-successful-meetings .topbar-members__label{max-width:88px;overflow:hidden;text-overflow:ellipsis}.successful-meeting-card{grid-template-columns:1fr;gap:10px;padding:14px}.successful-meeting-card__icon{width:38px;height:38px;border-radius:13px;font-size:20px}.successful-meeting-card h2{font-size:18px}.successful-meeting-card__actions{align-items:stretch;flex-direction:column}.successful-meeting-card__actions form,.successful-meeting-card__actions .button-link{width:100%}}
@media(max-width:420px){.topbar-successful-meetings .topbar-members__label{max-width:70px}.topbar-successful-meetings .topbar-members__digit{font-size:11px}.topbar-successful-meetings{gap:2px}.admin-successful-meetings-stats{gap:8px}.admin-successful-meetings-stat{padding:12px}.admin-successful-meetings-stat strong{font-size:24px}}

/* PATCH 2026-06-09: explicit short odometer label on narrow screens. */
.topbar-successful-meetings__label-compact{display:none}
@media(max-width:640px){.topbar-successful-meetings__label-full{display:none}.topbar-successful-meetings__label-compact{display:inline}.topbar-successful-meetings .topbar-members__label{max-width:none;overflow:visible;text-overflow:clip}}

/* PATCH 2026-06-09: seven-day activity streak, payment funnel and starter wallet explanation. */
.paid-balance-card__starter{display:block;margin-top:10px;padding:10px 12px;border:1px solid #f0d59b;border-radius:13px;background:#fff9e9;color:#78551b;line-height:1.5}
.activity-streak-card{display:grid;gap:16px;margin-top:16px;border:1px solid #e8d9a4;background:linear-gradient(145deg,#fffdf7,#fff8e4);box-shadow:0 14px 30px rgba(154,113,18,.08)}
.activity-streak-card.is-ready{border-color:#edbd4a;box-shadow:0 16px 36px rgba(190,130,14,.15)}
.activity-streak-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}.activity-streak-card__head h2{margin:3px 0 6px;color:#5e4317}.activity-streak-card__head p{margin:0;max-width:860px;color:#78643c;line-height:1.5}.activity-streak-card__progress{display:grid;place-items:center;min-width:96px;padding:11px 13px;border:1px solid #ecd497;border-radius:16px;background:rgba(255,255,255,.72);text-align:center}.activity-streak-card__progress strong{color:#8d610e;font-size:27px;line-height:1}.activity-streak-card__progress small{margin-top:5px;color:#8c7853;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}
.activity-streak-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px}.activity-streak-day{display:grid;align-content:start;gap:7px;min-height:174px;padding:11px;border:1px solid #eee0b9;border-radius:15px;background:rgba(255,255,255,.68)}.activity-streak-day__number{color:#9b824d;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.activity-streak-day__icon{font-size:23px}.activity-streak-day strong{color:#634d24;font-size:13px;line-height:1.25}.activity-streak-day small{color:#8a7857;font-size:11px;line-height:1.35}.activity-streak-day em{align-self:end;color:#7b632b;font-size:10px;font-style:normal;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.activity-streak-day--claimed{border-color:#cde6d7;background:#f4fcf7}.activity-streak-day--claimed .activity-streak-day__number,.activity-streak-day--claimed em{color:#267348}.activity-streak-day--available{border-color:#edb93e;background:linear-gradient(145deg,#fff4c9,#fffdf2);box-shadow:0 8px 18px rgba(182,123,13,.14)}.activity-streak-day--available .activity-streak-day__number,.activity-streak-day--available em{color:#9b6500}.activity-streak-card__footer{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.activity-streak-card__footer p{margin:0;max-width:850px;color:#7e6b48;font-size:13px;line-height:1.45}.activity-streak-card__footer form{margin:0}
html[data-theme="dark"] .paid-balance-card__starter{border-color:#78662e;background:#3b351f;color:#f1df9f}html[data-theme="dark"] .activity-streak-card{border-color:#665b34;background:linear-gradient(145deg,#2d291b,#252419);box-shadow:0 14px 30px rgba(0,0,0,.18)}html[data-theme="dark"] .activity-streak-card.is-ready{border-color:#9b7932}html[data-theme="dark"] .activity-streak-card__head h2{color:#f6e7b5}html[data-theme="dark"] .activity-streak-card__head p,html[data-theme="dark"] .activity-streak-card__footer p{color:#cfbf93}html[data-theme="dark"] .activity-streak-card__progress{border-color:#716337;background:#332f20}html[data-theme="dark"] .activity-streak-card__progress strong{color:#f4cc6a}html[data-theme="dark"] .activity-streak-card__progress small{color:#c5b37f}html[data-theme="dark"] .activity-streak-day{border-color:#504a31;background:#302e21}html[data-theme="dark"] .activity-streak-day strong{color:#f1e2b7}html[data-theme="dark"] .activity-streak-day small{color:#c7b78e}html[data-theme="dark"] .activity-streak-day--claimed{border-color:#37684d;background:#243b2d}html[data-theme="dark"] .activity-streak-day--available{border-color:#a77c27;background:linear-gradient(145deg,#493c1b,#342f1d)}
html[data-theme="neon"] .paid-balance-card__starter{border-color:rgba(238,191,69,.52);background:rgba(68,52,21,.72);color:#ffe7a0}html[data-theme="neon"] .activity-streak-card{border-color:rgba(243,194,70,.43);background:linear-gradient(145deg,rgba(49,38,20,.96),rgba(28,31,42,.98));box-shadow:0 15px 32px rgba(0,0,0,.2)}html[data-theme="neon"] .activity-streak-card.is-ready{box-shadow:0 0 0 1px rgba(255,203,75,.16),0 17px 38px rgba(0,0,0,.24)}html[data-theme="neon"] .activity-streak-card__head h2{color:#ffefbd}html[data-theme="neon"] .activity-streak-card__head p,html[data-theme="neon"] .activity-streak-card__footer p{color:#d6c69b}html[data-theme="neon"] .activity-streak-card__progress{border-color:rgba(235,191,73,.43);background:rgba(67,52,24,.74)}html[data-theme="neon"] .activity-streak-card__progress strong{color:#ffd973}html[data-theme="neon"] .activity-streak-day{border-color:rgba(238,201,107,.22);background:rgba(44,41,34,.82)}html[data-theme="neon"] .activity-streak-day strong{color:#f7e9c4}html[data-theme="neon"] .activity-streak-day small{color:#c7ba99}html[data-theme="neon"] .activity-streak-day--claimed{border-color:rgba(75,220,143,.38);background:rgba(27,66,46,.72)}html[data-theme="neon"] .activity-streak-day--available{border-color:rgba(255,204,72,.62);background:linear-gradient(145deg,rgba(81,61,20,.93),rgba(48,43,28,.93))}
@media(max-width:1160px){.activity-streak-days{grid-template-columns:repeat(4,minmax(0,1fr))}.activity-streak-day{min-height:148px}}@media(max-width:720px){.activity-streak-card{padding:14px}.activity-streak-card__head{gap:10px}.activity-streak-card__progress{min-width:78px}.activity-streak-days{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.activity-streak-day{min-height:137px;padding:10px}.activity-streak-card__footer{align-items:stretch;flex-direction:column}.activity-streak-card__footer form,.activity-streak-card__footer .button-link{width:100%}}

/* Anti-refresh protection for user ads */
.status--deleted{background:#eef2f7;color:#64748b}
.ad-new-antirefresh-card{border-color:#d7e4fb;background:linear-gradient(180deg,#f8fbff,#f2f7ff)}
.ad-new-antirefresh-card strong{display:block;margin-bottom:6px;color:#1d4f91}
.ad-new-antirefresh-card p{margin:0;color:#526175}
.cabinet-deleted-ads{border-style:dashed}
.cabinet-deleted-ads .panel__head p{max-width:820px}
html[data-theme="dark"] .status--deleted{background:#283240!important;color:#b5c2d6!important}
html[data-theme="dark"] .ad-new-antirefresh-card{border-color:#304864;background:linear-gradient(180deg,#1d2d42,#182536)}
html[data-theme="dark"] .ad-new-antirefresh-card strong{color:#8db6ff}
html[data-theme="dark"] .ad-new-antirefresh-card p{color:#b8c7db}
html[data-theme="neon"] .status--deleted{background:#172536!important;color:#a6b9d4!important}
html[data-theme="neon"] .ad-new-antirefresh-card{border-color:#1e8bff;background:linear-gradient(180deg,#081b31,#071525);box-shadow:0 0 14px rgba(30,139,255,.14)}
html[data-theme="neon"] .ad-new-antirefresh-card strong{color:#72b7ff}
html[data-theme="neon"] .ad-new-antirefresh-card p{color:#b3c8df}


/* ADMIN PHOTO CATALOG: paginated lazy previews */
.admin-photo-pagination-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 14px;padding:10px 12px;border:1px solid rgba(96,118,170,.16);border-radius:14px;background:rgba(255,255,255,.82)}
.admin-photo-pagination{margin:0!important}
.admin-photo-pagination--bottom{margin-top:16px!important;justify-content:center}
.admin-photo-card__preview-link{display:block;min-height:180px;background:#eef3fb}
.admin-photo-card__preview-placeholder{height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:linear-gradient(135deg,#f3f6fb,#e8eef8);color:#64748b;text-align:center;padding:12px}
.admin-photo-card__preview-placeholder span{font-weight:850;color:#475569}
.admin-photo-card__preview-placeholder small{font-size:12px}
html[data-theme="dark"] .admin-photo-pagination-bar{background:rgba(14,24,43,.92);border-color:rgba(113,154,217,.28)}
html[data-theme="dark"] .admin-photo-card__preview-link{background:#15233a}
html[data-theme="dark"] .admin-photo-card__preview-placeholder{background:linear-gradient(135deg,#15233a,#1d2f4d);color:#9fb0cb}
html[data-theme="dark"] .admin-photo-card__preview-placeholder span{color:#dbe8ff}
html[data-theme="neon"] .admin-photo-pagination-bar{background:rgba(5,16,31,.92)!important;border-color:rgba(74,199,255,.34)!important;box-shadow:0 0 18px rgba(36,173,255,.10)}
html[data-theme="neon"] .admin-photo-card__preview-link{background:#071a2d}
html[data-theme="neon"] .admin-photo-card__preview-placeholder{background:linear-gradient(135deg,#071a2d,#0b2941);color:#8acfff}
html[data-theme="neon"] .admin-photo-card__preview-placeholder span{color:#d7f5ff}
@media (max-width:640px){.admin-photo-pagination-bar{align-items:flex-start}.admin-photo-pagination{width:100%}.admin-photo-card__preview-link,.admin-photo-card__preview-placeholder{min-height:160px;height:160px}}

/* HOTFIX 2026-06-10: visible state while a failed lazy admin-photo preview is retried. */
.admin-photo-card.is-preview-retrying .admin-photo-card__preview-link{background:linear-gradient(135deg,#eef4ff,#f8fbff)}
.admin-photo-card.is-preview-error .admin-photo-card__preview-link{background:linear-gradient(135deg,#fff7ed,#fff)}

/* Advertising slots: public home placement and admin module */
.home-advertising-slot{position:relative;display:block;overflow:hidden;padding:0!important;border-color:#cfdcf5!important;background:linear-gradient(145deg,#f6fbff,#f6f1ff)!important;color:#19345e!important;text-decoration:none!important;box-shadow:0 16px 34px rgba(46,91,173,.11)!important;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.home-advertising-slot:hover{transform:translateY(-2px);border-color:#aabef0!important;box-shadow:0 20px 42px rgba(46,91,173,.17)!important;text-decoration:none!important}
.home-advertising-slot__badge{position:absolute;left:10px;top:10px;z-index:2;display:inline-flex;align-items:center;min-height:24px;padding:0 9px;border-radius:999px;background:rgba(17,39,81,.78);color:#fff;font-size:11px;font-weight:900;letter-spacing:.05em;text-transform:uppercase;backdrop-filter:blur(6px)}
.home-advertising-slot--free .home-advertising-slot__badge{background:linear-gradient(135deg,rgba(49,121,255,.92),rgba(117,82,240,.92))}
.home-advertising-slot__media{display:block;aspect-ratio:11/6;overflow:hidden;background:#eef5ff}
.home-advertising-slot__media img{display:block;width:100%;height:100%;object-fit:cover}
.home-advertising-slot__meta{display:grid;gap:3px;padding:11px 13px 13px;background:rgba(255,255,255,.88)}
.home-advertising-slot__meta strong{color:#183a6d;font-size:15px;line-height:1.2}
.home-advertising-slot__meta small{color:#71809b;font-size:12px;line-height:1.3}
.feedback-intro-modal--advertising .contact-warning-modal__icon{background:linear-gradient(135deg,#e6f1ff,#eee8ff);color:#4b63dc}
.feedback-advertising-requirements{margin:14px 0;padding:14px 15px;border:1px solid #cfddf8;border-radius:15px;background:linear-gradient(145deg,#f7fbff,#f8f5ff)}
.feedback-advertising-requirements>strong{display:block;color:#244879;font-size:16px}
.feedback-advertising-requirements ul{margin:9px 0;padding-left:20px;color:#53657d}
.feedback-advertising-requirements li+li{margin-top:4px}
.feedback-advertising-requirements p{margin:10px 0 0!important;color:#596b84!important;font-size:14px}
.admin-advertising-head p{max-width:900px}
.admin-advertising-migration-warning{display:grid;gap:5px;border-color:#f0cd7c!important;background:#fffaf0!important;color:#7c5511!important}
.admin-advertising-list{display:grid;gap:18px}
.admin-advertising-card{padding:20px}
.admin-advertising-card__intro{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.admin-advertising-card__intro h2{margin:5px 0 7px;color:#1b365e;font-size:23px}
.admin-advertising-card__intro p{max-width:780px;margin:0;color:#6c7b92}
.admin-advertising-card__stats{display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));gap:10px;min-width:min(100%,300px)}
.admin-advertising-card__stats span{display:grid;gap:3px;padding:12px;border:1px solid #d9e4f3;border-radius:14px;background:#f9fbff}
.admin-advertising-card__stats strong{color:#215bb7;font-size:23px;line-height:1}
.admin-advertising-card__stats small{color:#75839a;font-size:12px;line-height:1.25}
.admin-advertising-form{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px}
.admin-advertising-form__main{display:grid;gap:13px}
.admin-advertising-form label,.admin-advertising-preview label{display:grid;gap:6px;color:#42536b;font-size:13px;font-weight:850}
.admin-advertising-form input,.admin-advertising-form textarea,.admin-advertising-form select{width:100%;border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:#fff;color:var(--text);font:inherit}
.admin-advertising-form textarea{resize:vertical}
.admin-advertising-form label small,.admin-advertising-upload small{display:block;color:#8390a3;font-weight:650;line-height:1.35}
.admin-advertising-form__row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.admin-advertising-form__row--wide{grid-template-columns:repeat(2,minmax(0,1fr))}
.admin-advertising-preview{display:grid;align-content:start;gap:11px;padding:14px;border:1px solid #d9e4f3;border-radius:16px;background:linear-gradient(145deg,#fbfdff,#f8f6ff)}
.admin-advertising-preview h3{margin:0;color:#27436d;font-size:17px}
.admin-advertising-preview__media{overflow:hidden;aspect-ratio:11/6;border:1px solid #cad9ee;border-radius:13px;background:#edf4ff}
.admin-advertising-preview__media img{display:block;width:100%;height:100%;object-fit:cover}
.admin-advertising-upload input{padding:8px;background:#fff}
.admin-advertising-remove{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:7px!important;color:#9c3d4a!important}
.admin-advertising-remove input{width:auto!important}
.admin-advertising-preview__note{margin:0;color:#718099;font-size:12px;line-height:1.45}
.admin-advertising-form__actions{grid-column:1/-1;display:flex;justify-content:flex-end}
.admin-advertising-form__actions button[disabled]{cursor:not-allowed;opacity:.55}
html[data-theme="dark"] .home-advertising-slot{border-color:#334c73!important;background:linear-gradient(145deg,#1b2f4d,#252544)!important}
html[data-theme="dark"] .home-advertising-slot__meta{background:rgba(22,37,60,.96)!important}
html[data-theme="dark"] .home-advertising-slot__meta strong{color:#e5efff!important}
html[data-theme="dark"] .home-advertising-slot__meta small{color:#aebdd4!important}
html[data-theme="dark"] .feedback-advertising-requirements,html[data-theme="dark"] .admin-advertising-preview,html[data-theme="dark"] .admin-advertising-card__stats span{border-color:#354b6a!important;background:linear-gradient(145deg,#1c2b43,#1b263a)!important}
html[data-theme="dark"] .feedback-advertising-requirements>strong,html[data-theme="dark"] .admin-advertising-card__intro h2,html[data-theme="dark"] .admin-advertising-preview h3{color:#dfebff!important}
html[data-theme="dark"] .feedback-advertising-requirements ul,html[data-theme="dark"] .feedback-advertising-requirements p,html[data-theme="dark"] .admin-advertising-card__intro p,html[data-theme="dark"] .admin-advertising-preview__note,html[data-theme="dark"] .admin-advertising-card__stats small{color:#acbdd5!important}
html[data-theme="dark"] .admin-advertising-form input,html[data-theme="dark"] .admin-advertising-form textarea,html[data-theme="dark"] .admin-advertising-form select{border-color:#344b6a!important;background:#16243a!important;color:#e8efff!important}
html[data-theme="neon"] .home-advertising-slot{border-color:rgba(115,83,255,.46)!important;background:linear-gradient(145deg,rgba(13,10,36,.98),rgba(24,12,56,.98))!important;box-shadow:0 14px 36px rgba(0,0,0,.28),0 0 24px rgba(92,56,230,.14)!important}
html[data-theme="neon"] .home-advertising-slot__meta{background:rgba(16,10,39,.96)!important}
html[data-theme="neon"] .home-advertising-slot__meta strong{color:#f2f4ff!important}
html[data-theme="neon"] .home-advertising-slot__meta small{color:#bdc6ff!important}
html[data-theme="neon"] .feedback-advertising-requirements,html[data-theme="neon"] .admin-advertising-preview,html[data-theme="neon"] .admin-advertising-card__stats span{border-color:rgba(111,82,242,.42)!important;background:linear-gradient(145deg,rgba(16,12,48,.98),rgba(29,14,66,.98))!important}
html[data-theme="neon"] .feedback-advertising-requirements>strong,html[data-theme="neon"] .admin-advertising-card__intro h2,html[data-theme="neon"] .admin-advertising-preview h3{color:#f4f5ff!important}
html[data-theme="neon"] .feedback-advertising-requirements ul,html[data-theme="neon"] .feedback-advertising-requirements p,html[data-theme="neon"] .admin-advertising-card__intro p,html[data-theme="neon"] .admin-advertising-preview__note,html[data-theme="neon"] .admin-advertising-card__stats small{color:#c1c9fa!important}
html[data-theme="neon"] .admin-advertising-form input,html[data-theme="neon"] .admin-advertising-form textarea,html[data-theme="neon"] .admin-advertising-form select{border-color:rgba(111,82,242,.46)!important;background:rgba(12,8,31,.94)!important;color:#f1f3ff!important}
@media(max-width:1100px){.home-side{align-items:start}.admin-advertising-form{grid-template-columns:1fr}.admin-advertising-preview{max-width:520px}.admin-advertising-form__actions{grid-column:auto}}
@media(max-width:760px){.admin-advertising-card__intro{flex-direction:column}.admin-advertising-card__stats{width:100%;min-width:0}.admin-advertising-form__row,.admin-advertising-form__row--wide{grid-template-columns:1fr}.admin-advertising-card{padding:15px}.home-advertising-slot__meta strong{font-size:14px}}

/* Advertising guest inquiries and admin inquiry journal */
.advertising-inquiry-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.advertising-inquiry-head p{max-width:760px}.advertising-inquiry-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.8fr);gap:22px}.advertising-inquiry-requirements{padding:18px;border:1px solid #cfddf8;border-radius:16px;background:linear-gradient(145deg,#f7fbff,#f8f5ff)}.advertising-inquiry-requirements h2{margin:7px 0 8px;color:#244879}.advertising-inquiry-requirements ul{padding-left:20px;color:#53657d}.advertising-inquiry-form{display:grid;gap:13px}.advertising-inquiry-form label{display:grid;gap:6px;font-weight:850;color:#42536b}.advertising-inquiry-form input,.advertising-inquiry-form textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:11px 12px;background:#fff;color:var(--text);font:inherit}.advertising-inquiry-form small{color:#7c899b;font-weight:650}.advertising-inquiry-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}.advertising-inquiry-success{display:grid;gap:12px;max-width:760px}.advertising-inquiry-success strong{font-size:24px;color:#276447}.admin-advertising-inquiries{margin-top:18px}.admin-advertising-inquiries__badge{display:inline-flex;padding:6px 10px;border-radius:999px;background:#e9f3ff;color:#2360b4;font-weight:900}.admin-advertising-inquiries__list{display:grid;gap:12px}.admin-advertising-inquiry{padding:15px;border:1px solid #d9e4f3;border-radius:15px;background:#fbfdff}.admin-advertising-inquiry.is-new{border-color:#a9c7ff;background:#f5f9ff}.admin-advertising-inquiry__head{display:flex;justify-content:space-between;gap:12px}.admin-advertising-inquiry__head small{display:block;margin-top:4px;color:#76869d}.admin-advertising-inquiry__head span{align-self:flex-start;padding:4px 8px;border-radius:999px;background:#edf4ff;color:#315f9f;font-size:12px;font-weight:850}.admin-advertising-inquiry dl{display:grid;gap:8px;margin:12px 0}.admin-advertising-inquiry dl div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:8px}.admin-advertising-inquiry dt{font-weight:850;color:#60718a}.admin-advertising-inquiry dd{margin:0;overflow-wrap:anywhere}.admin-advertising-inquiry__form{display:grid;grid-template-columns:180px minmax(0,1fr) auto;gap:10px;align-items:end}.admin-advertising-inquiry__form label{display:grid;gap:5px;color:#52637c;font-size:13px;font-weight:850}.admin-advertising-inquiry__form select,.admin-advertising-inquiry__form textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:9px 10px;background:#fff;color:var(--text);font:inherit}.admin-advertising-inquiry__form button{min-height:42px}html[data-theme="dark"] .advertising-inquiry-requirements,html[data-theme="dark"] .admin-advertising-inquiry{border-color:#354b6a;background:linear-gradient(145deg,#1c2b43,#1b263a)}html[data-theme="dark"] .advertising-inquiry-requirements h2,html[data-theme="dark"] .admin-advertising-inquiry strong{color:#dfebff}html[data-theme="dark"] .advertising-inquiry-form input,html[data-theme="dark"] .advertising-inquiry-form textarea,html[data-theme="dark"] .admin-advertising-inquiry__form select,html[data-theme="dark"] .admin-advertising-inquiry__form textarea{border-color:#3e5576;background:#172437;color:#eef5ff}@media(max-width:820px){.advertising-inquiry-grid{grid-template-columns:1fr}.admin-advertising-inquiry__form{grid-template-columns:1fr}.advertising-inquiry-head{display:grid}.admin-advertising-inquiry dl div{grid-template-columns:1fr;gap:2px}}

/* HOTFIX 2026-06-10: compact home sidebar stack (cities -> safety -> advertising). */
.home-side{
    align-content:start!important;
    align-self:start!important;
    grid-auto-rows:max-content!important;
    gap:10px!important;
}
.home-side>.panel{
    margin-bottom:0!important;
    align-self:start!important;
}
.home-side .city-panel{
    min-height:0!important;
    padding:15px 14px 14px!important;
}
.home-side .city-panel h2{
    margin-bottom:10px!important;
    font-size:16px!important;
    line-height:1.2!important;
}
.home-side .city-panel__chips{
    max-width:100%!important;
    gap:5px!important;
}
.home-side .city-panel__chips a{
    min-height:25px!important;
    padding:0 8px!important;
    gap:4px!important;
    font-size:12px!important;
    line-height:1!important;
}
.home-side .city-panel__count{
    font-size:10px!important;
}
.home-side .city-panel__art{
    width:150px!important;
    right:-7px!important;
    bottom:-2px!important;
    opacity:.58!important;
}
.home-side .safety-panel{
    min-height:132px!important;
    padding:15px 14px!important;
}
.home-side .safety-panel h2{
    margin-bottom:8px!important;
    font-size:16px!important;
    line-height:1.2!important;
}
.home-side .safety-panel p{
    max-width:190px!important;
    font-size:13px!important;
    line-height:1.45!important;
}
.home-side .safety-panel__art{
    right:10px!important;
    bottom:7px!important;
    width:88px!important;
    max-width:34%!important;
}
.home-side .home-advertising-slot__meta{
    gap:2px!important;
    padding:9px 11px 10px!important;
}
.home-side .home-advertising-slot__meta strong{
    font-size:14px!important;
}
.home-side .home-advertising-slot__meta small{
    font-size:11px!important;
}
@media(max-width:820px){
    .home-side{gap:10px!important}
    .home-side .city-panel{padding:15px!important}
    .home-side .city-panel__art{width:145px!important;opacity:.52!important}
    .home-side .safety-panel{min-height:126px!important}
}

/* HOTFIX 2026-06-10: balanced desktop home sidebar grid + strict advertising text containment. */
@media (min-width:1101px){
    .home-side{
        align-content:stretch!important;
        align-self:stretch!important;
        grid-template-rows:minmax(0,1fr) max-content max-content!important;
        grid-auto-rows:auto!important;
        min-width:0!important;
    }
    .home-side>.city-panel{
        height:100%!important;
    }
}
.home-side>.panel{
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
}
.home-side .home-advertising-slot{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
}
.home-side .home-advertising-slot__media{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
}
.home-side .home-advertising-slot--free .home-advertising-slot__media img{
    max-width:100%!important;
    object-fit:contain!important;
}
.home-side .home-advertising-slot__meta{
    display:grid!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
}
.home-side .home-advertising-slot__meta strong,
.home-side .home-advertising-slot__meta small{
    display:block!important;
    min-width:0!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
}
@media (max-width:1100px){
    .home-side{
        align-content:start!important;
        align-self:start!important;
        grid-template-rows:auto!important;
        grid-auto-rows:max-content!important;
    }
    .home-side>.city-panel{
        height:auto!important;
    }
}

/* PATCH 2026-06-10: lazy horizontal slider for profile visitors. */
.profile-viewers-feed{display:grid;gap:12px;min-width:0}
.profile-viewers-slider{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:stretch;gap:8px;min-width:0}
.profile-viewers-list--slider{display:flex;grid-template-columns:none;gap:12px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;padding:2px 2px 8px;min-width:0}
.profile-viewers-list--slider .profile-viewer-card{flex:0 0 clamp(220px,31vw,286px);scroll-snap-align:start;min-width:0}
.profile-viewers-slider__nav{display:grid;place-items:center;min-width:0;border:1px solid rgba(37,99,235,.18);border-radius:16px;background:rgba(255,255,255,.86);color:var(--primary);font-size:30px;font-weight:900;line-height:1;cursor:pointer;transition:transform .18s ease,opacity .18s ease,border-color .18s ease,background .18s ease}
.profile-viewers-slider__nav:hover:not(:disabled){transform:translateY(-1px);border-color:rgba(37,99,235,.38);background:#fff}
.profile-viewers-slider__nav:disabled{cursor:default;opacity:.38}
.profile-viewers-feed__foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.profile-viewers-status{margin:0;color:var(--muted);font-size:13px}
.profile-viewers-upgrade{font-size:13px;font-weight:900;text-decoration:none}
.profile-viewers-feed.is-loading .profile-viewers-list--slider{opacity:.82}
@media(max-width:640px){.profile-viewers-slider{grid-template-columns:34px minmax(0,1fr) 34px;gap:6px}.profile-viewers-list--slider .profile-viewer-card{flex-basis:min(78vw,260px)}.profile-viewers-slider__nav{border-radius:14px;font-size:26px}}
html[data-theme="dark"] .profile-viewers-slider__nav{background:#22334f!important;border-color:#3b5275!important;color:#b7d2ff!important}
html[data-theme="dark"] .profile-viewers-slider__nav:hover:not(:disabled){background:#2b4265!important;border-color:#5576a3!important}
html[data-theme="neon"] .profile-viewers-slider__nav{background:rgba(25,10,52,.92)!important;border-color:rgba(100,79,201,.38)!important;color:#aab6ff!important}
html[data-theme="neon"] .profile-viewers-slider__nav:hover:not(:disabled){background:rgba(46,23,88,.96)!important;border-color:rgba(140,112,255,.62)!important}
html[data-theme="dark"] .profile-viewer-card{background:#22334f!important;border-color:#3b5275!important;box-shadow:0 10px 25px rgba(0,0,0,.16)!important}
html[data-theme="dark"] .profile-viewer-card:hover{background:#2a4061!important;border-color:#5576a3!important}
html[data-theme="dark"] .profile-viewer-card__body strong{color:#edf4ff!important}
html[data-theme="dark"] .profile-viewer-card__body small,
html[data-theme="dark"] .profile-viewers-status{color:#9db1ce!important}
html[data-theme="dark"] .profile-viewer-card__avatar{background:linear-gradient(135deg,rgba(85,118,163,.36),rgba(121,85,145,.28))!important;color:#b7d2ff!important}
html[data-theme="neon"] .profile-viewer-card{background:rgba(25,10,52,.92)!important;border-color:rgba(100,79,201,.34)!important;box-shadow:0 10px 25px rgba(0,0,0,.22)!important}
html[data-theme="neon"] .profile-viewer-card:hover{background:rgba(43,20,82,.96)!important;border-color:rgba(140,112,255,.58)!important}
html[data-theme="neon"] .profile-viewer-card__body strong{color:#edf2ff!important}
html[data-theme="neon"] .profile-viewer-card__body small,
html[data-theme="neon"] .profile-viewers-status{color:#b7c3ec!important}
html[data-theme="neon"] .profile-viewer-card__avatar{background:linear-gradient(135deg,rgba(94,80,255,.32),rgba(219,69,172,.22))!important;color:#b9c2ff!important}


/* HOTFIX 2026-06-10: readable starter-wallet notice inside dark balance card. */
.paid-balance-card small.paid-balance-card__starter{color:#78551b!important;-webkit-text-fill-color:#78551b;font-weight:800}
html[data-theme="dark"] .paid-balance-card small.paid-balance-card__starter{color:#f1df9f!important;-webkit-text-fill-color:#f1df9f}
html[data-theme="neon"] .paid-balance-card small.paid-balance-card__starter{color:#ffe7a0!important;-webkit-text-fill-color:#ffe7a0}


/* HOTFIX 2026-06-10: public-ad-only popular cities in two balanced columns. */
.home-side .city-panel__chips--columns{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
}
.home-side .city-panel__column{
    display:flex;
    min-width:0;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
}
.home-side .city-panel__chips--columns a{
    display:flex!important;
    width:100%!important;
    min-width:0!important;
    min-height:27px!important;
    justify-content:space-between!important;
    align-items:center!important;
    gap:5px!important;
    padding:5px 7px!important;
    border-radius:10px!important;
    line-height:1.08!important;
    box-sizing:border-box!important;
}
.home-side .city-panel__chips--columns .city-panel__name{
    display:block!important;
    min-width:0!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    font-size:11px!important;
    line-height:1.12!important;
}
.home-side .city-panel__chips--columns .city-panel__count{
    display:inline-flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:15px!important;
    min-height:15px!important;
    padding:0 3px!important;
    border-radius:999px!important;
    background:rgba(255,255,255,.55)!important;
    font-size:9px!important;
    line-height:1!important;
}
.home-side .city-panel__empty{
    position:relative;
    z-index:2;
    max-width:210px;
    margin:0;
    color:var(--muted);
    font-size:13px;
    line-height:1.45;
}
@media (min-width:1101px){
    .home-side .city-panel__chips--columns{
        height:calc(100% - 31px)!important;
        align-items:stretch!important;
    }
    .home-side .city-panel__column{
        height:100%!important;
        justify-content:space-between!important;
    }
}
@media (max-width:1100px){
    .home-side .city-panel__chips--columns{
        height:auto!important;
    }
}
html[data-theme="dark"] .home-side .city-panel__chips--columns .city-panel__count{
    background:rgba(255,255,255,.08)!important;
}
html[data-theme="neon"] .home-side .city-panel__chips--columns .city-panel__count{
    background:rgba(255,255,255,.09)!important;
}

/* PATCH: dark theme home new-profile cards.
   Standard cards must not keep the light white surface; VIP cards retain their bronze treatment. */
html[data-theme="dark"] .home-new-profile-card:not(.home-new-profile-card--vip){
    color:#e7f0ff!important;
    background:linear-gradient(180deg,#1b293f 0%,#182438 100%)!important;
    border-color:#344762!important;
    box-shadow:0 16px 34px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .home-new-profile-card:not(.home-new-profile-card--vip):hover{
    color:#fff!important;
    background:linear-gradient(180deg,#223550 0%,#1c2b42 100%)!important;
    border-color:#4d6e9c!important;
    box-shadow:0 18px 38px rgba(0,0,0,.22)!important;
}
html[data-theme="dark"] .home-new-profile-card:not(.home-new-profile-card--vip) strong{
    color:#dce9f9!important;
}
html[data-theme="dark"] .home-new-profile-card:not(.home-new-profile-card--vip) small{
    color:#a5b5ca!important;
}
html[data-theme="dark"] .home-new-profile-card__photo{
    background:#223550!important;
}

/* PATCH 2026-06-11: keep the public-search “Кого ищу” popup inside its filter panel.
   On desktop the trigger is the rightmost field, so the popup must expand to the left.
   Mobile remains left-aligned because the field occupies the available row width. */
@media (min-width: 761px) {
    .home-search__field--multi-dropdown .search-multi-dropdown.ad-multi-dropdown .ad-multi-dropdown__panel,
    .home-search__field--multi-dropdown .search-multi-dropdown.ad-multi-dropdown .search-multi-dropdown__panel.ad-multi-dropdown__panel {
        left: auto !important;
        right: 0 !important;
        transform: none !important;
    }
}
@media (max-width: 760px) {
    .home-search__field--multi-dropdown .search-multi-dropdown.ad-multi-dropdown .ad-multi-dropdown__panel,
    .home-search__field--multi-dropdown .search-multi-dropdown.ad-multi-dropdown .search-multi-dropdown__panel.ad-multi-dropdown__panel {
        left: 0 !important;
        right: auto !important;
        width: min(300px, calc(100vw - 24px)) !important;
        max-width: min(300px, calc(100vw - 24px)) !important;
        transform: none !important;
    }
}

/* MARKETING GROWTH PACK 2026-06-11: verified profiles, weekend campaign, noticed summary and city SEO pages. */
.profile-verified-badge{
    display:inline-grid;
    place-items:center;
    width:18px;
    height:18px;
    margin-left:5px;
    border:1px solid rgba(28,139,96,.3);
    border-radius:50%;
    background:linear-gradient(135deg,#e2fff3,#c7f8e2);
    color:#08794c;
    box-shadow:0 5px 14px rgba(16,130,83,.14);
    font-size:12px;
    font-style:normal;
    font-weight:1000;
    line-height:1;
    vertical-align:middle;
}
.profile-verified-badge--title{width:23px;height:23px;margin-left:8px;font-size:15px;transform:translateY(-2px)}
.profile-verification-owner-link{font-weight:900}

.weekend-campaign-banner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    overflow:hidden;
    position:relative;
    background:linear-gradient(135deg,rgba(255,249,231,.98),rgba(255,240,204,.94));
    border-color:rgba(214,146,30,.28);
}
.weekend-campaign-banner:after{
    content:"✨";
    position:absolute;
    right:24px;
    top:-28px;
    opacity:.11;
    font-size:122px;
    line-height:1;
    pointer-events:none;
}
.weekend-campaign-banner>div,.weekend-campaign-banner>a{position:relative;z-index:1}
.weekend-campaign-banner h2{margin:5px 0 6px;color:#74470b}
.weekend-campaign-banner p{max-width:780px;margin:0;color:#805717;line-height:1.55}
.weekend-campaign-banner small{display:block;margin-top:8px;color:#99651c;font-weight:800}
.home-weekend-campaign{margin-top:18px}
.visibility-package-card--weekend{border-color:rgba(217,151,35,.48);background:linear-gradient(180deg,rgba(255,251,238,.98),rgba(255,244,215,.92))}
.visibility-package-card__availability{display:block;margin:-2px 0 8px;color:#916115;font-size:12px;font-weight:900}
.visibility-package-card__availability.is-active{color:#08794c}
.home-new-profiles__intro{margin:-2px 0 14px;color:var(--muted);font-size:14px;line-height:1.5}

.profile-noticed-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px 22px;background:linear-gradient(135deg,rgba(242,247,255,.98),rgba(233,241,255,.94));border-color:rgba(58,109,222,.2)}
.profile-noticed-card h2{margin:5px 0 6px}
.profile-noticed-card p{max-width:820px;margin:0;color:var(--muted);line-height:1.55}
.profile-noticed-card__stats{display:grid;grid-template-columns:repeat(3,minmax(105px,1fr));grid-column:1 / -1;gap:10px}
.profile-noticed-card__stats span{display:grid;gap:3px;padding:12px 14px;border:1px solid rgba(58,109,222,.15);border-radius:15px;background:rgba(255,255,255,.72)}
.profile-noticed-card__stats strong{font-size:22px;color:var(--primary)}
.profile-noticed-card__stats small{color:var(--muted);font-size:12px;font-weight:800}
.profile-noticed-card>a{justify-self:start}

.profile-verification-panel{display:grid;gap:14px}
.profile-verification-panel h2,.profile-verification-panel p{margin:0}
.profile-verification-status{width:fit-content;padding:10px 13px;border-radius:14px;font-size:14px;font-weight:900}
.profile-verification-status--approved{background:#dbfaea;color:#08794c;border:1px solid rgba(8,121,76,.2)}
.profile-verification-status--pending{background:#fff5d7;color:#8e5a00;border:1px solid rgba(174,112,0,.2)}
.profile-verification-status--rejected{background:#ffe7e7;color:#a02323;border:1px solid rgba(160,35,35,.18)}
.profile-verification-steps{display:grid;gap:8px;margin:0;padding-left:22px;color:var(--text);line-height:1.5}
.profile-verification-note{max-width:850px;color:var(--muted);font-size:14px;line-height:1.55}
.profile-verification-code{display:inline-block;padding:3px 7px;border:1px dashed rgba(49,92,255,.45);border-radius:8px;background:rgba(49,92,255,.08);color:var(--primary);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.98em;letter-spacing:.08em}
.profile-verification-form{display:grid;gap:13px;max-width:760px}
.profile-verification-form label{display:grid;gap:7px;font-weight:900}
.profile-verification-form input[type="file"],.profile-verification-form textarea{width:100%;box-sizing:border-box;border:1px solid var(--border);border-radius:14px;background:var(--panel);padding:12px;color:var(--text);font:inherit}
.profile-verification-form button{justify-self:start}

.admin-profile-verifications{display:grid;gap:15px}
.admin-profile-verifications__list{display:grid;gap:12px}
.admin-profile-verification-card{display:grid;gap:12px;padding:15px;border:1px solid var(--border);border-radius:17px;background:rgba(255,255,255,.65)}
.admin-profile-verification-card header{display:flex;align-items:start;justify-content:space-between;gap:12px}
.admin-profile-verification-card header div{display:grid;gap:4px}
.admin-profile-verification-card header small{color:var(--muted)}
.admin-profile-verification-card p{margin:0;color:var(--muted);line-height:1.5}
.admin-profile-verification-card__actions{display:flex;gap:8px;flex-wrap:wrap}
.admin-profile-verification-card__decision{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.admin-profile-verification-card__decision form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.admin-profile-verification-card__decision input{flex:1 1 220px;min-width:0;border:1px solid var(--border);border-radius:12px;background:var(--panel);padding:10px;color:var(--text);font:inherit}

.city-seo-hero,.city-seo-stats,.city-seo-content,.city-seo-related{display:grid;gap:14px}
.city-seo-hero h1,.city-seo-hero p,.city-seo-content h2,.city-seo-content p{margin:0}
.city-seo-hero p,.city-seo-content p{max-width:900px;color:var(--muted);line-height:1.65}
.city-seo-hero__actions,.city-seo-content__links{display:flex;gap:9px;flex-wrap:wrap}
.city-seo-stats__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.city-seo-stats__grid article{display:grid;gap:4px;padding:15px;border:1px solid var(--border);border-radius:16px;background:rgba(255,255,255,.64)}
.city-seo-stats__grid strong{color:var(--primary);font-size:27px}
.city-seo-stats__grid span{color:var(--muted);font-size:13px;font-weight:800}
.city-seo-related__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.city-seo-related__grid a{display:grid;gap:4px;padding:12px 13px;border:1px solid var(--border);border-radius:14px;background:rgba(255,255,255,.62);color:var(--text);text-decoration:none;transition:transform .18s ease,border-color .18s ease,background .18s ease}
.city-seo-related__grid a:hover{transform:translateY(-1px);border-color:rgba(49,92,255,.35);background:#fff}
.city-seo-related__grid small{color:var(--muted)}

html[data-theme="dark"] .profile-verified-badge{background:linear-gradient(135deg,#153f35,#1b5546)!important;border-color:rgba(98,218,174,.42)!important;color:#8ff0c8!important;box-shadow:0 5px 14px rgba(0,0,0,.18)!important}
html[data-theme="neon"] .profile-verified-badge{background:linear-gradient(135deg,rgba(8,56,53,.96),rgba(16,79,74,.96))!important;border-color:rgba(64,255,219,.5)!important;color:#6fffe3!important;box-shadow:0 0 14px rgba(50,255,222,.19)!important}
html[data-theme="dark"] .weekend-campaign-banner,html[data-theme="dark"] .visibility-package-card--weekend{background:linear-gradient(135deg,#3b3020,#302719)!important;border-color:#6b5432!important}
html[data-theme="dark"] .weekend-campaign-banner h2,html[data-theme="dark"] .weekend-campaign-banner p,html[data-theme="dark"] .weekend-campaign-banner small,html[data-theme="dark"] .visibility-package-card__availability{color:#f4d998!important}
html[data-theme="neon"] .weekend-campaign-banner,html[data-theme="neon"] .visibility-package-card--weekend{background:linear-gradient(135deg,rgba(58,26,76,.96),rgba(45,20,73,.94))!important;border-color:rgba(255,191,82,.5)!important;box-shadow:0 0 24px rgba(255,105,180,.14)!important}
html[data-theme="neon"] .weekend-campaign-banner h2,html[data-theme="neon"] .weekend-campaign-banner p,html[data-theme="neon"] .weekend-campaign-banner small,html[data-theme="neon"] .visibility-package-card__availability{color:#ffe0a4!important}
html[data-theme="dark"] .profile-noticed-card{background:linear-gradient(135deg,#1d2d46,#1a283e)!important;border-color:#3a5277!important}
html[data-theme="dark"] .profile-noticed-card__stats span,html[data-theme="dark"] .admin-profile-verification-card,html[data-theme="dark"] .city-seo-stats__grid article,html[data-theme="dark"] .city-seo-related__grid a{background:#22334f!important;border-color:#3b5275!important}
html[data-theme="dark"] .city-seo-related__grid a:hover{background:#2a4061!important;border-color:#5576a3!important}
html[data-theme="neon"] .profile-noticed-card{background:linear-gradient(135deg,rgba(25,10,52,.96),rgba(37,18,73,.94))!important;border-color:rgba(100,79,201,.42)!important}
html[data-theme="neon"] .profile-noticed-card__stats span,html[data-theme="neon"] .admin-profile-verification-card,html[data-theme="neon"] .city-seo-stats__grid article,html[data-theme="neon"] .city-seo-related__grid a{background:rgba(25,10,52,.9)!important;border-color:rgba(100,79,201,.34)!important}
html[data-theme="neon"] .city-seo-related__grid a:hover{background:rgba(43,20,82,.96)!important;border-color:rgba(140,112,255,.58)!important}

@media(max-width:760px){
    .weekend-campaign-banner{align-items:start;flex-direction:column;gap:13px}
    .weekend-campaign-banner:after{right:5px;top:-14px;font-size:94px}
    .profile-noticed-card{grid-template-columns:1fr}
    .profile-noticed-card__stats{grid-template-columns:1fr}
    .admin-profile-verification-card header{flex-direction:column}
    .admin-profile-verification-card__decision{grid-template-columns:1fr}
    .city-seo-stats__grid,.city-seo-related__grid{grid-template-columns:1fr}
}

/* PATCH 2026-06-11: redesigned public profile page */
.public-profile-shell{
    display:grid;
    grid-template-columns:190px minmax(0,1fr) 270px;
    gap:22px;
    align-items:stretch;
    padding:20px;
    overflow:visible;
    background:linear-gradient(135deg,#fff 0%,#fbfdff 60%,#f4f8ff 100%);
}
.public-profile-shell--vip{border-color:rgba(217,119,6,.34);background:linear-gradient(135deg,#fffdf7 0%,#fff 58%,#fff8e9 100%)}
.public-profile-shell--highlighted:not(.public-profile-shell--vip){border-color:rgba(217,119,6,.28);background:linear-gradient(135deg,#fff9ee,#fff)}
.public-profile-shell--now{box-shadow:0 16px 34px rgba(234,88,12,.10)}
.public-profile-shell__avatar-wrap{min-width:0}
.public-profile-shell__avatar{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:100%;
    min-height:220px;
    overflow:hidden;
    border:1px solid rgba(96,118,170,.18);
    border-radius:20px;
    background:linear-gradient(145deg,#dce9ff,#f8fbff);
    box-shadow:0 12px 26px rgba(31,42,68,.08);
    color:#5272bd;
    text-decoration:none;
}
.public-profile-shell__avatar:hover{text-decoration:none;transform:translateY(-1px);box-shadow:0 16px 30px rgba(31,42,68,.12)}
.public-profile-shell__avatar img{width:100%;height:100%;object-fit:cover;display:block}
.public-profile-shell__avatar--placeholder span{font-size:72px;font-weight:950;line-height:1;color:#6d8ee0;text-transform:uppercase}
.public-profile-shell__avatar-online{position:absolute;right:12px;bottom:12px;width:18px;height:18px;border:3px solid #fff;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.18)}
.public-profile-shell__content{min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.public-profile-shell__heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:6px 0 3px}
.public-profile-shell__heading h1{margin:0;color:#111d36;font-size:clamp(28px,3vw,40px);line-height:1.06;letter-spacing:-.025em}
.public-profile-shell__location{color:#60718f;font-size:14px;font-weight:750}
.public-profile-shell__now-note{margin:12px 0 0;width:100%}
.public-profile-shell__facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;width:100%;margin-top:16px}
.public-profile-shell__fact{display:grid;gap:5px;min-width:0;padding:11px 12px;border:1px solid rgba(96,118,170,.15);border-radius:13px;background:rgba(255,255,255,.82);box-shadow:0 8px 20px rgba(31,42,68,.045)}
.public-profile-shell__fact span{color:#7785a1;font-size:10px;font-weight:950;letter-spacing:.065em;text-transform:uppercase}
.public-profile-shell__fact strong{color:#1f2f50;font-size:13px;line-height:1.3;overflow-wrap:anywhere}
.public-profile-shell__intro{margin:15px 0 0;color:#566985;font-size:14px;line-height:1.62}
.public-profile-shell__actions{display:flex;min-width:0;flex-direction:column;gap:13px;padding-left:18px;border-left:1px solid rgba(96,118,170,.15)}
.public-profile-shell__status-box{align-items:flex-end}
.public-profile-shell__status-box small{color:#7b879d;font-size:11px;text-align:right}
.public-profile-shell__action-list{display:grid;gap:8px}
.public-profile-shell__action-list .inline-form,.public-profile-shell__picker{display:block;width:100%;margin:0}
.public-profile-shell__wide-action{display:flex!important;justify-content:center;width:100%;min-height:40px!important;padding:8px 11px!important;text-align:center;font-size:13px!important;line-height:1.15}
.public-profile-shell__primary-action{width:100%;min-height:42px;padding:9px 12px;border-radius:13px;font-size:13px;text-align:center}
.public-profile-shell__primary-action::before{display:none}
.public-profile-shell__picker .profile-compliment-picker__panel{right:0;left:auto}
.public-profile-shell__like-count{display:block;padding:9px 10px;border:1px solid rgba(96,118,170,.14);border-radius:12px;background:#f8fbff;font-size:13px;text-align:center}

.public-profile-redesign-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px;align-items:start}
.public-profile-redesign-main,.public-profile-redesign-aside{display:grid;gap:18px;min-width:0;align-content:start}
.public-profile-section{margin-bottom:0;padding:18px}
.public-profile-section__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.public-profile-section__head h2{margin:0;color:#17223b;font-size:20px;line-height:1.2}
.public-profile-section__head p{margin:5px 0 0;color:#71809a;font-size:13px;line-height:1.45}
.public-profile-about-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.public-profile-about-box{min-width:0;padding:14px;border:1px solid rgba(96,118,170,.14);border-radius:15px;background:linear-gradient(180deg,#fbfdff,#f8fbff)}
.public-profile-about-box h3{margin:0 0 8px;color:#263758;font-size:15px}
.public-profile-about-box .empty{margin:0;padding:0}
.public-profile-about-box .public-profile-richtext{font-size:14px;line-height:1.6}
.public-profile-details-card .public-profile-facts--redesign{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0}
.public-profile-details-card .public-profile-facts--redesign>div{padding:11px;border-radius:13px}
.public-profile-details-card .public-profile-facts--redesign span{font-size:10px}
.public-profile-details-card .public-profile-facts--redesign strong{font-size:13px;line-height:1.3}
.public-profile-photo-grid--redesign{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.public-profile-photo-grid--redesign .public-profile-photo{min-height:0;border-radius:15px;box-shadow:0 9px 22px rgba(31,42,68,.07)}
.public-profile-photo-grid--redesign .public-profile-photo img,.public-profile-photo-grid--redesign .private-photo-lock--profile{height:170px}
.public-profile-photo-grid--redesign .photo-tariff-lock--public{display:grid;place-items:center;align-content:center;gap:6px;height:170px;padding:14px;background:linear-gradient(145deg,#f8f9ff,#f5f7fc);color:#66728c;text-align:center}
.public-profile-photo-grid--redesign .photo-tariff-lock--public strong{font-size:13px}
.public-profile-photo-grid--redesign .photo-tariff-lock--public span{font-size:11px;line-height:1.35}
.public-profile-viewers .profile-viewers-slider{grid-template-columns:32px minmax(0,1fr) 32px;gap:6px}
.public-profile-viewers .profile-viewers-slider__nav{border-radius:12px;font-size:24px}
.public-profile-viewers .profile-viewers-list--slider .profile-viewer-card{flex-basis:min(82vw,250px)}
.public-profile-report-inline--aside{margin:0}

@media(max-width:1120px){
    .public-profile-shell{grid-template-columns:170px minmax(0,1fr) 235px;gap:18px}
    .public-profile-shell__facts{grid-template-columns:repeat(2,minmax(0,1fr))}
    .public-profile-redesign-layout{grid-template-columns:minmax(0,1fr) 320px}
    .public-profile-photo-grid--redesign{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:880px){
    .public-profile-shell{grid-template-columns:150px minmax(0,1fr)}
    .public-profile-shell__actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px 0 0;border-top:1px solid rgba(96,118,170,.15);border-left:0}
    .public-profile-shell__status-box{align-items:flex-start}
    .public-profile-shell__action-list{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
    .public-profile-shell__action-list .public-profile-shell__primary-action,.public-profile-shell__action-list .public-profile-shell__like-count{grid-column:1/-1}
    .public-profile-shell__picker .profile-compliment-picker__panel{left:0;right:auto}
    .public-profile-redesign-layout{grid-template-columns:1fr}
    .public-profile-redesign-aside{grid-template-columns:1fr}
    .public-profile-details-card{order:-1}
}
@media(max-width:620px){
    .public-profile-shell{grid-template-columns:1fr;padding:14px;gap:14px}
    .public-profile-shell__avatar{height:220px;min-height:220px}
    .public-profile-shell__content{align-items:stretch}
    .public-profile-shell__heading{margin-top:4px}
    .public-profile-shell__heading h1{font-size:28px}
    .public-profile-shell__facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:13px}
    .public-profile-shell__fact{padding:10px}
    .public-profile-shell__actions{display:block;padding-top:12px}
    .public-profile-shell__status-box{margin-bottom:10px}
    .public-profile-shell__action-list{grid-template-columns:1fr}
    .public-profile-about-grid{grid-template-columns:1fr}
    .public-profile-photo-grid--redesign{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
    .public-profile-photo-grid--redesign .public-profile-photo img,.public-profile-photo-grid--redesign .private-photo-lock--profile,.public-profile-photo-grid--redesign .photo-tariff-lock--public{height:145px}
    .public-profile-section{padding:14px}
    .public-profile-details-card .public-profile-facts--redesign{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
}

html[data-theme="dark"] .public-profile-shell{color:#e8f1ff!important;background:linear-gradient(135deg,#1c2a41,#18263a)!important;border-color:#344b6b!important;box-shadow:0 14px 34px rgba(0,0,0,.17)!important}
html[data-theme="dark"] .public-profile-shell--vip{background:linear-gradient(135deg,#2b2b25,#1d2a3d)!important;border-color:#685235!important}
html[data-theme="dark"] .public-profile-shell__heading h1{color:#f2f7ff!important}
html[data-theme="dark"] .public-profile-shell__location,html[data-theme="dark"] .public-profile-shell__intro,html[data-theme="dark"] .public-profile-shell__status-box small{color:#a9b8d0!important}
html[data-theme="dark"] .public-profile-shell__fact{background:#22334f!important;border-color:#3b5275!important;box-shadow:none!important}
html[data-theme="dark"] .public-profile-shell__fact span{color:#9db1ce!important}
html[data-theme="dark"] .public-profile-shell__fact strong{color:#edf4ff!important}
html[data-theme="dark"] .public-profile-shell__actions{border-color:#344b6b!important}
html[data-theme="dark"] .public-profile-shell__like-count{background:#22334f!important;border-color:#3b5275!important;color:#d7e5ff!important}
html[data-theme="dark"] .public-profile-section,html[data-theme="dark"] .public-profile-about-box{color:#e8f1ff!important;background:linear-gradient(135deg,#1b293f,#18263b)!important;border-color:#344b6b!important}
html[data-theme="dark"] .public-profile-section__head h2,html[data-theme="dark"] .public-profile-about-box h3{color:#edf4ff!important}
html[data-theme="dark"] .public-profile-section__head p{color:#9db1ce!important}
html[data-theme="dark"] .public-profile-photo-grid--redesign .photo-tariff-lock--public{background:#22334f!important;color:#b8c8df!important}

html[data-theme="neon"] .public-profile-shell{color:#eef3ff!important;background:linear-gradient(135deg,rgba(28,13,58,.98),rgba(14,7,31,.99))!important;border-color:rgba(103,77,209,.45)!important;box-shadow:0 18px 40px rgba(0,0,0,.26),inset 0 0 0 1px rgba(132,103,255,.07)!important}
html[data-theme="neon"] .public-profile-shell--vip{background:linear-gradient(135deg,rgba(39,25,54,.98),rgba(19,10,35,.99))!important;border-color:rgba(210,160,72,.45)!important}
html[data-theme="neon"] .public-profile-shell__heading h1{color:#f7fbff!important}
html[data-theme="neon"] .public-profile-shell__location,html[data-theme="neon"] .public-profile-shell__intro,html[data-theme="neon"] .public-profile-shell__status-box small{color:#b7c3ec!important}
html[data-theme="neon"] .public-profile-shell__fact{background:linear-gradient(180deg,rgba(24,11,50,.96),rgba(16,7,34,.98))!important;border-color:rgba(103,77,209,.38)!important;box-shadow:0 12px 24px rgba(0,0,0,.20)!important}
html[data-theme="neon"] .public-profile-shell__fact span{color:#aeb9ef!important}
html[data-theme="neon"] .public-profile-shell__fact strong{color:#f7fbff!important}
html[data-theme="neon"] .public-profile-shell__actions{border-color:rgba(103,77,209,.38)!important}
html[data-theme="neon"] .public-profile-shell__like-count{background:rgba(25,10,52,.92)!important;border-color:rgba(100,79,201,.36)!important;color:#d8e1ff!important}
html[data-theme="neon"] .public-profile-section,html[data-theme="neon"] .public-profile-about-box{color:#eef3ff!important;background:linear-gradient(180deg,rgba(25,10,52,.94),rgba(16,7,34,.98))!important;border-color:rgba(100,79,201,.36)!important;box-shadow:0 14px 30px rgba(0,0,0,.20),inset 0 0 0 1px rgba(132,103,255,.06)!important}
html[data-theme="neon"] .public-profile-section__head h2,html[data-theme="neon"] .public-profile-about-box h3{color:#f7fbff!important}
html[data-theme="neon"] .public-profile-section__head p{color:#b7c3ec!important}
html[data-theme="neon"] .public-profile-photo-grid--redesign .photo-tariff-lock--public{background:rgba(25,10,52,.92)!important;color:#c1c9ec!important}

/* HOTFIX: keep public profile side cards aligned in a single column */
.public-profile-redesign-aside{
    display:flex;
    flex-direction:column;
    gap:18px;
    min-width:0;
    align-content:stretch;
}
.public-profile-redesign-aside>.public-profile-section,
.public-profile-redesign-aside>.public-profile-report-inline--aside{
    width:100%;
    min-width:0;
    box-sizing:border-box;
}
.public-profile-report-inline--aside{
    grid-column:auto!important;
    margin:0;
    padding:11px 13px;
}
.public-profile-details-card .public-profile-facts--redesign{
    width:100%;
}
@media(max-width:880px){
    .public-profile-redesign-aside{display:flex;flex-direction:column;gap:14px}
}

/* HOTFIX 2026-06-12: keep header meeting counter isolated from the main navigation. */
.topbar-successful-meetings__label-full{display:none!important}
.topbar-successful-meetings__label-compact{display:inline!important}
.topbar-successful-meetings{gap:3px;padding-left:10px}
.topbar-successful-meetings .topbar-members__label{max-width:none;overflow:visible;text-overflow:clip}
@media(max-width:1480px){
    .topbar--modern{padding:0 18px!important}
    .topbar--modern .topbar__inner{display:flex!important;flex-wrap:wrap!important;justify-content:space-between!important;gap:10px 14px!important;min-height:78px!important;padding:10px 0!important}
    .topbar--modern .topbar-brand-cluster{flex:1 1 auto!important;max-width:100%!important}
    .topbar--modern .nav--modern{order:3!important;flex:1 0 100%!important;justify-content:flex-start!important;overflow-x:auto!important;overflow-y:hidden!important;padding-bottom:2px!important;scrollbar-width:thin}
    .topbar--modern .topbar-tools,.topbar--modern .topbar-auth{justify-self:auto!important;margin-left:auto!important}
}
@media(max-width:760px){
    .topbar-brand-cluster{gap:7px!important}
    .topbar-members{padding-left:7px}
    .topbar-successful-meetings{padding-left:7px}
}

/* HOTFIX 2026-06-12 v2: prevent large-screen header wrap from overlapping page content. */
@media(max-width:1800px){
    .topbar--modern{
        padding:0 18px!important;
    }
    .topbar--modern .topbar__inner{
        display:flex!important;
        flex-wrap:wrap!important;
        align-items:flex-start!important;
        justify-content:space-between!important;
        gap:10px 14px!important;
        min-height:auto!important;
        padding:10px 0 12px!important;
    }
    .topbar--modern .topbar-brand-cluster{
        flex:1 1 auto!important;
        max-width:100%!important;
        gap:7px!important;
    }
    .topbar--modern .topbar-members,
    .topbar--modern .topbar-successful-meetings{
        padding-left:7px!important;
    }
    .topbar--modern .topbar-members__label{
        font-size:9px!important;
    }
    .topbar--modern .topbar-members__digit{
        font-size:14px!important;
    }
    .topbar--modern .nav--modern{
        order:3!important;
        flex:1 0 100%!important;
        width:100%!important;
        justify-content:flex-start!important;
        overflow-x:auto!important;
        overflow-y:hidden!important;
        padding:2px 0 0!important;
        margin-top:2px!important;
        scrollbar-width:thin;
    }
    .topbar--modern .topbar-tools,
    .topbar--modern .topbar-auth{
        margin-left:auto!important;
    }
}

/* HOTFIX 2026-06-12: prevent the home latest-ads heading link from overflowing on mobile. */
@media(max-width:760px){
    .home-latest .panel__head--title{
        display:grid;
        grid-template-columns:minmax(0,1fr);
        justify-items:start;
        gap:8px;
    }
    .home-latest .panel__head--title h2,
    .home-latest .panel__head--title .panel__link{
        min-width:0;
        max-width:100%;
    }
    .home-latest .panel__head--title .panel__link{
        white-space:normal;
        overflow-wrap:anywhere;
        line-height:1.3;
    }
}


/* HOTFIX 2026-06-12: replace the wide three-button theme switcher with a compact dropdown. */
.theme-menu{
    position:relative;
    flex:0 0 auto;
    z-index:80;
}
.theme-menu__toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:2px;
    width:42px;
    height:42px;
    padding:0 5px 0 7px;
    border:1px solid #d9e2f0;
    border-radius:14px;
    background:#fff;
    color:#315ea8;
    box-shadow:0 10px 20px rgba(24,65,140,.05);
    cursor:pointer;
    transition:background .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.theme-menu__toggle:hover,
.theme-menu.is-open .theme-menu__toggle{
    background:#f3f7ff;
    color:#2563eb;
    border-color:#c9d8ee;
}
.theme-menu.is-open .theme-menu__toggle{
    box-shadow:0 12px 24px rgba(24,65,140,.12);
}
.theme-menu__toggle-icon{
    width:19px;
    height:19px;
    flex:0 0 auto;
}
.theme-menu__toggle-arrow{
    width:11px;
    height:11px;
    flex:0 0 auto;
    color:#7c8eae;
    transition:transform .18s ease;
}
.theme-menu.is-open .theme-menu__toggle-arrow{transform:rotate(180deg)}
.theme-menu__dropdown{
    position:absolute;
    right:0;
    top:calc(100% + 10px);
    display:none;
    width:184px;
    padding:8px;
    border:1px solid #dfe6f2;
    border-radius:16px;
    background:#fff;
    box-shadow:0 24px 40px rgba(31,65,130,.16);
}
.theme-menu.is-open .theme-menu__dropdown{
    display:grid;
    gap:3px;
}
.theme-menu__option{
    display:grid;
    grid-template-columns:20px minmax(0,1fr) 18px;
    align-items:center;
    gap:9px;
    width:100%;
    min-height:42px;
    padding:8px 9px;
    border:0;
    border-radius:11px;
    background:transparent;
    color:#233762;
    font:800 14px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
    text-align:left;
    cursor:pointer;
    transition:background .16s ease,color .16s ease;
}
.theme-menu__option:hover{
    background:#f2f6ff;
    color:#2563eb;
}
.theme-menu__option.is-active{
    background:linear-gradient(180deg,#eef5ff 0%,#e5efff 100%);
    color:#1d5ad5;
}
.theme-menu__option-icon{
    width:19px;
    height:19px;
}
.theme-menu__check{
    display:none;
    width:17px;
    height:17px;
}
.theme-menu__option.is-active .theme-menu__check{display:block}
html[data-theme="dark"] .theme-menu__toggle{
    color:#ffd67d!important;
    background:#1a283f!important;
    border-color:#3a4d6b!important;
    box-shadow:0 10px 20px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .theme-menu__toggle:hover,
html[data-theme="dark"] .theme-menu.is-open .theme-menu__toggle{
    color:#ffe49a!important;
    background:#233653!important;
    border-color:#4a6590!important;
}
html[data-theme="dark"] .theme-menu__toggle-arrow{color:#a8b8d0!important}
html[data-theme="dark"] .theme-menu__dropdown{
    background:#19263b!important;
    border-color:#344662!important;
    box-shadow:0 24px 44px rgba(0,0,0,.35)!important;
}
html[data-theme="dark"] .theme-menu__option{color:#d5e1f2!important}
html[data-theme="dark"] .theme-menu__option:hover{
    background:#233653!important;
    color:#fff!important;
}
html[data-theme="dark"] .theme-menu__option.is-active{
    background:linear-gradient(180deg,#263b5b,#21334f)!important;
    color:#a9c8ff!important;
}
html[data-theme="neon"] .theme-menu__toggle{
    color:#d4b5ff!important;
    background:linear-gradient(180deg,rgba(18,8,36,.96),rgba(28,12,58,.96))!important;
    border-color:rgba(113,78,255,.42)!important;
    box-shadow:0 14px 30px rgba(0,0,0,.22),0 0 0 1px rgba(131,92,255,.10) inset!important;
}
html[data-theme="neon"] .theme-menu__toggle:hover,
html[data-theme="neon"] .theme-menu.is-open .theme-menu__toggle{
    color:#fff!important;
    background:linear-gradient(180deg,rgba(41,18,80,.98),rgba(31,13,65,.98))!important;
    border-color:rgba(145,103,255,.62)!important;
}
html[data-theme="neon"] .theme-menu__toggle-arrow{color:#9ca9f2!important}
html[data-theme="neon"] .theme-menu__dropdown{
    background:linear-gradient(180deg,rgba(18,8,36,.98),rgba(28,12,58,.98))!important;
    border-color:rgba(113,78,255,.42)!important;
    box-shadow:0 20px 42px rgba(0,0,0,.40),0 0 0 1px rgba(131,92,255,.10) inset!important;
}
html[data-theme="neon"] .theme-menu__option{color:#d8ddff!important}
html[data-theme="neon"] .theme-menu__option:hover{
    background:rgba(108,78,232,.18)!important;
    color:#fff!important;
}
html[data-theme="neon"] .theme-menu__option.is-active{
    background:linear-gradient(180deg,rgba(124,77,255,.36),rgba(84,44,212,.34))!important;
    color:#ffd0ff!important;
}
@media(max-width:720px){
    .theme-menu__toggle{
        width:38px;
        height:38px;
        border-radius:12px;
        padding:0 4px 0 6px;
    }
    .theme-menu__toggle-icon{width:17px;height:17px}
    .theme-menu__toggle-arrow{width:10px;height:10px}
    .theme-menu__dropdown{right:0;width:176px}
}


/* HOTFIX 2026-06-12: move successful-meeting counter to the home search CTA and show activated users online in header. */
.topbar-online-members .topbar-members__label{color:#1a8b69}
.topbar-online-members .topbar-members__digit{border-color:#bfe8d9;background:linear-gradient(180deg,#fff 0%,#effbf6 100%);color:#11624d;box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 4px 10px rgba(20,132,98,.10)}
html[data-theme="dark"] .topbar-online-members .topbar-members__label{color:#91d7c4!important}
html[data-theme="dark"] .topbar-online-members .topbar-members__digit{border-color:#356b60!important;background:linear-gradient(180deg,#1c3f3a,#17322f)!important;color:#d8fff4!important}
html[data-theme="neon"] .topbar-online-members .topbar-members__label{color:#8ef5d4!important}
html[data-theme="neon"] .topbar-online-members .topbar-members__digit{border-color:rgba(67,216,176,.40)!important;background:linear-gradient(180deg,rgba(17,58,56,.96),rgba(13,39,40,.98))!important;color:#cafff1!important}
.home-search__submit{position:relative;width:112px;min-width:112px;max-width:112px}
.home-search__submit .home-search__button{width:100%!important;min-width:0!important;max-width:none!important}
.home-successful-meetings{position:absolute;right:0;bottom:calc(100% + 11px);display:flex;align-items:center;justify-content:flex-end;gap:4px;white-space:nowrap}
.home-successful-meetings__label{color:#1a8b69;font-size:10px;font-weight:950;line-height:1;letter-spacing:.06em;text-transform:uppercase}
.home-successful-meetings__digits{gap:2px}
.home-successful-meetings .topbar-members__digit{font-size:13px;border-color:#bfe8d9;background:linear-gradient(180deg,#fff 0%,#effbf6 100%);color:#11624d;box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 4px 10px rgba(20,132,98,.10)}
html[data-theme="dark"] .home-successful-meetings__label{color:#91d7c4!important}
html[data-theme="dark"] .home-successful-meetings .topbar-members__digit{border-color:#356b60!important;background:linear-gradient(180deg,#1c3f3a,#17322f)!important;color:#d8fff4!important}
html[data-theme="neon"] .home-successful-meetings__label{color:#8ef5d4!important}
html[data-theme="neon"] .home-successful-meetings .topbar-members__digit{border-color:rgba(67,216,176,.40)!important;background:linear-gradient(180deg,rgba(17,58,56,.96),rgba(13,39,40,.98))!important;color:#cafff1!important}
@media(max-width:1280px){.home-search__submit{width:108px;min-width:108px;max-width:108px}}
@media(max-width:1100px){
    .home-search__submit{display:grid;gap:7px;width:100%;min-width:0;max-width:none}
    .home-successful-meetings{position:static;justify-content:flex-end}
}
@media(max-width:760px){
    .topbar-online-members{padding-left:7px!important}
    .home-successful-meetings{justify-content:flex-start}
}

/* FEATURE 2026-06-12: guest-only registration promo banner above home categories. */
.home-guest-register-banner{
    position:relative;
    isolation:isolate;
    display:grid;
    place-items:center;
    min-height:270px;
    margin:0 0 26px;
    overflow:hidden;
    border:1px solid rgba(151,74,255,.58);
    border-radius:28px;
    background:
        linear-gradient(180deg,rgba(2,0,29,.08),rgba(2,0,29,.32)),
        url('../img/home/guest-register-neon.webp') center/cover no-repeat;
    box-shadow:
        0 24px 44px rgba(34,17,111,.18),
        0 0 0 1px rgba(246,83,255,.12) inset,
        0 0 34px rgba(159,54,255,.16) inset;
}
.home-guest-register-banner::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:0;
    background:
        radial-gradient(circle at 50% 42%,rgba(90,20,143,.18),rgba(2,0,28,.18) 42%,rgba(2,0,28,.02) 72%),
        linear-gradient(90deg,rgba(1,0,24,.10),transparent 22%,transparent 78%,rgba(1,0,24,.10));
    pointer-events:none;
}
.home-guest-register-banner__content{
    position:relative;
    z-index:1;
    display:grid;
    justify-items:center;
    gap:14px;
    width:min(92%,760px);
    padding:30px 22px 28px;
    text-align:center;
}
.home-guest-register-banner h2{
    margin:0;
    color:#fff;
    font-size:clamp(32px,4.15vw,56px);
    font-weight:950;
    line-height:1.02;
    letter-spacing:.035em;
    text-transform:uppercase;
    text-shadow:0 3px 18px rgba(0,0,0,.62),0 0 20px rgba(157,84,255,.28);
}
.home-guest-register-banner p{
    margin:0;
    color:rgba(255,255,255,.88);
    font-size:clamp(17px,1.75vw,24px);
    font-weight:650;
    line-height:1.25;
    text-shadow:0 2px 12px rgba(0,0,0,.72);
}
.home-guest-register-banner__button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:56px;
    margin-top:4px;
    padding:0 34px;
    border:1px solid rgba(255,194,255,.76);
    border-radius:13px;
    background:linear-gradient(180deg,#e43ce0 0%,#c51dbb 100%);
    color:#fff;
    box-shadow:0 13px 28px rgba(205,28,196,.34),0 0 20px rgba(242,83,255,.26) inset;
    font-size:20px;
    font-weight:900;
    line-height:1;
    letter-spacing:.035em;
    text-decoration:none;
    text-transform:uppercase;
    transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
.home-guest-register-banner__button:hover{
    transform:translateY(-2px);
    filter:brightness(1.08);
    box-shadow:0 16px 32px rgba(205,28,196,.44),0 0 24px rgba(255,109,255,.34) inset;
}
.home-guest-register-banner__button:focus-visible{
    outline:3px solid rgba(255,255,255,.94);
    outline-offset:4px;
}
@media(max-width:760px){
    .home-guest-register-banner{
        min-height:220px;
        margin-bottom:18px;
        border-radius:22px;
        background-position:center;
    }
    .home-guest-register-banner__content{
        gap:10px;
        padding:24px 16px 22px;
    }
    .home-guest-register-banner h2{
        font-size:clamp(27px,8.8vw,39px);
        line-height:1.04;
    }
    .home-guest-register-banner p{font-size:16px}
    .home-guest-register-banner__button{
        min-height:48px;
        padding:0 23px;
        border-radius:11px;
        font-size:16px;
    }
}
@media(max-width:420px){
    .home-guest-register-banner{min-height:202px}
    .home-guest-register-banner h2{font-size:27px}
}


/* FEATURE 2026-06-12: reusable top-up bonus campaigns with frozen order snapshots. */
.topup-campaign-banner{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    gap:18px;
    overflow:hidden;
    border:1px solid rgba(215,55,73,.28);
    background:
        radial-gradient(circle at 86% 18%,rgba(255,255,255,.28),transparent 22%),
        linear-gradient(135deg,#fff8f2 0%,#fff 43%,#eef7ff 100%);
    box-shadow:0 18px 38px rgba(91,38,62,.10);
}
.topup-campaign-banner__flag{font-size:48px;line-height:1;filter:drop-shadow(0 8px 14px rgba(34,62,118,.16))}
.topup-campaign-banner h2{margin:3px 0 6px;color:#1b2c59;font-size:clamp(22px,2.35vw,34px);line-height:1.08}
.topup-campaign-banner p{margin:0;color:#4a5a78;font-weight:700;line-height:1.45}
.topup-campaign-banner small{display:block;margin-top:7px;color:#7a5363;font-weight:750}
.topup-campaign-banner__multiplier{
    display:grid;
    place-items:center;
    min-width:88px;
    min-height:68px;
    padding:8px 16px;
    border:1px solid rgba(255,255,255,.74);
    border-radius:22px;
    background:linear-gradient(135deg,#e74355,#2a6df7);
    color:#fff;
    box-shadow:0 16px 28px rgba(77,77,186,.22);
    font-size:35px;
    font-weight:950;
    letter-spacing:.02em;
}
.topup-campaign-quote{
    display:grid;
    gap:6px;
    padding:13px 15px;
    border:1px solid rgba(43,109,247,.18);
    border-radius:15px;
    background:linear-gradient(135deg,rgba(255,248,242,.92),rgba(239,246,255,.95));
    color:#344563;
    font-size:13px;
    line-height:1.35;
}
.topup-campaign-quote[hidden]{display:none!important}
.topup-campaign-quote strong{color:#d7334f;font-size:14px}
.topup-campaign-quote b{color:#163f97}
.admin-topup-campaign-panel{display:grid;gap:16px}
.admin-topup-campaign-panel__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.admin-topup-campaign-panel__head h2{margin:3px 0 4px}
.admin-topup-campaign-panel__head p{margin:0;color:var(--muted)}
.admin-topup-campaign-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.admin-topup-campaign-stats>div{
    display:grid;
    gap:4px;
    min-width:0;
    padding:13px;
    border:1px solid var(--line);
    border-radius:15px;
    background:rgba(255,255,255,.66);
}
.admin-topup-campaign-stats span{color:var(--muted);font-size:12px;font-weight:800}
.admin-topup-campaign-stats strong{font-size:18px;overflow-wrap:anywhere}
.admin-topup-campaign-form{display:grid;gap:13px}
.admin-topup-campaign-form__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.admin-topup-campaign-methods{display:flex;flex-wrap:wrap;gap:11px 18px;padding:13px;border:1px solid var(--line);border-radius:14px}
.admin-topup-campaign-methods legend{padding:0 5px;color:var(--muted);font-weight:900}
.admin-topup-campaign-methods label,.admin-topup-campaign-enable{display:flex;align-items:center;gap:7px}
html[data-theme="dark"] .topup-campaign-banner{
    border-color:rgba(226,100,115,.30)!important;
    background:radial-gradient(circle at 86% 18%,rgba(124,169,255,.16),transparent 24%),linear-gradient(135deg,#3a2230,#1d2b45 58%,#18394a)!important;
    box-shadow:0 18px 38px rgba(0,0,0,.22)!important;
}
html[data-theme="dark"] .topup-campaign-banner h2{color:#fff4ee!important}
html[data-theme="dark"] .topup-campaign-banner p{color:#d9e5f6!important}
html[data-theme="dark"] .topup-campaign-banner small{color:#efc9d0!important}
html[data-theme="dark"] .topup-campaign-quote{border-color:#3b567e!important;background:linear-gradient(135deg,#352637,#20364d)!important;color:#dce8f6!important}
html[data-theme="dark"] .topup-campaign-quote strong{color:#ff9fae!important}
html[data-theme="dark"] .topup-campaign-quote b{color:#a9cbff!important}
html[data-theme="dark"] .admin-topup-campaign-stats>div{background:rgba(24,39,60,.88)!important}
html[data-theme="neon"] .topup-campaign-banner{
    border-color:rgba(255,79,190,.48)!important;
    background:radial-gradient(circle at 86% 18%,rgba(93,126,255,.20),transparent 24%),linear-gradient(135deg,rgba(63,12,54,.98),rgba(19,12,61,.98) 56%,rgba(5,47,65,.98))!important;
    box-shadow:0 18px 40px rgba(0,0,0,.30),0 0 28px rgba(255,52,189,.12) inset!important;
}
html[data-theme="neon"] .topup-campaign-banner h2{color:#ffd4f7!important;text-shadow:0 0 18px rgba(255,78,206,.34)}
html[data-theme="neon"] .topup-campaign-banner p{color:#d8e0ff!important}
html[data-theme="neon"] .topup-campaign-banner small{color:#f0bbdf!important}
html[data-theme="neon"] .topup-campaign-quote{border-color:rgba(146,97,255,.46)!important;background:linear-gradient(135deg,rgba(64,16,72,.94),rgba(19,23,71,.95))!important;color:#e7e8ff!important}
html[data-theme="neon"] .topup-campaign-quote strong{color:#ffb0e8!important}
html[data-theme="neon"] .topup-campaign-quote b{color:#a9d4ff!important}
html[data-theme="neon"] .admin-topup-campaign-stats>div{background:rgba(34,17,69,.86)!important;border-color:rgba(119,84,235,.30)!important}
@media(max-width:760px){
    .topup-campaign-banner{grid-template-columns:auto minmax(0,1fr);gap:12px;padding:16px}
    .topup-campaign-banner__flag{font-size:37px}
    .topup-campaign-banner__multiplier{grid-column:1/-1;min-height:48px;width:100%;border-radius:15px;font-size:28px}
    .admin-topup-campaign-panel__head{display:grid}
    .admin-topup-campaign-stats,.admin-topup-campaign-form__grid{grid-template-columns:1fr}
}

/* HOTFIX 2026-06-12: make an active top-up campaign impossible to miss inside the payment form. */
.topup-campaign-form-alert{
    display:grid;
    gap:4px;
    padding:13px 15px;
    border:1px solid rgba(215,55,73,.28);
    border-radius:15px;
    background:linear-gradient(135deg,rgba(255,245,239,.98),rgba(238,247,255,.98));
    box-shadow:0 10px 22px rgba(88,49,92,.08);
}
.topup-campaign-form-alert strong{color:#c92f48;font-size:15px;line-height:1.25}
.topup-campaign-form-alert span{color:#253d72;font-weight:900;line-height:1.28}
.topup-campaign-form-alert small{color:#5b6b88;line-height:1.4}
.topup-campaign-field-badge{
    display:inline-flex;
    align-items:center;
    margin-left:6px;
    padding:3px 7px;
    border-radius:999px;
    background:linear-gradient(135deg,#e74355,#2a6df7);
    color:#fff;
    font-size:10px;
    font-style:normal;
    font-weight:950;
    letter-spacing:.04em;
    text-transform:uppercase;
    vertical-align:middle;
}
html[data-theme="dark"] .topup-campaign-form-alert{
    border-color:rgba(226,100,115,.34)!important;
    background:linear-gradient(135deg,#3a2230,#20364d)!important;
}
html[data-theme="dark"] .topup-campaign-form-alert strong{color:#ff9fae!important}
html[data-theme="dark"] .topup-campaign-form-alert span{color:#dbe8ff!important}
html[data-theme="dark"] .topup-campaign-form-alert small{color:#c7d5e8!important}
html[data-theme="neon"] .topup-campaign-form-alert{
    border-color:rgba(255,79,190,.50)!important;
    background:linear-gradient(135deg,rgba(64,16,72,.96),rgba(19,23,71,.96))!important;
    box-shadow:0 0 24px rgba(255,52,189,.12)!important;
}
html[data-theme="neon"] .topup-campaign-form-alert strong{color:#ffb0e8!important}
html[data-theme="neon"] .topup-campaign-form-alert span{color:#dce5ff!important}
html[data-theme="neon"] .topup-campaign-form-alert small{color:#c9cef2!important}

/* HOTFIX 2026-06-12: compact top-up campaign admin editor and optional uploaded banner image. */
.topup-campaign-banner__content{min-width:0}
.topup-campaign-banner__media{
    align-self:stretch;
    width:clamp(150px,17vw,230px);
    min-height:128px;
    overflow:hidden;
    border-radius:18px;
    background:rgba(255,255,255,.45);
    box-shadow:0 10px 22px rgba(29,55,104,.12);
}
.topup-campaign-banner__media img{display:block;width:100%;height:100%;object-fit:cover}
.admin-topup-campaign-title{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;align-items:start}
.admin-topup-campaign-title>.admin-menu{grid-column:1/-1}
.admin-topup-campaign-panel--compact{display:grid;gap:12px}
.admin-topup-campaign-toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:11px 13px;
    border:1px solid var(--line);
    border-radius:14px;
    background:linear-gradient(135deg,rgba(239,247,255,.94),rgba(255,250,245,.94));
}
.admin-topup-campaign-toolbar__main{display:flex;align-items:center;gap:10px;min-width:0}
.admin-topup-campaign-toolbar__icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:rgba(255,255,255,.78);font-size:20px}
.admin-topup-campaign-toolbar__main strong,.admin-topup-campaign-toolbar__main small{display:block}
.admin-topup-campaign-toolbar__main small{margin-top:2px;color:var(--muted);font-size:11px}
.admin-topup-campaign-toolbar__stats{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.admin-topup-campaign-toolbar__stats span{padding:5px 8px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.70);font-size:11px;font-weight:800;white-space:nowrap}
.admin-topup-campaign-form--compact{display:grid;gap:11px}
.admin-topup-campaign-switch-row{display:flex;flex-wrap:wrap;gap:9px}
.admin-topup-campaign-switch{
    position:relative;
    display:flex;
    align-items:center;
    gap:10px;
    min-width:min(100%,310px);
    padding:10px 12px;
    border:1px solid rgba(35,119,255,.28);
    border-radius:14px;
    background:linear-gradient(135deg,rgba(237,247,255,.98),rgba(248,252,255,.96));
    cursor:pointer;
}
.admin-topup-campaign-switch>input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.admin-topup-campaign-switch__track{position:relative;flex:0 0 auto;width:44px;height:24px;border:1px solid rgba(109,131,168,.32);border-radius:999px;background:#dce5f3;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease}
.admin-topup-campaign-switch__track>span{position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(31,55,98,.24);transition:transform .18s ease}
.admin-topup-campaign-switch>input:checked+.admin-topup-campaign-switch__track{border-color:rgba(26,121,246,.72);background:linear-gradient(135deg,#27a4ff,#3971ff);box-shadow:0 0 0 3px rgba(49,129,255,.10)}
.admin-topup-campaign-switch>input:checked+.admin-topup-campaign-switch__track>span{transform:translateX(20px)}
.admin-topup-campaign-switch>input:focus-visible+.admin-topup-campaign-switch__track{outline:3px solid rgba(43,116,255,.25);outline-offset:3px}
.admin-topup-campaign-switch strong,.admin-topup-campaign-switch small{display:block}
.admin-topup-campaign-switch small{margin-top:2px;color:var(--muted);font-size:11px;line-height:1.28}
.admin-topup-campaign-mini-check{display:flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.58);font-size:12px;font-weight:800;cursor:pointer}
.admin-topup-campaign-form__grid--compact{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(130px,.55fr) minmax(180px,.8fr) minmax(180px,.8fr);gap:9px}
.admin-topup-campaign-form--compact label{min-width:0}
.admin-topup-campaign-form--compact input[type="text"],.admin-topup-campaign-form--compact input[type="number"],.admin-topup-campaign-form--compact input[type="datetime-local"],.admin-topup-campaign-form--compact textarea{margin-top:4px}
.admin-topup-campaign-content-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,330px);gap:10px;align-items:stretch}
.admin-topup-campaign-copy-card,.admin-topup-campaign-image-card{display:grid;gap:9px;padding:11px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.56)}
.admin-topup-campaign-copy-card{align-content:start}
.admin-topup-campaign-image-card{align-content:start}
.admin-topup-campaign-image-card__head strong,.admin-topup-campaign-image-card__head small{display:block}
.admin-topup-campaign-image-card__head small{margin-top:2px;color:var(--muted);font-size:11px}
.admin-topup-campaign-image-preview,.admin-topup-campaign-image-placeholder{display:block;width:100%;height:118px;border:1px dashed rgba(79,113,173,.32);border-radius:12px;background:linear-gradient(135deg,rgba(238,246,255,.92),rgba(252,248,255,.94));object-fit:cover}
.admin-topup-campaign-image-placeholder{display:grid;place-items:center;gap:3px;color:var(--muted);font-size:23px;text-align:center}
.admin-topup-campaign-image-placeholder span{font-size:11px;font-weight:800}
.admin-topup-campaign-upload{display:grid;gap:5px;padding:8px;border:1px solid var(--line);border-radius:11px;background:rgba(255,255,255,.52);font-size:11px;font-weight:850}
.admin-topup-campaign-upload input[type="file"]{display:block;width:100%;font-size:11px}
.admin-topup-campaign-upload span{color:#1c59bd}
.admin-topup-campaign-remove-image{padding:6px 8px;color:#b22842;background:rgba(255,244,246,.76)}
.admin-topup-campaign-schema-note{color:#9d6420;font-size:11px;line-height:1.35}
.admin-topup-campaign-methods--compact{gap:8px 15px;padding:9px 11px;border-radius:12px}
.admin-topup-campaign-methods--compact label{font-weight:800}
.admin-topup-campaign-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.admin-topup-campaign-actions small{max-width:920px;color:var(--muted);line-height:1.38}
.admin-topup-campaign-actions .button-link{flex:0 0 auto}
html[data-theme="dark"] .admin-topup-campaign-toolbar,html[data-theme="dark"] .admin-topup-campaign-copy-card,html[data-theme="dark"] .admin-topup-campaign-image-card,html[data-theme="dark"] .admin-topup-campaign-mini-check,html[data-theme="dark"] .admin-topup-campaign-upload{background:rgba(24,39,60,.88)!important}
html[data-theme="dark"] .admin-topup-campaign-switch{border-color:rgba(92,163,255,.35)!important;background:linear-gradient(135deg,rgba(24,54,86,.96),rgba(24,39,60,.96))!important}
html[data-theme="dark"] .admin-topup-campaign-image-preview,html[data-theme="dark"] .admin-topup-campaign-image-placeholder{border-color:rgba(91,135,203,.42)!important;background:linear-gradient(135deg,rgba(28,51,81,.96),rgba(40,39,72,.94))!important}
html[data-theme="neon"] .admin-topup-campaign-toolbar,html[data-theme="neon"] .admin-topup-campaign-copy-card,html[data-theme="neon"] .admin-topup-campaign-image-card,html[data-theme="neon"] .admin-topup-campaign-mini-check,html[data-theme="neon"] .admin-topup-campaign-upload{border-color:rgba(119,84,235,.34)!important;background:rgba(34,17,69,.88)!important}
html[data-theme="neon"] .admin-topup-campaign-switch{border-color:rgba(255,79,190,.46)!important;background:linear-gradient(135deg,rgba(63,12,54,.96),rgba(19,23,71,.96))!important}
html[data-theme="neon"] .admin-topup-campaign-image-preview,html[data-theme="neon"] .admin-topup-campaign-image-placeholder{border-color:rgba(255,79,190,.40)!important;background:linear-gradient(135deg,rgba(63,12,54,.94),rgba(19,23,71,.94))!important}
@media(max-width:1100px){
    .admin-topup-campaign-toolbar{align-items:flex-start;flex-direction:column}
    .admin-topup-campaign-toolbar__stats{justify-content:flex-start}
    .admin-topup-campaign-form__grid--compact{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
    .topup-campaign-banner--with-media{grid-template-columns:1fr;gap:11px}
    .topup-campaign-banner__media{width:100%;min-height:138px;max-height:190px;border-radius:15px}
    .topup-campaign-banner__media img{height:100%;min-height:138px;max-height:190px}
    .admin-topup-campaign-title{grid-template-columns:1fr}
    .admin-topup-campaign-switch-row{display:grid}
    .admin-topup-campaign-switch{min-width:0}
    .admin-topup-campaign-form__grid--compact,.admin-topup-campaign-content-grid{grid-template-columns:1fr}
    .admin-topup-campaign-actions{display:grid}
    .admin-topup-campaign-actions .button-link{width:100%}
}

.admin-topup-campaign-upload-wrap{display:grid;gap:5px}
.admin-topup-campaign-upload-status{display:block;color:var(--muted);font-size:11px;line-height:1.35}
.admin-topup-campaign-upload-status[data-state="loading"]{color:#a15b00;font-weight:800}
.admin-topup-campaign-upload-status[data-state="success"]{color:#087847;font-weight:800}
.admin-topup-campaign-upload-status[data-state="error"]{color:#c42d3f;font-weight:800}


/* HOTFIX 2026-06-12: keep uploaded campaign artwork wide and fully visible. */
.topup-campaign-banner--with-media{
    grid-template-columns:minmax(280px,430px) minmax(0,1fr) auto;
}
.topup-campaign-banner--with-media .topup-campaign-banner__media{
    align-self:center;
    width:100%;
    min-height:0;
    aspect-ratio:20 / 7;
    border-radius:16px;
}
.topup-campaign-banner--with-media .topup-campaign-banner__media img{
    width:100%;
    height:100%;
    min-height:0;
    max-height:none;
    object-fit:contain;
    background:rgba(255,255,255,.58);
}
@media(max-width:980px){
    .topup-campaign-banner--with-media{
        grid-template-columns:1fr auto;
    }
    .topup-campaign-banner--with-media .topup-campaign-banner__media{
        grid-column:1 / -1;
        width:100%;
        aspect-ratio:20 / 7;
    }
}
@media(max-width:760px){
    .topup-campaign-banner--with-media{
        grid-template-columns:1fr;
    }
    .topup-campaign-banner--with-media .topup-campaign-banner__media,
    .topup-campaign-banner--with-media .topup-campaign-banner__media img{
        min-height:0;
        max-height:none;
        aspect-ratio:20 / 7;
    }
}

/* HOTFIX 2026-06-12: mobile guest promo background and guest theme dropdown alignment. */
@media(max-width:720px){
    .topbar-auth .theme-menu__dropdown{
        left:0;
        right:auto;
        width:min(176px,calc(100vw - 24px));
        z-index:120;
    }
    .home-guest-register-banner{
        background:
            linear-gradient(180deg,rgba(2,0,29,.03),rgba(2,0,29,.18)),
            url('../img/home/guest-register-neon.webp') center/100% 100% no-repeat;
    }
    .home-guest-register-banner::before{
        background:
            radial-gradient(circle at 50% 42%,rgba(90,20,143,.09),rgba(2,0,28,.10) 45%,rgba(2,0,28,.01) 78%),
            linear-gradient(90deg,rgba(1,0,24,.04),transparent 20%,transparent 80%,rgba(1,0,24,.04));
    }
}

/* HOTFIX 2026-06-12: keep wallet summary compact after cumulative CSS overlays. */
.paid-balance-panel{
    align-items:start;
}
.paid-balance-card{
    align-items:flex-start;
    align-self:start;
}
.paid-balance-card>div{
    width:100%;
    max-width:100%;
}

/* HOTFIX 2026-06-12: stack wallet summary above a compact horizontal top-up form. */
.paid-balance-panel{
    grid-template-columns:minmax(0,1fr);
    gap:14px;
    align-items:start;
}
.paid-balance-card{
    width:100%;
    align-self:start;
}
.paid-balance-topup-form{
    grid-template-columns:minmax(220px,.82fr) minmax(0,1.55fr);
    gap:12px 16px;
    align-items:start;
}
.paid-balance-topup-form>.topup-campaign-form-alert{
    grid-column:1 / -1;
}
.paid-balance-topup-form>label{
    grid-column:1;
}
.paid-balance-topup-form>.paid-topup-methods{
    grid-column:2;
    grid-row:span 3;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-content:start;
}
.paid-balance-topup-form>.paid-topup-methods legend{
    grid-column:1 / -1;
}
.paid-balance-topup-form>.button-link{
    grid-column:1;
    width:100%;
    justify-content:center;
}
.paid-balance-topup-form>small[data-topup-method-note]{
    grid-column:1;
    align-self:start;
}
.paid-balance-topup-form>.topup-campaign-quote{
    grid-column:1 / -1;
    grid-template-columns:minmax(190px,1.35fr) repeat(3,minmax(120px,1fr));
    align-items:center;
    gap:8px 14px;
}
@media(max-width:860px){
    .paid-balance-topup-form{
        grid-template-columns:minmax(0,1fr);
    }
    .paid-balance-topup-form>.topup-campaign-form-alert,
    .paid-balance-topup-form>label,
    .paid-balance-topup-form>.paid-topup-methods,
    .paid-balance-topup-form>.button-link,
    .paid-balance-topup-form>small[data-topup-method-note],
    .paid-balance-topup-form>.topup-campaign-quote{
        grid-column:1;
        grid-row:auto;
    }
    .paid-balance-topup-form>.paid-topup-methods{
        grid-template-columns:minmax(0,1fr);
    }
    .paid-balance-topup-form>.topup-campaign-quote{
        grid-template-columns:minmax(0,1fr);
    }
}

/* HOTFIX 2026-06-12: single user-facing payment history with compact detail pages. */
.payment-history-list{display:grid;gap:10px}
.payment-history-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto;align-items:center;gap:12px;padding:14px 16px;border:1px solid #dce6fa;border-radius:16px;background:linear-gradient(145deg,#fff,#f8fbff);color:#172033;text-decoration:none;box-shadow:0 8px 20px rgba(24,71,150,.05);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.payment-history-item:hover,.payment-history-item:focus-visible{transform:translateY(-1px);border-color:#a9c6ff;box-shadow:0 14px 28px rgba(24,71,150,.11)}
.payment-history-item__icon{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#edf4ff;color:#1f6fff;font-size:22px;font-weight:950}
.payment-history-item__main{display:grid;gap:3px;min-width:0}
.payment-history-item__main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.payment-history-item__main small{color:#667085;font-weight:700}
.payment-history-item__amount{display:grid;gap:2px;text-align:right;white-space:nowrap}
.payment-history-item__amount small{font-weight:800}
.payment-history-item__open{color:#1769e8;font-weight:900;white-space:nowrap}
.payment-history-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.payment-history-detail-card,.payment-history-detail-list>div{display:grid;gap:6px;padding:14px 16px;border:1px solid #dce6fa;border-radius:16px;background:linear-gradient(145deg,#fff,#f8fbff)}
.payment-history-detail-card span,.payment-history-detail-list span{color:#667085;font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}
.payment-history-detail-card strong,.payment-history-detail-list strong{overflow-wrap:anywhere}
.payment-history-detail-panel{display:grid;gap:14px}
.payment-history-detail-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.payment-history-detail-list code{white-space:normal;overflow-wrap:anywhere}
html[data-theme="dark"] .payment-history-item,html[data-theme="dark"] .payment-history-detail-card,html[data-theme="dark"] .payment-history-detail-list>div{border-color:#35445f;background:linear-gradient(145deg,#1f2937,#172033);color:#e7eefc}
html[data-theme="dark"] .payment-history-item__main small,html[data-theme="dark"] .payment-history-detail-card span,html[data-theme="dark"] .payment-history-detail-list span{color:#aebddb}
html[data-theme="dark"] .payment-history-item__icon{background:#233b69;color:#8bb6ff}
html[data-theme="neon"] .payment-history-item,html[data-theme="neon"] .payment-history-detail-card,html[data-theme="neon"] .payment-history-detail-list>div{border-color:rgba(102,126,234,.42);background:linear-gradient(145deg,rgba(24,30,52,.96),rgba(16,21,39,.98));color:#eff4ff;box-shadow:0 0 18px rgba(54,110,255,.09)}
html[data-theme="neon"] .payment-history-item__main small,html[data-theme="neon"] .payment-history-detail-card span,html[data-theme="neon"] .payment-history-detail-list span{color:#b5c9ee}
html[data-theme="neon"] .payment-history-item__icon{background:rgba(42,82,156,.55);color:#87b6ff}
@media(max-width:900px){.payment-history-item{grid-template-columns:auto minmax(0,1fr) auto}.payment-history-item__amount{grid-column:2}.payment-history-item .status{justify-self:start}.payment-history-item__open{grid-column:3;grid-row:2}.payment-history-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.payment-history-detail-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.payment-history-item{grid-template-columns:auto minmax(0,1fr);gap:9px;padding:12px}.payment-history-item__icon{width:38px;height:38px;border-radius:12px;font-size:19px}.payment-history-item__amount,.payment-history-item .status,.payment-history-item__open{grid-column:2;justify-self:start;text-align:left}.payment-history-item__open{grid-row:auto}.payment-history-detail-grid,.payment-history-detail-list{grid-template-columns:minmax(0,1fr)}}


/* HOTFIX 2026-06-12: mobile notifications hero, inline package feedback and visible verified-profile label. */
.visibility-packages{scroll-margin-top:132px}
.visibility-package-notice{display:grid;gap:4px;margin:0 0 16px;padding:13px 15px;border:1px solid;border-radius:15px;font-weight:800;line-height:1.4}
.visibility-package-notice strong{font-size:15px}
.visibility-package-notice span{font-size:14px}
.visibility-package-notice--success{border-color:#a7e3c4;background:#effcf5;color:#12643b;box-shadow:0 10px 24px rgba(18,100,59,.08)}
.visibility-package-notice--error{border-color:#f2b8bf;background:#fff3f4;color:#a52c3c;box-shadow:0 10px 24px rgba(165,44,60,.07)}
.profile-verified-label{display:inline-flex;align-items:center;min-height:20px;margin-left:5px;padding:3px 7px;border:1px solid rgba(28,139,96,.24);border-radius:999px;background:linear-gradient(135deg,#effff8,#dcfaec);color:#08794c;font-size:10px;font-style:normal;font-weight:950;line-height:1;vertical-align:middle;white-space:nowrap}
.profile-verified-label--title{min-height:25px;padding:4px 9px;font-size:12px}
html[data-theme="dark"] .profile-verified-label{border-color:rgba(98,218,174,.35);background:linear-gradient(135deg,#153f35,#1b5546);color:#a1f5d1}
html[data-theme="neon"] .profile-verified-label{border-color:rgba(64,255,219,.45);background:linear-gradient(135deg,rgba(8,56,53,.96),rgba(16,79,74,.96));color:#86ffe9;box-shadow:0 0 14px rgba(50,255,222,.14)}
@media(max-width:720px){
    .notifications-hero{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
    .notifications-hero>.button-link{justify-self:start;white-space:nowrap}
    .notifications-hero p{font-size:16px;line-height:1.5}
    .home-new-profile-card .profile-verified-label{margin-left:3px;padding:3px 5px;font-size:9px}
}

/* HOTFIX 2026-06-12: stack the home sidebar on phones/tablets and keep city names readable. */
@media(max-width:1100px){
    .home-side{
        grid-template-columns:minmax(0,1fr)!important;
        grid-template-rows:auto!important;
        grid-auto-rows:max-content!important;
        width:100%!important;
        min-width:0!important;
    }
    .home-side>.panel,
    .home-side>.home-advertising-slot{
        width:100%!important;
        min-width:0!important;
        max-width:100%!important;
    }
    .home-side .city-panel__chips--columns .city-panel__name{
        overflow-wrap:normal!important;
        word-break:normal!important;
        hyphens:auto!important;
    }
}
@media(max-width:520px){
    .home-side .city-panel__chips--columns{
        grid-template-columns:minmax(0,1fr)!important;
    }
}

/* PATCH 2026-06-14: local composer status + duplicate-submit lock. */
.message-compose-status{
    margin:10px 0 16px;
    padding:11px 14px;
    border-radius:14px;
    font-weight:800;
    line-height:1.35;
}
.message-compose-status.is-success{
    color:#07522f;
    background:#dcfce7;
    border:1px solid rgba(22,163,74,.25);
}
.message-compose-status.is-error{
    color:#7f1d1d;
    background:#fee2e2;
    border:1px solid rgba(220,38,38,.25);
}
form[aria-busy="true"] button.is-submit-locked,
form[aria-busy="true"] input.is-submit-locked{
    cursor:wait!important;
    opacity:.75;
}
html[data-theme="dark"] .message-compose-status.is-success{
    color:#bbf7d0;
    background:rgba(22,163,74,.16);
    border-color:rgba(74,222,128,.35);
}
html[data-theme="dark"] .message-compose-status.is-error{
    color:#fecaca;
    background:rgba(220,38,38,.16);
    border-color:rgba(248,113,113,.35);
}
html[data-theme="neon"] .message-compose-status.is-success{
    color:#9effc9;
    background:linear-gradient(135deg,rgba(0,255,163,.14),rgba(124,58,237,.10));
    border:1px solid rgba(0,255,163,.45);
    box-shadow:0 0 18px rgba(0,255,163,.16);
}
html[data-theme="neon"] .message-compose-status.is-error{
    color:#ffc1d1;
    background:linear-gradient(135deg,rgba(255,43,118,.16),rgba(124,58,237,.10));
    border:1px solid rgba(255,43,118,.48);
    box-shadow:0 0 18px rgba(255,43,118,.14);
}

/* PATCH 2026-06-14: admin message delete inside regular threads + mobile compose-status anchor. */
.message-compose-status{
    scroll-margin-top:132px;
}
.message-delete-form--admin button{
    background:rgba(127,29,29,.12)!important;
    color:#fee2e2!important;
    border-color:rgba(248,113,113,.44)!important;
}
.message-delete-form--admin button:hover{
    background:#dc2626!important;
    color:#fff!important;
    border-color:#fecaca!important;
}
.message-bubble.is-theirs .message-delete-form--admin button{
    background:#fff1f2!important;
    color:#b91c1c!important;
    border-color:rgba(220,38,38,.24)!important;
}
.message-bubble.is-theirs .message-delete-form--admin button:hover{
    background:#dc2626!important;
    color:#fff!important;
}
@media(max-width:760px){
    .message-compose-status{
        scroll-margin-top:92px;
        margin-bottom:12px;
    }
    .message-delete-form--admin button{
        min-height:28px!important;
    }
}

/* PATCH 2026-06-14: visible per-message delete button in admin thread view. */
.admin-message-bubble-meta{
    display:inline-flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    flex-wrap:wrap;
}
.admin-message-inline-delete-form{
    display:inline-flex;
    align-items:center;
    margin:0;
}
.admin-message-delete-button{
    appearance:none;
    border:1px solid rgba(220,38,38,.28);
    background:#fff1f2;
    color:#b91c1c;
    border-radius:999px;
    padding:5px 10px;
    font-size:12px;
    line-height:1.1;
    font-weight:900;
    cursor:pointer;
    box-shadow:0 6px 16px rgba(220,38,38,.08);
}
.admin-message-delete-button:hover,
.admin-message-delete-button:focus-visible{
    background:#dc2626;
    border-color:#dc2626;
    color:#fff;
    outline:none;
}
html[data-theme="dark"] .admin-message-delete-button{
    background:rgba(220,38,38,.18);
    border-color:rgba(248,113,113,.42);
    color:#fecaca;
}
html[data-theme="dark"] .admin-message-delete-button:hover,
html[data-theme="dark"] .admin-message-delete-button:focus-visible{
    background:#dc2626;
    border-color:#fecaca;
    color:#fff;
}
html[data-theme="neon"] .admin-message-delete-button{
    background:linear-gradient(135deg,rgba(255,43,118,.18),rgba(124,58,237,.12));
    border-color:rgba(255,43,118,.48);
    color:#ffc1d1;
    box-shadow:0 0 14px rgba(255,43,118,.14);
}
html[data-theme="neon"] .admin-message-delete-button:hover,
html[data-theme="neon"] .admin-message-delete-button:focus-visible{
    background:#ff2b76;
    border-color:#ffb3cc;
    color:#fff;
}
@media(max-width:760px){
    .admin-message-bubble-meta{
        width:100%;
        justify-content:space-between;
        gap:6px;
    }
    .admin-message-delete-button{
        min-height:30px;
        padding:6px 10px;
    }
}

/* Marketing mechanics: referrals, first contacts, daily tasks */
.marketing-onboarding-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:18px;margin:18px 0}.referral-mini-card,.first-contacts-card,.daily-tasks-card,.referral-share-panel,.referral-rules-panel,.referral-history-panel,.referral-rewards-panel{position:relative;overflow:hidden}.referral-mini-card:before,.first-contacts-card:before,.daily-tasks-card:before,.referral-page-hero:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 92% 10%,rgba(255,214,102,.20),transparent 34%),radial-gradient(circle at 10% 110%,rgba(138,92,246,.14),transparent 34%);pointer-events:none}.referral-mini-card>* ,.first-contacts-card>* ,.daily-tasks-card>* ,.referral-page-hero>*{position:relative}.referral-mini-card__head,.first-contacts-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.referral-mini-card__head h2,.first-contacts-card__head h2{margin:4px 0 6px}.referral-mini-card__head p,.first-contacts-card__head p{margin:0;color:var(--muted)}.referral-mini-card__icon{display:grid;place-items:center;width:58px;height:58px;border-radius:22px;background:rgba(255,214,102,.18);font-size:28px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}.referral-copy-field{display:grid;gap:7px;margin:12px 0;font-size:13px;color:var(--muted)}.referral-copy-field input{width:100%;font-weight:700}.referral-copy-field--large input{font-size:15px}.referral-mini-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.referral-mini-stats span{display:grid;gap:3px;padding:12px;border-radius:16px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10)}.referral-mini-stats strong{font-size:20px}.referral-mini-stats small{color:var(--muted)}.referral-mini-stats--wide{margin-top:18px}.first-contacts-card__head>strong{display:grid;place-items:center;min-width:72px;height:72px;border-radius:50%;background:rgba(34,197,94,.13);border:1px solid rgba(34,197,94,.28);font-size:19px}.first-contacts-progress,.daily-task__bar{height:8px;background:rgba(255,255,255,.08);border-radius:999px;overflow:hidden}.first-contacts-progress span,.daily-task__bar span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#22c55e,#eab308)}.first-contacts-steps{display:grid;gap:10px;margin-top:14px}.first-contact-step{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border-radius:16px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.09)}.first-contact-step--claimed{opacity:.72}.first-contact-step--available{border-color:rgba(34,197,94,.45);background:rgba(34,197,94,.10)}.first-contact-step__icon{display:grid;place-items:center;width:38px;height:38px;border-radius:14px;background:rgba(255,255,255,.10)}.first-contact-step strong,.daily-task strong,.referral-rule-card strong{display:block}.first-contact-step small,.daily-task small,.referral-rule-card small{color:var(--muted)}.first-contact-step form,.daily-task form{margin:0}.first-contact-step button,.daily-task button{white-space:nowrap}.first-contact-step em,.daily-task em{font-style:normal;color:var(--muted);font-size:13px}.daily-tasks-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.daily-task{display:grid;gap:12px;padding:14px;border-radius:18px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.09)}.daily-task--complete{border-color:rgba(34,197,94,.44);background:rgba(34,197,94,.09)}.daily-task--claimed{opacity:.72}.daily-task__top{display:flex;gap:12px;align-items:flex-start}.daily-task__icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:15px;background:rgba(255,255,255,.10);font-size:22px}.daily-task__footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.daily-task__footer a{font-weight:800}.referral-register-note{display:grid;gap:4px;padding:12px 14px;border-radius:16px;background:rgba(34,197,94,.10);border:1px solid rgba(34,197,94,.30);font-size:14px}.referral-register-note span{color:var(--muted)}.referral-rules-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.referral-rule-card{display:grid;gap:8px;padding:16px;border-radius:18px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.09)}.referral-rule-card>span{font-size:26px}.cabinet-quick-card--referrals{border-color:rgba(255,214,102,.30)}@media (max-width: 980px){.marketing-onboarding-grid{grid-template-columns:1fr}.daily-tasks-grid,.referral-rules-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 640px){.referral-mini-stats,.daily-tasks-grid,.referral-rules-grid{grid-template-columns:1fr}.first-contact-step{grid-template-columns:auto minmax(0,1fr)}.first-contact-step form,.first-contact-step em{grid-column:1/-1}.daily-task__footer{align-items:flex-start;flex-direction:column}.referral-mini-card__head,.first-contacts-card__head{align-items:flex-start}.first-contacts-card__head>strong{min-width:58px;height:58px}}

/* Marketing blocks: placement after recommendations and polished CTA buttons */
.marketing-after-recommendations{display:grid;gap:18px;margin:18px 0 24px}.marketing-after-recommendations .marketing-onboarding-grid{margin:0}.marketing-after-recommendations .activity-streak-card{margin-top:0}.marketing-after-recommendations .referral-mini-card,.marketing-after-recommendations .first-contacts-card,.marketing-after-recommendations .daily-tasks-card{border-color:rgba(255,214,102,.22);box-shadow:0 16px 34px rgba(52,31,8,.08)}
.marketing-after-recommendations .activity-streak-card__footer .button-link--primary,.marketing-after-recommendations .referral-mini-card>.button-link--primary,.marketing-after-recommendations .first-contact-step button,.marketing-after-recommendations .daily-task button,.marketing-after-recommendations .daily-task__footer a{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:10px 16px;border:0;border-radius:999px;background:linear-gradient(135deg,#ffdd66,#ff9f43);color:#3b2300!important;font-size:13px;font-weight:900;line-height:1.1;text-decoration:none;box-shadow:0 10px 22px rgba(221,132,20,.24),inset 0 1px 0 rgba(255,255,255,.42);cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}.marketing-after-recommendations .activity-streak-card__footer .button-link--primary:hover,.marketing-after-recommendations .referral-mini-card>.button-link--primary:hover,.marketing-after-recommendations .first-contact-step button:hover,.marketing-after-recommendations .daily-task button:hover,.marketing-after-recommendations .daily-task__footer a:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgba(221,132,20,.30),inset 0 1px 0 rgba(255,255,255,.50);filter:saturate(1.06)}.marketing-after-recommendations .activity-streak-card__footer .button-link--primary:active,.marketing-after-recommendations .referral-mini-card>.button-link--primary:active,.marketing-after-recommendations .first-contact-step button:active,.marketing-after-recommendations .daily-task button:active,.marketing-after-recommendations .daily-task__footer a:active{transform:translateY(0);box-shadow:0 7px 16px rgba(221,132,20,.20),inset 0 1px 0 rgba(255,255,255,.38)}.marketing-after-recommendations .daily-task__footer a:after{content:"→";font-weight:1000}.marketing-after-recommendations .first-contact-step--available button,.marketing-after-recommendations .daily-task--complete button{background:linear-gradient(135deg,#7cf4a7,#22c55e);color:#062c17!important;box-shadow:0 10px 22px rgba(34,197,94,.24),inset 0 1px 0 rgba(255,255,255,.42)}.marketing-after-recommendations .first-contact-step em,.marketing-after-recommendations .daily-task em{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.08);font-weight:900}.marketing-after-recommendations .daily-task--claimed em,.marketing-after-recommendations .first-contact-step--claimed em{background:rgba(34,197,94,.13);color:#24814d}.marketing-after-recommendations .daily-task__footer small{font-weight:900;color:var(--muted)}
html[data-theme="dark"] .marketing-after-recommendations .referral-mini-card,html[data-theme="dark"] .marketing-after-recommendations .first-contacts-card,html[data-theme="dark"] .marketing-after-recommendations .daily-tasks-card{border-color:rgba(255,214,102,.18);box-shadow:0 16px 34px rgba(0,0,0,.18)}html[data-theme="dark"] .marketing-after-recommendations .activity-streak-card__footer .button-link--primary,html[data-theme="dark"] .marketing-after-recommendations .referral-mini-card>.button-link--primary,html[data-theme="dark"] .marketing-after-recommendations .first-contact-step button,html[data-theme="dark"] .marketing-after-recommendations .daily-task button,html[data-theme="dark"] .marketing-after-recommendations .daily-task__footer a{background:linear-gradient(135deg,#ffe07a,#ffad4d);color:#321d00!important}html[data-theme="dark"] .marketing-after-recommendations .first-contact-step--available button,html[data-theme="dark"] .marketing-after-recommendations .daily-task--complete button{background:linear-gradient(135deg,#8df7b0,#31d66d);color:#042814!important}html[data-theme="dark"] .marketing-after-recommendations .daily-task--claimed em,html[data-theme="dark"] .marketing-after-recommendations .first-contact-step--claimed em{color:#a9f1c5}
html[data-theme="neon"] .marketing-after-recommendations .referral-mini-card,html[data-theme="neon"] .marketing-after-recommendations .first-contacts-card,html[data-theme="neon"] .marketing-after-recommendations .daily-tasks-card{border-color:rgba(255,214,102,.30);box-shadow:0 0 0 1px rgba(255,214,102,.10),0 18px 38px rgba(0,0,0,.25)}html[data-theme="neon"] .marketing-after-recommendations .activity-streak-card__footer .button-link--primary,html[data-theme="neon"] .marketing-after-recommendations .referral-mini-card>.button-link--primary,html[data-theme="neon"] .marketing-after-recommendations .first-contact-step button,html[data-theme="neon"] .marketing-after-recommendations .daily-task button,html[data-theme="neon"] .marketing-after-recommendations .daily-task__footer a{box-shadow:0 0 20px rgba(255,180,67,.22),0 10px 22px rgba(221,132,20,.22),inset 0 1px 0 rgba(255,255,255,.44)}
@media(max-width:640px){.marketing-after-recommendations{gap:14px;margin:14px 0 20px}.marketing-after-recommendations .activity-streak-card__footer .button-link--primary,.marketing-after-recommendations .referral-mini-card>.button-link--primary,.marketing-after-recommendations .first-contact-step button,.marketing-after-recommendations .daily-task button,.marketing-after-recommendations .daily-task__footer a{width:100%;min-height:44px}.marketing-after-recommendations .daily-task__footer small{width:100%;text-align:center}}

/* City SEO mini-landings: expanded safe city pages and directory */
.city-seo-hero--expanded{
    grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);
    align-items:stretch;
    overflow:hidden;
    padding:clamp(22px,3.2vw,42px);
    background:radial-gradient(circle at 92% 8%,rgba(255,214,102,.22),transparent 32%),radial-gradient(circle at 5% 100%,rgba(49,92,255,.12),transparent 36%),linear-gradient(135deg,#fff,#f8fbff);
}
.city-seo-hero__copy{display:grid;gap:14px;align-content:center}.city-seo-hero--expanded h1{max-width:860px;margin:0;color:#101828;font-size:clamp(34px,5vw,62px);line-height:1.03;letter-spacing:-.05em}.city-seo-hero__chips{display:flex;gap:8px;flex-wrap:wrap}.city-seo-hero__chips span{padding:7px 10px;border-radius:999px;background:#eef5ff;border:1px solid #d7e6fb;color:#245ba5;font-size:12px;font-weight:900}.city-seo-hero__side{display:grid;gap:10px;align-content:center;padding:22px;border:1px solid rgba(49,92,255,.16);border-radius:24px;background:rgba(255,255,255,.74);box-shadow:0 16px 36px rgba(31,76,145,.10)}.city-seo-hero__side strong{color:#16488c;font-size:26px;line-height:1.1}.city-seo-hero__side span{color:#1d2b45;font-weight:950}.city-seo-hero__side small{color:#65748b;line-height:1.55;font-weight:750}.city-seo-stats__grid--wide{grid-template-columns:repeat(6,minmax(0,1fr))}.city-seo-two-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}.city-seo-feature-card{padding:clamp(18px,2.4vw,28px)}.city-seo-trust-card ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none}.city-seo-trust-card li{display:grid;gap:4px;padding:14px;border-radius:16px;background:rgba(49,92,255,.06);border:1px solid rgba(49,92,255,.12)}.city-seo-trust-card li strong{color:#1e63d5;font-size:24px;line-height:1}.city-seo-trust-card li span{color:#65748b;font-size:13px;font-weight:850}.city-seo-directory-card{display:grid;gap:14px;padding:clamp(18px,2.4vw,26px)}.city-seo-tags-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.city-seo-tags-grid a{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;padding:12px;border:1px solid #dfe9f7;border-radius:16px;background:#fff;color:#1d2b45;text-decoration:none;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.city-seo-tags-grid a:hover{transform:translateY(-1px);border-color:rgba(49,92,255,.34);box-shadow:0 12px 24px rgba(31,76,145,.10)}.city-seo-tags-grid span{display:grid;place-items:center;width:30px;height:30px;border-radius:12px;background:#edf5ff;color:#1e63d5;font-weight:950}.city-seo-tags-grid strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.city-seo-tags-grid small{color:#65748b;font-size:12px;font-weight:850;white-space:nowrap}.city-seo-tags-grid--compact a{grid-template-columns:auto minmax(0,1fr) auto}.city-seo-safe-note{margin-top:18px;background:linear-gradient(135deg,#f7fff9,#fff)}.seo-landing-cities{background:linear-gradient(145deg,#fff,#f8fbff)}.seo-landing-cities__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.seo-landing-cities__grid a{display:grid;gap:4px;padding:13px 14px;border:1px solid #dfe9f7;border-radius:16px;background:#fff;color:#1d2b45;text-decoration:none;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.seo-landing-cities__grid a:hover{transform:translateY(-1px);border-color:rgba(49,92,255,.34);box-shadow:0 12px 24px rgba(31,76,145,.10)}.seo-landing-cities__grid small{color:#65748b;font-size:12px;font-weight:850}
html[data-theme="dark"] .city-seo-hero--expanded,html[data-theme="dark"] .seo-landing-cities,html[data-theme="dark"] .city-seo-safe-note{background:#17243a!important;border-color:#385273!important}html[data-theme="dark"] .city-seo-hero--expanded h1,html[data-theme="dark"] .city-seo-hero__side span,html[data-theme="dark"] .city-seo-tags-grid strong,html[data-theme="dark"] .seo-landing-cities__grid strong{color:#edf4ff!important}html[data-theme="dark"] .city-seo-hero__side,html[data-theme="dark"] .city-seo-tags-grid a,html[data-theme="dark"] .seo-landing-cities__grid a,html[data-theme="dark"] .city-seo-trust-card li{background:#202d43!important;border-color:#385273!important}html[data-theme="dark"] .city-seo-hero__side strong,html[data-theme="dark"] .city-seo-tags-grid span,html[data-theme="dark"] .city-seo-trust-card li strong{color:#bdd3ff!important}html[data-theme="dark"] .city-seo-hero__side small,html[data-theme="dark"] .city-seo-trust-card li span,html[data-theme="dark"] .city-seo-tags-grid small,html[data-theme="dark"] .seo-landing-cities__grid small{color:#aebdd3!important}html[data-theme="dark"] .city-seo-hero__chips span{background:#202d43!important;border-color:#385273!important;color:#bdd3ff!important}
html[data-theme="neon"] .city-seo-hero--expanded,html[data-theme="neon"] .seo-landing-cities,html[data-theme="neon"] .city-seo-safe-note{background:linear-gradient(135deg,rgba(20,10,43,.96),rgba(35,18,68,.92))!important;border-color:rgba(100,79,201,.34)!important}html[data-theme="neon"] .city-seo-hero__side,html[data-theme="neon"] .city-seo-tags-grid a,html[data-theme="neon"] .seo-landing-cities__grid a,html[data-theme="neon"] .city-seo-trust-card li{background:rgba(25,10,52,.9)!important;border-color:rgba(100,79,201,.36)!important}html[data-theme="neon"] .city-seo-hero__chips span,html[data-theme="neon"] .city-seo-tags-grid span{background:rgba(57,32,112,.72)!important;border-color:rgba(148,116,255,.38)!important;color:#d8ccff!important}html[data-theme="neon"] .city-seo-hero--expanded h1,html[data-theme="neon"] .city-seo-hero__side span,html[data-theme="neon"] .city-seo-tags-grid strong,html[data-theme="neon"] .seo-landing-cities__grid strong{color:#fff!important}html[data-theme="neon"] .city-seo-hero__side strong,html[data-theme="neon"] .city-seo-trust-card li strong{color:#e7d8ff!important}html[data-theme="neon"] .city-seo-hero__side small,html[data-theme="neon"] .city-seo-trust-card li span,html[data-theme="neon"] .city-seo-tags-grid small,html[data-theme="neon"] .seo-landing-cities__grid small{color:#c8bdf4!important}
@media(max-width:1180px){.city-seo-stats__grid--wide{grid-template-columns:repeat(3,minmax(0,1fr))}.seo-landing-cities__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:900px){.city-seo-hero--expanded,.city-seo-two-columns{grid-template-columns:1fr}.seo-landing-cities__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.city-seo-hero--expanded{padding:20px}.city-seo-stats__grid--wide,.city-seo-tags-grid,.seo-landing-cities__grid,.city-seo-trust-card ul{grid-template-columns:1fr}.city-seo-tags-grid a{grid-template-columns:auto minmax(0,1fr)}.city-seo-tags-grid small{grid-column:2}.city-seo-hero__side{padding:18px}.city-seo-hero--expanded h1{font-size:clamp(32px,10vw,46px)}}

/* Disappearing private message photos */
.message-disappearing-option{align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid rgba(37,99,235,.18);border-radius:14px;background:linear-gradient(180deg,rgba(239,246,255,.92),rgba(255,255,255,.96))}.message-disappearing-option small{display:block;margin-top:3px;color:#64748b;font-weight:800}.message-disappearing-option.is-disabled{opacity:.72}.message-disappearing-hint{margin-top:8px}.message-photo--disappearing{outline:2px solid rgba(37,99,235,.20)}.message-photo__badge{position:absolute;left:6px;bottom:6px;z-index:3;display:inline-flex;align-items:center;gap:4px;max-width:calc(100% - 12px);padding:4px 7px;border-radius:999px;background:rgba(15,23,42,.82);color:#fff;font-size:10px;font-weight:950;line-height:1;text-transform:uppercase;letter-spacing:.03em;box-shadow:0 8px 18px rgba(15,23,42,.18);pointer-events:none}.message-photo__badge--expired{left:auto;right:6px;background:rgba(127,29,29,.88)}.admin-photo-card__preview-link--disappearing{position:relative;overflow:hidden}.admin-photo-card__preview-link--disappearing .message-photo__badge{bottom:10px;left:10px}.admin-photo-card__preview-link--disappearing .message-photo__badge--expired{left:auto;right:10px}


/* Disappearing photos paid service */
.paid-service-card--disappearing{
  border-color:rgba(168,85,247,.32);
  background:linear-gradient(180deg,#fff,#fbf7ff);
  box-shadow:0 18px 42px rgba(109,40,217,.10);
}
.paid-service-card--disappearing .paid-service-card__badge{
  background:linear-gradient(135deg,#f3e8ff,#c084fc 55%,#7e22ce);
  color:#fff;
  border-color:#e9d5ff;
}
.paid-service-card__note{
  display:block;
  margin-top:8px;
  color:#6d28d9;
  font-weight:800;
}
html[data-theme="dark"] .paid-service-card--disappearing{
  border-color:rgba(192,132,252,.35);
  background:linear-gradient(180deg,rgba(30,20,44,.96),rgba(18,14,30,.96));
  box-shadow:0 18px 42px rgba(0,0,0,.28);
}
html[data-theme="dark"] .paid-service-card--disappearing .paid-service-card__badge{
  border-color:rgba(216,180,254,.35);
}
html[data-theme="dark"] .paid-service-card__note{color:#d8b4fe;}

/* Profile photo public order controls */
.profile-photo-order-panel{position:relative;overflow:hidden}.profile-photo-order-head{align-items:flex-start}.profile-photo-order-count{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 12px;border-radius:999px;background:#eef5ff;border:1px solid #d8e5fb;color:#236dff;font-weight:900}.profile-photo-order-form{display:grid;gap:16px}.profile-photo-order-list{display:grid;gap:10px}.profile-photo-order-card{display:grid;grid-template-columns:auto auto 82px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px;border:1px solid #d8e3f5;border-radius:18px;background:linear-gradient(180deg,#fff,#fbfdff);box-shadow:0 10px 22px rgba(30,70,140,.06);cursor:grab}.profile-photo-order-card.is-dragging{opacity:.62;cursor:grabbing;outline:2px dashed #4f82ff;outline-offset:3px}.profile-photo-order-card__handle,.profile-photo-order-card__actions button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #d5e2f6;background:#f2f7ff;color:#236dff;font-weight:900;cursor:pointer}.profile-photo-order-card__handle{width:40px;height:40px;border-radius:14px;font-size:20px}.profile-photo-order-card__number{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#edf4ff;color:#236dff;font-weight:900}.profile-photo-order-card__thumb{display:block;width:82px;height:82px;border-radius:16px;overflow:hidden;background:#eef4ff;border:1px solid #d9e5f6}.profile-photo-order-card__thumb img{width:100%;height:100%;object-fit:cover;display:block}.photo-tariff-lock--mini{width:100%;height:100%;display:grid;place-items:center;border-radius:0}.profile-photo-order-card__meta{display:grid;gap:2px;min-width:0}.profile-photo-order-card__meta strong{color:#182943}.profile-photo-order-card__meta small{color:#66758f}.profile-photo-order-card__actions{display:flex;gap:6px}.profile-photo-order-card__actions button{width:38px;height:38px;border-radius:12px}.profile-photo-order-card__actions button:disabled{opacity:.42;cursor:not-allowed}.profile-photo-order-actions{display:flex;justify-content:flex-end}.profile-photo-order-actions button{border:0;border-radius:14px;padding:12px 18px;background:var(--blue);color:#fff;font:800 15px/1 system-ui;cursor:pointer}.profile-photo-order-actions button:hover,.profile-photo-order-card__actions button:hover:not(:disabled),.profile-photo-order-card__handle:hover{filter:brightness(.98);transform:translateY(-1px)}html[data-theme="dark"] .profile-photo-order-card{background:linear-gradient(145deg,#1f2937,#172033);border-color:#35445f;box-shadow:0 14px 28px rgba(0,0,0,.18)}html[data-theme="dark"] .profile-photo-order-count,html[data-theme="dark"] .profile-photo-order-card__handle,html[data-theme="dark"] .profile-photo-order-card__actions button,html[data-theme="dark"] .profile-photo-order-card__number{background:#22344f;border-color:#395476;color:#a9cbff}html[data-theme="dark"] .profile-photo-order-card__thumb{background:#172033;border-color:#35445f}html[data-theme="dark"] .profile-photo-order-card__meta strong{color:#edf4ff}html[data-theme="dark"] .profile-photo-order-card__meta small{color:#aebddb}html[data-theme="neon"] .profile-photo-order-card{background:linear-gradient(145deg,rgba(25,10,52,.94),rgba(16,7,34,.98));border-color:rgba(100,79,201,.36);box-shadow:0 0 18px rgba(102,126,234,.10),0 14px 30px rgba(0,0,0,.22)}html[data-theme="neon"] .profile-photo-order-count,html[data-theme="neon"] .profile-photo-order-card__handle,html[data-theme="neon"] .profile-photo-order-card__actions button,html[data-theme="neon"] .profile-photo-order-card__number{background:rgba(57,32,112,.72);border-color:rgba(148,116,255,.38);color:#d8ccff}html[data-theme="neon"] .profile-photo-order-card__thumb{background:rgba(25,10,52,.9);border-color:rgba(100,79,201,.36)}html[data-theme="neon"] .profile-photo-order-card__meta strong{color:#fff}html[data-theme="neon"] .profile-photo-order-card__meta small{color:#c8bdf4}@media (max-width:720px){.profile-photo-order-card{grid-template-columns:auto auto 72px minmax(0,1fr);gap:9px}.profile-photo-order-card__thumb{width:72px;height:72px}.profile-photo-order-card__actions{grid-column:1/-1;justify-content:flex-end}.profile-photo-order-actions{justify-content:stretch}.profile-photo-order-actions button{width:100%}}

/* Profile photos compact card layout on /profile/photos */
.profile-photo-grid.profile-photo-grid--editable{
    grid-template-columns:repeat(auto-fill,minmax(210px,1fr))!important;
    align-items:start!important;
    gap:12px!important;
}
.profile-photo-grid.profile-photo-grid--editable .profile-photo-card{
    align-self:start!important;
    min-height:0!important;
    border-radius:16px!important;
    overflow:hidden!important;
    box-shadow:0 10px 24px rgba(31,42,68,.07)!important;
}
.profile-photo-grid.profile-photo-grid--editable .profile-photo-card > .photo-lightbox,
.profile-photo-grid.profile-photo-grid--editable .profile-photo-card > .private-photo-lock--profile,
.profile-photo-grid.profile-photo-grid--editable .profile-photo-card > .photo-tariff-lock{
    display:block!important;
    width:100%!important;
    aspect-ratio:4/3!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:hidden!important;
    border-radius:0!important;
    background:#eef4ff!important;
}
.profile-photo-grid.profile-photo-grid--editable .profile-photo-card > .photo-lightbox img,
.profile-photo-grid.profile-photo-grid--editable .profile-photo-card > .private-photo-lock--profile img,
.profile-photo-grid.profile-photo-grid--editable .profile-photo-card > .photo-tariff-lock img{
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    object-fit:cover!important;
    object-position:center!important;
}
.profile-photo-grid.profile-photo-grid--editable .profile-photo-card figcaption{
    padding:9px 10px 7px!important;
    gap:4px!important;
}
.profile-photo-grid.profile-photo-grid--editable .profile-photo-card figcaption strong{
    font-size:13px!important;
    line-height:1.15!important;
}
.profile-photo-grid.profile-photo-grid--editable .profile-photo-card figcaption span,
.profile-photo-grid.profile-photo-grid--editable .profile-photo-card figcaption small{
    font-size:11px!important;
    line-height:1.25!important;
}
.profile-photo-grid.profile-photo-grid--editable .profile-photo-edit-form{
    gap:7px!important;
    padding:0 10px 9px!important;
}
.profile-photo-grid.profile-photo-grid--editable .profile-photo-edit-form label:not(.checkline){
    gap:4px!important;
    font-size:11px!important;
}
.profile-photo-grid.profile-photo-grid--editable .profile-photo-edit-form select{
    min-height:32px!important;
    border-radius:10px!important;
    padding:6px 9px!important;
    font-size:12px!important;
}
.profile-photo-grid.profile-photo-grid--editable .profile-photo-edit-check{
    gap:6px!important;
    font-size:11px!important;
    line-height:1.2!important;
}
.profile-photo-grid.profile-photo-grid--editable .profile-photo-edit-check input[type="checkbox"]{
    width:13px!important;
    height:13px!important;
    min-width:13px!important;
    margin-top:0!important;
}
.profile-photo-grid.profile-photo-grid--editable .profile-photo-sync-check{
    padding:7px 8px!important;
    border-radius:10px!important;
}
.profile-photo-grid.profile-photo-grid--editable .profile-photo-current-main{
    padding:6px 9px!important;
    font-size:11px!important;
}
.profile-photo-grid.profile-photo-grid--editable .profile-photo-edit-actions,
.profile-photo-grid.profile-photo-grid--editable .photo-actions--separate{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:6px!important;
    align-items:center!important;
    padding:0 10px 10px!important;
}
.profile-photo-grid.profile-photo-grid--editable .profile-photo-edit-actions{
    padding:0!important;
}
.profile-photo-grid.profile-photo-grid--editable .profile-photo-edit-actions button,
.profile-photo-grid.profile-photo-grid--editable .photo-actions--separate button{
    min-height:30px!important;
    padding:7px 10px!important;
    border-radius:999px!important;
    font-size:11px!important;
    line-height:1!important;
}
.profile-photo-grid.profile-photo-grid--editable .photo-actions--separate form{
    margin:0!important;
}
html[data-theme="dark"] .profile-photo-grid.profile-photo-grid--editable .profile-photo-card > .photo-lightbox,
html[data-theme="dark"] .profile-photo-grid.profile-photo-grid--editable .profile-photo-card > .private-photo-lock--profile,
html[data-theme="dark"] .profile-photo-grid.profile-photo-grid--editable .profile-photo-card > .photo-tariff-lock{
    background:#22334e!important;
}
html[data-theme="neon"] .profile-photo-grid.profile-photo-grid--editable .profile-photo-card > .photo-lightbox,
html[data-theme="neon"] .profile-photo-grid.profile-photo-grid--editable .profile-photo-card > .private-photo-lock--profile,
html[data-theme="neon"] .profile-photo-grid.profile-photo-grid--editable .profile-photo-card > .photo-tariff-lock{
    background:rgba(25,10,52,.9)!important;
}
@media(max-width:760px){
    .profile-photo-grid.profile-photo-grid--editable{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        gap:10px!important;
    }
    .profile-photo-grid.profile-photo-grid--editable .profile-photo-card > .photo-lightbox,
    .profile-photo-grid.profile-photo-grid--editable .profile-photo-card > .private-photo-lock--profile,
    .profile-photo-grid.profile-photo-grid--editable .profile-photo-card > .photo-tariff-lock{
        aspect-ratio:1/1!important;
    }
    .profile-photo-grid.profile-photo-grid--editable .profile-photo-edit-form,
    .profile-photo-grid.profile-photo-grid--editable .photo-actions--separate{
        padding-left:8px!important;
        padding-right:8px!important;
    }
}
@media(max-width:430px){
    .profile-photo-grid.profile-photo-grid--editable{
        grid-template-columns:1fr!important;
    }
}

/* FINAL admin system events readable duplicate photo payload */
.body--admin .admin-system-events-table-wrap{
    overflow-x:auto;
}
.body--admin .admin-system-events-table{
    min-width:1280px;
    table-layout:fixed;
}
.body--admin .admin-system-events-table th:nth-child(1),
.body--admin .admin-system-events-table td:nth-child(1){width:116px}
.body--admin .admin-system-events-table th:nth-child(2),
.body--admin .admin-system-events-table td:nth-child(2){width:150px}
.body--admin .admin-system-events-table th:nth-child(3),
.body--admin .admin-system-events-table td:nth-child(3){width:92px}
.body--admin .admin-system-events-table th:nth-child(4),
.body--admin .admin-system-events-table td:nth-child(4){width:190px}
.body--admin .admin-system-events-table th:nth-child(5),
.body--admin .admin-system-events-table td:nth-child(5){width:92px}
.body--admin .admin-system-events-table th:nth-child(6),
.body--admin .admin-system-events-table td:nth-child(6){width:138px}
.body--admin .admin-system-events-table th:nth-child(8),
.body--admin .admin-system-events-table td:nth-child(8){width:120px}
.body--admin .admin-system-events__payload{
    width:auto;
    max-width:620px;
    white-space:normal;
}
.body--admin .admin-system-events__raw{
    display:block;
    max-width:100%;
    overflow-wrap:anywhere;
    word-break:break-word;
    white-space:normal;
}
.body--admin .admin-event-payload-card{
    display:grid;
    gap:10px;
    padding:12px;
    border:1px solid #d9e7ff;
    border-radius:14px;
    background:linear-gradient(180deg,#f8fbff,#fff);
    color:#12213a;
    box-shadow:0 8px 22px rgba(22,80,170,.06);
}
.body--admin .admin-event-payload-card__head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
}
.body--admin .admin-event-payload-card__head strong{
    font-size:14px;
}
.body--admin .admin-event-payload-card__head span{
    display:inline-flex;
    padding:3px 8px;
    border-radius:999px;
    background:#eaf2ff;
    color:#1f5fc8;
    font-weight:800;
    font-size:12px;
}
.body--admin .admin-event-payload-card p{
    margin:0;
    color:#34415c;
    line-height:1.45;
}
.body--admin .admin-event-duplicate-match{
    display:grid;
    gap:8px;
    padding:10px;
    border:1px solid #e6edf8;
    border-radius:12px;
    background:#fff;
}
.body--admin .admin-event-duplicate-match__title{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
    align-items:center;
}
.body--admin .admin-event-duplicate-match ul{
    margin:0;
    padding-left:18px;
    color:#34415c;
}
.body--admin .admin-event-duplicate-match li+li{
    margin-top:3px;
}
.body--admin .admin-event-payload-card__links{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    align-items:center;
}
.body--admin .admin-event-payload-card__links a,
.body--admin .admin-event-inline-form button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:30px;
    padding:6px 10px;
    border-radius:999px;
    border:1px solid #cfe0ff;
    background:#f2f7ff;
    color:#145bc9;
    font:800 12px/1.1 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
    text-decoration:none;
    cursor:pointer;
}
.body--admin .admin-event-payload-card__links a:hover,
.body--admin .admin-event-inline-form button:hover{
    background:#e8f1ff;
    text-decoration:none;
}
.body--admin .admin-event-inline-form{
    display:inline;
    margin:0;
}
.body--admin .admin-event-inline-form .button-danger,
.body--admin .admin-event-inline-form button.button-danger{
    border-color:#ffc5c5;
    background:#fff1f1;
    color:#b42323;
}
.body--admin .admin-event-inline-form .button-danger:hover,
.body--admin .admin-event-inline-form button.button-danger:hover{
    background:#ffe3e3;
}
.body--admin .admin-event-payload-card__details summary{
    cursor:pointer;
    color:#65738f;
    font-weight:800;
}
.body--admin .admin-event-payload-card__details pre{
    max-height:260px;
    overflow:auto;
    margin:8px 0 0;
    padding:10px;
    border-radius:10px;
    background:#f4f7fb;
    color:#1f2937;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    font:12px/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
@media (max-width:760px){
    .body--admin .admin-system-events-table{min-width:1040px}
    .body--admin .admin-event-payload-card{padding:10px}
}
html[data-theme="dark"] .body--admin .admin-event-payload-card{
    border-color:rgba(95,140,220,.32);
    background:linear-gradient(180deg,rgba(23,33,54,.96),rgba(17,25,42,.98));
    color:#eef4ff;
}
html[data-theme="dark"] .body--admin .admin-event-payload-card p,
html[data-theme="dark"] .body--admin .admin-event-duplicate-match ul{
    color:#cbd6ea;
}
html[data-theme="dark"] .body--admin .admin-event-payload-card__head span,
html[data-theme="dark"] .body--admin .admin-event-payload-card__links a,
html[data-theme="dark"] .body--admin .admin-event-inline-form button{
    border-color:rgba(95,140,220,.38);
    background:rgba(42,67,110,.65);
    color:#cfe0ff;
}
html[data-theme="dark"] .body--admin .admin-event-duplicate-match{
    border-color:rgba(95,140,220,.26);
    background:rgba(10,16,28,.55);
}
html[data-theme="dark"] .body--admin .admin-event-payload-card__details pre{
    background:rgba(6,10,20,.76);
    color:#dbe8ff;
}
html[data-theme="dark"] .body--admin .admin-event-inline-form .button-danger,
html[data-theme="dark"] .body--admin .admin-event-inline-form button.button-danger{
    border-color:rgba(248,113,113,.45);
    background:rgba(127,29,29,.45);
    color:#fecaca;
}
html[data-theme="neon"] .body--admin .admin-event-payload-card{
    border-color:rgba(0,229,255,.35);
    background:linear-gradient(180deg,rgba(13,20,38,.96),rgba(9,13,25,.98));
    color:#e8fbff;
    box-shadow:0 0 18px rgba(0,229,255,.1);
}
html[data-theme="neon"] .body--admin .admin-event-payload-card p,
html[data-theme="neon"] .body--admin .admin-event-duplicate-match ul{
    color:#bfefff;
}
html[data-theme="neon"] .body--admin .admin-event-duplicate-match{
    border-color:rgba(0,229,255,.2);
    background:rgba(4,10,22,.6);
}
html[data-theme="neon"] .body--admin .admin-event-payload-card__head span,
html[data-theme="neon"] .body--admin .admin-event-payload-card__links a,
html[data-theme="neon"] .body--admin .admin-event-inline-form button{
    border-color:rgba(0,229,255,.35);
    background:rgba(0,229,255,.09);
    color:#8ff6ff;
}
html[data-theme="neon"] .body--admin .admin-event-inline-form .button-danger,
html[data-theme="neon"] .body--admin .admin-event-inline-form button.button-danger{
    border-color:rgba(255,78,129,.5);
    background:rgba(255,78,129,.12);
    color:#ffc0d3;
}


/* Age filter for private messages */
.profile-message-age-filter {
    grid-column: 1 / -1;
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 18px;
    background: rgba(37, 99, 235, 0.045);
}
.profile-message-age-filter__range {
    grid-template-columns: repeat(2, minmax(0, 180px));
}
.profile-message-age-filter__stats {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
}
.profile-message-age-filter__stats > span,
.profile-message-age-filter__attempt small {
    color: var(--muted);
}
.profile-message-age-filter__attempts {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}
.profile-message-age-filter__attempt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.9);
}
.profile-message-age-filter__attempt > div {
    display: grid;
    gap: 3px;
}
.theme-dark .profile-message-age-filter,
.theme-neon .profile-message-age-filter {
    background: rgba(96, 165, 250, 0.09);
    border-color: rgba(147, 197, 253, 0.24);
}
.theme-dark .profile-message-age-filter__stats,
.theme-dark .profile-message-age-filter__attempt,
.theme-neon .profile-message-age-filter__stats,
.theme-neon .profile-message-age-filter__attempt {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(148, 163, 184, 0.22);
}
@media (max-width: 640px) {
    .profile-message-age-filter__range {
        grid-template-columns: 1fr 1fr;
    }
    .profile-message-age-filter__attempt {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* PATCH 2026-06-17: compact ranked popular cities on home page. */
.home-side .city-panel{
    min-height:0!important;
    height:auto!important;
}
.home-side .city-panel__chips--ranked{
    position:relative;
    z-index:2;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
    width:100%!important;
    max-width:none!important;
    max-height:360px;
    overflow-y:auto;
    overscroll-behavior:contain;
    padding:1px 4px 2px 0;
    scrollbar-width:thin;
}
.home-side .city-panel__chips--ranked a{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:7px!important;
    min-width:0!important;
    min-height:28px!important;
    padding:6px 8px!important;
    border-radius:11px!important;
    line-height:1.08!important;
    box-sizing:border-box!important;
    box-shadow:0 4px 12px rgba(37,99,235,.05);
}
.home-side .city-panel__chips--ranked .city-panel__name{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:11px!important;
    line-height:1.15!important;
}
.home-side .city-panel__chips--ranked .city-panel__count{
    display:inline-flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:18px!important;
    min-height:18px!important;
    padding:0 5px!important;
    border-radius:999px!important;
    background:rgba(255,255,255,.72)!important;
    color:#68788f!important;
    font-size:9px!important;
    font-weight:950!important;
    line-height:1!important;
}
.home-side .city-panel__art{
    z-index:0!important;
    opacity:.28!important;
    width:142px!important;
}
@media (min-width:1101px){
    .home-side{
        align-self:start!important;
        align-content:start!important;
        grid-template-rows:max-content max-content max-content!important;
        grid-auto-rows:max-content!important;
    }
    .home-side>.city-panel{
        height:auto!important;
    }
}
@media (max-width:520px){
    .home-side .city-panel__chips--ranked{
        grid-template-columns:minmax(0,1fr)!important;
        max-height:420px;
    }
    .home-side .city-panel__chips--ranked .city-panel__name{
        white-space:normal!important;
        overflow:visible!important;
        text-overflow:clip!important;
    }
}
html[data-theme="dark"] .home-side .city-panel__chips--ranked .city-panel__count{
    background:rgba(255,255,255,.10)!important;
    color:#adc0dd!important;
}
html[data-theme="neon"] .home-side .city-panel__chips--ranked .city-panel__count{
    background:rgba(255,255,255,.10)!important;
    color:#c5cdfa!important;
}

/* PATCH 2026-06-17: floating full city name tooltip for compact popular cities. */
.city-name-tooltip{
    position:fixed;
    left:0;
    top:0;
    z-index:100000;
    max-width:min(280px,calc(100vw - 18px));
    padding:8px 11px;
    border:1px solid rgba(148,163,184,.35);
    border-radius:12px;
    background:rgba(255,255,255,.98);
    color:#0f172a;
    box-shadow:0 14px 32px rgba(15,23,42,.18);
    font-size:12px;
    font-weight:900;
    line-height:1.18;
    white-space:normal;
    pointer-events:none;
    opacity:0;
    transform:translate(-50%,-100%);
    transition:opacity .12s ease, transform .12s ease;
}
.city-name-tooltip.is-visible{
    opacity:1;
    transform:translate(-50%,calc(-100% - 6px));
}
.city-name-tooltip.city-name-tooltip--below{
    transform:translate(-50%,6px);
}
html[data-theme="dark"] .city-name-tooltip,
.theme-dark .city-name-tooltip{
    border-color:rgba(148,163,184,.28);
    background:rgba(15,23,42,.96);
    color:#e5eefc;
    box-shadow:0 16px 36px rgba(0,0,0,.38);
}
html[data-theme="neon"] .city-name-tooltip,
.theme-neon .city-name-tooltip{
    border-color:rgba(103,232,249,.32);
    background:rgba(14,18,42,.96);
    color:#ecfeff;
    box-shadow:0 0 24px rgba(34,211,238,.22),0 18px 42px rgba(0,0,0,.42);
}
@media (hover:none), (pointer:coarse){
    .city-name-tooltip{display:none!important}
}

/* ONLINE CHAT — rooms, private conversations and moderation */
.chat-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;overflow:hidden;position:relative;padding:28px 30px;background:radial-gradient(circle at 96% 6%,rgba(87,124,255,.18),transparent 26%),radial-gradient(circle at 2% 100%,rgba(118,72,255,.13),transparent 30%),linear-gradient(135deg,#ffffff 0%,#f5f9ff 55%,#eff4ff 100%);border-color:#ceddf7;box-shadow:0 20px 48px rgba(38,83,166,.10)}
.chat-hero::after{content:"💬";position:absolute;right:28px;bottom:-34px;font-size:132px;line-height:1;opacity:.08;pointer-events:none}.chat-hero>*,.chat-room-head>*{position:relative;z-index:1}.chat-hero h1,.chat-room-head h1,.admin-chat-head h1,.admin-chat-room-head h1{margin:3px 0 8px;color:#10234b;line-height:1.08}.chat-hero p,.chat-room-head p,.admin-chat-head p,.admin-chat-room-head p{margin:0;max-width:760px;color:#61718d}.chat-hero--compact{padding-block:23px}.chat-hero__actions,.chat-room-head__actions,.admin-chat-head__actions,.admin-chat-room-head__actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.chat-hero__actions form,.chat-room-head__actions form,.admin-chat-room-head__actions form{margin:0}.chat-info-strip{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px;padding:11px 14px;border:1px solid rgba(69,104,193,.16);border-radius:16px;background:rgba(77,122,255,.055);color:#49617f;font-size:13px;font-weight:700}.chat-info-strip span{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;background:rgba(255,255,255,.58)}.chat-room-section{margin-top:22px}.chat-room-section__head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin:0 0 10px;padding:0 4px}.chat-room-section__head h2{margin:2px 0 0;font-size:22px;color:#152646}.chat-room-section__head>span{color:#7886a0;font-size:13px;font-weight:800}.chat-room-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.chat-room-card{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:13px;min-height:112px;padding:16px;border:1px solid #d8e4f4;border-radius:20px;background:linear-gradient(160deg,#fff,#f8fbff);box-shadow:0 12px 28px rgba(27,70,142,.06);color:inherit;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;text-decoration:none}.chat-room-card:hover{border-color:#9cbdf0;box-shadow:0 18px 38px rgba(27,70,142,.13);transform:translateY(-2px);text-decoration:none}.chat-room-card.has-unread{border-color:#9cb8ef;background:linear-gradient(135deg,#fff,#f0f6ff)}.chat-room-card__icon{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,#e5efff,#f6f1ff);box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 8px 18px rgba(89,105,225,.12);font-size:27px}.chat-room-card__body{display:grid;gap:5px;min-width:0}.chat-room-card__top{display:flex;align-items:center;gap:7px;min-width:0}.chat-room-card__top strong{overflow:hidden;color:#16294c;font-size:16px;text-overflow:ellipsis;white-space:nowrap}.chat-room-card__top em,.chat-room-type{display:inline-flex;align-items:center;flex:0 0 auto;padding:3px 7px;border:1px solid transparent;border-radius:999px;background:#ecf4ff;color:#3a6cb9;font-size:10px;font-style:normal;font-weight:900;letter-spacing:.02em}.chat-room-type.is-private{background:#f3edff;color:#6a4dc4}.chat-room-type.is-archived{background:#f4f4f5;color:#71717a}.chat-room-card__description{display:-webkit-box;overflow:hidden;color:#687893;font-size:13px;line-height:1.32;-webkit-box-orient:vertical;-webkit-line-clamp:2}.chat-room-card__meta{overflow:hidden;color:#8490a5;font-size:11px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.chat-room-card__unread{display:grid;place-items:center;min-width:26px;height:26px;padding:0 7px;border-radius:999px;background:linear-gradient(135deg,#2d7cff,#6850df);box-shadow:0 8px 18px rgba(48,103,223,.25);color:#fff;font-size:11px}.chat-empty-state{display:flex;align-items:center;gap:15px;padding:24px}.chat-empty-state--small{grid-column:1/-1;min-height:126px}.chat-empty-state__icon{display:grid;place-items:center;flex:0 0 auto;width:56px;height:56px;border-radius:18px;background:#edf4ff;font-size:28px}.chat-empty-state h2,.chat-empty-state h3{margin:0 0 4px;color:#1b2b48}.chat-empty-state p{margin:0;color:#71809b}.chat-empty-state .button-link{margin-top:10px}.chat-create-panel{max-width:940px;margin-inline:auto}.chat-create-form{display:grid;gap:16px}.chat-create-form__grid{display:grid;grid-template-columns:150px minmax(0,1fr);gap:14px}.chat-create-form label{display:grid;gap:7px;color:#31415d;font-weight:800}.chat-create-form label small{color:#77859b;font-size:12px;font-weight:600}.chat-create-form input,.chat-create-form textarea,.chat-user-picker input,.chat-invite-panel input,.admin-chat-create input,.admin-chat-create textarea,.admin-chat-filter input,.admin-chat-filter select,.admin-chat-mute-form input,.admin-chat-mute-form select{width:100%;border:1px solid #cddbef;border-radius:13px;background:#fff;color:#182846;font:inherit;outline:0}.chat-create-form input,.chat-user-picker input,.chat-invite-panel input,.admin-chat-create input,.admin-chat-filter input,.admin-chat-filter select,.admin-chat-mute-form input,.admin-chat-mute-form select{min-height:42px;padding:9px 11px}.chat-create-form textarea,.admin-chat-create textarea{padding:10px 11px;resize:vertical}.chat-create-form input:focus,.chat-create-form textarea:focus,.chat-user-picker input:focus,.chat-invite-panel input:focus,.admin-chat-create input:focus,.admin-chat-create textarea:focus,.admin-chat-filter input:focus,.admin-chat-filter select:focus,.admin-chat-mute-form input:focus,.admin-chat-mute-form select:focus{border-color:#6b9eff;box-shadow:0 0 0 4px rgba(55,113,255,.12)}.chat-create-form__note{padding:12px 14px;border:1px solid rgba(87,87,190,.16);border-radius:14px;background:#f7f5ff;color:#635f8a;font-size:13px;line-height:1.45}.chat-user-picker{position:relative;padding:16px;border:1px solid #d6e1f1;border-radius:18px;background:linear-gradient(145deg,#fbfdff,#f5f9ff)}.chat-user-picker__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:11px}.chat-user-picker__head h2,.chat-invite-panel h2{margin:0;color:#243657;font-size:17px}.chat-user-picker__head p,.chat-invite-panel p{margin:4px 0 0;color:#73819a;font-size:12px}.chat-user-picker__head>span{padding:4px 8px;border-radius:999px;background:#e8f0ff;color:#3d6fc1;font-size:11px;font-weight:900}.chat-user-picker__results{position:absolute;z-index:15;right:16px;left:16px;max-height:280px;margin-top:6px;overflow:auto;border:1px solid #b9cdf1;border-radius:14px;background:#fff;box-shadow:0 18px 38px rgba(23,50,94,.18)}.chat-user-search-result{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:9px;width:100%;padding:9px 11px;border:0;border-bottom:1px solid #edf1f7;background:transparent;color:#203654;text-align:left;cursor:pointer}.chat-user-search-result:last-child{border-bottom:0}.chat-user-search-result:hover{background:#f3f7ff}.chat-user-search-result img,.chat-user-search-result>span:first-child{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#e9f1ff;object-fit:cover;color:#5275b7;font-size:13px;font-weight:900}.chat-user-search-result>span:last-child{display:grid;gap:1px;min-width:0}.chat-user-search-result b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-user-search-result small{color:#7686a0}.chat-user-picker__selected{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.chat-user-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 7px 5px 9px;border:1px solid #cbdcf8;border-radius:999px;background:#fff;color:#355483;font-size:12px}.chat-user-chip small{max-width:100px;overflow:hidden;color:#7d8aa0;text-overflow:ellipsis;white-space:nowrap}.chat-user-chip button{display:grid;place-items:center;width:20px;height:20px;padding:0;border:0;border-radius:999px;background:#eaf1ff;color:#5475af;font-size:17px;line-height:1;cursor:pointer}.chat-room-head{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;padding:23px 26px;border-color:#cbdcf6;background:radial-gradient(circle at 94% 8%,rgba(117,80,238,.13),transparent 28%),linear-gradient(135deg,#fff,#f6faff)}.chat-room-head__main{min-width:0}.chat-room-head__title{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.chat-room-head__title>span{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#edf3ff;font-size:22px}.chat-room-head__title h1{margin:0}.chat-room-head__meta{display:flex;flex-wrap:wrap;gap:7px 13px;margin-top:12px;color:#73829b;font-size:12px;font-weight:700}.chat-room-head__meta span{display:inline-flex;align-items:center;gap:4px}.chat-room-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start;margin-top:16px}.chat-thread-panel{min-width:0;padding:0;overflow:hidden;border-color:#cfddf1}.chat-thread-panel__head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:17px 19px;border-bottom:1px solid #e5edf7;background:linear-gradient(180deg,#fdfefe,#f6f9ff)}.chat-thread-panel__head h2{margin:0;color:#1c3155;font-size:18px}.chat-thread-panel__head p{margin:3px 0 0;color:#7b88a0;font-size:12px}.chat-new-messages{padding:6px 10px;border:1px solid #aac4f5;border-radius:999px;background:#edf4ff;color:#356ac2;font:inherit;font-size:12px;font-weight:900;cursor:pointer}.chat-thread{display:grid;gap:11px;max-height:650px;min-height:340px;overflow:auto;padding:18px;background:linear-gradient(180deg,#fbfdff,#f7faff);scroll-behavior:smooth}.chat-thread--admin{max-height:760px;border:1px solid #dae4f2;border-radius:16px}.chat-message{display:flex;align-items:flex-end;gap:9px;max-width:90%;animation:chat-message-in .2s ease both}.chat-message.is-mine{flex-direction:row-reverse;margin-left:auto}.chat-message__avatar{display:grid;place-items:center;flex:0 0 auto;width:34px;height:34px;overflow:hidden;border:1px solid #d5e0ef;border-radius:12px;background:#e9f1ff;color:#5270a5;font-size:13px;font-weight:900;text-decoration:none}.chat-message__avatar img{width:100%;height:100%;object-fit:cover}.chat-message__bubble{min-width:0;max-width:100%;padding:10px 12px;border:1px solid #e0e8f3;border-radius:16px 16px 16px 5px;background:#fff;box-shadow:0 6px 15px rgba(37,74,135,.05)}.chat-message.is-mine .chat-message__bubble{border-color:#bed3ff;border-radius:16px 16px 5px 16px;background:linear-gradient(135deg,#edf4ff,#f6f1ff)}.chat-message__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px;color:#6f7d92;font-size:11px}.chat-message__head strong,.chat-message__head strong a{color:#2e4b78;font-size:12px}.chat-message__head time{white-space:nowrap;color:#8b97aa}.chat-message__body{overflow-wrap:anywhere;color:#263751;font-size:14px;line-height:1.45}.chat-message__body p{margin:.2em 0}.chat-message__body blockquote{margin:7px 0;padding:6px 8px;border-left:3px solid #9fb9eb;background:#f5f8fd;color:#677791;font-size:12px}.chat-message__reply{margin:0 0 7px;padding:7px 8px;border-left:3px solid #a9bdf0;border-radius:8px;background:#f3f6fc}.chat-message__reply span{display:block;color:#3d66ae;font-size:11px;font-weight:900}.chat-message__reply p{margin:2px 0 0;overflow:hidden;color:#6b7890;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.chat-message__foot{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin-top:8px}.chat-message__reactions{display:flex;flex-wrap:wrap;gap:4px}.chat-reaction-button{display:inline-flex;align-items:center;gap:3px;min-height:24px;padding:3px 6px;border:1px solid #d9e4f4;border-radius:999px;background:#f9fbff;color:#526784;font-size:11px;cursor:pointer}.chat-reaction-button.is-mine{border-color:#97b8f6;background:#eaf2ff;color:#2f63b5}.chat-reaction-button:disabled{cursor:default;opacity:.7}.chat-message__actions{display:flex;gap:4px;opacity:.25;transition:opacity .15s ease}.chat-message:hover .chat-message__actions,.chat-message:focus-within .chat-message__actions{opacity:1}.chat-message__actions form{margin:0}.chat-message__action{padding:2px 4px;border:0;background:transparent;color:#6d7e99;font:inherit;font-size:11px;cursor:pointer}.chat-message__action:hover{color:#2363bf}.chat-message__action--danger:hover{color:#bd3d45}.chat-message.is-live-new .chat-message__bubble{animation:chat-live-pulse 1.8s ease}.chat-compose-form{display:grid;gap:9px;margin:0;padding:16px 18px 18px;border-top:1px solid #e4edf8;background:#fff}.chat-compose-form>label{color:#485b7c;font-size:12px;font-weight:900}.chat-compose-form textarea{width:100%;min-height:88px;padding:10px 12px;resize:vertical;border:1px solid #cbd9ee;border-radius:14px;color:#253850;font:inherit;outline:0}.chat-compose-form textarea:focus{border-color:#72a0fb;box-shadow:0 0 0 4px rgba(61,119,245,.12)}.chat-compose-locked{margin:14px;padding:13px 14px;border:1px dashed #cbd8eb;border-radius:14px;background:#f8fbff;color:#71819d;font-size:13px}.chat-room-sidebar{display:grid;gap:14px;position:sticky;top:76px}.chat-members-panel,.chat-invite-panel{padding:15px}.chat-members-panel .panel__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.chat-members-panel .panel__head h2{margin:0;font-size:17px}.chat-members-panel .panel__head span{display:grid;place-items:center;min-width:25px;height:25px;border-radius:999px;background:#eef4ff;color:#3e68ae;font-size:11px;font-weight:900}.chat-members-list{display:grid;gap:7px;max-height:430px;overflow:auto}.chat-member-row{display:grid;grid-template-columns:31px minmax(0,1fr) auto auto;align-items:center;gap:7px;padding:5px 2px}.chat-member-row__avatar{display:grid;place-items:center;width:31px;height:31px;overflow:hidden;border:1px solid #d9e4f1;border-radius:10px;background:#eef4ff;color:#5a75a5;font-size:12px;font-weight:900}.chat-member-row__avatar img{width:100%;height:100%;object-fit:cover}.chat-member-row>div{display:grid;gap:0;min-width:0}.chat-member-row>div a{overflow:hidden;color:#34537e;font-size:12px;font-weight:850;text-overflow:ellipsis;white-space:nowrap}.chat-member-row>div span{overflow:hidden;color:#8390a6;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.chat-member-row em{padding:2px 5px;border-radius:999px;background:#f1efff;color:#705bc1;font-size:9px;font-style:normal;font-weight:900}.chat-member-row form{margin:0}.chat-member-row form button{display:grid;place-items:center;width:22px;height:22px;padding:0;border:0;border-radius:8px;background:#fff0f1;color:#bd4a57;font-size:17px;cursor:pointer}.chat-invite-panel{display:grid;gap:10px}.chat-invite-panel form{display:grid;gap:8px;position:relative}.chat-invite-panel .chat-user-picker__results{right:0;left:0}.chat-user-picker__single:empty{display:none}.chat-muted-notice{display:flex;align-items:center;gap:13px;margin-top:14px;border-color:#f3c7c7;background:linear-gradient(135deg,#fffafa,#fff0f0)}.chat-muted-notice__icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#ffe5e5;font-size:22px}.chat-muted-notice h2{margin:0 0 3px;color:#9f3440;font-size:16px}.chat-muted-notice p{margin:0;color:#925763;font-size:13px}.admin-chat-head,.admin-chat-room-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;border-color:#d5dff1;background:linear-gradient(135deg,#fff,#f5f8ff)}.admin-chat-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:15px 0}.admin-chat-stats .panel{display:grid;gap:3px;padding:14px}.admin-chat-stats span{color:#7b88a0;font-size:11px;font-weight:800}.admin-chat-stats b{color:#263c62;font-size:25px;line-height:1}.admin-chat-create{margin-top:15px}.admin-chat-create__form{display:grid;grid-template-columns:110px minmax(220px,.8fr) minmax(240px,1.4fr) auto;align-items:end;gap:10px}.admin-chat-create__form label{display:grid;gap:5px;color:#5d6d84;font-size:12px;font-weight:900}.admin-chat-filter{margin-top:15px}.admin-chat-filter form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.admin-chat-filter input{min-width:240px}.admin-chat-filter form>button,.admin-chat-mutes button{min-height:38px;padding:7px 11px;border:1px solid #bdcfed;border-radius:999px;background:#edf4ff;color:#3765ad;font:inherit;font-size:12px;font-weight:900;cursor:pointer}.admin-chat-rooms{margin-top:15px}.admin-chat-rooms .panel__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.admin-chat-rooms .panel__head h2{margin:0;font-size:18px}.admin-chat-rooms .panel__head span{color:#7e8da3;font-size:12px;font-weight:800}.admin-chat-rooms__list{display:grid;gap:10px}.admin-chat-room-card{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px;border:1px solid #dee7f3;border-radius:16px;background:#fbfdff}.admin-chat-room-card__icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#edf3ff;font-size:21px}.admin-chat-room-card__top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.admin-chat-room-card h3{margin:0;color:#263e65;font-size:15px}.admin-chat-room-card p{margin:3px 0;overflow:hidden;color:#71819b;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.admin-chat-room-card small{color:#8290a5;font-size:11px}.admin-chat-room-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:15px;margin-top:15px}.admin-chat-thread{min-width:0}.admin-chat-thread .panel__head{margin-bottom:12px}.admin-chat-thread .panel__head h2{margin:0;color:#243c62;font-size:18px}.admin-chat-thread .panel__head p{margin:3px 0 0;color:#7a88a0;font-size:12px}.admin-chat-aside{display:grid;align-content:start;gap:14px}.admin-chat-members,.admin-chat-mutes{padding:15px}.admin-chat-members .panel__head,.admin-chat-mutes .panel__head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.admin-chat-members .panel__head h2,.admin-chat-mutes .panel__head h2{margin:0;font-size:17px}.admin-chat-members .panel__head span,.admin-chat-mutes .panel__head span{display:grid;place-items:center;min-width:24px;height:24px;border-radius:999px;background:#edf4ff;color:#3b6cac;font-size:10px;font-weight:900}.admin-chat-members__list{display:grid;gap:10px;max-height:520px;overflow:auto}.admin-chat-member{display:grid;gap:7px;padding:9px;border:1px solid #e2e9f3;border-radius:12px;background:#fbfdff}.admin-chat-member>div{display:grid;gap:2px}.admin-chat-member a{color:#325a94;font-size:13px;font-weight:900}.admin-chat-member small{color:#8190a7;font-size:11px}.admin-chat-mute-form{display:grid;grid-template-columns:1fr 1fr;gap:6px}.admin-chat-mute-form input{grid-column:1/-1}.admin-chat-mute-form button{grid-column:1/-1}.button-danger-compact{min-height:35px;padding:7px 9px;border:1px solid #efb5bb;border-radius:10px;background:#fff2f3;color:#b43b4a;font:inherit;font-size:12px;font-weight:900;cursor:pointer}.admin-chat-mutes{display:grid;gap:8px}.admin-chat-mutes .panel__head{margin:0}.admin-chat-mutes article{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:9px;border:1px solid #f0d4d7;border-radius:12px;background:#fff9fa}.admin-chat-mutes strong{color:#84363f;font-size:13px}.admin-chat-mutes p,.admin-chat-mutes small{margin:2px 0 0;color:#97636a;font-size:11px}.admin-chat-mutes article form{margin:0}.chat-message .empty{align-self:stretch}.chat-new-messages[hidden],.chat-user-picker__results[hidden]{display:none!important}@keyframes chat-message-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes chat-live-pulse{0%,100%{box-shadow:0 6px 15px rgba(37,74,135,.05)}35%{box-shadow:0 0 0 4px rgba(71,122,255,.16),0 12px 26px rgba(37,74,135,.12)}}
html[data-theme="dark"] .chat-hero,html[data-theme="dark"] .chat-room-head,html[data-theme="dark"] .admin-chat-head,html[data-theme="dark"] .admin-chat-room-head{border-color:rgba(113,147,213,.34);background:radial-gradient(circle at 96% 6%,rgba(103,128,255,.18),transparent 28%),linear-gradient(135deg,#18243a,#111b2e)}html[data-theme="dark"] .chat-hero h1,html[data-theme="dark"] .chat-room-head h1,html[data-theme="dark"] .admin-chat-head h1,html[data-theme="dark"] .admin-chat-room-head h1,html[data-theme="dark"] .chat-room-card__top strong,html[data-theme="dark"] .chat-room-section__head h2,html[data-theme="dark"] .chat-empty-state h2,html[data-theme="dark"] .chat-empty-state h3,html[data-theme="dark"] .chat-thread-panel__head h2,html[data-theme="dark"] .chat-members-panel .panel__head h2,html[data-theme="dark"] .chat-invite-panel h2,html[data-theme="dark"] .admin-chat-rooms .panel__head h2,html[data-theme="dark"] .admin-chat-room-card h3,html[data-theme="dark"] .admin-chat-thread .panel__head h2,html[data-theme="dark"] .admin-chat-members .panel__head h2,html[data-theme="dark"] .admin-chat-mutes .panel__head h2{color:#e6efff}html[data-theme="dark"] .chat-hero p,html[data-theme="dark"] .chat-room-head p,html[data-theme="dark"] .admin-chat-head p,html[data-theme="dark"] .admin-chat-room-head p,html[data-theme="dark"] .chat-empty-state p,html[data-theme="dark"] .chat-thread-panel__head p{color:#aab9d0}html[data-theme="dark"] .chat-room-card,html[data-theme="dark"] .chat-user-picker,html[data-theme="dark"] .chat-thread,html[data-theme="dark"] .chat-compose-form,html[data-theme="dark"] .chat-members-panel,html[data-theme="dark"] .chat-invite-panel,html[data-theme="dark"] .admin-chat-room-card,html[data-theme="dark"] .admin-chat-member{border-color:rgba(112,145,204,.25);background:#172338;color:#dce8fb}html[data-theme="dark"] .chat-room-card__icon,html[data-theme="dark"] .chat-room-head__title>span,html[data-theme="dark"] .chat-message__avatar,html[data-theme="dark"] .chat-member-row__avatar,html[data-theme="dark"] .admin-chat-room-card__icon{background:#263653;color:#bcd7ff}html[data-theme="dark"] .chat-create-form input,html[data-theme="dark"] .chat-create-form textarea,html[data-theme="dark"] .chat-user-picker input,html[data-theme="dark"] .chat-invite-panel input,html[data-theme="dark"] .admin-chat-create input,html[data-theme="dark"] .admin-chat-create textarea,html[data-theme="dark"] .admin-chat-filter input,html[data-theme="dark"] .admin-chat-filter select,html[data-theme="dark"] .admin-chat-mute-form input,html[data-theme="dark"] .admin-chat-mute-form select,html[data-theme="dark"] .chat-compose-form textarea{border-color:rgba(112,145,204,.38);background:#0f1929;color:#e8f1ff}html[data-theme="dark"] .chat-user-picker__results{border-color:rgba(112,145,204,.44);background:#152136}html[data-theme="dark"] .chat-user-search-result{border-color:rgba(112,145,204,.16);color:#e1ecff}html[data-theme="dark"] .chat-user-search-result:hover{background:#22334f}html[data-theme="dark"] .chat-message__bubble{border-color:rgba(112,145,204,.25);background:#1d2a40;color:#e8f1ff}html[data-theme="dark"] .chat-message.is-mine .chat-message__bubble{border-color:rgba(134,159,238,.42);background:linear-gradient(135deg,#25375b,#30284f)}html[data-theme="dark"] .chat-message__body{color:#e6efff}html[data-theme="dark"] .chat-message__reply{background:#152136;border-color:#607fc0}html[data-theme="dark"] .chat-message__body blockquote{background:#152136;color:#bdcbe0}html[data-theme="dark"] .chat-info-strip,html[data-theme="dark"] .chat-compose-locked{border-color:rgba(112,145,204,.28);background:rgba(22,34,56,.82);color:#becce2}html[data-theme="dark"] .chat-info-strip span{background:rgba(255,255,255,.05)}html[data-theme="dark"] .admin-chat-mutes article{border-color:rgba(236,121,135,.25);background:#33242d}html[data-theme="dark"] .admin-chat-mutes strong{color:#fecdd3}html[data-theme="dark"] .admin-chat-mutes p,html[data-theme="dark"] .admin-chat-mutes small{color:#e7b9c2}
html[data-theme="neon"] .chat-hero,html[data-theme="neon"] .chat-room-head,html[data-theme="neon"] .admin-chat-head,html[data-theme="neon"] .admin-chat-room-head{border-color:rgba(58,229,255,.38);background:radial-gradient(circle at 96% 6%,rgba(43,224,255,.16),transparent 30%),linear-gradient(135deg,#101932,#090f20);box-shadow:0 0 24px rgba(0,224,255,.10)}html[data-theme="neon"] .chat-hero h1,html[data-theme="neon"] .chat-room-head h1,html[data-theme="neon"] .admin-chat-head h1,html[data-theme="neon"] .admin-chat-room-head h1,html[data-theme="neon"] .chat-room-card__top strong,html[data-theme="neon"] .chat-room-section__head h2,html[data-theme="neon"] .chat-thread-panel__head h2,html[data-theme="neon"] .chat-members-panel .panel__head h2,html[data-theme="neon"] .chat-invite-panel h2{color:#e7fbff}html[data-theme="neon"] .chat-room-card,html[data-theme="neon"] .chat-user-picker,html[data-theme="neon"] .chat-thread,html[data-theme="neon"] .chat-compose-form,html[data-theme="neon"] .chat-members-panel,html[data-theme="neon"] .chat-invite-panel,html[data-theme="neon"] .admin-chat-room-card,html[data-theme="neon"] .admin-chat-member{border-color:rgba(35,220,255,.25);background:#0d162c;color:#d8f8ff}html[data-theme="neon"] .chat-room-card__icon,html[data-theme="neon"] .chat-room-head__title>span,html[data-theme="neon"] .chat-message__avatar,html[data-theme="neon"] .chat-member-row__avatar,html[data-theme="neon"] .admin-chat-room-card__icon{background:#102645;color:#96f4ff}html[data-theme="neon"] .chat-create-form input,html[data-theme="neon"] .chat-create-form textarea,html[data-theme="neon"] .chat-user-picker input,html[data-theme="neon"] .chat-invite-panel input,html[data-theme="neon"] .admin-chat-create input,html[data-theme="neon"] .admin-chat-create textarea,html[data-theme="neon"] .admin-chat-filter input,html[data-theme="neon"] .admin-chat-filter select,html[data-theme="neon"] .admin-chat-mute-form input,html[data-theme="neon"] .admin-chat-mute-form select,html[data-theme="neon"] .chat-compose-form textarea{border-color:rgba(43,219,255,.42);background:#081326;color:#e8fcff}html[data-theme="neon"] .chat-user-picker__results{border-color:rgba(43,219,255,.5);background:#0b162a}html[data-theme="neon"] .chat-user-search-result{border-color:rgba(43,219,255,.15);color:#d9faff}html[data-theme="neon"] .chat-user-search-result:hover{background:#102c48}html[data-theme="neon"] .chat-message__bubble{border-color:rgba(43,219,255,.22);background:#10203a;color:#e5fbff}html[data-theme="neon"] .chat-message.is-mine .chat-message__bubble{border-color:rgba(129,104,255,.45);background:linear-gradient(135deg,#162d52,#2b214f)}html[data-theme="neon"] .chat-message__body{color:#e6fbff}html[data-theme="neon"] .chat-message__reply,html[data-theme="neon"] .chat-message__body blockquote{border-color:#5eeaff;background:#0b182e;color:#b9eefa}html[data-theme="neon"] .chat-info-strip,html[data-theme="neon"] .chat-compose-locked{border-color:rgba(43,219,255,.25);background:rgba(8,20,39,.84);color:#b9eefa}html[data-theme="neon"] .chat-info-strip span{background:rgba(0,229,255,.06)}
@media (max-width:1060px){.chat-room-layout{grid-template-columns:1fr}.chat-room-sidebar{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.chat-members-list{max-height:300px}.admin-chat-room-layout{grid-template-columns:1fr}.admin-chat-aside{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-chat-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-chat-create__form{grid-template-columns:100px minmax(0,1fr)}.admin-chat-create__form label:nth-child(3){grid-column:1/-1}.admin-chat-create__form button{width:max-content}}
@media (max-width:720px){.chat-hero,.chat-room-head,.admin-chat-head,.admin-chat-room-head{flex-direction:column;padding:20px}.chat-hero__actions,.chat-room-head__actions,.admin-chat-head__actions,.admin-chat-room-head__actions{justify-content:flex-start}.chat-room-grid{grid-template-columns:1fr}.chat-create-form__grid{grid-template-columns:1fr}.chat-thread{max-height:62vh;min-height:300px;padding:12px}.chat-message{max-width:97%}.chat-message__actions{opacity:1}.chat-room-sidebar,.admin-chat-aside{grid-template-columns:1fr}.admin-chat-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-chat-create__form{grid-template-columns:1fr}.admin-chat-create__form label:nth-child(3){grid-column:auto}.admin-chat-create__form button{width:100%}.admin-chat-room-card{grid-template-columns:42px minmax(0,1fr)}.admin-chat-room-card>.button-link{grid-column:1/-1;justify-self:start}.admin-chat-filter input{min-width:0;width:100%}.chat-room-head__meta{gap:5px 9px}.chat-room-head__meta span{font-size:11px}.chat-thread-panel__head{align-items:flex-start;flex-direction:column}.chat-user-picker__results{right:10px;left:10px}.chat-user-picker{padding:13px}.chat-user-picker__head{align-items:flex-start;flex-direction:column}.chat-user-picker__head>span{align-self:flex-start}}
@media (max-width:440px){.chat-room-card{grid-template-columns:50px minmax(0,1fr) auto;padding:13px;gap:10px}.chat-room-card__icon{width:50px;height:50px}.chat-room-card__meta{white-space:normal}.chat-message__avatar{display:none}.chat-message{max-width:100%}.chat-message__bubble{width:100%}.chat-thread{padding:10px}.chat-compose-form{padding:12px}.chat-info-strip{font-size:12px}.admin-chat-stats{grid-template-columns:1fr 1fr}.admin-chat-member{padding:8px}.admin-chat-mute-form{grid-template-columns:1fr}.admin-chat-mute-form input,.admin-chat-mute-form button{grid-column:auto}}


/* ONLINE CHAT V2: separate compact messenger interface, hidden staff presence and admin control */
.admin-chat-toggle{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:16px 0;padding:16px 18px;border:1px solid #d7e4f4;border-radius:18px;background:linear-gradient(135deg,#f8fbff,#fff)}
.admin-chat-toggle__status{display:flex;align-items:flex-start;gap:11px}.admin-chat-toggle__status strong{display:block;color:#17335f;font-size:16px}.admin-chat-toggle__status p{margin:3px 0 0;color:#6c7c95;font-size:13px;line-height:1.45}.admin-chat-toggle__dot{flex:0 0 auto;width:12px;height:12px;margin-top:5px;border-radius:50%;background:#a6b4c8;box-shadow:0 0 0 5px rgba(166,180,200,.16)}.admin-chat-toggle.is-enabled{border-color:rgba(37,154,104,.32);background:linear-gradient(135deg,#f2fff8,#fff)}.admin-chat-toggle.is-enabled .admin-chat-toggle__dot{background:#26a269;box-shadow:0 0 0 5px rgba(38,162,105,.13)}.admin-chat-toggle.is-disabled{border-color:rgba(207,93,93,.28);background:linear-gradient(135deg,#fff7f7,#fff)}.admin-chat-toggle.is-disabled .admin-chat-toggle__dot{background:#d65a5a;box-shadow:0 0 0 5px rgba(214,90,90,.12)}
.admin-chat-icon-select{min-width:0}.admin-chat-create .admin-chat-icon-select select{width:100%;min-height:42px;padding:9px 34px 9px 11px;border:1px solid #cddbef;border-radius:13px;background:#fff;color:#182846;font:inherit;outline:0;cursor:pointer}.admin-chat-create .admin-chat-icon-select select:focus{border-color:#6b9eff;box-shadow:0 0 0 4px rgba(55,113,255,.12)}
.chat-room-head--messenger{padding:18px 20px}.chat-room-head--messenger .kicker{font-size:10px;letter-spacing:.09em}.chat-room-head--messenger .chat-room-head__title{gap:9px}.chat-room-head--messenger .chat-room-head__title h1{font-size:25px}.chat-room-head--messenger .chat-room-head__meta{margin-top:8px;gap:5px 10px}.chat-room-head--messenger .chat-room-head__meta span{padding:0;background:transparent;font-size:11px}
.chat-room-layout{grid-template-columns:minmax(0,1fr) 250px;gap:12px}.chat-thread-panel{border-radius:18px}.chat-thread-panel__head{padding:12px 15px}.chat-thread-panel__head h2{font-size:15px}.chat-thread-panel__head p{font-size:11px}.chat-thread{display:flex;flex-direction:column;gap:4px;max-height:68vh;min-height:360px;padding:12px 14px;background:radial-gradient(circle at 10% 0,rgba(123,155,255,.08),transparent 28%),linear-gradient(180deg,#fcfdff,#f7faff)}.chat-message{gap:6px;max-width:76%;margin:0}.chat-message__avatar{width:28px;height:28px;border-radius:9px;font-size:11px}.chat-message__bubble{padding:6px 9px;border-radius:13px 13px 13px 4px;box-shadow:none}.chat-message.is-mine .chat-message__bubble{border-radius:13px 13px 4px 13px}.chat-message__head{gap:8px;margin-bottom:2px;font-size:10px}.chat-message__head strong,.chat-message__head strong a{font-size:11px}.chat-message__body{font-size:13px;line-height:1.36}.chat-message__body p{margin:.1em 0}.chat-message__reply{margin:4px 0 3px;padding:4px 6px;font-size:11px}.chat-message__foot{gap:5px;margin-top:4px}.chat-message__reactions{gap:3px}.chat-message__action{min-height:22px;padding:2px 5px;font-size:10px}.chat-message__actions{gap:2px}.chat-compose-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;padding:10px 12px;border-top:1px solid #e5edf7;background:#fff}.chat-compose-form textarea{min-height:42px;padding:9px 10px;border-radius:12px;font-size:13px}.chat-compose-form .message-compose-toolbar{grid-column:1/-1;order:3;margin:0}.chat-compose-form .message-compose-panels{grid-column:1/-1;order:4}.chat-compose-form__send{align-self:stretch;min-height:42px;white-space:nowrap}.chat-room-sidebar{gap:10px}.chat-members-panel,.chat-invite-panel{border-radius:16px}.chat-members-panel{padding:12px}.chat-members-panel .panel__head{margin-bottom:5px}.chat-members-list{gap:0}.chat-member-row{padding:4px 1px}.chat-member-row__avatar{width:27px;height:27px;border-radius:8px}.chat-member-row>div a{font-size:11px}.chat-member-row>div span{font-size:9px}
html[data-theme="dark"] .admin-chat-toggle{border-color:rgba(112,145,204,.32);background:linear-gradient(135deg,#121d31,#101827)}html[data-theme="dark"] .admin-chat-toggle__status strong{color:#e6efff}html[data-theme="dark"] .admin-chat-toggle__status p{color:#b4c2d7}html[data-theme="dark"] .admin-chat-create .admin-chat-icon-select select{border-color:rgba(112,145,204,.36);background:#162237;color:#e6efff}html[data-theme="dark"] .chat-thread{background:radial-gradient(circle at 10% 0,rgba(123,155,255,.12),transparent 28%),linear-gradient(180deg,#172337,#121c2d)}html[data-theme="dark"] .chat-compose-form{border-color:rgba(112,145,204,.22);background:#142035}
html[data-theme="neon"] .admin-chat-toggle{border-color:rgba(43,219,255,.34);background:linear-gradient(135deg,#0b162b,#0e1830)}html[data-theme="neon"] .admin-chat-toggle__status strong{color:#ddfaff}html[data-theme="neon"] .admin-chat-toggle__status p{color:#aee9f6}html[data-theme="neon"] .admin-chat-create .admin-chat-icon-select select{border-color:rgba(43,219,255,.34);background:#0c1930;color:#e8fcff}html[data-theme="neon"] .chat-thread{background:radial-gradient(circle at 10% 0,rgba(0,229,255,.11),transparent 28%),linear-gradient(180deg,#0c1a31,#081325)}html[data-theme="neon"] .chat-compose-form{border-color:rgba(43,219,255,.22);background:#09162a}
@media (max-width:720px){.admin-chat-toggle{align-items:stretch;flex-direction:column;padding:14px}.admin-chat-toggle form,.admin-chat-toggle button{width:100%}.chat-room-head--messenger{padding:16px}.chat-thread{min-height:300px;max-height:60vh;padding:9px}.chat-message{max-width:88%}.chat-message__avatar{display:grid}.chat-message__bubble{width:auto}.chat-compose-form{grid-template-columns:1fr}.chat-compose-form__send{width:100%}.chat-room-sidebar{grid-template-columns:1fr}.chat-message__actions{opacity:1}}
@media (max-width:440px){.chat-message{max-width:94%}.chat-message__avatar{display:none}.chat-message__bubble{width:100%}}


/* ONLINE CHAT HOTFIX: restore scoped themes and room settings layout. */
html:not([data-theme="dark"]):not([data-theme="neon"]) .chat-thread,
html[data-theme="light"] .chat-thread {
    background:radial-gradient(circle at 10% 0,rgba(123,155,255,.08),transparent 28%),linear-gradient(180deg,#fcfdff,#f7faff);
}
html[data-theme="dark"] .chat-thread {
    background:radial-gradient(circle at 10% 0,rgba(123,155,255,.12),transparent 28%),linear-gradient(180deg,#172337,#121c2d);
}
html[data-theme="neon"] .chat-thread {
    background:radial-gradient(circle at 10% 0,rgba(0,229,255,.11),transparent 28%),linear-gradient(180deg,#0c1a31,#081325);
}
.chat-thread,
.chat-thread--admin {
    align-content:start;
}
.admin-chat-settings {
    margin-top:15px;
    padding:16px;
}
.admin-chat-settings .panel__head {
    margin-bottom:12px;
}
.admin-chat-settings .panel__head h2 {
    margin:0;
    color:#243c62;
    font-size:18px;
}
.admin-chat-settings .panel__head p {
    margin:4px 0 0;
    color:#74839d;
    font-size:12px;
    line-height:1.45;
}
.admin-chat-settings__form {
    display:grid;
    grid-template-columns:150px minmax(220px,1fr) minmax(280px,1.25fr) auto;
    align-items:end;
    gap:12px;
}
.admin-chat-settings__form > label {
    display:grid;
    gap:6px;
    color:#31415d;
    font-size:12px;
    font-weight:800;
}
.admin-chat-settings .admin-chat-icon-select select,
.admin-chat-settings input,
.admin-chat-settings textarea {
    width:100%;
    border:1px solid #cddbef;
    border-radius:13px;
    background:#fff;
    color:#182846;
    font:inherit;
    outline:0;
}
.admin-chat-settings .admin-chat-icon-select select,
.admin-chat-settings input {
    min-height:42px;
    padding:9px 11px;
}
.admin-chat-settings textarea {
    min-height:42px;
    padding:10px 11px;
    resize:vertical;
}
.admin-chat-settings .admin-chat-icon-select select:focus,
.admin-chat-settings input:focus,
.admin-chat-settings textarea:focus {
    border-color:#6b9eff;
    box-shadow:0 0 0 4px rgba(55,113,255,.12);
}
.admin-chat-settings button {
    min-height:42px;
    white-space:nowrap;
}
html[data-theme="dark"] .admin-chat-settings {
    border-color:rgba(112,145,204,.25);
    background:#172338;
}
html[data-theme="dark"] .admin-chat-settings .panel__head h2 { color:#e6efff; }
html[data-theme="dark"] .admin-chat-settings .panel__head p { color:#aab9d0; }
html[data-theme="dark"] .admin-chat-settings .admin-chat-icon-select select,
html[data-theme="dark"] .admin-chat-settings input,
html[data-theme="dark"] .admin-chat-settings textarea {
    border-color:rgba(112,145,204,.38);
    background:#0f1929;
    color:#e8f1ff;
}
html[data-theme="neon"] .admin-chat-settings {
    border-color:rgba(35,220,255,.25);
    background:#0d162c;
}
html[data-theme="neon"] .admin-chat-settings .panel__head h2 { color:#e7fbff; }
html[data-theme="neon"] .admin-chat-settings .panel__head p { color:#b9eefa; }
html[data-theme="neon"] .admin-chat-settings .admin-chat-icon-select select,
html[data-theme="neon"] .admin-chat-settings input,
html[data-theme="neon"] .admin-chat-settings textarea {
    border-color:rgba(43,219,255,.42);
    background:#081326;
    color:#e8fcff;
}
@media (max-width:1060px) {
    .admin-chat-settings__form {
        grid-template-columns:150px minmax(0,1fr);
    }
    .admin-chat-settings__form > label:nth-child(3) {
        grid-column:1/-1;
    }
}
@media (max-width:720px) {
    .admin-chat-settings {
        padding:14px;
    }
    .admin-chat-settings__form {
        grid-template-columns:1fr;
    }
    .admin-chat-settings__form > label:nth-child(3) {
        grid-column:auto;
    }
    .admin-chat-settings button {
        width:100%;
    }
}

/* ONLINE CHAT MESSENGER UI: focused live conversation, distinct from Groups. */
.chat-room-layout--messenger {
    grid-template-columns:minmax(0, 1fr) 232px;
    align-items:stretch;
    gap:16px;
}
.chat-thread-panel--messenger {
    display:flex;
    flex-direction:column;
    min-height:0;
    height:clamp(500px, 70vh, 760px);
    border:1px solid #d6e2f2;
    border-radius:22px;
    background:#fff;
    box-shadow:0 20px 46px rgba(32,66,122,.11);
}
.chat-thread-panel--messenger .chat-thread-panel__head--messenger {
    flex:0 0 auto;
    align-items:center;
    min-height:68px;
    padding:12px 16px;
    border-bottom:1px solid #e6edf7;
    background:linear-gradient(180deg,#fff,#f8fbff);
}
.chat-thread-panel__identity {
    display:flex;
    align-items:center;
    min-width:0;
    gap:10px;
}
.chat-thread-panel__icon {
    display:grid;
    place-items:center;
    flex:0 0 auto;
    width:38px;
    height:38px;
    border:1px solid #dbe6f6;
    border-radius:13px;
    background:linear-gradient(135deg,#eff5ff,#f4f0ff);
    box-shadow:0 6px 14px rgba(54,92,160,.10);
    font-size:19px;
}
.chat-thread-panel__identity h2 {
    overflow:hidden;
    margin:0;
    color:#18335c;
    font-size:15px;
    line-height:1.2;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.chat-thread-panel__identity p {
    display:flex;
    align-items:center;
    gap:5px;
    margin:3px 0 0;
    color:#8290a5;
    font-size:10px;
    line-height:1.25;
}
.chat-thread-panel__online-dot {
    width:7px;
    height:7px;
    border-radius:50%;
    background:#22b573;
    box-shadow:0 0 0 3px rgba(34,181,115,.14);
}
.chat-thread-panel--messenger .chat-new-messages {
    flex:0 0 auto;
    padding:7px 10px;
    border-color:#9abcf2;
    background:#edf5ff;
    color:#2f66c2;
    font-size:11px;
}
.chat-thread--messenger {
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    align-content:normal;
    min-height:0;
    max-height:none;
    gap:7px;
    overflow:auto;
    padding:18px 20px 20px;
    border:0;
    border-radius:0;
    background:
        radial-gradient(circle at 1px 1px, rgba(85,119,178,.10) 1px, transparent 1.2px) 0 0/19px 19px,
        linear-gradient(180deg,#f9fbff 0%,#edf3fb 100%);
    scroll-behavior:smooth;
}
.chat-thread--messenger::-webkit-scrollbar,
.chat-thread--review::-webkit-scrollbar,
.chat-members-panel--messenger .chat-members-list::-webkit-scrollbar {
    width:8px;
}
.chat-thread--messenger::-webkit-scrollbar-thumb,
.chat-thread--review::-webkit-scrollbar-thumb,
.chat-members-panel--messenger .chat-members-list::-webkit-scrollbar-thumb {
    border:2px solid transparent;
    border-radius:999px;
    background:#c9d7eb;
    background-clip:padding-box;
}
.chat-thread--messenger .chat-message,
.chat-thread--review .chat-message {
    position:relative;
    display:flex;
    align-items:flex-end;
    max-width:min(78%, 640px);
    gap:8px;
    margin:0;
}
.chat-thread--messenger .chat-message.is-mine,
.chat-thread--review .chat-message.is-mine {
    margin-left:auto;
}
.chat-thread--messenger .chat-message__avatar,
.chat-thread--review .chat-message__avatar {
    width:31px;
    height:31px;
    border:2px solid rgba(255,255,255,.84);
    border-radius:11px;
    background:#e9f1ff;
    box-shadow:0 3px 9px rgba(39,74,132,.10);
    font-size:11px;
}
.chat-thread--messenger .chat-message__bubble,
.chat-thread--review .chat-message__bubble {
    min-width:0;
    max-width:100%;
    padding:8px 10px 7px;
    border:1px solid rgba(196,210,230,.90);
    border-radius:17px 17px 17px 5px;
    background:rgba(255,255,255,.96);
    box-shadow:0 4px 13px rgba(37,70,124,.07);
}
.chat-thread--messenger .chat-message.is-mine .chat-message__bubble,
.chat-thread--review .chat-message.is-mine .chat-message__bubble {
    border-color:#bcd3ff;
    border-radius:17px 17px 5px 17px;
    background:linear-gradient(135deg,#eaf2ff,#f0ecff);
    box-shadow:0 5px 15px rgba(70,94,184,.10);
}
.chat-thread--messenger .chat-message__head,
.chat-thread--review .chat-message__head {
    gap:10px;
    margin:0 0 3px;
    font-size:10px;
}
.chat-thread--messenger .chat-message__head strong,
.chat-thread--messenger .chat-message__head strong a,
.chat-thread--review .chat-message__head strong,
.chat-thread--review .chat-message__head strong a {
    color:#31588f;
    font-size:11px;
    font-weight:900;
}
.chat-thread--messenger .chat-message__head time,
.chat-thread--review .chat-message__head time {
    margin-left:auto;
    color:#91a0b4;
    font-size:10px;
}
.chat-thread--messenger .chat-message__body,
.chat-thread--review .chat-message__body {
    color:#233a5b;
    font-size:13px;
    line-height:1.42;
}
.chat-thread--messenger .chat-message__body p,
.chat-thread--review .chat-message__body p {
    margin:.08em 0;
}
.chat-thread--messenger .chat-message__reply,
.chat-thread--review .chat-message__reply {
    margin:0 0 5px;
    padding:5px 7px;
    border-left:3px solid #92b2ee;
    border-radius:8px;
    background:rgba(236,243,255,.78);
    font-size:11px;
}
.chat-thread--messenger .chat-message__reply p,
.chat-thread--review .chat-message__reply p {
    font-size:11px;
}
.chat-thread--messenger .chat-message__foot,
.chat-thread--review .chat-message__foot {
    align-items:center;
    gap:6px;
    margin-top:5px;
}
.chat-thread--messenger .chat-message__reactions,
.chat-thread--review .chat-message__reactions {
    gap:3px;
}
.chat-thread--messenger .chat-reaction,
.chat-thread--review .chat-reaction {
    display:inline-flex;
    align-items:center;
    gap:3px;
    min-height:21px;
    padding:2px 5px;
    border:1px solid #d6e2f2;
    border-radius:999px;
    background:rgba(248,251,255,.92);
    color:#596f92;
    font:inherit;
    font-size:10px;
    line-height:1;
    cursor:pointer;
}
.chat-thread--messenger .chat-reaction:hover,
.chat-thread--review .chat-reaction:hover {
    border-color:#9bbbf0;
    background:#eef5ff;
}
.chat-thread--messenger .chat-reaction.is-mine,
.chat-thread--review .chat-reaction.is-mine {
    border-color:#9dbbf2;
    background:#e5efff;
    color:#2f62b6;
}
.chat-thread--messenger .chat-reaction:disabled,
.chat-thread--review .chat-reaction:disabled {
    cursor:default;
    opacity:.76;
}
.chat-thread--messenger .chat-message__actions,
.chat-thread--review .chat-message__actions {
    gap:2px;
    opacity:0;
}
.chat-thread--messenger .chat-message:hover .chat-message__actions,
.chat-thread--messenger .chat-message:focus-within .chat-message__actions,
.chat-thread--review .chat-message:hover .chat-message__actions,
.chat-thread--review .chat-message:focus-within .chat-message__actions {
    opacity:1;
}
.chat-thread--messenger .chat-message__action,
.chat-thread--review .chat-message__action {
    padding:1px 4px;
    color:#7186a2;
    font-size:10px;
}
.chat-thread--messenger .chat-message.is-continuation,
.chat-thread--review .chat-message.is-continuation {
    margin-top:-4px;
}
.chat-thread--messenger .chat-message.is-continuation:not(.is-mine),
.chat-thread--review .chat-message.is-continuation:not(.is-mine) {
    padding-left:39px;
}
.chat-thread--messenger .chat-message.is-continuation.is-mine,
.chat-thread--review .chat-message.is-continuation.is-mine {
    padding-right:39px;
}
.chat-thread--messenger .chat-message.is-continuation .chat-message__avatar,
.chat-thread--review .chat-message.is-continuation .chat-message__avatar {
    display:none;
}
.chat-thread--messenger .chat-message.is-continuation .chat-message__head,
.chat-thread--review .chat-message.is-continuation .chat-message__head {
    justify-content:flex-end;
    min-height:0;
    margin-bottom:1px;
}
.chat-thread--messenger .chat-message.is-continuation .chat-message__head strong,
.chat-thread--review .chat-message.is-continuation .chat-message__head strong {
    display:none;
}
.chat-thread--messenger .chat-message.is-live-new .chat-message__bubble {
    animation:chat-messenger-live-pulse 1.5s ease both;
}
.chat-thread__bottom {
    flex:0 0 0;
    height:0;
    overflow:hidden;
}
.chat-compose-form--messenger {
    position:relative;
    display:block;
    flex:0 0 auto;
    gap:0;
    margin:0;
    padding:10px 12px 9px;
    border-top:1px solid #e4ecf7;
    background:rgba(255,255,255,.98);
}
.chat-compose-form--messenger .chat-compose-form__row {
    display:grid;
    grid-template-columns:38px minmax(0,1fr) 42px;
    align-items:end;
    gap:8px;
}
.chat-compose-form--messenger .chat-compose-form__emoji,
.chat-compose-form--messenger .chat-compose-form__send {
    display:grid;
    place-items:center;
    min-width:0;
    height:42px;
    padding:0;
    border:0;
    border-radius:13px;
    font:inherit;
    cursor:pointer;
}
.chat-compose-form--messenger .chat-compose-form__emoji {
    background:#edf3fb;
    color:#54729c;
    font-size:18px;
}
.chat-compose-form--messenger .chat-compose-form__emoji.is-active,
.chat-compose-form--messenger .chat-compose-form__emoji:hover {
    background:#e4edff;
    color:#4169b4;
}
.chat-compose-form--messenger textarea {
    min-height:42px;
    max-height:120px;
    padding:10px 12px;
    resize:vertical;
    border:1px solid #d5e1f1;
    border-radius:13px;
    background:#f9fbff;
    color:#203859;
    font-size:13px;
    line-height:1.35;
}
.chat-compose-form--messenger textarea:focus {
    border-color:#7fa9f5;
    background:#fff;
    box-shadow:0 0 0 4px rgba(80,131,240,.12);
}
.chat-compose-form--messenger .chat-compose-form__send {
    background:linear-gradient(135deg,#3d7cff,#6a50e5);
    box-shadow:0 9px 18px rgba(63,109,224,.25);
    color:#fff;
    font-size:18px;
    transition:transform .15s ease, box-shadow .15s ease;
}
.chat-compose-form--messenger .chat-compose-form__send:hover {
    box-shadow:0 12px 24px rgba(63,109,224,.33);
    transform:translateY(-1px);
}
.chat-compose-form--messenger .chat-compose-form__footer {
    display:flex;
    justify-content:space-between;
    gap:10px;
    margin-top:6px;
    padding:0 3px;
    color:#90a0b4;
    font-size:10px;
    line-height:1.35;
}
.chat-compose-form--messenger .chat-compose-form__footer span:last-child {
    text-align:right;
}
.chat-compose-form--messenger .chat-compose-form__panels {
    position:absolute;
    z-index:25;
    right:12px;
    bottom:76px;
    left:12px;
}
.chat-compose-form--messenger .message-compose-panel {
    box-shadow:0 18px 38px rgba(33,65,119,.20);
}
.chat-room-sidebar--messenger {
    position:sticky;
    top:78px;
    align-self:start;
    gap:11px;
}
.chat-members-panel--messenger {
    padding:13px;
    border-radius:18px;
    box-shadow:0 12px 28px rgba(33,65,119,.07);
}
.chat-members-panel--messenger .panel__head {
    align-items:flex-start;
    margin-bottom:9px;
}
.chat-members-panel--messenger .panel__head h2 {
    color:#243c63;
    font-size:14px;
}
.chat-members-panel--messenger .panel__head small {
    display:block;
    margin-top:2px;
    color:#91a0b3;
    font-size:10px;
}
.chat-members-panel--messenger .chat-members-list {
    max-height:calc(clamp(500px, 70vh, 760px) - 108px);
    gap:1px;
}
.chat-members-panel--messenger .chat-member-row {
    grid-template-columns:28px minmax(0,1fr) auto auto;
    gap:7px;
    min-height:40px;
    padding:5px 2px;
    border-radius:10px;
}
.chat-members-panel--messenger .chat-member-row:hover {
    background:#f4f8ff;
}
.chat-members-panel--messenger .chat-member-row__avatar {
    position:relative;
    width:28px;
    height:28px;
    border-radius:9px;
    font-size:10px;
}
.chat-members-panel--messenger .chat-member-row.is-online .chat-member-row__avatar::after {
    position:absolute;
    right:-2px;
    bottom:-2px;
    width:8px;
    height:8px;
    border:2px solid #fff;
    border-radius:50%;
    background:#25b675;
    content:"";
}
.chat-members-panel--messenger .chat-member-row>div a {
    font-size:11px;
}
.chat-members-panel--messenger .chat-member-row>div span {
    font-size:9px;
}
.chat-members-panel--messenger .chat-member-row em {
    display:none;
}
.admin-chat-room-layout--messenger {
    grid-template-columns:minmax(0,1fr) 320px;
    gap:16px;
}
.admin-chat-thread--messenger {
    min-width:0;
    padding:14px;
    overflow:hidden;
    border:1px solid #d6e2f2;
    border-radius:20px;
    background:#fff;
    box-shadow:0 16px 36px rgba(32,66,122,.08);
}
.admin-chat-thread--messenger .panel__head {
    margin:0 0 10px;
    padding:0 2px;
}
.chat-thread--review {
    display:flex;
    flex-direction:column;
    min-height:500px;
    height:clamp(500px, 68vh, 740px);
    max-height:none;
    gap:7px;
    padding:16px;
    border:1px solid #e0e9f5;
    border-radius:16px;
    background:
        radial-gradient(circle at 1px 1px, rgba(85,119,178,.10) 1px, transparent 1.2px) 0 0/19px 19px,
        linear-gradient(180deg,#f9fbff 0%,#eff4fb 100%);
}
.admin-chat-thread--messenger .chat-thread--review .chat-message {
    max-width:min(82%, 680px);
}
.admin-chat-aside {
    position:sticky;
    top:78px;
}
@keyframes chat-messenger-live-pulse {
    0%,100% { box-shadow:0 4px 13px rgba(37,70,124,.07); }
    35% { box-shadow:0 0 0 4px rgba(72,126,245,.18),0 10px 22px rgba(37,70,124,.13); }
}
html[data-theme="dark"] .chat-thread-panel--messenger,
html[data-theme="dark"] .admin-chat-thread--messenger {
    border-color:rgba(112,145,204,.32);
    background:#111d31;
    box-shadow:0 18px 42px rgba(0,0,0,.25);
}
html[data-theme="dark"] .chat-thread-panel--messenger .chat-thread-panel__head--messenger,
html[data-theme="dark"] .chat-compose-form--messenger {
    border-color:rgba(112,145,204,.23);
    background:#142137;
}
html[data-theme="dark"] .chat-thread-panel__icon {
    border-color:rgba(112,145,204,.34);
    background:#1d2d49;
}
html[data-theme="dark"] .chat-thread-panel__identity h2,
html[data-theme="dark"] .chat-members-panel--messenger .panel__head h2 {
    color:#e8f0ff;
}
html[data-theme="dark"] .chat-thread-panel__identity p,
html[data-theme="dark"] .chat-compose-form--messenger .chat-compose-form__footer,
html[data-theme="dark"] .chat-members-panel--messenger .panel__head small {
    color:#aabbd2;
}
html[data-theme="dark"] .chat-thread--messenger,
html[data-theme="dark"] .chat-thread--review {
    border-color:rgba(112,145,204,.22);
    background:
        radial-gradient(circle at 1px 1px, rgba(148,178,230,.09) 1px, transparent 1.2px) 0 0/19px 19px,
        linear-gradient(180deg,#142138 0%,#0e192a 100%);
}
html[data-theme="dark"] .chat-thread--messenger .chat-message__bubble,
html[data-theme="dark"] .chat-thread--review .chat-message__bubble {
    border-color:rgba(112,145,204,.34);
    background:#1b2b46;
    box-shadow:0 4px 13px rgba(0,0,0,.19);
}
html[data-theme="dark"] .chat-thread--messenger .chat-message.is-mine .chat-message__bubble,
html[data-theme="dark"] .chat-thread--review .chat-message.is-mine .chat-message__bubble {
    border-color:rgba(150,135,255,.50);
    background:linear-gradient(135deg,#28375d,#34294f);
}
html[data-theme="dark"] .chat-thread--messenger .chat-message__body,
html[data-theme="dark"] .chat-thread--review .chat-message__body {
    color:#e7efff;
}
html[data-theme="dark"] .chat-thread--messenger .chat-message__head strong,
html[data-theme="dark"] .chat-thread--messenger .chat-message__head strong a,
html[data-theme="dark"] .chat-thread--review .chat-message__head strong,
html[data-theme="dark"] .chat-thread--review .chat-message__head strong a {
    color:#bcd5ff;
}
html[data-theme="dark"] .chat-thread--messenger .chat-message__reply,
html[data-theme="dark"] .chat-thread--review .chat-message__reply {
    border-color:#6e91d5;
    background:#132039;
}
html[data-theme="dark"] .chat-compose-form--messenger textarea {
    border-color:rgba(112,145,204,.38);
    background:#0d1829;
    color:#ebf2ff;
}
html[data-theme="dark"] .chat-compose-form--messenger .chat-compose-form__emoji {
    background:#1e2d46;
    color:#c6d7f4;
}
html[data-theme="dark"] .chat-members-panel--messenger {
    border-color:rgba(112,145,204,.28);
    background:#142137;
}
html[data-theme="dark"] .chat-members-panel--messenger .chat-member-row:hover {
    background:#1b2b45;
}
html[data-theme="dark"] .chat-members-panel--messenger .chat-member-row.is-online .chat-member-row__avatar::after {
    border-color:#142137;
}
html[data-theme="dark"] .chat-thread--messenger .chat-reaction,
html[data-theme="dark"] .chat-thread--review .chat-reaction {
    border-color:rgba(112,145,204,.34);
    background:#172640;
    color:#c6d4e9;
}
html[data-theme="neon"] .chat-thread-panel--messenger,
html[data-theme="neon"] .admin-chat-thread--messenger {
    border-color:rgba(43,219,255,.35);
    background:#0b162a;
    box-shadow:0 0 30px rgba(0,216,255,.10);
}
html[data-theme="neon"] .chat-thread-panel--messenger .chat-thread-panel__head--messenger,
html[data-theme="neon"] .chat-compose-form--messenger {
    border-color:rgba(43,219,255,.23);
    background:#0d1a30;
}
html[data-theme="neon"] .chat-thread-panel__icon {
    border-color:rgba(43,219,255,.35);
    background:#10294a;
}
html[data-theme="neon"] .chat-thread-panel__identity h2,
html[data-theme="neon"] .chat-members-panel--messenger .panel__head h2 {
    color:#e4fbff;
}
html[data-theme="neon"] .chat-thread-panel__identity p,
html[data-theme="neon"] .chat-compose-form--messenger .chat-compose-form__footer,
html[data-theme="neon"] .chat-members-panel--messenger .panel__head small {
    color:#a9e2ef;
}
html[data-theme="neon"] .chat-thread--messenger,
html[data-theme="neon"] .chat-thread--review {
    border-color:rgba(43,219,255,.22);
    background:
        radial-gradient(circle at 1px 1px, rgba(91,241,255,.09) 1px, transparent 1.2px) 0 0/19px 19px,
        linear-gradient(180deg,#0d1b31 0%,#071224 100%);
}
html[data-theme="neon"] .chat-thread--messenger .chat-message__bubble,
html[data-theme="neon"] .chat-thread--review .chat-message__bubble {
    border-color:rgba(43,219,255,.28);
    background:#10233d;
    box-shadow:0 4px 14px rgba(0,0,0,.25);
}
html[data-theme="neon"] .chat-thread--messenger .chat-message.is-mine .chat-message__bubble,
html[data-theme="neon"] .chat-thread--review .chat-message.is-mine .chat-message__bubble {
    border-color:rgba(146,105,255,.55);
    background:linear-gradient(135deg,#17345c,#2b2151);
}
html[data-theme="neon"] .chat-thread--messenger .chat-message__body,
html[data-theme="neon"] .chat-thread--review .chat-message__body {
    color:#e2fbff;
}
html[data-theme="neon"] .chat-thread--messenger .chat-message__head strong,
html[data-theme="neon"] .chat-thread--messenger .chat-message__head strong a,
html[data-theme="neon"] .chat-thread--review .chat-message__head strong,
html[data-theme="neon"] .chat-thread--review .chat-message__head strong a {
    color:#a7efff;
}
html[data-theme="neon"] .chat-thread--messenger .chat-message__reply,
html[data-theme="neon"] .chat-thread--review .chat-message__reply {
    border-color:#5eeaff;
    background:#0a1830;
}
html[data-theme="neon"] .chat-compose-form--messenger textarea {
    border-color:rgba(43,219,255,.38);
    background:#071325;
    color:#e5fcff;
}
html[data-theme="neon"] .chat-compose-form--messenger .chat-compose-form__emoji {
    background:#102746;
    color:#b3f4ff;
}
html[data-theme="neon"] .chat-members-panel--messenger {
    border-color:rgba(43,219,255,.27);
    background:#0d1b31;
}
html[data-theme="neon"] .chat-members-panel--messenger .chat-member-row:hover {
    background:#102946;
}
html[data-theme="neon"] .chat-members-panel--messenger .chat-member-row.is-online .chat-member-row__avatar::after {
    border-color:#0d1b31;
}
html[data-theme="neon"] .chat-thread--messenger .chat-reaction,
html[data-theme="neon"] .chat-thread--review .chat-reaction {
    border-color:rgba(43,219,255,.27);
    background:#0b1a31;
    color:#b5eef7;
}
@media (max-width:1060px) {
    .chat-room-layout--messenger { grid-template-columns:minmax(0,1fr) 210px; gap:12px; }
    .admin-chat-room-layout--messenger { grid-template-columns:minmax(0,1fr) 290px; gap:12px; }
    .chat-thread--messenger { padding:15px; }
}
@media (max-width:760px) {
    .chat-room-layout--messenger,
    .admin-chat-room-layout--messenger { grid-template-columns:1fr; }
    .chat-thread-panel--messenger { height:clamp(430px, 66vh, 620px); border-radius:18px; }
    .chat-thread-panel--messenger .chat-thread-panel__head--messenger { padding:10px 12px; }
    .chat-thread--messenger { gap:6px; padding:13px 11px 15px; }
    .chat-thread--messenger .chat-message,
    .chat-thread--review .chat-message { max-width:88%; }
    .chat-room-sidebar--messenger,
    .admin-chat-aside { position:static; }
    .chat-members-panel--messenger .chat-members-list { max-height:260px; }
    .chat-compose-form--messenger { padding:9px; }
    .chat-compose-form--messenger .chat-compose-form__footer { display:block; }
    .chat-compose-form--messenger .chat-compose-form__footer span { display:block; }
    .chat-compose-form--messenger .chat-compose-form__footer span:last-child { display:none; }
    .chat-compose-form--messenger .chat-compose-form__panels { right:9px; bottom:70px; left:9px; }
    .chat-thread--review { min-height:410px; height:62vh; padding:12px; }
}
@media (max-width:480px) {
    .chat-thread-panel--messenger { height:clamp(410px, 64vh, 560px); }
    .chat-thread-panel__icon { width:34px; height:34px; border-radius:11px; font-size:17px; }
    .chat-thread-panel__identity h2 { font-size:14px; }
    .chat-thread-panel__identity p { font-size:9px; }
    .chat-thread-panel--messenger .chat-new-messages { padding:6px 8px; font-size:10px; }
    .chat-thread--messenger .chat-message,
    .chat-thread--review .chat-message { max-width:94%; gap:5px; }
    .chat-thread--messenger .chat-message__avatar,
    .chat-thread--review .chat-message__avatar { width:26px; height:26px; border-radius:9px; }
    .chat-thread--messenger .chat-message.is-continuation:not(.is-mine),
    .chat-thread--review .chat-message.is-continuation:not(.is-mine) { padding-left:31px; }
    .chat-thread--messenger .chat-message.is-continuation.is-mine,
    .chat-thread--review .chat-message.is-continuation.is-mine { padding-right:31px; }
    .chat-thread--messenger .chat-message__bubble,
    .chat-thread--review .chat-message__bubble { padding:7px 9px 6px; }
    .chat-compose-form--messenger .chat-compose-form__row { grid-template-columns:36px minmax(0,1fr) 40px; gap:6px; }
    .chat-compose-form--messenger .chat-compose-form__emoji,
    .chat-compose-form--messenger .chat-compose-form__send { height:40px; border-radius:12px; }
    .chat-compose-form--messenger textarea { min-height:40px; padding:9px; }
}


/* PATCH 2026-06-24: selected public profile photos */
.profile-photo-selection-panel{display:grid;gap:16px}
.profile-photo-selection-head{align-items:flex-start}
.profile-photo-selection-count{display:inline-flex;align-items:center;justify-content:center;min-width:78px;min-height:34px;padding:6px 12px;border:1px solid #d8e5fb;border-radius:999px;background:#eef5ff;color:#236dff;font-weight:900;white-space:nowrap}
.profile-photo-selection-form{display:grid;gap:14px}
.profile-photo-selection-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.profile-photo-selection-card{position:relative;display:grid;overflow:hidden;border:1px solid #d8e3f5;border-radius:16px;background:linear-gradient(180deg,#fff,#fbfdff);box-shadow:0 8px 20px rgba(30,70,140,.06);cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.profile-photo-selection-card:hover{transform:translateY(-1px);border-color:#a9c8ff}
.profile-photo-selection-card.is-selected{border-color:#4f82ff;box-shadow:0 10px 24px rgba(36,109,255,.16)}
.profile-photo-selection-card.is-main{border-color:#bca7ff}
.profile-photo-selection-card__check{display:flex;gap:7px;align-items:center;padding:10px 10px 8px;font-size:12px;font-weight:850;color:#182943}
.profile-photo-selection-card__check input{width:16px;height:16px;accent-color:#236dff}
.profile-photo-selection-card__check input:disabled{opacity:1;cursor:default}
.profile-photo-selection-card__media{display:block;aspect-ratio:4/3;overflow:hidden;background:#eef4ff}
.profile-photo-selection-card__media img{display:block;width:100%;height:100%;object-fit:cover}
.profile-photo-selection-card__meta{display:grid;gap:3px;padding:9px 10px 11px}
.profile-photo-selection-card__meta strong{font-size:13px;color:#182943}
.profile-photo-selection-card__meta small{font-size:11px;line-height:1.3;color:#66758f}
.profile-photo-selection-note{margin:0;color:#516078;font-size:13px}
.profile-photo-selection-note.is-limit-reached{color:#236dff;font-weight:800}
.profile-photo-selection-actions{display:flex;justify-content:flex-end}
.profile-photo-selection-actions button{border:0;border-radius:14px;padding:12px 18px;background:var(--blue);color:#fff;font:800 15px/1 system-ui;cursor:pointer}
.profile-photo-selection-actions button:hover{filter:brightness(.98);transform:translateY(-1px)}
html[data-theme="dark"] .profile-photo-selection-card{background:linear-gradient(145deg,#1f2937,#172033);border-color:#35445f;box-shadow:0 12px 26px rgba(0,0,0,.18)}
html[data-theme="dark"] .profile-photo-selection-card.is-selected{border-color:#75a7ff;box-shadow:0 12px 28px rgba(0,0,0,.26)}
html[data-theme="dark"] .profile-photo-selection-count{background:#22344f;border-color:#395476;color:#a9cbff}
html[data-theme="dark"] .profile-photo-selection-card__check,html[data-theme="dark"] .profile-photo-selection-card__meta strong{color:#edf4ff}
html[data-theme="dark"] .profile-photo-selection-card__meta small,html[data-theme="dark"] .profile-photo-selection-note{color:#aebddb}
html[data-theme="neon"] .profile-photo-selection-card{background:linear-gradient(145deg,rgba(25,10,52,.94),rgba(16,7,34,.98));border-color:rgba(100,79,201,.36);box-shadow:0 0 18px rgba(102,126,234,.10),0 14px 30px rgba(0,0,0,.22)}
html[data-theme="neon"] .profile-photo-selection-card.is-selected{border-color:rgba(161,132,255,.9);box-shadow:0 0 20px rgba(139,92,246,.25)}
html[data-theme="neon"] .profile-photo-selection-count{background:rgba(57,32,112,.72);border-color:rgba(148,116,255,.38);color:#d8ccff}
html[data-theme="neon"] .profile-photo-selection-card__check,html[data-theme="neon"] .profile-photo-selection-card__meta strong{color:#fff}
html[data-theme="neon"] .profile-photo-selection-card__meta small,html[data-theme="neon"] .profile-photo-selection-note{color:#c8bdf4}
@media (max-width:720px){.profile-photo-selection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.profile-photo-selection-actions{justify-content:stretch}.profile-photo-selection-actions button{width:100%}}
@media (max-width:390px){.profile-photo-selection-grid{grid-template-columns:1fr}}

/* HOTFIX 2026-06-24: keep an owner-visible photo preview in ad editing even when it is beyond the current tariff limit. */
.ad-new-photo-card__tariff-note{
    position:absolute;
    z-index:4;
    left:8px;
    right:8px;
    bottom:8px;
    display:grid;
    gap:2px;
    padding:7px 8px;
    border:1px solid rgba(255,255,255,.42);
    border-radius:10px;
    background:rgba(27,18,54,.78);
    color:#fff;
    text-align:left;
    pointer-events:none;
    box-shadow:0 8px 18px rgba(20,13,52,.25);
}
.ad-new-photo-card__tariff-note strong{font-size:11px;line-height:1.1;font-weight:950}
.ad-new-photo-card__tariff-note span{font-size:10px;line-height:1.2;font-weight:750;color:rgba(255,255,255,.9)}
.ad-photo-card.is-tariff-locked.is-retained-over-limit .photo-card-settings__toggle{opacity:1}
.ad-photo-card.is-tariff-locked.is-retained-over-limit .photo-select-checkbox,
.ad-photo-card.is-tariff-locked.is-retained-over-limit .photo-main-radio,
.ad-photo-card.is-tariff-locked.is-retained-over-limit .photo-privacy-checkbox{cursor:pointer}
html[data-theme="dark"] .ad-new-photo-card__tariff-note{background:rgba(9,14,28,.84);border-color:rgba(142,180,255,.36)}
html[data-theme="neon"] .ad-new-photo-card__tariff-note{background:rgba(28,10,64,.86);border-color:rgba(178,142,255,.48);box-shadow:0 0 18px rgba(139,92,246,.28)}

/* FIX 2026-07-21: keep the full desktop header navigation on one row. */
@media(min-width:1101px){
    .topbar--modern .topbar__inner{
        display:grid!important;
        grid-template-columns:max-content minmax(0,1fr) max-content!important;
        grid-template-rows:1fr!important;
        align-items:center!important;
        justify-content:stretch!important;
        gap:12px!important;
        min-height:82px!important;
        padding:0!important;
    }
    .topbar--modern .topbar-brand-cluster{
        grid-column:1!important;
        grid-row:1!important;
        flex-wrap:nowrap!important;
        max-width:none!important;
    }
    .topbar--modern .nav--modern{
        grid-column:2!important;
        grid-row:1!important;
        order:0!important;
        flex:none!important;
        width:100%!important;
        min-width:0!important;
        max-width:none!important;
        justify-content:center!important;
        overflow-x:auto!important;
        overflow-y:hidden!important;
        margin:0!important;
        padding:2px 0!important;
        scrollbar-width:none!important;
    }
    .topbar--modern .nav--modern::-webkit-scrollbar{display:none!important}
    .topbar--modern .topbar-tools,
    .topbar--modern .topbar-auth{
        grid-column:3!important;
        grid-row:1!important;
        justify-self:end!important;
        margin-left:0!important;
    }
}
@media(min-width:1101px) and (max-width:1500px){
    .topbar--modern .nav--modern{gap:6px!important;justify-content:flex-start!important}
    .topbar--modern .nav--modern .nav-item{min-width:72px!important;padding-left:7px!important;padding-right:7px!important}
    .topbar--modern .nav--modern .nav-item.is-active,
    .topbar--modern .nav--modern .nav-item--primary.is-active{min-width:100px!important}
}
.profile-place-availability-hint{
    color:#73819a;
    font-size:12px;
    font-weight:700;
    line-height:1.4;
}
html[data-theme="dark"] .profile-place-availability-hint{color:#aebdd3!important}
html[data-theme="neon"] .profile-place-availability-hint{color:#9eade0!important}


/* FIX: city quick links must follow dark theme after selecting a popular city. */
html[data-theme="dark"] .landing-link-group--collapsible{
    background:#1f2d44!important;
    border-color:#3a4d6d!important;
    box-shadow:none!important;
}
html[data-theme="dark"] .landing-link-group--collapsible>summary{
    background:#22334f!important;
    color:#dce7f7!important;
}
html[data-theme="dark"] .landing-link-group--collapsible>summary small{
    color:#aab7cb!important;
}
html[data-theme="dark"] .landing-link-group--collapsible>summary::after{
    background:#2b466a!important;
    color:#9fc0ff!important;
}
html[data-theme="dark"] .landing-link-group--collapsible[open]>summary{
    background:#263a58!important;
    border-bottom-color:#3a4d6d!important;
}

/* PATCH 2026-07-31: mobile messenger, unavailable conversations and direct admin moderation action */
.message-thread-panel{position:relative}
.message-thread{
    max-height:min(68vh,760px);
    overflow-y:auto;
    overscroll-behavior:contain;
    scroll-behavior:smooth;
    scrollbar-gutter:stable;
    padding:10px 8px;
    border:1px solid var(--border);
    border-radius:18px;
    background:var(--surface-soft);
}
.message-thread-new-marker{
    position:sticky;
    z-index:15;
    bottom:12px;
    display:block;
    width:max-content;
    margin:-54px auto 12px;
    padding:10px 16px;
    border-radius:999px;
    box-shadow:0 12px 28px rgba(15,23,42,.2);
}
.message-thread-new-marker[hidden]{display:none}
.message-thread-warning--unavailable{border-color:#f59e0b;background:#fffbeb;color:#854d0e}
.message-safety-actions__note{display:inline-flex;align-items:center;color:var(--muted);font-size:13px;font-weight:750}
.conversation-topic.is-unavailable{border-style:dashed;opacity:.92}
.conversation-topic.is-unavailable .conversation-topic__avatar{filter:grayscale(1)}
.public-profile-admin-action{
    border-color:#7c3aed!important;
    background:linear-gradient(135deg,#7c3aed,#4f46e5)!important;
    color:#fff!important;
    font-weight:950!important;
    box-shadow:0 12px 26px rgba(79,70,229,.22);
}
.public-profile-admin-action:hover{transform:translateY(-1px);box-shadow:0 16px 30px rgba(79,70,229,.3)}

@media(max-width:760px){
    .message-thread-head{padding:14px!important;gap:12px}
    .message-thread-head h1{font-size:22px!important;line-height:1.16}
    .message-thread-head p{font-size:13px;line-height:1.35}
    .message-thread-head__actions{width:100%;align-items:stretch!important;gap:8px!important}
    .message-thread-head__actions>a{display:flex;justify-content:center;min-height:42px;align-items:center}
    .message-safety-actions{display:grid!important;grid-template-columns:1fr;gap:7px!important;width:100%}
    .message-safety-actions .inline-form,.message-safety-actions button{width:100%}
    .message-thread-panel{padding:9px!important;border-radius:18px!important}
    .message-thread{
        max-height:58svh;
        min-height:240px;
        padding:8px 5px;
        border-radius:15px;
        scroll-padding:12px;
    }
    .message-bubble{gap:7px!important;margin:0 0 8px!important}
    .message-bubble__avatar{width:34px!important;height:34px!important;min-width:34px!important;font-size:13px!important}
    .message-bubble__content{max-width:calc(100vw - 78px)!important;padding:10px 11px!important;border-radius:16px!important}
    .message-bubble__top{gap:7px!important;align-items:flex-start!important}
    .message-bubble__top time{font-size:10px!important;white-space:nowrap}
    .message-bubble__text{font-size:15px!important;line-height:1.42!important;overflow-wrap:anywhere}
    .message-bubble__meta-row{gap:5px!important;flex-wrap:wrap}
    .message-reply-form{
        position:sticky;
        z-index:20;
        bottom:calc(6px + env(safe-area-inset-bottom));
        margin-top:10px!important;
        padding:10px!important;
        border:1px solid var(--border)!important;
        border-radius:18px!important;
        background:var(--surface)!important;
        box-shadow:0 -10px 30px rgba(15,23,42,.12)!important;
    }
    .message-compose-field{gap:5px!important;font-size:13px}
    .message-reply-form textarea[data-message-compose-textarea]{
        min-height:48px!important;
        max-height:160px!important;
        padding:12px!important;
        resize:none!important;
        font-size:16px!important;
        line-height:1.35!important;
    }
    .message-reply-form>button[type="submit"]{width:100%;min-height:48px;font-size:16px;font-weight:950}
    .message-quick-start{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:7px!important;padding-bottom:4px;scrollbar-width:thin}
    .message-quick-start>span{display:none}
    .message-quick-start button{flex:0 0 auto;min-height:38px;white-space:nowrap}
    .message-compose-toolbar{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:7px!important}
    .message-compose-toolbar__hint{display:none!important}
    .message-compose-tool{flex:0 0 auto;min-height:40px}
    .message-compose-panel{max-height:45svh;overflow:auto}
    .message-emoji-grid{grid-template-columns:repeat(7,minmax(34px,1fr))!important}
    .message-thread-new-marker{bottom:calc(76px + env(safe-area-inset-bottom));margin:-52px auto 8px}
    .thread-pagination{overflow-x:auto;justify-content:flex-start!important;scrollbar-width:thin}
    .message-report-box{margin-top:12px}
}

html[data-theme="dark"] .message-thread{background:#111d2e;border-color:#344b6b}
html[data-theme="dark"] .message-thread-warning--unavailable{background:#3a2a17;color:#ffdda3;border-color:#8a6331}
html[data-theme="dark"] .public-profile-admin-action{background:linear-gradient(135deg,#8b5cf6,#4f46e5)!important;color:#fff!important}

/* FIX 2026-07-31: mobile reply composer must never cover the conversation while page scrolls. */
@media (max-width:760px){
    .message-thread-panel > .message-reply-form{
        position:relative!important;
        inset:auto!important;
        top:auto!important;
        right:auto!important;
        bottom:auto!important;
        left:auto!important;
        z-index:auto!important;
        width:100%!important;
        margin:14px 0 0!important;
        padding:12px!important;
        border:1px solid var(--border)!important;
        border-radius:18px!important;
        background:var(--surface)!important;
        box-shadow:none!important;
        transform:none!important;
        isolation:isolate;
        scroll-margin-top:16px;
        scroll-margin-bottom:calc(18px + env(safe-area-inset-bottom));
    }
    .message-thread-panel > .message-reply-form .message-compose-panels,
    .message-thread-panel > .message-reply-form .message-compose-panel{
        position:relative!important;
        inset:auto!important;
        z-index:auto!important;
        width:100%!important;
        max-width:100%!important;
    }
    .message-thread-panel > .message-reply-form .message-compose-panel{
        max-height:none!important;
        overflow:visible!important;
    }
    .message-thread-panel > .message-reply-form textarea[data-message-compose-textarea]{
        max-height:180px!important;
    }
    .message-thread-new-marker{
        bottom:12px!important;
    }
}

/* PATCH 2026-07-31: compact IRC-style online chat, visually separate from Groups. */
.chat-compact-home{
    padding:0;
    overflow:hidden;
    border-radius:18px;
    background:#fff;
}
.chat-compact-home__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:20px 22px;
    border-bottom:1px solid #dfe7f2;
    background:linear-gradient(180deg,#fff,#f8fbff);
}
.chat-compact-home__head h1{margin:3px 0 2px;color:#122441;font-size:30px;line-height:1.05}
.chat-compact-home__head p{margin:0;color:#728099;font-size:13px}
.chat-compact-home__actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.chat-compact-lists{display:grid;grid-template-columns:1fr 1fr;min-height:420px}
.chat-compact-section{min-width:0;border-right:1px solid #e1e8f1}
.chat-compact-section:last-child{border-right:0}
.chat-compact-section__head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;border-bottom:1px solid #e5ebf3;background:#f5f8fc}
.chat-compact-section__head h2{margin:0;color:#243653;font-size:15px}
.chat-compact-section__head span{display:grid;place-items:center;min-width:25px;height:25px;padding:0 7px;border-radius:999px;background:#e8f0ff;color:#2665cd;font-size:11px;font-weight:900}
.chat-compact-room-list{display:grid;align-content:start}
.chat-compact-room{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:70px;padding:9px 12px;border-bottom:1px solid #edf1f6;background:#fff;color:inherit;text-decoration:none;transition:background .15s ease,border-color .15s ease}
.chat-compact-room:hover{background:#f6f9ff;text-decoration:none}
.chat-compact-room.has-unread{background:#eef5ff;border-left:3px solid #2d72f6;padding-left:9px}
.chat-compact-room__icon{display:grid;place-items:center;width:36px;height:36px;border:1px solid #d9e5f4;border-radius:10px;background:#f2f6fc;font-size:17px}
.chat-compact-room__content{display:grid;gap:1px;min-width:0}
.chat-compact-room__top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.chat-compact-room__top strong{overflow:hidden;color:#1c2d49;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.chat-compact-room__top time{flex:0 0 auto;color:#8a96a8;font-size:10px}
.chat-compact-room__preview,.chat-compact-room__meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-compact-room__preview{color:#5f6f87;font-size:12px}
.chat-compact-room__meta{color:#929dad;font-size:10px}
.chat-compact-room__unread{display:grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border-radius:999px;background:#2671ef;color:#fff;font-size:10px}
.chat-compact-empty{display:flex;align-items:center;justify-content:center;gap:12px;min-height:260px;padding:24px;color:#718098;text-align:left}
.chat-compact-empty>span{font-size:28px}
.chat-compact-empty h2,.chat-compact-empty h3{margin:0 0 3px;color:#233550}
.chat-compact-empty p{margin:0;font-size:13px}
.chat-compact-empty--small{min-height:160px}

.chat-compact-notice{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px;padding:10px 13px;border-radius:13px;background:#f5f9ff}
.chat-compact-notice>div{display:grid;gap:1px}
.chat-compact-notice strong{color:#244b84;font-size:13px}
.chat-compact-notice span{color:#71809a;font-size:11px}
.chat-compact-notice form{margin:0}
.chat-compact-notice.is-warning{border-color:#efc9ca;background:#fff6f6}
.chat-compact-notice.is-warning strong{color:#a33e49}

.chat-compact-window{
    display:grid;
    grid-template-rows:auto minmax(0,1fr);
    height:clamp(560px,calc(100vh - 150px),820px);
    min-height:0;
    padding:0;
    overflow:hidden;
    border:1px solid #cfd9e7;
    border-radius:14px;
    background:#fff;
    box-shadow:0 12px 34px rgba(27,54,96,.10);
}
.chat-compact-toolbar{display:grid;grid-template-columns:34px 38px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:58px;padding:8px 11px;border-bottom:1px solid #dce4ee;background:linear-gradient(180deg,#fbfdff,#f3f7fb)}
.chat-compact-toolbar__back{display:grid;place-items:center;width:32px;height:32px;border:1px solid #d2dce9;border-radius:9px;background:#fff;color:#244d88;font-size:19px;font-weight:900;text-decoration:none}
.chat-compact-toolbar__back:hover{background:#edf4ff;text-decoration:none}
.chat-compact-toolbar__icon{display:grid;place-items:center;width:36px;height:36px;border:1px solid #d8e2ef;border-radius:10px;background:#fff;font-size:17px}
.chat-compact-toolbar__identity{display:grid;gap:1px;min-width:0}
.chat-compact-toolbar__identity>div{display:flex;align-items:center;gap:7px;min-width:0}
.chat-compact-toolbar__identity h1{overflow:hidden;margin:0;color:#172943;font-size:15px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.chat-compact-toolbar__identity p{overflow:hidden;margin:0;color:#79869a;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.chat-compact-toolbar__actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}
.chat-compact-toolbar__actions form{margin:0}
.chat-compact-toolbar__actions .button-link{min-height:31px;padding:4px 9px;border:1px solid #d4deeb;border-radius:9px;background:#fff;font-size:11px}
.chat-compact-body{display:grid;grid-template-columns:minmax(0,1fr) 238px;min-height:0}
.chat-compact-main{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;min-width:0;min-height:0;border-right:1px solid #dfe6ef}
.chat-compact-thread-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:32px;padding:5px 10px;border-bottom:1px solid #e6ebf2;background:#fafbfd;color:#78869a;font-size:10px}
.chat-compact-thread-head>span{display:inline-flex;align-items:center;gap:6px}
.chat-compact-thread-head i{display:block;width:7px;height:7px;border-radius:999px;background:#24bc69;box-shadow:0 0 0 3px rgba(36,188,105,.12)}
.chat-compact-thread-head .chat-new-messages{min-height:24px;padding:3px 8px;border:1px solid #bcd0ef;border-radius:8px;background:#edf4ff;color:#245cae;font-size:10px;font-weight:850;cursor:pointer}
.chat-thread--compact{display:block;min-height:0;height:auto;overflow:auto;padding:8px 10px;background:#fff;scrollbar-color:#bbc8d8 transparent;scrollbar-width:thin}
.chat-thread--compact::-webkit-scrollbar{width:8px}
.chat-thread--compact::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background:#c6d1de;background-clip:padding-box}
.chat-compact-thread-empty{display:grid;place-items:center;align-content:center;gap:5px;min-height:100%;color:#8390a3;text-align:center}
.chat-compact-thread-empty span{font-size:28px}
.chat-compact-thread-empty p{margin:0;font-size:12px}

.chat-thread--compact .chat-message--compact{display:grid;grid-template-columns:27px minmax(0,1fr);align-items:start;gap:7px;width:100%;max-width:none;margin:0;padding:2px 3px;border-radius:6px}
.chat-thread--compact .chat-message--compact:hover{background:#f6f8fb}
.chat-thread--compact .chat-message--compact.is-mine{margin-left:0;background:#f2f7ff}
.chat-thread--compact .chat-message--compact.is-continuation{margin-top:0}
.chat-thread--compact .chat-message--compact .chat-message__avatar{display:grid;place-items:center;width:25px;height:25px;margin-top:1px;border:1px solid #d8e1eb;border-radius:7px;background:#eef3f9;color:#476993;font-size:10px;font-weight:900}
.chat-thread--compact .chat-message--compact .chat-message__bubble{min-width:0;max-width:none;padding:1px 3px;border:0;border-radius:0;background:transparent;box-shadow:none}
.chat-thread--compact .chat-message--compact.is-mine .chat-message__bubble{border:0;background:transparent}
.chat-message__line{display:flex;align-items:baseline;gap:5px;min-width:0;color:#22344d;font-size:12px;line-height:1.35}
.chat-message__line time{flex:0 0 auto;color:#728099;font:10px/1.35 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.chat-message__line strong{flex:0 0 auto;color:#214f92;font-size:12px}
.chat-message__line strong a{color:#214f92}
.chat-thread--compact .chat-message--compact.is-mine .chat-message__line strong{color:#13714a}
.chat-message__line .chat-message__body{min-width:0;color:#24354d;font-size:12px;line-height:1.35}
.chat-message__line .chat-message__body p{display:inline;margin:0}
.chat-message__line .chat-message__body blockquote{display:block;margin:3px 0;padding:3px 6px;border-left:2px solid #8daee1;background:#f3f6fa;color:#5f6f87;font-size:11px}
.chat-thread--compact .chat-message--compact .chat-message__reply{margin:3px 0 2px;padding:3px 6px;border-left:2px solid #8cb2ed;border-radius:3px;background:#f5f8fc}
.chat-thread--compact .chat-message--compact .chat-message__reply span{font-size:9px}
.chat-thread--compact .chat-message--compact .chat-message__reply p{margin:0;font-size:10px}
.chat-thread--compact .chat-message--compact .chat-message__foot{display:flex;align-items:center;justify-content:flex-end;gap:5px;margin-top:1px;min-height:0}
.chat-thread--compact .chat-message--compact .chat-message__reactions{display:flex;flex-wrap:wrap;gap:3px}
.chat-thread--compact .chat-message--compact .chat-reaction-button,.chat-thread--compact .chat-message--compact .chat-reaction{min-height:20px;padding:1px 5px;font-size:9px}
.chat-thread--compact .chat-message--compact .chat-message__actions{display:flex;gap:3px;opacity:0}
.chat-thread--compact .chat-message--compact:hover .chat-message__actions,.chat-thread--compact .chat-message--compact:focus-within .chat-message__actions{opacity:1}
.chat-thread--compact .chat-message--compact .chat-message__action{padding:1px 3px;font-size:9px}

.chat-compact-compose{position:relative!important;bottom:auto!important;z-index:auto!important;display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:end;gap:7px;margin:0;padding:8px;border-top:1px solid #dbe4ef;background:#f6f8fb;box-shadow:none!important}
.chat-compact-compose__tool,.chat-compact-compose__send{height:38px;border:1px solid #cbd7e6;border-radius:9px;background:#fff;font:inherit;cursor:pointer}
.chat-compact-compose__tool{width:36px;padding:0;font-size:18px}
.chat-compact-compose__tool:hover{background:#edf4ff}
.chat-compact-compose textarea{width:100%;min-height:38px;max-height:116px;padding:8px 10px;resize:none;border:1px solid #c9d5e4;border-radius:9px;background:#fff;color:#20334d;font:13px/1.35 inherit;outline:0}
.chat-compact-compose textarea:focus{border-color:#6d9ee8;box-shadow:0 0 0 3px rgba(63,118,209,.12)}
.chat-compact-compose__send{min-width:90px;padding:0 13px;border-color:#2671ef;background:#2671ef;color:#fff;font-size:12px;font-weight:900}
.chat-compact-compose__send:hover{background:#1e62d2}
.chat-compact-compose__panels{position:absolute;right:8px;bottom:54px;left:8px;z-index:5}
.chat-compact-compose__panels .message-compose-panel{border:1px solid #ced9e7;border-radius:10px;background:#fff;box-shadow:0 14px 32px rgba(28,51,84,.18)}

.chat-compact-members{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:0;background:#f8fafc}
.chat-compact-members__head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:39px;padding:7px 10px;border-bottom:1px solid #dfe6ef;color:#263a58;font-size:12px}
.chat-compact-members__head span{display:grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#e7effc;color:#2e66bd;font-size:9px;font-weight:900}
.chat-compact-members__list{display:grid;align-content:start;min-height:0;overflow:auto;padding:4px}
.chat-compact-member{display:grid;grid-template-columns:28px minmax(0,1fr) auto auto;align-items:center;gap:6px;min-height:38px;padding:4px 5px;border-radius:7px}
.chat-compact-member:hover{background:#edf2f8}
.chat-compact-member__avatar{position:relative;display:grid;place-items:center;width:27px;height:27px;overflow:hidden;border:1px solid #d4deea;border-radius:8px;background:#eaf0f7;color:#4f6d98;font-size:10px;font-weight:900}
.chat-compact-member__avatar img{width:100%;height:100%;object-fit:cover}
.chat-compact-member.is-online .chat-compact-member__avatar::after{content:"";position:absolute;right:-1px;bottom:-1px;width:7px;height:7px;border:2px solid #f8fafc;border-radius:999px;background:#22bd69}
.chat-compact-member>div{display:grid;min-width:0}
.chat-compact-member>div a{overflow:hidden;color:#2e4d77;font-size:11px;font-weight:850;text-overflow:ellipsis;white-space:nowrap}
.chat-compact-member>div span{overflow:hidden;color:#8792a3;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.chat-compact-member em{padding:1px 4px;border-radius:999px;background:#eeeaff;color:#6a56b5;font-size:8px;font-style:normal;font-weight:900}
.chat-compact-member form{margin:0}
.chat-compact-member form button{display:grid;place-items:center;width:20px;height:20px;padding:0;border:0;border-radius:6px;background:#ffeded;color:#b94a52;font-size:15px;cursor:pointer}
.chat-compact-invite{display:grid;gap:6px;padding:8px;border-top:1px solid #dde5ef;background:#fff}
.chat-compact-invite>strong{font-size:11px;color:#304662}
.chat-compact-invite form{position:relative;display:grid;gap:5px}
.chat-compact-invite input[type="search"]{width:100%;min-height:34px;padding:6px 8px;border:1px solid #cbd7e5;border-radius:8px;background:#fff;font:11px inherit}
.chat-compact-invite .button-link{min-height:32px;border-radius:8px;font-size:10px}
.chat-compact-invite .chat-user-picker__results{right:0;left:0}

html[data-theme="dark"] .chat-compact-home,
html[data-theme="dark"] .chat-compact-window{border-color:#33435b;background:#111c2d}
html[data-theme="dark"] .chat-compact-home__head,
html[data-theme="dark"] .chat-compact-toolbar,
html[data-theme="dark"] .chat-compact-thread-head,
html[data-theme="dark"] .chat-compact-compose,
html[data-theme="dark"] .chat-compact-members{border-color:#33435b;background:#162238}
html[data-theme="dark"] .chat-compact-home__head h1,
html[data-theme="dark"] .chat-compact-toolbar__identity h1,
html[data-theme="dark"] .chat-compact-section__head h2,
html[data-theme="dark"] .chat-compact-members__head{color:#e9f0fc}
html[data-theme="dark"] .chat-compact-section,
html[data-theme="dark"] .chat-compact-main,
html[data-theme="dark"] .chat-compact-room,
html[data-theme="dark"] .chat-thread--compact{border-color:#33435b;background:#111c2d}
html[data-theme="dark"] .chat-compact-room:hover,
html[data-theme="dark"] .chat-thread--compact .chat-message--compact:hover{background:#1a2940}
html[data-theme="dark"] .chat-message__line .chat-message__body{color:#e4ebf7}
html[data-theme="dark"] .chat-message__line strong,
html[data-theme="dark"] .chat-message__line strong a{color:#9fc4ff}
html[data-theme="dark"] .chat-compact-compose textarea{border-color:#3c4e68;background:#0d1727;color:#eef4ff}
html[data-theme="dark"] .chat-compact-member:hover{background:#1d2b42}

@media (max-width:900px){
    .chat-compact-lists{grid-template-columns:1fr}
    .chat-compact-section{border-right:0;border-bottom:1px solid #e1e8f1}
    .chat-compact-section:last-child{border-bottom:0}
    .chat-compact-window{height:auto;min-height:620px}
    .chat-compact-body{grid-template-columns:1fr}
    .chat-compact-main{min-height:560px;border-right:0}
    .chat-compact-members{max-height:260px;border-top:1px solid #dfe6ef}
    .chat-compact-members__list{max-height:210px}
}
@media (max-width:620px){
    .chat-compact-home__head{align-items:flex-start;flex-direction:column;padding:15px}
    .chat-compact-home__actions{width:100%}
    .chat-compact-home__actions .button-link{flex:1;justify-content:center}
    .chat-compact-toolbar{grid-template-columns:32px 34px minmax(0,1fr);padding:7px}
    .chat-compact-toolbar__actions{grid-column:1/-1;justify-content:flex-start;padding-top:4px;border-top:1px solid #e3e9f1}
    .chat-compact-toolbar__actions .button-link{min-height:29px}
    .chat-compact-window{min-height:590px;border-radius:10px}
    .chat-compact-main{min-height:500px}
    .chat-thread--compact{padding:6px 5px}
    .chat-thread--compact .chat-message--compact{grid-template-columns:23px minmax(0,1fr);gap:5px;padding:2px}
    .chat-thread--compact .chat-message--compact .chat-message__avatar{width:22px;height:22px;border-radius:6px;font-size:9px}
    .chat-message__line{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 5px}
    .chat-message__line .chat-message__body{grid-column:1/-1;padding-left:0}
    .chat-compact-compose{grid-template-columns:34px minmax(0,1fr) 42px;padding:6px}
    .chat-compact-compose__tool{width:34px;height:36px}
    .chat-compact-compose textarea{min-height:36px;padding:7px 8px}
    .chat-compact-compose__send{min-width:42px;width:42px;height:36px;padding:0;font-size:0}
    .chat-compact-compose__send::before{content:"➤";font-size:16px}
    .chat-compact-compose__panels{right:6px;bottom:49px;left:6px}
}

/* PATCH 2026-07-31: compact chat composer must override legacy message-reply-form rules */
.message-reply-form.chat-compact-compose{
    position:relative!important;
    bottom:auto!important;
    z-index:auto!important;
    display:grid!important;
    grid-template-columns:36px minmax(0,1fr) auto!important;
    align-items:end!important;
    gap:7px!important;
    width:100%!important;
    margin:0!important;
    padding:8px!important;
    border-top:1px solid #dbe4ef!important;
    background:#f6f8fb!important;
    box-shadow:none!important;
}
.message-reply-form.chat-compact-compose > button.chat-compact-compose__tool{
    display:grid!important;
    place-items:center!important;
    grid-column:auto!important;
    grid-row:auto!important;
    align-self:end!important;
    width:36px!important;
    min-width:36px!important;
    max-width:36px!important;
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid #cbd7e6!important;
    border-radius:9px!important;
    background:#fff!important;
    color:#1f2a44!important;
    font:400 18px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;
    box-shadow:none!important;
    transform:none!important;
}
.message-reply-form.chat-compact-compose > button.chat-compact-compose__tool:hover,
.message-reply-form.chat-compact-compose > button.chat-compact-compose__tool.is-active{
    border-color:#8eb3ed!important;
    background:#edf4ff!important;
    color:#1f2a44!important;
    box-shadow:none!important;
    transform:none!important;
}
.message-reply-form.chat-compact-compose > textarea{
    display:block!important;
    grid-column:auto!important;
    grid-row:auto!important;
    align-self:end!important;
    width:100%!important;
    min-width:0!important;
    min-height:38px!important;
    max-height:116px!important;
    margin:0!important;
    padding:8px 10px!important;
    resize:none!important;
    border:1px solid #c9d5e4!important;
    border-radius:9px!important;
    background:#fff!important;
    color:#20334d!important;
    font:13px/1.35 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;
    box-shadow:none!important;
}
.message-reply-form.chat-compact-compose > button.chat-compact-compose__send,
.message-reply-form.chat-compact-compose > button[type="submit"].chat-compact-compose__send{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    grid-column:auto!important;
    grid-row:auto!important;
    align-self:end!important;
    width:auto!important;
    min-width:90px!important;
    max-width:none!important;
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
    margin:0!important;
    padding:0 13px!important;
    border:1px solid #2671ef!important;
    border-radius:9px!important;
    background:#2671ef!important;
    color:#fff!important;
    font:900 12px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;
    box-shadow:none!important;
}
.message-reply-form.chat-compact-compose > button.chat-compact-compose__send:hover{
    border-color:#1e62d2!important;
    background:#1e62d2!important;
    box-shadow:none!important;
    transform:none!important;
}
.message-reply-form.chat-compact-compose > .chat-compact-compose__panels{
    grid-column:1/-1!important;
    grid-row:auto!important;
    position:absolute!important;
    right:8px!important;
    bottom:54px!important;
    left:8px!important;
    z-index:5!important;
    width:auto!important;
    margin:0!important;
}
html[data-theme="dark"] .message-reply-form.chat-compact-compose{
    border-color:#33435b!important;
    background:#162238!important;
}
html[data-theme="dark"] .message-reply-form.chat-compact-compose > button.chat-compact-compose__tool,
html[data-theme="dark"] .message-reply-form.chat-compact-compose > textarea{
    border-color:#3c4e68!important;
    background:#0d1727!important;
    color:#eef4ff!important;
}
@media(max-width:620px){
    .message-reply-form.chat-compact-compose{
        grid-template-columns:34px minmax(0,1fr) 42px!important;
        gap:6px!important;
        padding:6px!important;
    }
    .message-reply-form.chat-compact-compose > button.chat-compact-compose__tool{
        width:34px!important;
        min-width:34px!important;
        max-width:34px!important;
        height:36px!important;
        min-height:36px!important;
        max-height:36px!important;
    }
    .message-reply-form.chat-compact-compose > textarea{
        min-height:36px!important;
        padding:7px 8px!important;
    }
    .message-reply-form.chat-compact-compose > button.chat-compact-compose__send,
    .message-reply-form.chat-compact-compose > button[type="submit"].chat-compact-compose__send{
        width:42px!important;
        min-width:42px!important;
        max-width:42px!important;
        height:36px!important;
        min-height:36px!important;
        max-height:36px!important;
        padding:0!important;
        font-size:0!important;
    }
    .message-reply-form.chat-compact-compose > button.chat-compact-compose__send::before{
        content:"➤";
        font-size:16px;
    }
    .message-reply-form.chat-compact-compose > .chat-compact-compose__panels{
        right:6px!important;
        bottom:49px!important;
        left:6px!important;
    }
}

/* FemLink compact chat: readable message text and an isolated reactions rail. */
.chat-thread--compact .chat-message--compact .chat-message__bubble{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 168px!important;
    grid-template-rows:auto auto!important;
    column-gap:14px!important;
    align-items:start!important;
    width:100%!important;
    min-width:0!important;
}
.chat-thread--compact .chat-message--compact .chat-message__line{
    grid-column:1!important;
    grid-row:1!important;
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:baseline!important;
    gap:4px 6px!important;
    min-width:0!important;
    font-size:15px!important;
    line-height:1.48!important;
}
.chat-thread--compact .chat-message--compact .chat-message__line time{
    flex:0 0 auto!important;
    font-size:12px!important;
    line-height:1.48!important;
}
.chat-thread--compact .chat-message--compact .chat-message__line strong,
.chat-thread--compact .chat-message--compact .chat-message__line strong a{
    flex:0 0 auto!important;
    font-size:15px!important;
    line-height:1.48!important;
}
.chat-thread--compact .chat-message--compact .chat-message__line .chat-message__body{
    flex:1 1 340px!important;
    min-width:180px!important;
    max-width:100%!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    color:#24354d!important;
    font-size:15px!important;
    line-height:1.48!important;
}
.chat-thread--compact .chat-message--compact .chat-message__line .chat-message__body p{
    display:inline!important;
    margin:0!important;
}
.chat-thread--compact .chat-message--compact .chat-message__reply{
    grid-column:1!important;
    grid-row:2!important;
    min-width:0!important;
}
.chat-thread--compact .chat-message--compact .chat-message__foot{
    grid-column:2!important;
    grid-row:1 / span 2!important;
    align-self:start!important;
    justify-self:stretch!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-end!important;
    justify-content:flex-start!important;
    gap:5px!important;
    width:168px!important;
    min-width:0!important;
    margin:0!important;
}
.chat-thread--compact .chat-message--compact .chat-message__reactions{
    display:flex!important;
    flex-wrap:wrap!important;
    justify-content:flex-end!important;
    gap:4px!important;
    width:100%!important;
    min-width:0!important;
}
.chat-thread--compact .chat-message--compact .chat-reaction-button,
.chat-thread--compact .chat-message--compact .chat-reaction{
    min-width:34px!important;
    min-height:28px!important;
    padding:3px 7px!important;
    font-size:12px!important;
    line-height:1!important;
}
.chat-thread--compact .chat-message--compact .chat-message__actions{
    justify-content:flex-end!important;
    flex-wrap:wrap!important;
    width:100%!important;
}

@media(max-width:900px){
    .chat-thread--compact .chat-message--compact .chat-message__bubble{
        grid-template-columns:minmax(0,1fr)!important;
        grid-template-rows:auto auto auto!important;
        row-gap:5px!important;
    }
    .chat-thread--compact .chat-message--compact .chat-message__line,
    .chat-thread--compact .chat-message--compact .chat-message__reply,
    .chat-thread--compact .chat-message--compact .chat-message__foot{
        grid-column:1!important;
        grid-row:auto!important;
    }
    .chat-thread--compact .chat-message--compact .chat-message__foot{
        width:100%!important;
        align-items:flex-start!important;
    }
    .chat-thread--compact .chat-message--compact .chat-message__reactions,
    .chat-thread--compact .chat-message--compact .chat-message__actions{
        justify-content:flex-start!important;
    }
}

@media(max-width:560px){
    .chat-thread--compact .chat-message--compact .chat-message__line,
    .chat-thread--compact .chat-message--compact .chat-message__line strong,
    .chat-thread--compact .chat-message--compact .chat-message__line strong a,
    .chat-thread--compact .chat-message--compact .chat-message__line .chat-message__body{
        font-size:14px!important;
    }
    .chat-thread--compact .chat-message--compact .chat-message__line .chat-message__body{
        flex-basis:100%!important;
        min-width:0!important;
    }
}


/* FIX 2026-07-31: stable mobile layout for “Связаться с администрацией”. */
.message-thread-panel--feedback{
    overflow:visible!important;
}
.message-thread-panel--feedback > .message-reply-form--feedback{
    position:relative!important;
    inset:auto!important;
    z-index:auto!important;
    width:100%!important;
    max-width:100%!important;
    margin:14px 0 0!important;
    transform:none!important;
    isolation:isolate;
}

@media(max-width:760px){
    .message-thread-panel--feedback{
        display:flex!important;
        flex-direction:column!important;
        gap:12px!important;
        padding:12px!important;
        overflow:visible!important;
    }
    .message-thread-panel--feedback > .thread-pagination-bar,
    .message-thread-panel--feedback > .message-thread,
    .message-thread-panel--feedback > .message-thread-new-marker,
    .message-thread-panel--feedback > .message-reply-form--feedback,
    .message-thread-panel--feedback > .message-compose-status{
        flex:0 0 auto!important;
        width:100%!important;
        min-width:0!important;
    }
    .message-thread-panel--feedback > .message-thread{
        position:relative!important;
        z-index:1!important;
        max-height:52svh!important;
        min-height:180px!important;
        margin:0!important;
        padding:8px!important;
        overflow:auto!important;
    }
    .message-thread-panel--feedback > .message-reply-form--feedback{
        position:relative!important;
        inset:auto!important;
        z-index:2!important;
        display:grid!important;
        grid-template-columns:minmax(0,1fr)!important;
        gap:10px!important;
        width:100%!important;
        min-width:0!important;
        margin:0!important;
        padding:12px!important;
        overflow:visible!important;
        border:1px solid var(--border)!important;
        border-radius:18px!important;
        background:var(--surface)!important;
        box-shadow:none!important;
        transform:none!important;
    }
    .message-thread-panel--feedback .message-compose-field{
        display:grid!important;
        gap:7px!important;
        min-width:0!important;
        margin:0!important;
        font-size:14px!important;
    }
    .message-thread-panel--feedback .message-compose-field textarea{
        position:relative!important;
        width:100%!important;
        min-width:0!important;
        min-height:108px!important;
        max-height:220px!important;
        margin:0!important;
        padding:12px 13px!important;
        overflow:auto!important;
        resize:vertical!important;
        border-radius:14px!important;
        font-size:16px!important;
        line-height:1.4!important;
    }
    .message-thread-panel--feedback .message-quick-start{
        display:grid!important;
        grid-template-columns:minmax(0,1fr)!important;
        gap:7px!important;
        width:100%!important;
        min-width:0!important;
        margin:0!important;
        padding:0!important;
        overflow:visible!important;
    }
    .message-thread-panel--feedback .message-quick-start > span{
        display:none!important;
    }
    .message-thread-panel--feedback .message-quick-start button{
        display:flex!important;
        align-items:center!important;
        justify-content:flex-start!important;
        width:100%!important;
        min-width:0!important;
        max-width:100%!important;
        min-height:42px!important;
        margin:0!important;
        padding:9px 12px!important;
        overflow-wrap:anywhere!important;
        white-space:normal!important;
        text-align:left!important;
        line-height:1.3!important;
    }
    .message-thread-panel--feedback .message-compose-toolbar{
        display:grid!important;
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        gap:8px!important;
        width:100%!important;
        min-width:0!important;
        margin:0!important;
        overflow:visible!important;
    }
    .message-thread-panel--feedback .message-compose-toolbar .message-compose-tool{
        width:100%!important;
        min-width:0!important;
        max-width:100%!important;
        min-height:42px!important;
        margin:0!important;
        padding:8px 10px!important;
        white-space:normal!important;
    }
    .message-thread-panel--feedback .message-compose-toolbar__hint{
        display:none!important;
    }
    .message-thread-panel--feedback .message-compose-panels,
    .message-thread-panel--feedback .message-compose-panel{
        position:relative!important;
        inset:auto!important;
        z-index:auto!important;
        display:block!important;
        width:100%!important;
        min-width:0!important;
        max-width:100%!important;
        margin:0!important;
        overflow:visible!important;
        transform:none!important;
    }
    .message-thread-panel--feedback .message-compose-panel[hidden]{
        display:none!important;
    }
    .message-thread-panel--feedback .message-emoji-grid{
        grid-template-columns:repeat(6,minmax(32px,1fr))!important;
        width:100%!important;
    }
    .message-thread-panel--feedback > .message-reply-form--feedback > button[type="submit"]{
        display:flex!important;
        align-items:center!important;
        justify-content:center!important;
        width:100%!important;
        min-width:0!important;
        min-height:50px!important;
        margin:0!important;
        padding:12px!important;
        font-size:16px!important;
    }
    .message-thread-panel--feedback .message-thread-new-marker{
        position:relative!important;
        inset:auto!important;
        z-index:auto!important;
        margin:0 auto!important;
        transform:none!important;
    }
}

html[data-theme="dark"] .message-thread-panel--feedback > .message-reply-form--feedback{
    border-color:#344b6b!important;
    background:#18263b!important;
}


/* FIX 2026-08-01: private messages — newest first and composer immediately available. */
.message-thread-panel{
    display:flex!important;
    flex-direction:column!important;
}
.message-thread-panel > .message-reply-form{
    order:1!important;
    margin:0 0 14px!important;
    padding-top:0!important;
    border-top:0!important;
    border-bottom:1px solid var(--border)!important;
    padding-bottom:14px!important;
}
.message-thread-panel > .message-compose-status{order:2!important}
.message-thread-panel > .thread-pagination-bar:first-of-type{order:3!important}
.message-thread-panel > .message-thread{order:4!important}
.message-thread-panel > .message-thread-new-marker{order:5!important}
.message-thread-panel > .thread-pagination-bar:last-of-type{order:6!important}
.message-thread-panel > .message-thread-warning{order:7!important}
.message-thread-panel > .message-report-box{order:8!important}
.message-thread[data-message-thread-newest-first]{
    scroll-behavior:smooth;
}
.message-thread[data-message-thread-newest-first] .message-bubble:first-child{
    margin-top:0!important;
}
.message-thread-new-marker{
    top:12px!important;
    bottom:auto!important;
}

/* Restore interaction and stacking for the avatar menu beside Messages. */
.topbar--modern,
.topbar--modern .topbar__inner,
.topbar--modern .topbar-tools{
    overflow:visible!important;
}
.user-menu{
    z-index:260!important;
}
.user-menu__toggle{
    pointer-events:auto!important;
    position:relative!important;
    z-index:262!important;
}
.user-menu__dropdown{
    z-index:300!important;
    pointer-events:auto!important;
    visibility:hidden;
    opacity:0;
    transform:translateY(-4px);
    transition:opacity .14s ease,transform .14s ease,visibility .14s ease;
}
.user-menu.is-open .user-menu__dropdown{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    transform:none!important;
}

/* Photo and emoji controls must remain clickable after layout patches. */
.message-reply-form .message-compose-toolbar,
.message-reply-form .message-compose-panels,
.message-reply-form .message-compose-panel{
    position:relative!important;
    z-index:3!important;
    pointer-events:auto!important;
}
.message-reply-form [data-message-panel-toggle],
.message-reply-form [data-message-file-input],
.message-reply-form [data-message-profile-photo-input],
.message-reply-form [data-message-emoji]{
    pointer-events:auto!important;
}
.message-reply-form .message-compose-panel:not([hidden]){
    display:block!important;
}

@media(max-width:760px){
    .message-thread-panel > .message-reply-form{
        position:relative!important;
        inset:auto!important;
        margin:0 0 12px!important;
        padding:10px 10px 12px!important;
        border:1px solid var(--border)!important;
        box-shadow:none!important;
    }
    .message-thread-panel > .message-thread{
        max-height:58svh!important;
    }
    .message-thread-new-marker{
        top:8px!important;
        bottom:auto!important;
        margin:8px auto -48px!important;
    }
    .user-menu__dropdown{
        position:fixed!important;
        top:72px!important;
        right:10px!important;
        width:min(280px,calc(100vw - 20px))!important;
        max-height:calc(100svh - 86px)!important;
        overflow:auto!important;
    }
}


/* FEMLINK_SITE_SLOGAN */
.femlink-site-slogan {
    margin: 0;
    padding: .45rem 1rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
    background: linear-gradient(90deg, #f05aaa, #7046dc);
}
