/*
 * Ourbit: две «орбиты» пары. Глубокий сливовый фон, два акцента: коралл (a1) и фиолетовый (a2).
 * Шрифт: системный закруглённый (SF Pro Rounded на Apple), без внешних шрифтов.
 */
:root {
  --bg: #f6f3f9;
  --surface: #ffffff;
  --ink: #241b30;
  --muted: #776b86;
  --line: #e6dfee;
  --soft: #efe9f6;
  --a1: #e5604c;        /* коралл */
  --a1-soft: #fde8e3;
  --a2: #7058d6;        /* фиолетовый */
  --a2-soft: #ebe6fd;
  --sage: #5f9277;
  --sage-soft: #e3f0e8;
  --plum: #8b3f7a;
  --plum-soft: #f6e4f1;
  --primary: #2a1f3a;   /* основные кнопки */
  --on-primary: #ffffff;
  --ok: #3f8a62;
  --danger: #c2453a;
  --shadow: 0 1px 2px rgba(36, 27, 48, .05), 0 8px 24px rgba(36, 27, 48, .07);
  --radius: 22px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120e18;
    --surface: #1c1625;
    --ink: #f2ecf8;
    --muted: #a99db8;
    --line: #2e2639;
    --soft: #251e30;
    --a1: #ff7a66;
    --a1-soft: #3a211f;
    --a2: #9c86ff;
    --a2-soft: #2a2348;
    --sage: #86bf9f;
    --sage-soft: #1d2e25;
    --plum: #e08ccd;
    --plum-soft: #35203a;
    --primary: #f2ecf8;
    --on-primary: #160f1e;
    --ok: #7fcfa0;
    --danger: #ff8a7d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Без приближения по двойному тапу (щипок для увеличения остаётся) */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
#app {
  max-width: 540px;
  margin: 0 auto;
  min-height: 100dvh;
  padding-top: 0;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: 30px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
p { margin: 0 0 12px; }
button, input, textarea { font: inherit; color: inherit; }
main { flex: 1; display: flex; flex-direction: column; gap: 14px; }
a { color: inherit; }
.d1 { fill: var(--a1); }
.d2 { fill: var(--a2); }

/* Шапка */
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 8px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 20px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.logo { width: 30px; height: 30px; color: var(--ink); }
.langs { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; }
.langs button { border: 0; background: transparent; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; min-height: 34px; }
.langs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #fff; background: linear-gradient(135deg, var(--a1), var(--a2)); }

/* Общие элементы */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 54px; padding: 12px 18px;
  border-radius: 16px; border: 1.5px solid transparent;
  font-size: 17px; font-weight: 600; cursor: pointer; text-align: center;
  transition: transform .12s ease, background .2s ease, opacity .2s ease;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--primary); color: var(--on-primary); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.link { background: none; border: 0; min-height: 44px; color: var(--muted); font-weight: 500; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.btn.danger { background: transparent; border-color: var(--line); color: var(--danger); }
.danger-link { color: var(--danger) !important; }
.btn:disabled { opacity: .45; cursor: default; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack.quiet { margin-top: 2px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.lead { color: var(--muted); font-size: 17px; }
.note { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.flash { background: var(--soft); border-radius: 14px; padding: 12px 14px; margin: 0; }
.pill { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.okline { color: var(--ok); font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span:first-child { font-size: 14px; font-weight: 600; color: var(--muted); }
.field .inline { display: flex; gap: 8px; }
.field .inline .btn { width: auto; min-height: 48px; }
input:not([type]), input[type="text"], input[type="email"], textarea {
  width: 100%; min-width: 0; font-size: 17px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; min-height: 48px;
}
input:focus, textarea:focus { outline: none; border-color: var(--a2); }
.backlink { align-self: flex-start; border: 0; background: none; color: var(--muted); font-weight: 600; padding: 6px 0; min-height: 40px; cursor: pointer; }
.page-title { font-size: 28px; margin-bottom: 0; }
.hello { font-size: 28px; margin: 6px 0 2px; }

/* Вход */
.login { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.orbit-art { display: flex; justify-content: center; margin: 12px 0 4px; }
.orbit-art .logo { width: 120px; height: 120px; }
@keyframes orbit { to { transform: rotate(360deg); } }
.login h1 { text-align: center; font-size: 30px; }
.login .lead { text-align: center; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin: 4px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.newacc h2 { font-size: 18px; }

/* Пара */
.pair { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(120deg, var(--a1-soft), var(--a2-soft)); }
.pair p { margin: 0; font-weight: 600; }
.pair-dots { display: flex; }
.pair-dots i { width: 22px; height: 22px; border-radius: 50%; background: var(--a1); border: 2px solid var(--surface); }
.pair-dots i + i { background: var(--a2); margin-left: -8px; }
.invite h2 { margin-bottom: 6px; }
.linkbox { background: var(--soft); border-radius: 12px; padding: 10px 12px; font-size: 13px; word-break: break-all; color: var(--muted); user-select: all; }

/* Разделы */
.sections { display: flex; flex-direction: column; gap: 10px; }
.section-card {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); cursor: pointer; transition: transform .12s ease;
}
.section-card:active { transform: scale(.985); }
.section-card.is-soon { cursor: default; box-shadow: none; background: transparent; }
.section-card.is-soon .tile { opacity: .55; }
.sc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.sc-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.sc-desc { color: var(--muted); font-size: 14px; line-height: 1.35; }
.chev { font-size: 26px; color: var(--muted); line-height: 1; }
.tile { flex: none; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; }
.tile.big { width: 72px; height: 72px; border-radius: 22px; }
.tile .ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tile.big .ico { width: 38px; height: 38px; }
.tone-coral { background: var(--a1-soft); color: var(--a1); }
.tone-violet { background: var(--a2-soft); color: var(--a2); }
.tone-sage { background: var(--sage-soft); color: var(--sage); }
.tone-plum { background: var(--plum-soft); color: var(--plum); }
.soon-page { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-top: 30px; }

/* Страница теста */
.status .row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.status .row:last-of-type { border-bottom: 0; margin-bottom: 8px; }
.status .row b { font-weight: 600; color: var(--muted); text-align: right; }
.status .row b.ok { color: var(--ok); }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--a2-soft); border-radius: 16px; padding: 12px 14px; }
.banner .btn { width: auto; min-height: 44px; padding: 8px 16px; font-size: 15px; }
.waiting { text-align: center; }
.waiting p { margin: 0; }
.waiting .dots { display: inline-flex; gap: 6px; margin: 4px 0 12px; }
.waiting .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--a2); opacity: .3; animation: pulse 1.4s infinite ease-in-out; }
.waiting .dots i:nth-child(2) { animation-delay: .2s; }
.waiting .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes pulse { 50% { opacity: 1; } }
.customs { list-style: none; padding: 0; margin: 0 0 10px; }
.customs li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.customs li:last-child { border-bottom: 0; }
.customs small { color: var(--muted); display: block; font-size: 13px; }
.customs .btn { width: auto; min-height: 40px; padding: 6px 12px; font-size: 14px; }

/* Совпадения */
.tier { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; }
.tier span { font-family: var(--font); font-size: 13px; background: var(--soft); color: var(--muted); border-radius: 999px; padding: 1px 9px; }
.tier::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--a1); }
.tier-try::before { background: var(--a2); }
.tier-curious::before { background: var(--muted); }
.matches { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.matches li { background: var(--bg); border-radius: 14px; padding: 10px 14px; }
.mcat { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.mtext { display: block; font-size: 17px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { font-size: 13px; background: var(--a2-soft); color: var(--ink); border-radius: 999px; padding: 2px 10px; }
.mnote { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }
.mnote b { font-weight: 600; color: var(--ink); }

/* Опрос */
main.survey { gap: 0; }
.sbar { display: flex; align-items: center; gap: 10px; padding: 2px 0 10px; }
.icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; flex: none; font-size: 22px; line-height: 1; }
.icon:disabled { opacity: .35; }
.prog { flex: 1; height: 6px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--a1), var(--a2)); border-radius: 999px; transition: width .3s ease; }
.count { font-size: 13px; color: var(--muted); min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.stage { flex: 1; display: flex; align-items: center; padding: 8px 0 16px; min-height: 260px; }
.qcard {
  width: 100%; min-height: min(46dvh, 380px);
  display: flex; flex-direction: column; justify-content: center; text-align: center;
  padding: 28px 22px; touch-action: none; user-select: none; position: relative;
  transition: transform .25s ease, opacity .25s ease, border-color .15s ease;
}
.qcard.drag { transition: border-color .15s ease; }
.qcard h2 { font-size: 27px; margin: 6px 0 10px; }
.qcard .hint { color: var(--muted); font-size: 15px; margin: 0; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0; font-weight: 600; }
.badge { align-self: center; margin-top: 14px; font-size: 13px; background: var(--soft); border-radius: 999px; padding: 3px 12px; color: var(--muted); }
.qcard[data-dir="y"] { border-color: var(--a1); }
.qcard[data-dir="n"] { border-color: var(--muted); }
.qcard[data-dir="m"] { border-color: var(--a2); }
.qcard.fly { opacity: 0; }
.notebtn { align-self: center; margin-top: 16px; border: 1px dashed var(--line); border-radius: 999px; background: none; color: var(--muted); font-size: 15px; min-height: 44px; padding: 6px 14px; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notebtn span { font-style: italic; color: var(--ink); }
.actions { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 10px; }
.actions.col { display: flex; flex-direction: column; }
.actions .ans { min-height: 72px; font-size: 16px; line-height: 1.2; padding: 8px 10px; border-radius: 18px; }
.ans.no { background: var(--surface); border-color: var(--line); }
.ans.maybe { background: var(--a2-soft); border-color: var(--a2); }
.ans.yes { background: var(--a1); color: #fff; }
.ans.sel { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }
.roleq { text-align: center; font-weight: 600; margin: 0 0 4px; }
.roles .btn.sel { border-color: var(--a2); background: var(--a2-soft); }
.swipehint { text-align: center; color: var(--muted); font-size: 13px; margin: 12px 0 0; }

/* Окна */
.overlay { position: fixed; inset: 0; background: rgba(18, 12, 24, .5); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.sheet { background: var(--surface); width: 100%; max-width: 540px; border-radius: 24px 24px 0 0; padding: 22px max(16px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.confirm-text { font-size: 17px; margin: 4px 0 16px; }
textarea { resize: none; }
.check { display: flex; gap: 10px; align-items: center; margin: 12px 0 4px; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--a2); }

#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 15px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 20; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

:focus-visible { outline: 3px solid var(--a2); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Логотип в шапке всегда медленно «вращается по орбите» */
/* Фото профиля */
.avatar { padding: 0; overflow: hidden; display: grid; place-items: center; }
.av { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; }
.av-letter { font-family: var(--font-display); font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--a1), var(--a2)); }
.av.sm { width: 30px; height: 30px; font-size: 13px; border: 2px solid var(--surface); }
.pair-avs { display: flex; }
.pair-avs .av + .av { margin-left: -9px; }
.avatar-card { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center; }
.avatar-card .note { grid-column: 1 / -1; margin: 0; }
.av-big { width: 84px; height: 84px; }
.av.lg { width: 84px; height: 84px; font-size: 34px; }
/* Приглашения */
.emailinv { margin-top: 10px; }
.emailinv .inline { display: flex; gap: 8px; }
.emailinv .inline .btn { width: auto; min-height: 48px; }
.incoming { background: var(--a2-soft); border-color: transparent; }
.incoming p { margin-bottom: 10px; }

.inline input, .field .inline input { flex: 1 1 auto; width: auto; min-width: 0; }
#toast { border-radius: 16px; max-width: min(420px, calc(100% - 32px)); width: max-content; line-height: 1.35; }

.emailinv .inline { flex-wrap: wrap; }
.emailinv .inline input { flex: 1 1 180px; }
.emailinv .inline .btn { flex: 1 0 auto; }

/* Роли в БДСМ */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--soft); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; border-radius: 11px; min-height: 44px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.role-partner { margin: 10px 0 0; }
/* Целомудрие */
.wearer.on { border-color: var(--a1); }
.wearer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wearer-head h2 { margin: 0; }
.device { margin: 8px 0 0; font-weight: 600; }
.bigtime { font-family: var(--font-display); font-size: clamp(38px, 12vw, 52px); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin: 6px 0 0; }
.since { margin: 0 0 8px; font-size: 14px; }
.lockline { font-weight: 600; }
.lockline.locked { color: var(--a1); }
.lockline.free { color: var(--ok); }
.keyline { font-weight: 600; margin: 14px 0 8px; }
.presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; }
.presets .btn { min-height: 46px; font-size: 15px; padding: 8px; }
.wearer .btn + .btn, .wearer .btn + .note { margin-top: 10px; }
.wearer .presets .btn { margin-top: 0; }
.presets .btn:last-child { grid-column: 1 / -1; }
.wearer > .btn { margin-top: 10px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; }
.stats b { display: block; font-variant-numeric: tabular-nums; font-size: 15px; }
.stats span { font-size: 12px; color: var(--muted); }
.hist { list-style: none; padding: 0; margin: 0; }
.hist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hist li:last-child { border-bottom: 0; }
.hist small { display: block; color: var(--muted); font-size: 13px; }
.hist b { font-variant-numeric: tabular-nums; }
.chip.warn { background: var(--a1-soft); color: var(--a1); }

/* Языки в профиле — на всю ширину поля */
.field .langs { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; padding: 4px; border-radius: 14px; }
.field .langs button { min-height: 44px; font-size: 15px; border-radius: 11px; }

.star { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; flex: none; }
.star.on { color: var(--a1); }
.section-card .chev { margin-left: -6px; }
/* Время начала ношения */
.backdate { margin: 0 0 12px; }
.backdate summary { cursor: pointer; color: var(--muted); font-size: 15px; min-height: 36px; }
.backdate input, .editstart input { width: 100%; font-size: 16px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; min-height: 48px; color: var(--ink); margin-top: 6px; }
.editstart { display: flex; gap: 8px; margin: 0 0 10px; }
.editstart .btn { width: auto; }
.linkbtn { border: 0; background: none; color: var(--a2); padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* Виджеты: лента, которую листают пальцем */
.widgets h2, .favs h2 { font-size: 15px; font-weight: 700; color: var(--muted); margin: 0; letter-spacing: .02em; text-transform: uppercase; font-family: var(--font); }
.w-bar { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 8px; }
.w-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 2px max(16px, env(safe-area-inset-left, 0px)) 8px; scrollbar-width: none; }
.w-strip::-webkit-scrollbar { display: none; }
.widget { flex: 0 0 86%; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; cursor: pointer; text-align: left; min-height: 150px; }
.widget-add { flex: 0 0 44%; align-items: center; justify-content: center; border-style: dashed; box-shadow: none; background: transparent; color: var(--muted); font-weight: 600; font-size: 15px; gap: 6px; }
.widget-add:only-child { flex-basis: 100%; min-height: 84px; flex-direction: row; }
.widget-add .plus { font-size: 26px; line-height: 1; color: var(--a2); }
.w-head { display: flex; align-items: center; gap: 10px; }
.w-head .tile { width: 34px; height: 34px; border-radius: 11px; }
.w-head .tile .ico { width: 20px; height: 20px; }
.w-title { font-family: var(--font-display); font-weight: 700; }
.w-who { display: flex; flex-direction: column; gap: 1px; }
.w-who b { font-size: 13px; color: var(--muted); font-weight: 600; }
.w-time { font-family: var(--font-display); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }
.w-sub { font-size: 13px; color: var(--muted); }
.w-idle { font-size: 15px; color: var(--muted); }
/* Избранное: список */
.fav-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; margin-top: 8px; }
.fav-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; min-height: 56px; }
.fav-row + .fav-row { border-top: 1px solid var(--line); }
.fav-row .tile { width: 34px; height: 34px; border-radius: 11px; }
.fav-row .tile .ico { width: 20px; height: 20px; }
.fav-title { flex: 1; font-weight: 600; }
/* Окно выбора виджетов */
.pick-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pick-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pick-body small { color: var(--muted); font-size: 14px; line-height: 1.35; }
.pick-btn { width: auto; min-height: 44px; padding: 8px 16px; font-size: 15px; }
.sheet > .btn { margin-top: 14px; }

.solo-hint { background: var(--a2-soft); border-color: transparent; box-shadow: none; }
.solo-hint p { margin-bottom: 10px; }

/* Виджеты по центру: одна карточка — один экран, листаются смахиванием */
.w-strip { margin: 0; padding: 2px 0 4px; gap: 12px; scroll-padding: 0; overscroll-behavior-x: contain; }
.widget, .widget-add { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.widget-add { flex-direction: row; min-height: 150px; }
.widget-add:only-child { min-height: 84px; }
.w-dots { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.w-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .2s, width .2s; }
.w-dots i.on { background: var(--a2); width: 16px; border-radius: 3px; }
.w-strip { padding: 4px 0 14px; }
.w-dots { margin-top: -4px; }

/* Тень внутри прокручиваемой ленты обрезается прямоугольником — у виджетов только рамка */
.widget { box-shadow: none; border-color: var(--line); }
.widget-add { border-color: var(--line); }
.w-strip { padding: 2px 0 6px; }
.w-dots { margin-top: 2px; }

/* Настройки пары */
.row-sub { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.couple-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pair-avs.big .av { width: 72px; height: 72px; font-size: 28px; border: 3px solid var(--surface); }
.pair-avs.big .av + .av { margin-left: -16px; }
.couple-names { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 4px 0 0; }
.together { color: var(--a1); font-weight: 600; margin: 0; }
input[type="date"] { width: 100%; min-width: 0; flex: 1 1 auto; font-size: 16px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; min-height: 48px; color: var(--ink); }

/* Переключатель раздела */
.check.switch { justify-content: space-between; flex-direction: row-reverse; font-size: 17px; }
.check.switch input { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.check.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.check.switch input:checked { background: var(--a2); }
.check.switch input:checked::after { transform: translateX(20px); }

/* Большой замок в целомудрии: красный — под замком, зелёный — можно снять */
.lockbig { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 18px 0 8px; }
.lockbtn { width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 3px solid currentColor; transition: transform .15s ease, box-shadow .2s ease; -webkit-tap-highlight-color: transparent; }
.lockbtn:active { transform: scale(.94); }
.lockbtn.locked { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, var(--surface)); }
.lockbtn.free { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, var(--surface)); box-shadow: 0 0 0 8px color-mix(in srgb, var(--ok) 12%, transparent); }
.lockbtn.asked { cursor: default; animation: lockpulse 1.8s ease-in-out infinite; }
.lockbtn:disabled { opacity: 1; }
@keyframes lockpulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 30%, transparent); } 50% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--danger) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .lockbtn.asked { animation: none; } }
.lockcap { margin: 0; text-align: center; font-weight: 600; max-width: 30ch; }
.linkbtn.unsure { display: block; margin: 10px auto 0; padding: 10px 14px; min-height: 44px; color: var(--muted); }
.linkbtn.unsure.sel { color: var(--ink); font-weight: 600; }
.ans-line { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.ans-line b { color: var(--ink); font-weight: 600; }
.tier-diff::before { background: var(--plum); }
.tier-no::before { background: var(--muted); }
.offer { background: var(--a1-soft); border-radius: 16px; padding: 14px; margin-top: 8px; }
.offer p { margin: 0 0 12px; }
.lockwhen { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); font-weight: 500; }
.w-sub .lockwhen { font-size: 13px; margin-top: 2px; }
.presets.pick .btn.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.presets.pick + .btn { margin-top: 12px; }
/* Кнопки одного размера: текст не раздувает кнопку, в паре — одна строка */
.btn { line-height: 1.2; }
.two .btn { min-height: 54px; padding-left: 10px; padding-right: 10px; font-size: 16px; }
.wearer .stack { margin-top: 12px; }
.wearer .stack .btn + .btn { margin-top: 0; }
.wearer .banner + .stack { margin-top: 10px; }
.offer .stack { margin-top: 4px; }
.presets .btn { min-height: 48px; }

/* «Не знаю» и «Ответить позже» под кнопками ответа */
.altans { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.altans .linkbtn { padding: 10px 12px; min-height: 44px; color: var(--muted); }
.altans .linkbtn.sel { color: var(--ink); font-weight: 600; }

/* Колокольчик и лента уведомлений */
.top-right { display: flex; align-items: center; gap: 10px; }
.bell { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.bell.on { background: var(--soft); }
.badge-dot { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--a1); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.notifs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.notif { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.notif.new { border-color: var(--a1); background: var(--a1-soft); }
.notif-body { font-weight: 600; }
.notif small { color: var(--muted); }

/* Роли в совпадениях: кто что делает */
.roles-box { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: var(--a2-soft); font-size: 15px; }
.roles-box .rl b { font-weight: 700; }

/* Карточка «расскажите о себе» на главной */
.setup .setup-q { padding: 12px 0; border-top: 1px solid var(--line); }
.setup .setup-q:first-of-type { border-top: 0; padding-top: 4px; }
.setup .setup-t { margin: 0 0 8px; font-weight: 600; }
.setup h2 { margin-bottom: 12px; }
.setup-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 8px; }
.setup-foot .note { margin: 0; padding-top: 9px; }
.setup .setup-skip { flex: none; color: var(--muted); font-size: 15px; min-height: 40px; padding: 0 2px; }
/* Нажатая кнопка, пока действие ждёт ответа сервера */
.is-busy { opacity: .6; transition: opacity .1s; }
.count-pill { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: var(--a2-soft); color: var(--a2); font-weight: 700; font-size: 14px; }
.count-pill + .chev { margin-left: 4px; }
.setup .setup-q:last-child { padding-bottom: 0; }
.card .setup-t { margin: 0 0 8px; font-weight: 600; }
.card .setup-t.sub { margin-top: 16px; }
.open-row { padding: 12px 0 0; border-top: 1px solid var(--line); margin-top: 12px; }
.open-row .muted { margin: -4px 0 10px; }

/* Перестановка виджетов */
.pick-move { display: flex; flex-direction: column; gap: 4px; }
.icon-sm { width: 34px; height: 30px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1; cursor: pointer; }
.icon-sm:disabled { opacity: .3; cursor: default; }
