/* Amurovchat — сайт. Чёрный, красный, белый; главный приём — косые красные плашки из рекламы. */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/inter-400.woff) format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/inter-600.woff) format("woff"); }
@font-face { font-family: "Slab"; font-weight: 900; font-style: italic; font-display: swap; src: url(fonts/display-900i.woff) format("woff"); }

:root {
  --coal: #110b0c;
  --char: #1b1214;
  --ash: #2c1d20;
  --line: #3b282b;
  --red: #e5161e;
  --flare: #ff3d42;
  --bone: #f6f0ed;
  --smoke: #ab9d9a;
  --ok: #4bd08b;
  --tab-h: 62px;
  --top-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --slab: "Slab", "Inter", Impact, "Arial Black", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--coal); color: var(--bone); }
body { font: 400 16px/1.45 var(--body); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: var(--bone); }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───── косая плашка ───── */
.slab {
  --sk: .32em;
  display: inline-block; max-width: 100%;
  background: var(--red); color: #fff;
  font: italic 900 1em/1.1 var(--slab); text-transform: uppercase; letter-spacing: -.01em;
  padding: .2em calc(.55em + var(--sk)) .22em;
  clip-path: polygon(var(--sk) 0, 100% 0, calc(100% - var(--sk)) 100%, 0 100%);
  overflow-wrap: anywhere;
}
.slab.white { background: var(--bone); color: var(--coal); }
.slab.dark { background: var(--coal); color: var(--bone); }
.slab.sm { font-size: .8rem; }

/* ───── оболочка ───── */
#app { position: fixed; inset: 0; display: flex; flex-direction: column; }
.top {
  flex: none; height: var(--top-h); display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: linear-gradient(var(--coal), rgba(17,11,12,.92)); border-bottom: 1px solid var(--line);
}
.top .logo { height: 42px; width: auto; border-radius: 9px; display: block; }
.top .ttl { font: italic 900 1.05rem/1 var(--slab); text-transform: uppercase; letter-spacing: -.01em; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .ttl .city { color: var(--smoke); font-family: var(--body); font-style: normal; font-weight: 600; text-transform: none; font-size: .85rem; margin-left: .5em; letter-spacing: 0; }
.iconbtn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--bone); }
.iconbtn:hover { background: var(--ash); }
.iconbtn svg, .tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dot { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 600 .7rem/18px var(--body); text-align: center; }

main#view { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; position: relative; scroll-behavior: auto; }
.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 24px; }
.wrap.wide { max-width: 980px; }

.tabbar {
  flex: none; display: flex; height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--char); border-top: 1px solid var(--line);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--smoke); font-size: .72rem; font-weight: 600; position: relative; text-decoration: none; }
.tab.on { color: var(--bone); }
.tab.on::before { content: ""; position: absolute; top: -1px; left: 50%; width: 34px; height: 4px; margin-left: -17px; background: var(--red); clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.tab.on svg { stroke: var(--flare); }
.tab .dot { top: 6px; right: calc(50% - 26px); }

@media (min-width: 900px) {
  #app { flex-direction: row; flex-wrap: wrap; }
  .top { display: none; }
  .tabbar { order: -1; flex-direction: column; justify-content: flex-start; width: 230px; height: 100%; padding: 22px 14px; gap: 4px; border-top: 0; border-right: 1px solid var(--line); }
  .tabbar .brand { display: block !important; margin: 0 4px 22px; }
  .tab { flex: none; flex-direction: row; justify-content: flex-start; gap: 14px; height: 48px; padding: 0 14px; font-size: .95rem; }
  .tab.on { background: var(--ash); }
  .tab.on::before { top: 10px; bottom: 10px; left: 0; margin: 0; width: 4px; height: auto; clip-path: none; }
  .tab .dot { top: 12px; right: 14px; }
  main#view { flex: 1; height: 100%; min-width: 0; }
  .dtop { display: flex !important; }
}
.brand { display: none; }
.brand img { display: block; width: 100%; height: auto; border-radius: 12px; }
.dtop { display: none; align-items: center; justify-content: flex-end; gap: 6px; padding: 12px 20px 0; max-width: 980px; margin: 0 auto; }

/* ───── кнопки и поля ───── */
.btn {
  --sk: .5em;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 calc(26px + var(--sk));
  background: var(--red); color: #fff; font: italic 900 1.02rem/1 var(--slab); text-transform: uppercase; letter-spacing: .005em;
  clip-path: polygon(var(--sk) 0, 100% 0, calc(100% - var(--sk)) 100%, 0 100%); text-decoration: none;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--flare); }
.btn:active { transform: translateY(1px); }
.btn.block { display: flex; width: 100%; }
.btn.white { background: var(--bone); color: var(--coal); }
.btn.white:hover { background: #fff; }
.btn.dark { background: var(--ash); color: var(--bone); }
.btn.dark:hover { background: var(--line); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.link { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--red); text-decoration-thickness: 2px; font-weight: 600; }
.link.muted { color: var(--smoke); }

.field { display: block; margin: 0 0 16px; }
.field > span { display: block; font-size: .85rem; font-weight: 600; color: var(--smoke); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 12px 14px; background: var(--char); border: 1px solid var(--line); border-bottom: 3px solid var(--line);
  border-radius: 2px; color: var(--bone); outline: none; transition: border-color .15s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--line); border-bottom-color: var(--red); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: var(--flare); }
.field .hint { display: block; margin-top: 6px; font-size: .8rem; color: var(--smoke); }
.field .err { display: block; margin-top: 6px; font-size: .85rem; color: var(--flare); font-weight: 600; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; font-size: .92rem; color: var(--smoke); cursor: pointer; }
.check input { appearance: none; flex: none; width: 24px; height: 24px; margin: 0; background: var(--char); border: 2px solid var(--line); border-radius: 2px; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--red); border-color: var(--red); }
.check input:checked::after { content: ""; width: 7px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.formerr { background: rgba(229,22,30,.14); border-left: 4px solid var(--red); padding: 10px 14px; margin: 0 0 16px; font-weight: 600; font-size: .92rem; }
.note { color: var(--smoke); font-size: .9rem; }

/* выбор вариантов (цель, привычки, город…) */
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.opt { --sk: .5em; padding: 11px calc(16px + var(--sk)); background: var(--char); color: var(--bone); font-weight: 600; font-size: .95rem; border: 0; min-height: 46px;
  clip-path: polygon(var(--sk) 0, 100% 0, calc(100% - var(--sk)) 100%, 0 100%); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.opt:hover { background: var(--ash); }
.opt.on { background: var(--red); color: #fff; }
.opts.col { flex-direction: column; align-items: stretch; }
.opts.col .opt { clip-path: none; border-left: 4px solid var(--line); padding: 12px 16px; }
.opts.col .opt.on { border-left-color: var(--flare); }

/* ───── вход ───── */
.hero { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 24px 20px 32px; max-width: 520px; margin: 0 auto; }
.hero .mark { margin-bottom: 26px; }
.hero .mark img { display: block; width: 100%; height: auto; border-radius: 14px; }
.hero .mark span { display: block; margin-top: 10px; color: var(--smoke); font-size: .9rem; font-weight: 600; }
.hero .slabs { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 22px; font-size: clamp(1.7rem, 8.2vw, 3.4rem); }
.hero .slabs .slab { white-space: nowrap; transform-origin: left center; animation: slam .55s cubic-bezier(.2,.9,.25,1) both; }
.hero .slabs .slab:nth-child(2) { animation-delay: .12s; margin-left: .5em; }
.hero .slabs .slab:nth-child(3) { animation-delay: .24s; margin-left: 1em; }
@keyframes slam { from { transform: translateX(-110%); opacity: 0; } to { transform: none; opacity: 1; } }
.hero p { color: var(--smoke); margin: 0 0 24px; max-width: 34ch; font-size: 1.05rem; }
.hero .acts { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.hero .proof { display: flex; flex-direction: column; gap: 4px; margin-top: 26px; color: var(--smoke); font-size: .9rem; }
.hero .proof b { color: var(--bone); }
.authbox { max-width: 420px; margin: 0 auto; padding: 22px 20px 32px; }
.authbox h1 { font-size: 1.6rem; margin: 6px 0 22px; }
.authbox .alt { text-align: center; margin-top: 18px; color: var(--smoke); font-size: .95rem; }
.recovery { font: 600 1.5rem/1.2 var(--body); letter-spacing: .08em; text-align: center; background: var(--char); border: 2px dashed var(--red); padding: 18px 10px; margin: 16px 0; user-select: all; }

/* ───── мастер анкеты ───── */
.steps { display: flex; gap: 6px; margin: 0 0 22px; }
.steps i { flex: 1; height: 5px; background: var(--ash); clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.steps i.on { background: var(--red); }
.stephead { margin: 0 0 6px; font-size: .85rem; color: var(--smoke); font-weight: 600; }
.h1 { font-size: 1.7rem; line-height: 1.15; margin: 0 0 18px; }
.h1 .slab { font-size: 1.05em; }
.gender { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.gender button { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--char); box-shadow: inset 0 0 0 2px var(--line); font: italic 900 1.2rem/1 var(--slab); text-transform: uppercase; }
.gender button .em { font-size: 2.6rem; filter: grayscale(.2); }
.gender button.on { background: var(--red); box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; align-items: center; }
.actions .btn { flex: 1 1 140px; }

/* фото: сетка слотов */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.pslot { position: relative; aspect-ratio: 3/4; background: var(--char); border: 2px dashed var(--line); display: grid; place-items: center; color: var(--smoke); overflow: hidden; }
.pslot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pslot.add { cursor: pointer; }
.pslot.add:hover { border-color: var(--red); color: var(--bone); }
.pslot.add svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pslot.fill { border: 0; }
.pslot .tag { position: absolute; left: 0; bottom: 6px; font-size: .62rem; z-index: 2; }
.pslot .pact { position: absolute; top: 4px; right: 4px; display: flex; gap: 4px; z-index: 2; }
.pslot .pact button { width: 30px; height: 30px; border-radius: 50%; background: rgba(17,11,12,.78); display: grid; place-items: center; color: var(--bone); }
.pslot .pact svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pslot .spin { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(17,11,12,.7); z-index: 3; }

/* ───── карточка анкеты ───── */
.pcard { position: relative; }
.pphoto { position: relative; aspect-ratio: 3/4; max-height: min(58vh, 620px); width: 100%; background: var(--char); overflow: hidden; touch-action: pan-y; user-select: none; }
.pphoto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pphoto::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, rgba(17,11,12,.88)); pointer-events: none; }
.pseg { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 5px; z-index: 3; }
.pseg i { flex: 1; height: 4px; background: rgba(246,240,237,.35); clip-path: polygon(2px 0, 100% 0, calc(100% - 2px) 100%, 0 100%); }
.pseg i.on { background: var(--bone); }
.ptap { position: absolute; top: 0; bottom: 0; width: 42%; z-index: 2; }
.ptap.l { left: 0; } .ptap.r { right: 0; }
.pname { position: absolute; left: 0; bottom: 14px; z-index: 3; font-size: clamp(1.4rem, 6vw, 2rem); max-width: 92%; }
.pbadge { position: absolute; right: 10px; bottom: 16px; z-index: 3; }
.pinfo { padding: 14px 2px 6px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--smoke); font-size: .92rem; margin: 0 0 10px; }
.facts b { color: var(--bone); font-weight: 600; }
.goal { font-weight: 600; margin: 0 0 10px; }
.about { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 62ch; }
.about.empty { color: var(--smoke); font-style: italic; }
.pcard.fly-l { animation: flyl .25s ease-in both; }
.pcard.fly-r { animation: flyr .25s ease-in both; }
@keyframes flyl { to { transform: translateX(-120%) rotate(-6deg); opacity: 0; } }
@keyframes flyr { to { transform: translateX(120%) rotate(6deg); opacity: 0; } }
.pcard.enter { animation: enter .22s ease-out both; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.deck { display: grid; gap: 0; }
@media (min-width: 900px) {
  .deck { grid-template-columns: minmax(0, 460px); justify-content: center; padding-top: 8px; }
  .deck.two { grid-template-columns: minmax(0, 440px) 1fr; justify-content: start; gap: 32px; align-items: start; }
  .deck.two .pcard { grid-column: 1; grid-row: 1; }
  .deck.two .side { grid-column: 2; grid-row: 1; }
  .deck .pphoto { max-height: 70vh; }
}
.actbar {
  position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: center; align-items: center; gap: 14px; padding: 12px 16px 14px;
  background: linear-gradient(rgba(17,11,12,0), var(--coal) 38%);
}
.act { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--char); box-shadow: inset 0 0 0 2px var(--line); color: var(--bone); transition: transform .12s, background .15s; }
.act:hover { background: var(--ash); }
.act:active { transform: scale(.92); }
.act svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.act.big { width: 70px; height: 70px; background: var(--red); box-shadow: none; color: #fff; }
.act.big:hover { background: var(--flare); }
.act.big svg { width: 32px; height: 32px; fill: #fff; }
.act.on { color: #ffd34d; }
.act.on svg { fill: #ffd34d; }
.act.liked { background: var(--ash); color: var(--flare); }
.act.liked svg { fill: var(--flare); }
.act.pop { animation: pop .35s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }
.feedtools { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 12px 16px 4px; max-width: 980px; margin: 0 auto; }
.feedtools .cnt { color: var(--smoke); font-size: .88rem; }
.chipbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; background: var(--char); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: .9rem; border-radius: 19px; }
.chipbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chipbtn.on { box-shadow: inset 0 0 0 2px var(--red); }

.empty { text-align: center; padding: 56px 24px; max-width: 420px; margin: 0 auto; }
.empty .slab { font-size: 1.5rem; margin-bottom: 16px; }
.empty p { color: var(--smoke); margin: 0 0 20px; }

/* ───── списки ───── */
.seg { display: flex; gap: 6px; margin: 0 0 16px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; --sk: .4em; padding: 10px calc(14px + var(--sk)); font-weight: 600; font-size: .9rem; background: var(--char); color: var(--smoke); clip-path: polygon(var(--sk) 0, 100% 0, calc(100% - var(--sk)) 100%, 0 100%); }
.seg button.on { background: var(--bone); color: var(--coal); }
.seg .n { color: var(--flare); margin-left: 4px; }
.seg button.on .n { color: var(--red); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { position: relative; display: block; aspect-ratio: 3/4; background: var(--char); overflow: hidden; text-align: left; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(transparent, rgba(17,11,12,.9)); }
.tile .slab { position: absolute; left: 0; bottom: 10px; z-index: 2; font-size: .92rem; }
.tile .slab.tg { top: 8px; right: 8px; left: auto; bottom: auto; }
.tile.mutual { box-shadow: 0 0 0 3px var(--red); }

.dlg { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.dlg:hover { background: rgba(255,255,255,.03); }
.ava { flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--ash) center/cover no-repeat; position: relative; }
.ava.sm { width: 38px; height: 38px; }
.dlg .mid { flex: 1; min-width: 0; }
.dlg .nm { font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.dlg .nm small { color: var(--smoke); font-weight: 400; margin-left: auto; flex: none; }
.dlg .last { color: var(--smoke); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
.dlg.unread .last { color: var(--bone); font-weight: 600; }
.dlg .ub { flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--red); }
.search { margin-bottom: 14px; }
.search input { width: 100%; min-height: 44px; padding: 0 14px; background: var(--char); border: 1px solid var(--line); border-radius: 22px; outline: none; }
.search input:focus { border-color: var(--red); }

/* ───── чат ───── */
.chatpage { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--coal); z-index: 4; }
.chathead { flex: none; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 8px 0 4px; border-bottom: 1px solid var(--line); background: var(--char); }
.chathead .who { flex: 1; min-width: 0; text-align: left; display: flex; gap: 12px; align-items: center; }
.chathead .who b { display: block; line-height: 1.15; }
.chathead .who small { color: var(--smoke); }
.msgs { flex: 1; overflow-y: auto; padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 4px; overscroll-behavior: contain; }
.msgs .day { align-self: center; margin: 12px 0 6px; font-size: .78rem; color: var(--smoke); font-weight: 600; }
.bub { max-width: min(78%, 520px); padding: 9px 13px 7px; border-radius: 14px; background: var(--char); box-shadow: inset 0 0 0 1px var(--line); white-space: pre-wrap; overflow-wrap: anywhere; position: relative; }
.bub.me { align-self: flex-end; background: var(--red); box-shadow: none; color: #fff; border-bottom-right-radius: 3px; }
.bub.you { align-self: flex-start; border-bottom-left-radius: 3px; }
.bub .tm { display: block; text-align: right; font-size: .7rem; margin-top: 2px; opacity: .72; white-space: nowrap; }
.bub.pending { opacity: .6; }
.more { align-self: center; margin: 4px 0 10px; }
.composer { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 10px 10px calc(10px + var(--safe-b)); background: var(--char); border-top: 1px solid var(--line); }
.composer textarea { flex: 1; min-height: 46px; max-height: 140px; resize: none; padding: 12px 16px; background: var(--coal); border: 1px solid var(--line); border-radius: 23px; outline: none; line-height: 1.3; }
.composer textarea:focus { border-color: var(--red); }
.composer .send { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }
.composer .send:hover { background: var(--flare); }
.composer .send[disabled] { opacity: .4; }
.composer .send svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.locked { flex: none; padding: 14px 16px calc(14px + var(--safe-b)); background: var(--char); border-top: 3px solid var(--red); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.locked p { margin: 0; flex: 1 1 220px; font-size: .92rem; }
.split { height: 100%; }
.split .chatcol { display: none; }
.split.hasChat .chatcol { display: block; position: absolute; inset: 0; }
.split.hasChat .listcol { display: none; }
#app.inchat .top, #app.inchat .tabbar { display: none; }
@media (min-width: 900px) {
  .split { display: grid; grid-template-columns: 360px 1fr; }
  .split .listcol, .split.hasChat .listcol { display: block; overflow-y: auto; height: 100%; border-right: 1px solid var(--line); }
  .split .chatcol, .split.hasChat .chatcol { display: block; position: relative; inset: auto; height: 100%; }
  .chatpage .backbtn { display: none; }
  #app.inchat .tabbar { display: flex; }
}

/* ───── окна ───── */
.sheetbg { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.66); display: flex; align-items: flex-end; justify-content: center; animation: fadein .15s both; }
.sheet { width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; background: var(--char); border-top: 4px solid var(--red); padding: 20px 18px calc(22px + var(--safe-b)); animation: up .22s cubic-bezier(.2,.9,.3,1) both; }
.sheet h2 { margin: 0 0 16px; font-size: 1.25rem; }
.sheet .menu button, .sheet .menu a { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 0 4px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 600; text-decoration: none; }
.sheet .menu .bad { color: var(--flare); }
@media (min-width: 640px) { .sheetbg { align-items: center; } .sheet { border-top: 0; border-left: 4px solid var(--red); } }
@keyframes fadein { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 22px + var(--safe-b)); transform: translateX(-50%); z-index: 80; max-width: min(92vw, 460px); background: var(--bone); color: var(--coal); padding: 12px 18px; font-weight: 600; font-size: .92rem; box-shadow: 0 8px 30px rgba(0,0,0,.5); animation: up .2s both; cursor: pointer; }
.toast.bad { background: var(--red); color: #fff; }
@media (min-width: 900px) { .toast { bottom: 28px; } }

.match { position: fixed; inset: 0; z-index: 70; background: rgba(17,11,12,.96); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; text-align: center; animation: fadein .2s both; }
.match .pair { display: flex; align-items: center; }
.match .pair .ava { width: 112px; height: 112px; border: 4px solid var(--bone); }
.match .pair .ava + .ava { margin-left: -22px; }
.match .slab { font-size: clamp(2.2rem, 11vw, 3.6rem); animation: slam .5s cubic-bezier(.2,.9,.25,1) both .1s; }
.match p { color: var(--smoke); margin: 0; }
.match .acts { display: flex; flex-direction: column; gap: 10px; width: min(320px, 100%); }

.sect { margin: 26px 0 0; }
.sect h2 { font-size: 1.1rem; margin: 0 0 12px; }
.panel { background: var(--char); padding: 14px 16px; margin: 0 0 14px; box-shadow: inset 0 0 0 1px var(--line); }
.panel.warn { box-shadow: inset 4px 0 0 var(--red); }
.panel.ok { box-shadow: inset 4px 0 0 var(--ok); }
.panel p { margin: 0 0 8px; } .panel p:last-child { margin: 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv span:first-child { color: var(--smoke); }
.kv button { font-weight: 600; text-align: right; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; }
.switch input { appearance: none; width: 52px; height: 30px; border-radius: 15px; background: var(--ash); position: relative; cursor: pointer; flex: none; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--bone); transition: transform .15s; }
.switch input:checked { background: var(--red); }
.switch input:checked::after { transform: translateX(22px); }
.nlist .n { padding: 12px 0; border-bottom: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.nlist .n small { display: block; color: var(--smoke); margin-bottom: 2px; }
.nlist .n.new { border-left: 4px solid var(--red); padding-left: 12px; }
.loading { display: grid; place-items: center; padding: 60px 0; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--ash); border-top-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.legal { color: var(--smoke); font-size: .82rem; text-align: center; padding: 18px 16px 6px; }
.legal a { color: var(--smoke); }
.statusbar { background: var(--ash); padding: 10px 14px; margin: 0 0 14px; font-size: .9rem; box-shadow: inset 4px 0 0 var(--smoke); }
.statusbar b { font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}

@media (max-width: 459px) { .top .ttl .city { display: none; } .top .ttl { font-size: .95rem; } }
