/* Отклик — приложение соискателя: экраны (вакансия, компания, отклики и чат, резюме, сохранённое, профиль, вход, карта).
   Оболочка и общие элементы — styles.css. Цвета — только токены из /shared/tokens.css. */

.muted-link { color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 14px; }
.star-ch { color: var(--star); margin-right: 2px; }
.rows { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.rowi { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.rowi:first-child { border-top: 0; }
a.rowi:hover, .rowi-btn:hover { background: var(--surface-2); }
.rowi-btn { border: 0; border-top: 1px solid var(--line); background: none; text-align: left; width: 100%; }
.rowi small { display: block; font-size: 13px; }
.co-name { display: flex; align-items: center; gap: 4px; min-width: 0; }
.co-name .ic { color: var(--primary); }

/* ───────── вакансия ───────── */
.vp-page { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
.vp { display: block; }
.vp-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.vp-head { display: flex; flex-direction: column; gap: 8px; }
.vp-head h1 { font-size: 26px; letter-spacing: -.02em; font-weight: 800; overflow-wrap: anywhere; text-wrap: balance; }
.vp-sal { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.vp-sal .salary { font-size: 26px; letter-spacing: -.02em; }
.vp-where { display: flex; align-items: flex-start; gap: 6px; color: var(--ink-2); }
.vp-where .ic { margin-top: 3px; color: var(--muted); }
.vp-app { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; font-size: 14px; }
.vp-app:hover { border-color: var(--line-strong); }
.market { padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.market-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.market-track { position: relative; height: 10px; border-radius: 999px; background: var(--surface-2); margin: 6px 0 2px; }
.market-band { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.market-med { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--muted); border-radius: 2px; }
.market-me { position: absolute; top: -2px; bottom: -2px; min-width: 14px; margin-left: -1px; border-radius: 999px; background: var(--brand); box-shadow: 0 0 0 3px var(--surface); }
.market-t { color: var(--muted); font-size: 13.5px; text-wrap: pretty; }
.market-t b { color: var(--ink); font-variant-numeric: tabular-nums; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; margin: 0; }
.fact { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.fact .ic { color: var(--muted); margin-top: 2px; }
.fact dt { font-size: 12.5px; color: var(--muted); }
.fact dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.fresh { display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; border-radius: var(--r); background: var(--primary-soft); color: var(--primary-soft-ink); font-size: 14px; }
.fresh .ic { margin-top: 1px; }
.fresh .dot-sep::before { color: currentColor; opacity: .5; }
.co-card { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.co-card-h { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none !important; }
.co-card-h .co-name { font-size: 17px; }
.co-card-h small { display: block; color: var(--muted); font-size: 13.5px; }
.co-card-h > .ic { color: var(--muted); }
.co-card-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.co-card-f a { text-decoration: none !important; color: var(--ink); }
.co-card-f a:last-child { color: var(--primary); font-weight: 650; }
.vp-sec { display: flex; flex-direction: column; gap: 10px; }
.vp-sec > h2, .vp-sec .sec-h h2 { font-size: 19px; }
.vp-sec .sec-h { margin-bottom: 0; }
.ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ul li { position: relative; padding-left: 22px; overflow-wrap: anywhere; }
.ul li::before { content: ''; position: absolute; left: 4px; top: .55em; width: 7px; height: 7px; border-radius: 50% 50% 50% 2px; background: var(--brand); }
.vp-links { display: flex; gap: 20px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--line); }
.vp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--surface) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.vp-side { flex-direction: column; gap: 16px; }
.vp-cta { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); }
@media (min-width: 900px) {
  .vp-page { padding-bottom: 0; }
  .vp { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
  .vp-side { position: sticky; top: calc(var(--hdr) + 20px); }
  .vp-head h1 { font-size: 36px; }
  .vp-sal .salary { font-size: 30px; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .vp-bar { display: none; }
}
.apply-v { display: flex; flex-direction: column; padding: 10px 14px; border-radius: var(--r); background: var(--surface-2); }
.done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 12px 0 4px; }
.done-ic { width: 72px; height: 72px; border-radius: 50% 50% 50% 16px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); }
.done h3 { font-size: 20px; text-wrap: balance; }
.done p { max-width: 380px; text-wrap: pretty; }

.minimap { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); isolation: isolate; }
.minimap-box { height: 200px; background: var(--surface-2); }
.minimap-bad { display: grid; place-items: center; color: var(--muted); }
.minimap-go { position: absolute; right: 10px; bottom: 10px; z-index: 500; background: var(--surface); box-shadow: var(--sh-2); border-color: transparent; }
.pin-wrap { background: none; border: 0; }
.pin { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 6px; background: var(--brand-600); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.3), 0 0 0 3px #fff; transform: rotate(-45deg); }
.pin svg { transform: rotate(45deg); }
.leaflet-container { font: inherit; background: var(--surface-2); }
.leaflet-container a { color: var(--info); }
.leaflet-control-attribution { font-size: 10px; }
:root[data-theme="dark"] .leaflet-tile-pane { filter: brightness(.72) contrast(1.15) saturate(.75); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .leaflet-tile-pane { filter: brightness(.72) contrast(1.15) saturate(.75); } }

/* ───────── компания ───────── */
.co-cover { width: 100%; height: 150px; object-fit: cover; border-radius: var(--r-lg); margin-bottom: 14px; }
.co-head { display: flex; gap: 14px; align-items: flex-start; }
.co-head h1 { font-size: 24px; letter-spacing: -.02em; font-weight: 800; overflow-wrap: anywhere; }
.co-head p { font-size: 14px; margin-top: 4px; }
.co-tag { margin: 12px 0 0; font-size: 17px; font-weight: 600; text-wrap: pretty; }
.co-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 12px; }
.co-stat { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; min-height: 68px; }
.co-stat.wide { grid-column: 1 / -1; }
a.co-stat:hover { border-color: var(--line-strong); }
.co-stat > b { font-size: 20px; display: flex; align-items: center; }
.co-stat > small { color: var(--muted); font-size: 13px; }
@media (min-width: 620px) { .co-stats { grid-template-columns: 1.7fr 1fr 1fr; } .co-stat.wide { grid-column: auto; } }
.co-tabs { margin: 20px 0 16px; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.benefit { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; min-width: 0; }
.benefit .ic { color: var(--primary); }
@media (min-width: 620px) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.photos img { height: 150px; width: auto; border-radius: var(--r); }
.revs { display: flex; flex-direction: column; gap: 12px; }
.rev { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.rev-h { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; justify-content: space-between; }
.rev-h a { color: var(--ink); text-decoration: none !important; }
.rev-t { display: flex; gap: 10px; align-items: flex-start; }
.rev-t .ic { margin-top: 3px; }
.rev-reply { padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); font-size: 14px; border-left: 3px solid var(--brand); }
.rev-reply b { display: block; font-size: 13px; margin-bottom: 2px; }
.rev-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 28px; }
.rev-sum { display: flex; gap: 20px; align-items: center; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.rev-avg { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; min-width: 96px; }
.rev-avg > b { font-size: 40px; line-height: 1; letter-spacing: -.03em; }
.rev-dist { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.rev-bar { display: grid; grid-template-columns: 12px 1fr 22px; gap: 8px; align-items: center; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.rev-bar i { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.rev-bar i b { display: block; height: 100%; border-radius: 999px; background: var(--star); }
.co-row { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; transition: border-color var(--t-fast), box-shadow var(--t); }
.co-row:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); }
.co-row small { display: block; color: var(--muted); font-size: 13px; }
.co-row > .ic { color: var(--muted); }
.co-row-f { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; margin-top: 6px; font-size: 13px; }
.chip-select { appearance: none; -webkit-appearance: none; padding-right: 30px; max-width: 220px; text-overflow: ellipsis; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px; background-size: 5px 5px; background-repeat: no-repeat; }

/* ───────── срок ответа ───────── */
.due { display: flex; flex-direction: column; gap: 6px; }
.due-segs { display: flex; gap: 4px; }
.due-segs i { flex: 1; height: 6px; border-radius: 999px; background: var(--brand); max-width: 44px; }
.due-segs i.spent { background: var(--surface-3); }
.due-t { font-size: 13.5px; color: var(--ink-2); }
.due.urgent .due-segs i:not(.spent) { background: var(--accent-strong); }
.due.urgent .due-t b { color: var(--accent); }
.due.compact { flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; }
.due.compact .due-segs { flex: 0 0 96px; gap: 3px; }
.due.compact .due-segs i { height: 5px; }

/* ───────── мои отклики ───────── */
.apc { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; transition: border-color var(--t-fast), box-shadow var(--t); }
.apc:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); }
.apc.unread { border-color: var(--accent-strong); }
.apc-h { display: flex; gap: 12px; align-items: flex-start; }
.apc-h > div { display: flex; flex-direction: column; gap: 2px; }
.apc-t { font-size: 16.5px; line-height: 1.25; }
.apc-s { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ap-line { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--ink-2); }
.ap-line .ic { margin-top: 2px; color: var(--muted); }
.ap-line.ok-t .ic { color: inherit; }
.apc-last { padding: 8px 12px; border-radius: 4px 14px 14px 14px; background: var(--surface-2); font-size: 14px; color: var(--ink-2); }

/* ───────── отклик подробно + чат ───────── */
html[data-route="Application"] .main, html[data-route="MapPage"] .main { padding-bottom: 0; }
.ap { display: flex; flex-direction: column; height: calc(100dvh - var(--hdr)); min-height: 0; }
.ap > .topbar { flex: none; }
.ap-tabs { padding: 0 16px 8px; flex: none; }
.ap-body { flex: 1; min-height: 0; display: flex; }
.ap-info, .ap-chat { flex: 1; min-width: 0; min-height: 0; }
.ap-info { overflow-y: auto; overscroll-behavior: contain; }
.ap-info.off, .ap-chat.off { display: none; }
.ap-info-in { display: flex; flex-direction: column; gap: 16px; padding: 4px 16px calc(24px + env(safe-area-inset-bottom)); max-width: 760px; margin: 0 auto; }
.ap-chat { display: flex; }
@media (min-width: 900px) {
  .ap > .topbar { width: 100%; }
  .ap-body { max-width: 1200px; width: 100%; margin: 0 auto; padding: 8px 24px 20px; gap: 20px; }
  .ap-info { flex: 0 0 430px; }
  .ap-info-in { padding: 0 8px 8px 0; }
  .ap-chat { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
}
.stage { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--line-strong); }
.stage-new { border-top-color: var(--st-new); } .stage-viewed { border-top-color: var(--st-viewed); } .stage-review { border-top-color: var(--st-review); }
.stage-interview, .stage-invited { border-top-color: var(--st-interview); } .stage-offer { border-top-color: var(--st-offer); } .stage-hired { border-top-color: var(--st-hired); }
.stage-rejected { border-top-color: var(--st-rejected); } .stage-expired { border-top-color: var(--st-expired); }
.stage-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stage-big { display: flex; gap: 12px; align-items: center; }
.stage-big .ic { color: var(--primary); }
.stage-big b { display: block; font-size: 19px; letter-spacing: -.01em; }
.stage-big small { color: var(--muted); font-size: 13px; }
.stage-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.quote { margin: 0; padding: 10px 14px; border-radius: 4px 14px 14px 14px; background: var(--surface-2); font-size: 14.5px; }
.ap-vac { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.ap-vac:hover { border-color: var(--line-strong); }
.ap-vac small { display: block; color: var(--muted); font-size: 13px; }
.ap-vac > .ic { color: var(--muted); }
.ap-sec { display: flex; flex-direction: column; gap: 10px; }
.ap-sec > h2 { font-size: 16px; }
.ap-sec p { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.ap-sec p .ic { margin-top: 2px; color: var(--muted); }
.qa { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.qa dt { color: var(--muted); font-size: 13px; margin-top: 6px; }
.qa dd { margin: 0; font-weight: 600; }
.tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tl-i { position: relative; display: flex; gap: 12px; padding-bottom: 16px; }
.tl-i:last-child { padding-bottom: 0; }
.tl-i::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.tl-i:last-child::before { display: none; }
.tl-dot { flex: none; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: var(--surface); border: 3px solid var(--muted); z-index: 1; }
.tl-company .tl-dot { border-color: var(--brand); } .tl-system .tl-dot { border-color: var(--accent-strong); }
.tl-i b { display: block; font-weight: 600; font-size: 14.5px; }
.tl-i small { color: var(--muted); font-size: 12.5px; }
.ap-foot { display: flex; flex-direction: column; gap: 8px; }

.chat { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 16px; overscroll-behavior: contain; outline: none; }
.msgs-in { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.msgs-empty { text-align: center; color: var(--muted); padding: 48px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.msg { position: relative; max-width: 84%; padding: 8px 12px 6px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); align-self: flex-start; overflow-wrap: anywhere; }
@media (min-width: 900px) { .msg.in { background: var(--surface-2); border-color: transparent; } }
.msg p { white-space: pre-wrap; }
.msg.out { align-self: flex-end; background: var(--primary); color: var(--on-primary); border-color: transparent; border-bottom-right-radius: 6px; }
.msg.in { border-bottom-left-radius: 6px; }
.msg-a { display: block; font-size: 12px; font-weight: 700; color: var(--primary); }
.msg-t { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 11px; opacity: .75; margin-top: 2px; }
.msg-day { align-self: center; font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 2px 10px; border-radius: 999px; margin: 8px 0; }
.msg-sys { align-self: center; display: flex; align-items: center; gap: 8px; max-width: 92%; padding: 7px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 600; margin: 6px 0; text-align: left; }
.msg-sys small { font-weight: 500; color: var(--muted); font-size: 11px; flex: none; }
.msg-sys.st-interview, .msg-sys.st-invited { background: var(--st-interview-bg); color: var(--st-interview); }
.msg-sys.st-offer, .msg-sys.st-hired { background: var(--st-offer-bg); color: var(--st-offer); }
.msg-sys.st-rejected { background: var(--st-rejected-bg); color: var(--st-rejected); }
.msg-sys.st-expired { background: var(--st-expired-bg); color: var(--st-expired); }
.msg-sys.st-review { background: var(--st-review-bg); color: var(--st-review); }
.msg-sys small { color: inherit; opacity: .7; }
.msg-flag { position: absolute; top: 2px; right: -34px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: none; color: var(--faint); border-radius: 50%; opacity: 0; transition: opacity var(--t-fast); }
.msg:hover .msg-flag, .msg-flag:focus-visible { opacity: 1; }
@media (hover: none) { .msg-flag { opacity: .7; } }
.msg-warn { align-self: stretch; display: flex; gap: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--danger-soft); font-size: 13.5px; }
.msg-warn > .ic { color: var(--danger); margin-top: 1px; }
.composer { flex: none; display: flex; gap: 8px; align-items: flex-end; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.composer textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 140px; resize: none; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--bg); color: var(--ink); line-height: 1.4; }
.composer textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.composer-send { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; flex: none; }
.composer.closed { align-items: center; color: var(--muted); font-size: 14px; padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }

/* ───────── чаты ───────── */
.chat-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.chat-i { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.chat-i:first-child { border-top: 0; }
.chat-i:hover { background: var(--surface-2); }
.chat-i > .min0 { display: flex; flex-direction: column; gap: 1px; }
.chat-i-h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.chat-i-h small { color: var(--muted); font-size: 12px; flex: none; }
.chat-i-v { font-size: 13px; color: var(--muted); }
.chat-i-m { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); }
.chat-i-m > .ell { flex: 1; min-width: 0; }
.chat-i.unread .chat-i-m { color: var(--ink); font-weight: 600; }
.chat-i .st { display: none; }
@media (min-width: 620px) { .chat-i .st { display: inline-flex; } }

/* ───────── сохранённые поиски ───────── */
.ss { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.ss-h { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.ss-h b { font-size: 16.5px; }
.ss-h small { display: block; color: var(--muted); font-size: 13px; }
.ss-h > .ic { color: var(--muted); }
.ss-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ss-f { display: flex; align-items: center; gap: 4px; margin: 0 -8px -6px 0; }
.ss-notify { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.ss-notify .select { width: auto; min-height: 36px; padding: 4px 28px 4px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; }

/* ───────── вход ───────── */
.login { position: relative; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 56px 20px 32px; }
.login-x { position: absolute; top: calc(8px + env(safe-area-inset-top)); right: 8px; }
.login-in { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.login-why { width: 100%; padding: 10px 14px; margin-bottom: 18px; border-radius: var(--r); background: var(--primary-soft); color: var(--primary-soft-ink); font-size: 14px; font-weight: 600; text-align: center; text-wrap: balance; }
.login-demo { width: 100%; margin-top: 18px; display: flex; flex-direction: column; gap: 6px; text-align: center; }
.login-foot { margin-top: 22px; color: var(--muted); font-size: 14px; text-align: center; }
@media (min-width: 900px) { .login { min-height: calc(100dvh - 64px - 56px); } }

/* ───────── резюме ───────── */
.ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.ring svg { transform: rotate(-90deg); position: absolute; inset: 0; }
.ring-bg { stroke: var(--surface-3); }
.ring-fg { stroke: var(--ok); } .ring-fg.mid { stroke: var(--accent-strong); } .ring-fg.low { stroke: var(--danger); }
.ring b { position: relative; font-size: 15px; font-variant-numeric: tabular-nums; }
.sstatus { margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.rc { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.rc-h { display: flex; gap: 12px; align-items: center; }
.rc-h > .min0 { display: flex; flex-direction: column; gap: 4px; }
.rc-t { font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); text-decoration: none !important; overflow-wrap: anywhere; line-height: 1.2; }
.rc-miss { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-2); padding: 10px 12px; border-radius: var(--r); background: var(--accent-soft); }
.rc-miss .ic { color: var(--accent); margin-top: 1px; }
.rc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rc-stats a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); color: var(--ink); text-decoration: none !important; min-width: 0; }
.rc-stats a:hover { background: var(--surface-3); }
.rc-stats b { font-size: 20px; font-variant-numeric: tabular-nums; }
.rc-stats small { color: var(--muted); font-size: 12px; line-height: 1.2; }
.rc-vis { display: flex; gap: 8px; align-items: center; color: var(--ink-2); font-size: 14px; }
.rc-vis .ic { color: var(--muted); }
.rc-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qr { display: grid; place-items: center; }
.qr-img { width: 200px; height: 200px; padding: 10px; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.qr-img svg { width: 100%; height: 100%; display: block; }
.share-url { text-align: center; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.rv { display: flex; flex-direction: column; gap: 20px; }
.rv-h { display: flex; gap: 14px; align-items: center; }
.rv-h h1 { font-size: 24px; letter-spacing: -.02em; font-weight: 800; overflow-wrap: anywhere; }
.rv-top { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.xp { display: flex; flex-direction: column; gap: 16px; }
.xp-i { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 3px solid var(--line-strong); }
.xp-i p { margin-top: 6px; }

/* редактор резюме */
.re-body { display: flex; flex-direction: column; gap: 20px; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.re-prog { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.re-prog .chips { margin-top: 8px; }
.re-sec { display: flex; flex-direction: column; gap: 14px; padding: 18px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--hdr) + 64px); }
.re-sec > h2 { font-size: 19px; }
.re-sec > h2 + .hint { margin-top: -8px; }
.re-item { display: flex; flex-direction: column; gap: 12px; padding: 12px 14px 14px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.re-item-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -4px -8px -6px 0; }
.re-item-h b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.re-photo { display: flex; align-items: center; gap: 14px; }
.tags-in { display: flex; flex-direction: column; gap: 10px; }
.re-lang .input { min-width: 0; flex: 1; }
.re-lang .select { flex: 1; min-width: 0; }
.re-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--surface) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.re-bar-in { display: flex; gap: 10px; }
.re-bar-in .btn { min-width: 0; padding: 0 14px; }
@media (min-width: 900px) { .re-sec { padding: 22px; } }

/* ───────── уведомления ───────── */
.ntf-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.ntf { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; color: var(--ink); width: 100%; }
.ntf:first-child { border-top: 0; }
.ntf:hover { background: var(--surface-2); }
.ntf.unread { background: color-mix(in oklab, var(--accent-soft) 45%, var(--surface)); }
.ntf-ic { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.ntf.unread .ntf-ic { background: var(--accent-soft); color: var(--accent); }
.ntf b { display: block; font-weight: 650; line-height: 1.3; }
.ntf-b { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.ntf small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.ntf-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-strong); margin-top: 6px; }

/* ───────── профиль ───────── */
.pr-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.pr-head h2 { font-size: 22px; letter-spacing: -.02em; }
.pr-ava { position: relative; border: 0; background: none; padding: 0; border-radius: 50%; flex: none; }
.pr-ava-b { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line-strong); }
.pr-sec { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.pr-sec > h2 { font-size: 15px; color: var(--muted); font-weight: 700; }
.pr-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pr-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; color: var(--ink); text-decoration: none !important; width: 100%; }
.pr-row:first-child { border-top: 0; }
.pr-row:hover { background: var(--surface-2); }
.pr-row b { display: block; font-weight: 600; }
.pr-row small { display: block; color: var(--muted); font-size: 13px; }
.pr-row > .ic { color: var(--faint); }
.pr-ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.pr-row.danger, .pr-row.danger .pr-ic { color: var(--danger); }
.pr-row.danger .pr-ic { background: var(--danger-soft); }
.pr-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 14px; display: flex; flex-direction: column; }
.pr-box > * + * { border-top: 1px solid var(--line); }
.pr-box .fmulti > summary { min-height: 52px; font-weight: 600; font-size: var(--fs); }
.pr-guest { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.pr-guest h2 { font-size: 22px; letter-spacing: -.02em; }
.pr-guest p { max-width: 400px; text-wrap: pretty; margin-bottom: 6px; }
.rep { display: flex; flex-direction: column; gap: 8px; }

/* ───────── карта ───────── */
.mapp { position: relative; height: calc(100dvh - var(--hdr)); min-height: 0; overflow: hidden; }
.map-box { position: absolute; inset: 0; z-index: 0; background: var(--surface-2); }
.glass { background: color-mix(in oklab, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--sh-2); color: var(--ink); }
.icon-btn.glass:hover { background: var(--surface); }
.map-top { position: absolute; z-index: 500; top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; gap: 8px; align-items: center; max-width: 720px; margin: 0 auto; }
.map-q { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 22px; font-weight: 600; text-align: left; }
.map-q .ic { color: var(--muted); }
.map-mid { position: absolute; z-index: 500; top: calc(64px + env(safe-area-inset-top)); left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.map-mid > * { pointer-events: auto; }
.map-here { border-radius: 999px; box-shadow: var(--sh-2); }
.map-info { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; max-width: calc(100% - 32px); text-align: center; }
.map-geo { position: absolute; z-index: 500; right: 10px; bottom: calc(110px + env(safe-area-inset-bottom)); }
.map-card { position: absolute; z-index: 600; left: 10px; right: 10px; bottom: calc(14px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-3); }
.map-card-a { display: flex; gap: 12px; align-items: center; padding: 14px 44px 14px 14px; color: var(--ink); text-decoration: none !important; }
.map-card-a > .min0 { display: flex; flex-direction: column; gap: 2px; }
.map-card-a > .ic { color: var(--muted); }
.map-card-x { position: absolute; top: 0; right: 0; }
.mk-wrap { background: none; border: 0; }
.mk { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 0); white-space: nowrap; padding: 5px 10px; border-radius: 999px 999px 999px 4px; background: var(--surface); color: var(--ink); font: 700 12.5px/1.2 var(--font); box-shadow: 0 2px 8px rgba(0,0,0,.28), 0 0 0 1.5px var(--brand-600); cursor: pointer; transition: transform var(--t-fast); }
.mk:hover { transform: translate(-50%, -2px); }
.mk.on { background: var(--brand-600); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.35), 0 0 0 2px #fff; }
.mk-g { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); min-width: 38px; height: 38px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: var(--brand-600); color: #fff; font: 800 14px/1 var(--font); box-shadow: 0 0 0 5px color-mix(in oklab, var(--brand-500) 30%, transparent), 0 3px 10px rgba(0,0,0,.3); cursor: pointer; }
.leaflet-marker-icon:focus-visible .mk, .leaflet-marker-icon:focus-visible .mk-g { outline: 3px solid var(--info); outline-offset: 2px; }
.leaflet-bottom.leaflet-right { margin-bottom: calc(8px + env(safe-area-inset-bottom)); }
