/* Noto Sans Georgian (SIL Open Font License), self-hosted: no third-party request, faster on slow mobile. */
@font-face { font-family: "Noto Sans Georgian"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/noto-sans-georgian-georgian-400.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31; }
@font-face { font-family: "Noto Sans Georgian"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/noto-sans-georgian-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans Georgian"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/noto-sans-georgian-georgian-600.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31; }
@font-face { font-family: "Noto Sans Georgian"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/noto-sans-georgian-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans Georgian"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/noto-sans-georgian-georgian-800.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31; }
@font-face { font-family: "Noto Sans Georgian"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/noto-sans-georgian-latin-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans Georgian"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/noto-sans-georgian-georgian-900.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31; }
@font-face { font-family: "Noto Sans Georgian"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/noto-sans-georgian-latin-900.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #eef2f5; --surface: #fff; --text: #12161b; --muted: #5d6670; --line: #dde3e8;
  --blue: #14b1ff; --green: #0fd06a; --yellow: #ffd43b; --red: #ff1f3d; --viber: #7360f2;
  --ink: #12161b; --block-dark: #262c33; --link: #0072c6;
  --radius: 26px; --radius-sm: 16px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14181d; --surface: #20262d; --text: #f1f3f5; --muted: #9aa3ad; --line: #2e353d; --block-dark: #2a3139; --link: #5cc8ff; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 "Noto Sans Georgian", system-ui, sans-serif; padding-bottom: 92px; }
a { color: inherit; }
.caps { letter-spacing: .02em; font-weight: 900; }
h1 { font-size: 1.7rem; line-height: 1.2; margin: 1.2rem 0 .7rem; font-weight: 900; }
h2 { font-size: 1.15rem; margin: 1.8rem 0 .7rem; font-weight: 900; }
h3 { font-size: 1rem; margin: 1.2rem 0 .4rem; color: var(--muted); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.top { background: var(--bg); position: sticky; top: 0; z-index: 10; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 6px; }
.brand { font-weight: 900; text-decoration: none; font-size: 1.15rem; line-height: 1.1; display: flex; flex-direction: column; }
.brand small { font-size: .72rem; font-weight: 600; color: var(--muted); }
.city-form select { font: inherit; font-weight: 600; padding: 8px 12px; border: 0; border-radius: 999px; background: var(--surface); color: var(--text); }
.nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; white-space: nowrap; scrollbar-width: none; }
.nav a { text-decoration: none; font-size: .9rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: var(--surface); }

/* hero: the big blue block */
.hero { background: var(--blue); color: var(--ink); border-radius: var(--radius); padding: 22px 20px 20px; margin-top: 8px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-brand { color: #fff; font-weight: 800; text-transform: uppercase; font-size: .85rem; letter-spacing: .02em; }
.hero-badge { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; }
.hero-title { font-size: clamp(1.7rem, 7.5vw, 2.6rem); line-height: 1.12; margin: 28px 0 6px; }
.hero-title span { display: block; }
.hero-title .ink { color: var(--ink); }
.hero-title .white { color: #fff; font-size: 1.25em; }
.hero-city { margin: 0; font-weight: 800; color: #fff; }
.search { display: flex; gap: 8px; margin: 18px 0 0; }
.search input { flex: 1; min-width: 0; font: inherit; padding: 14px 16px; border: 0; border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.search button { padding: 0 16px; border-radius: var(--radius-sm); background: var(--ink); color: #fff; display: grid; place-items: center; }
main > .search input { background: var(--surface); color: var(--text); }

/* blocks grid */
.blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.block { position: relative; overflow: hidden; border-radius: var(--radius); padding: 18px 16px; min-height: 150px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.block strong { font-size: 1.05rem; line-height: 1.2; }
.block span { font-size: .88rem; line-height: 1.4; }
.block-dark { background: var(--block-dark); color: #fff; }
.block-dark span { color: #c9d0d7; }
.block-dark .pointer { position: absolute; left: 14px; bottom: 14px; width: 34px; height: 34px; fill: var(--yellow); transform: rotate(-90deg); }
.block-dark span { margin-bottom: 40px; }
.block-green { background: var(--green); color: #fff; }
.block-green.fold { padding-top: 46px; }
.block-muted { background: var(--surface); min-height: 96px; }
.soon { display: inline-block; align-self: flex-start; background: var(--yellow); color: var(--ink); font-weight: 800; padding: 2px 10px; border-radius: 999px; }
.fold::after { content: ""; position: absolute; top: 0; right: 0; width: 46px; height: 46px; background: linear-gradient(225deg, var(--bg) 50%, var(--yellow) 50%); border-bottom-left-radius: 10px; }
.timeline { list-style: none; margin: 4px 0 0 6px; padding: 0 0 0 20px; border-left: 3px solid var(--ink); display: grid; gap: 14px; }
.timeline li { position: relative; font-weight: 800; line-height: 1.25; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: .35em; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); }
.timeline li.caps { font-size: 1.05rem; }

/* full-width bars */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; padding: 18px 20px; border-radius: var(--radius); text-decoration: none; font-weight: 800; font-size: 1.05rem; }
.bar-red { background: var(--red); color: #fff; }
.emergency-bar { display: block; margin: 14px 0; padding: 16px 20px; border-radius: var(--radius); background: var(--red); color: #fff; font-weight: 800; text-decoration: none; }

/* buttons */
button, .btn { font: inherit; font-weight: 800; border: 0; border-radius: var(--radius-sm); padding: 13px 18px; background: var(--red); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
.btn.alt { background: var(--surface); color: var(--text); }
.btn-yellow { background: var(--yellow); color: var(--ink); }

/* lists of cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cards a { display: flex; flex-direction: column; gap: 3px; background: var(--surface); border-radius: var(--radius-sm); padding: 14px 16px; text-decoration: none; }
.cards strong { font-weight: 800; }
.cards span, .cards small { color: var(--muted); font-size: .9rem; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: none; }
.chips a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: var(--surface); text-decoration: none; font-size: .9rem; font-weight: 600; }
.chips a.on { background: var(--blue); color: var(--ink); font-weight: 800; }
.map { height: 280px; border-radius: var(--radius); margin-bottom: 12px; }

/* article pages */
.meta, .crumbs { color: var(--muted); font-size: .9rem; margin: 0 0 .5rem; }
.crumbs a { color: var(--muted); }
.lead { font-size: 1.05rem; background: var(--blue); color: var(--ink); padding: 16px 18px; border-radius: var(--radius-sm); font-weight: 600; }
.guide a:not(.btn), .biz a:not(.btn), .note a, .foot a, main p a:not(.btn) { color: var(--link); }
.steps { padding-left: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 60px; margin-bottom: 10px; background: var(--surface); border-radius: var(--radius-sm); }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 900; display: grid; place-items: center; }
.steps li p { margin: 4px 0 0; }
.checklist { list-style: none; padding: 0; display: grid; gap: 6px; }
.checklist li { background: var(--surface); border-radius: 12px; padding: 10px 14px 10px 42px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 14px; top: 13px; width: 16px; height: 16px; border-radius: 5px; background: var(--green); }
.note { color: var(--muted); font-size: .9rem; margin-top: 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.actions .btn:first-child:not(.alt) { background: var(--green); color: #fff; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; background: var(--surface); padding: 16px; border-radius: var(--radius-sm); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.photo { width: 100%; border-radius: var(--radius); }
.report { margin-top: 24px; color: var(--muted); }
.report form { display: flex; gap: 8px; margin-top: 8px; }
.report input { flex: 1; min-width: 0; font: inherit; padding: 10px; border: 0; border-radius: 12px; background: var(--surface); color: var(--text); }

/* emergency */
.numbers { list-style: none; padding: 0; display: grid; gap: 10px; }
.numbers a { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; align-items: center; background: var(--surface); border-radius: var(--radius-sm); padding: 14px 16px; text-decoration: none; }
.numbers b { font-size: 1.4rem; font-weight: 900; background: var(--red); color: #fff; text-align: center; padding: 10px 6px; border-radius: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.numbers b.long { font-size: 1.05rem; padding: 14px 6px; }
.numbers a > span { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.numbers a > span strong { font-weight: 600; }
@media (max-width: 520px) { .numbers a { grid-template-columns: 1fr; gap: 10px; } .numbers b, .numbers b.long { font-size: 1.3rem; padding: 10px 6px; } }
.numbers small, .phrases small { display: block; color: var(--muted); }
.phrases { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.phrases td { padding: 10px 12px; background: var(--surface); vertical-align: top; width: 50%; }
.phrases td:first-child { border-radius: 12px 0 0 12px; }
.phrases td:last-child { border-radius: 0 12px 12px 0; }

/* forms */
.form .field { margin-bottom: 14px; }
.form label { display: block; font-weight: 800; margin-bottom: 6px; }
.form input[type=text], .form input[type=number], .form input[type=url], .form input[type=email], .form input:not([type]), .form select, .form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 2px solid transparent; border-radius: 12px; background: var(--surface); color: var(--text); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); }
.form ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.form ul label { font-weight: 400; }
.field.err input, .field.err select { border-color: var(--red); }
.errorlist { color: var(--red); margin: 4px 0 0; padding: 0; list-style: none; font-size: .9rem; }
.flash { background: var(--green); color: #fff; font-weight: 800; padding: 12px 16px; border-radius: var(--radius-sm); }

/* viber */
.block-viber, .bot-cta { background: var(--viber); color: #fff; border-radius: var(--radius); padding: 6px 20px 20px; margin-top: 24px; }
.block-viber p { color: #e7e3ff; }

.foot { color: var(--muted); font-size: .88rem; margin-top: 40px; padding-top: 12px; }
.viber-fab { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 420px; margin: 0 auto; text-align: center; background: var(--viber); color: #fff; padding: 15px; border-radius: 999px; font-weight: 800; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 20; }

/* additions: phase 1 */
.badge { display: inline-block; font-size: .75rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--yellow); color: var(--ink); align-self: flex-start; }
.notice { background: var(--surface); border-left: 4px solid var(--yellow); padding: 10px 14px; border-radius: 0 12px 12px 0; font-size: .92rem; }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 84px; max-width: 520px; margin: 0 auto; background: var(--ink); color: #fff; border-radius: var(--radius-sm); padding: 12px 14px; display: flex; gap: 12px; align-items: center; font-size: .88rem; z-index: 30; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.cookie a { color: var(--yellow); }
.cookie button { padding: 8px 14px; background: var(--yellow); color: var(--ink); flex: none; }
.cookie[hidden] { display: none; }
.block-blue { background: var(--blue); color: var(--ink); }
.block-yellow { background: var(--yellow); color: var(--ink); }
.block-blue .soon, .block-yellow .soon { background: var(--ink); color: #fff; }
.source { font-size: .85rem; color: var(--muted); }

/* doctors */
.block-red { background: var(--red); color: #fff; grid-column: 1 / -1; min-height: 110px; }
.block-red span { color: #ffe3e7; }
.health-info { display: flex; flex-direction: column; gap: 4px; background: var(--blue); color: var(--ink); border-radius: var(--radius-sm); padding: 14px 16px; text-decoration: none; margin-bottom: 14px; }
.health-info strong { font-weight: 900; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 14px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 800; }
.filters select { width: 100%; min-width: 0; font: inherit; font-weight: 600; padding: 10px; border: 0; border-radius: 12px; background: var(--surface); color: var(--text); }
.filters .check { flex-direction: row; align-items: center; gap: 8px; background: var(--surface); padding: 10px 12px; border-radius: 12px; font-weight: 600; }
.filters .check input { width: 20px; height: 20px; accent-color: var(--green); }
.cards .empty { background: var(--surface); border-radius: var(--radius-sm); padding: 14px 16px; }
.doctor-facts { margin-bottom: 10px; border-left: 4px solid var(--red); }
.badge-green { background: var(--green); color: #fff; }

/* help board */
.lead-muted { color: var(--muted); margin-top: 0; }
.small { font-size: .85rem; }
.tabs { display: flex; gap: 6px; margin: 4px 0 14px; overflow-x: auto; }
.tabs a { white-space: nowrap; padding: 10px 14px; border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 800; font-size: .92rem; }
.tabs a.on { background: var(--ink); color: #fff; }
.count { display: inline-block; min-width: 1.6em; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: .8rem; text-align: center; }
.help-list { display: grid; gap: 10px; padding-bottom: 80px; }
.help-card, .help-detail { --c: var(--muted); display: flex; flex-direction: column; gap: 4px; background: var(--surface); border-radius: var(--radius-sm); border-left: 6px solid var(--c); padding: 14px 16px; text-decoration: none; }
.help-detail { padding: 18px; }
.help-detail h1 { margin: .4rem 0; }
.cat-parcel { --c: var(--blue); } .cat-escort { --c: var(--viber); } .cat-shopping { --c: var(--green); } .cat-travel { --c: var(--yellow); } .cat-transfer { --c: var(--red); }
.help-cat { font-size: .82rem; font-weight: 800; color: var(--c); }
.help-card strong { font-size: 1.08rem; font-weight: 800; }
.help-meta { color: var(--muted); font-size: .92rem; }
.help-meta b { color: var(--text); }
.status { display: inline-block; align-self: flex-start; font-size: .78rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
.help-card .status, .help-detail .status { position: relative; }
.st-open { background: var(--green); color: #fff; } .st-taken { background: var(--blue); color: var(--ink); }
.st-done, .st-cancelled, .st-expired { background: var(--line); color: var(--muted); }
.disclaimer { border-left: 4px solid var(--red); background: var(--surface); padding: 12px 14px; border-radius: 0 12px 12px 0; margin: 12px 0; font-size: .92rem; }
.safety { padding-left: 1.2em; font-size: .92rem; }
.safety li { margin-bottom: 4px; }
.contact { background: var(--blue); color: var(--ink); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.contact a { color: var(--ink); font-weight: 800; }
.actions form { display: inline; }
.btn.quiet { background: transparent; color: var(--muted); }
.btn-wide { width: 100%; text-align: center; }
.take { margin-top: 18px; }
.sticky-cta { position: sticky; bottom: 84px; margin: 0; z-index: 5; }
.empty { background: var(--surface); border-radius: var(--radius-sm); padding: 24px 18px; text-align: center; }
.empty p { color: var(--muted); margin: 0 0 12px; }
.login-code { font-size: 2rem; font-weight: 900; letter-spacing: .25em; margin: 4px 0; }
.nav-form { display: inline; }
.nav-form button, .nav-login { font: inherit; font-size: .9rem; font-weight: 800; padding: 6px 14px; border-radius: 999px; background: var(--yellow); color: var(--ink); white-space: nowrap; text-decoration: none; }
.form ul#id_pay, .form div#id_pay { display: flex; gap: 16px; }
.form input[type=datetime-local], .form input[type=tel] { width: 100%; font: inherit; padding: 12px 14px; border: 2px solid transparent; border-radius: 12px; background: var(--surface); color: var(--text); }
.form ul.safety { display: block; padding-left: 1.2em; }
.form ul.safety li { margin-bottom: 4px; }

.unlock { padding-top: 12vh; }
.unlock input[type=password] { flex: 1; min-width: 0; font: inherit; padding: 14px 16px; border: 0; border-radius: var(--radius-sm); background: #fff; color: var(--ink); }

/* chat */
.chat-fab { background: var(--green); }
.nav-chat { background: var(--green) !important; color: #fff; }
.chat-teaser { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding: 18px; border-radius: var(--radius); background: var(--green); color: #fff; text-decoration: none; }
.chat-teaser-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chat-teaser-head strong { font-size: 1.25rem; }
.chat-line { background: rgba(255,255,255,.18); border-radius: 12px; padding: 6px 10px; font-size: .92rem; }
.chat-teaser-cta { font-weight: 800; margin-top: 4px; }
.online { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; }
.online i { width: 9px; height: 9px; border-radius: 50%; background: #7CFF9B; box-shadow: 0 0 0 3px rgba(124,255,155,.3); }
.chat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.chat-head .online { color: var(--muted); }
.chat-head .online i { background: var(--green); }
.chat-page { padding-bottom: 0; }
.chat { display: flex; flex-direction: column; gap: 8px; padding-bottom: 150px; }
#list { display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 86%; align-self: flex-start; background: var(--surface); border-radius: 4px 18px 18px 18px; padding: 8px 12px 6px; }
.msg.mine { align-self: flex-end; background: var(--blue); color: var(--ink); border-radius: 18px 4px 18px 18px; }
.msg header { display: flex; gap: 4px; align-items: baseline; font-size: .85rem; }
.msg header b { font-weight: 800; }
.msg-city { color: var(--muted); }
.msg.mine .msg-city { color: rgba(18,22,27,.6); }
.msg time { margin-left: auto; padding-left: 10px; color: var(--muted); font-size: .78rem; }
.msg.mine time { color: rgba(18,22,27,.6); }
.msg p { margin: 2px 0 0; overflow-wrap: anywhere; }
.msg p a { color: inherit; text-decoration: underline; }
.msg footer { display: flex; gap: 12px; margin-top: 2px; }
.msg-act { background: none; padding: 2px 0; color: var(--muted); font-size: .8rem; font-weight: 700; border-radius: 0; }
.msg.mine .msg-act { color: rgba(18,22,27,.6); }
.quote { display: block; margin: 4px 0; padding: 4px 8px; border-left: 3px solid var(--green); background: rgba(0,0,0,.05); border-radius: 0 8px 8px 0; font-size: .85rem; text-decoration: none; color: inherit; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.day { align-self: center; font-size: .78rem; font-weight: 800; color: var(--muted); background: var(--surface); padding: 2px 12px; border-radius: 999px; margin: 6px 0; }
.composer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--bg); padding: 8px 16px calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
.composer > * { max-width: 728px; margin-left: auto; margin-right: auto; }
.composer-row { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; min-width: 0; font: inherit; resize: none; padding: 12px 14px; border: 2px solid transparent; border-radius: 22px; background: var(--surface); color: var(--text); max-height: 140px; }
.composer textarea:focus { outline: none; border-color: var(--green); }
.composer-row button { width: 48px; height: 48px; padding: 0; border-radius: 50%; background: var(--green); display: grid; place-items: center; flex: none; }
.replying { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; font-weight: 700; color: var(--muted); padding: 0 6px 6px; }
.replying button { background: none; color: var(--muted); padding: 0 6px; font-size: 1.2rem; }
.chat-error { color: var(--red); font-weight: 700; font-size: .88rem; margin: 6px 0 0; }
.new-pill { position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%); z-index: 21; background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 16px; font-size: .88rem; }
.chat-rules { color: var(--muted); font-size: .9rem; margin-bottom: 120px; }

.pinned { background: var(--yellow); color: var(--ink); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 10px; }
.pinned p { margin: 4px 0 0; font-size: .95rem; }
.pinned .badge { background: var(--ink); color: #fff; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; font-size: .88rem; font-weight: 700; color: var(--muted); }
.share a { padding: 6px 12px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 800; }
.share-viber { background: var(--viber); } .share-wa { background: #1fa855; } .share-fb { background: #1877f2; }

.history { margin-top: 16px; background: var(--surface); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .9rem; }
.history summary { font-weight: 800; cursor: pointer; }
.history > ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.history time { font-weight: 800; color: var(--muted); margin-right: 6px; }
.history ul ul { padding-left: 1.1em; margin: 4px 0 0; }
.history s { color: var(--muted); }
.edited { font-size: .75rem; font-weight: 800; color: var(--muted); margin-left: 8px; }

.listing-jobs { --c: var(--blue); } .listing-housing { --c: var(--green); }
.st-pending { background: var(--yellow); color: var(--ink); } .st-active { background: var(--green); color: #fff; }
.st-rejected { background: var(--red); color: #fff; } .st-closed { background: var(--line); color: var(--muted); }
.disclaimer .safety { margin: 6px 0 0; }

/* news */
.news-item { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border-radius: var(--radius-sm); padding: 14px 16px; border-left: 6px solid var(--blue); }
.news-item h2 { font-size: 1.05rem; margin: 2px 0; font-weight: 800; }
.news-item p { margin: 0; }
.news-item time { font-size: .82rem; color: var(--muted); font-weight: 700; }
.news-item .help-cat { color: var(--blue); }
.news-item a { color: var(--link); font-weight: 700; font-size: .9rem; }
.news-teaser h2 small { font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: none; }
.pager { display: flex; justify-content: space-between; gap: 8px; }

/* winter */
.winter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.winter-grid .empty { grid-column: 1 / -1; }
.winter-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; text-decoration: none; }
.winter-card img, .winter-nophoto { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--line); }
.winter-nophoto { display: grid; place-items: center; font-size: 2.4rem; }
.winter-body { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; }
.winter-body strong { font-weight: 800; font-size: .95rem; }
.winter-body .help-cat { color: var(--muted); }
.winter-photos { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 10px; scroll-snap-type: x mandatory; }
.winter-photos img { width: 85%; max-width: 420px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); scroll-snap-align: start; flex: none; }
.winter-detail { --c: var(--yellow); }
.contact form.inline { display: inline; margin-left: 8px; }
.contact .btn { padding: 6px 12px; }

small.unverified { display: inline-block; margin-top: 2px; font-size: .7rem; font-weight: 800; color: var(--ink); background: var(--yellow); border-radius: 999px; padding: 0 8px; }

.how { background: var(--yellow); color: var(--ink); border-radius: var(--radius-sm); padding: 12px 14px 12px 34px; margin: 0 0 14px; }
.how li { margin-bottom: 4px; }
.point-planned { border-left-style: dashed; }

.cityfilter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface); border: 2px solid var(--blue); border-radius: var(--radius-sm); padding: 8px 12px; margin: 0 0 12px; font-size: .92rem; }
.cityfilter button { padding: 8px 14px; background: var(--blue); color: var(--ink); }

/* theme switch + video placeholder in the bold design */
.theme-switch { margin: 8px 0; }
.theme-switch button { font-size: .95rem; padding: 10px 14px; background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 14px 0; }
.video-card { display: flex; flex-direction: column; gap: 2px; }
.video-poster { aspect-ratio: 2 / 3; display: grid; place-items: center; font-size: 2.4rem; background: var(--surface); border-radius: var(--radius-sm); }
.video-card small { color: var(--muted); }

/* housing areas */
.areas { margin-top: 28px; }
.areas h2 small { vertical-align: middle; }
.checklist.cons li::before { background: var(--yellow); }
p.muted { color: var(--muted); font-size: .9rem; }
.cards a small.unverified { align-self: flex-start; }

/* home: who does what, friendship */
.block-wide { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding: 18px; border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; border-left: 6px solid var(--yellow); }
.block-wide strong { font-size: 1.2rem; }
.block-friends { border-left-color: var(--blue); }
.add-own { margin: 6px 0 0; font-weight: 700; }

/* chat: guest box looks like the text field, so a tap leads to sign-in */
.guest-field { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 22px; background: var(--surface); color: var(--muted); text-decoration: none; border: 2px solid var(--line, transparent); }
.guest-field span { flex: 1; }
.guest-field b { background: var(--green); color: #fff; border-radius: 18px; padding: 8px 14px; }
.guest-hint { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
/* keep the cookie notice above the fixed message box */
.chat-page .cookie { bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
.block-full { grid-column: 1 / -1; min-height: 110px; }
.checked { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; margin: 0 0 12px; }
.checked i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.news-item small.unverified { display: inline-block; margin: 0 0 6px; }

/* private messages */
.local-copy { background: var(--yellow); color: #111; padding: 8px 16px; font-size: .9rem; text-align: center; }
.local-copy a { color: #111; font-weight: 800; }
.nav-dm .count, .sb-dm .count, .inbox .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 800; }
.inbox { list-style: none; padding: 0; display: grid; gap: 8px; }
.inbox a { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--radius-sm); padding: 12px 14px; text-decoration: none; color: var(--text); }
.inbox a.unread { box-shadow: inset 4px 0 0 var(--green); }
.inbox a.unread .inbox-last { color: var(--text); font-weight: 700; }
.inbox-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.inbox-top { display: flex; justify-content: space-between; gap: 8px; }
.inbox-top time, .inbox-topic { color: var(--muted); font-size: .8rem; }
.inbox-last { color: var(--muted); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: var(--ink); font-weight: 900; font-size: 1.1rem; vertical-align: middle; }
.chat-head h1 .avatar { width: 36px; height: 36px; }
.msg footer .seen { color: var(--green); font-weight: 800; margin-left: 6px; }
.inline-form { display: inline; }
.link-btn { background: none; border: 0; padding: 0; color: var(--link, var(--blue)); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.inbox li { min-width: 0; }
.inbox a { overflow: hidden; }
.inbox-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Telegram-like conversation ---- */
.msg { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s; }
.msg.selected { transform: scale(.98); box-shadow: 0 0 0 2px var(--green); }
.msg.pending { opacity: .7; }
.msg.failed { box-shadow: 0 0 0 2px var(--red); }
.msg.has-media { padding: 4px 4px 6px; }
.msg.has-media p, .msg.has-media header, .msg.has-media .rx-row { padding: 0 8px; }
.msg-img { display: block; margin: 0 0 4px; }
.msg-img img { display: block; width: 100%; max-width: 320px; max-height: 360px; object-fit: cover; border-radius: 14px; }
.msg-voice { display: flex; align-items: center; gap: 10px; padding: 6px 8px; min-width: 210px; }
.voice-play { width: 40px; height: 40px; border-radius: 50%; padding: 0; background: var(--green); color: #fff; font-size: 1rem; flex: none; }
.msg.mine .voice-play { background: var(--ink); }
.voice-bar { flex: 1; height: 4px; border-radius: 2px; background: rgba(127,127,127,.35); overflow: hidden; }
.voice-bar i { display: block; height: 100%; width: 0; background: currentColor; }
.voice-len { font-size: .8rem; opacity: .75; }
.msg-meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: .74rem; opacity: .7; margin-top: 2px; }
.msg-meta time { margin: 0; padding: 0; color: inherit; }
.msg.has-media .msg-meta { padding: 0 8px; }
.edited { font-style: italic; }
.ticks { font-weight: 800; letter-spacing: -2px; }
.ticks.read { color: #0b6b2f; }
.rx-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.rx { background: rgba(127,127,127,.18); color: inherit; border-radius: 999px; padding: 2px 8px; font-size: .85rem; font-weight: 700; }
.rx.on { background: var(--green); color: #fff; }
.msg.mine .rx.on { background: var(--ink); }
.typing { color: var(--green); font-size: .88rem; font-weight: 700; margin: 4px 4px 0; }
.typing::after { content: ""; display: inline-block; width: 1em; animation: dots 1.2s steps(4) infinite; overflow: hidden; vertical-align: bottom; }
@keyframes dots { from { width: 0; } to { width: 1.2em; } }
.unread-divider { align-self: stretch; text-align: center; font-size: .8rem; font-weight: 800; color: var(--green); border-top: 2px solid var(--green); padding-top: 4px; margin: 8px 0; }
.chat-tips { color: var(--muted); font-size: .85rem; margin: 8px 0 130px; }

.composer .attach, .composer .mic { width: 44px; height: 48px; display: grid; place-items: center; color: var(--muted); cursor: pointer; flex: none; background: none; padding: 0; }
.composer .mic { background: var(--green); color: #fff; width: 48px; border-radius: 50%; }
.photo-preview { position: relative; display: inline-block; margin: 0 0 6px 6px; }
.photo-preview[hidden] { display: none; }
.photo-preview img { height: 72px; border-radius: 10px; display: block; }
.photo-preview button { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; padding: 0; background: var(--ink); color: #fff; }
.rec-bar { display: flex; align-items: center; gap: 10px; padding: 6px 4px; }
.rec-bar[hidden] { display: none; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.rec-time { font-weight: 800; font-variant-numeric: tabular-nums; }
.rec-hint { flex: 1; color: var(--muted); }
.rec-cancel { background: none; color: var(--red); font-weight: 800; }
.rec-send { width: 48px; height: 48px; border-radius: 50%; padding: 0; background: var(--green); color: #fff; font-size: 1.2rem; }
.composer-row[hidden] { display: none; }

.msg-sheet { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40;
  width: min(420px, calc(100% - 24px)); background: var(--bg); border-radius: 18px; box-shadow: 0 12px 40px rgba(0,0,0,.35); padding: 10px; display: grid; gap: 2px; }
.msg-sheet[hidden] { display: none; }
.msg-sheet > button { background: none; color: var(--text); text-align: left; padding: 12px 14px; border-radius: 12px; font-weight: 700; }
.msg-sheet > button:hover { background: var(--surface); }
.msg-sheet .danger { color: var(--red); }
.msg-sheet .muted { color: var(--muted); text-align: center; }
.sheet-rx { display: flex; justify-content: space-around; padding: 4px 0 8px; border-bottom: 1px solid var(--surface); margin-bottom: 4px; }
.sheet-rx button { background: none; font-size: 1.7rem; padding: 4px; border-radius: 12px; transition: transform .1s; }
.sheet-rx button:active { transform: scale(1.3); }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.92); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; }
.lightbox button { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 1.5rem; padding: 0; }
.dm-head .online { color: var(--muted); font-weight: 600; }
.nav-chat .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #fff; color: var(--green); font-size: .75rem; font-weight: 800; }
.chat-page .chat { padding-bottom: 8px; }
.chat-page .chat-rules { margin-bottom: 8px; }
.req { color: var(--red); font-weight: 900; }
.req-note { color: var(--muted); font-size: .9rem; }
.flash-error { background: var(--red); }
.form .help { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.field-title { font-weight: 800; margin: 0 0 4px; }
.field.err .field-title, .field.err > label { color: var(--red); }
.field.err textarea { border-color: var(--red); }
.errorlist { width: 100%; }

/* mentions, cabinet, notifications */
.mention { color: var(--green); font-weight: 800; }
.msg.mine .mention { color: #0b4f22; }
.mention.me { background: var(--yellow); color: #111; border-radius: 6px; padding: 0 3px; }
.mention-box { display: grid; gap: 2px; background: var(--surface); border-radius: 14px; padding: 6px; margin-bottom: 6px; max-height: 220px; overflow: auto; }
.mention-box[hidden] { display: none; }
.mention-box button { background: none; color: var(--text); text-align: left; padding: 8px 10px; border-radius: 10px; }
.mention-box button:hover, .mention-box button:focus { background: var(--bg); }
.mention-box span { color: var(--muted); font-size: .85rem; }
.cab-head { display: flex; align-items: center; gap: 14px; margin: 8px 0 12px; }
.cab-head h1 { margin: 0; }
.cab-head .lead-muted { margin: 2px 0 0; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.5rem; }
.notif-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.notif-list a { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--text); text-decoration: none; }
.notif-list li.unread a { box-shadow: inset 4px 0 0 var(--green); font-weight: 700; }
.notif-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--blue); color: var(--ink); font-weight: 900; }
.notif-mention { background: var(--green); color: #fff; }
.notif-reaction { background: var(--red); color: #fff; }
.notif-rejected { background: var(--red); color: #fff; }
.notif-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif-body time { color: var(--muted); font-size: .8rem; font-weight: 400; }
.nav-me { font-weight: 800; }
.nav-me .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: .75rem; }
.cards small.status { align-self: flex-start; }
.msg-author { font-weight: 800; color: inherit; }
.cab-links { margin: 4px 0 0; font-size: .9rem; }
.search-inline { display: flex; gap: 8px; margin: 8px 0 12px; }
.search-inline input { flex: 1; min-width: 0; font: inherit; padding: 12px 14px; border-radius: 12px; border: 2px solid transparent; background: var(--surface); color: var(--text); }
.block-people { border-left-color: var(--green); }
.sheet-who { padding: 6px 14px 10px; border-bottom: 1px solid var(--surface); margin-bottom: 4px; font-size: .92rem; }
.sheet-who b { display: block; color: var(--muted); font-size: .8rem; margin-bottom: 4px; }
.sheet-who p { margin: 4px 0; }
.sheet-who span { font-size: 1.15rem; margin-right: 4px; }

/* voice notes, Telegram style */
.msg-voice { min-width: 230px; }
.voice-wave { flex: 1; height: 30px; display: flex; align-items: center; gap: 2px; cursor: pointer; }
.voice-wave i { flex: 1; min-width: 2px; max-width: 4px; border-radius: 2px; background: currentColor; opacity: .35; }
.voice-wave i.on { opacity: 1; }
.msg:not(.mine) .voice-wave i.on { background: var(--green); }
.voice-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 36px; }
.voice-len { font-size: .78rem; opacity: .75; font-variant-numeric: tabular-nums; }
.voice-speed { background: rgba(127,127,127,.25); color: inherit; border-radius: 8px; padding: 0 6px; font-size: .72rem; font-weight: 800; }
.voice-speed[hidden] { display: none; }
.composer .mic { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.rec-wave { flex: 1; height: 26px; display: flex; align-items: center; justify-content: flex-end; gap: 2px; overflow: hidden; }
.rec-wave i { width: 3px; flex: none; border-radius: 2px; background: var(--red); }
.rec-hint { color: var(--muted); font-size: .8rem; white-space: nowrap; transition: transform .05s; }
.rec-bar .rec-cancel, .rec-bar .rec-send { display: none; }
.rec-bar.locked .rec-cancel, .rec-bar.locked .rec-send { display: inline-grid; place-items: center; }
.rec-bar.locked .rec-hint { display: none; }
img.avatar { object-fit: cover; padding: 0; background: var(--surface); }
.avatar-sm { width: 22px; height: 22px; font-size: .7rem; margin-right: 4px; }
.msg header { align-items: center; }
.photo-field { display: flex; align-items: center; gap: 14px; }
.photo-field .btn { display: inline-block; cursor: pointer; }
.photo-remove { display: block; font-weight: 400 !important; margin-top: 8px; }

/* ---- chat as an app screen: slim bar on top, messages, message box at the bottom ---- */
body.chat-app { padding-bottom: 0; }
body.chat-app main.wrap { min-height: 100vh; min-height: 100dvh; }
.chat-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 6px; height: 58px;
  margin: 0 -16px; padding: 0 6px; background: var(--bg); border-bottom: 1px solid var(--surface); }
.cb-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: none; color: var(--text); font-size: 1.35rem; font-weight: 800; text-decoration: none; padding: 0; }
.cb-btn:hover { background: var(--surface); }
.cb-btn .count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: .7rem; display: grid; place-items: center; }
.cb-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.cb-title b { font-size: 1.05rem; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-title small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-title .typing { color: var(--green); font-weight: 700; margin: 0; font-size: .8rem; }
.cb-title .typing:not([hidden]) + .cb-status { display: none; }
.cb-status .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); vertical-align: middle; }
.cb-person { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.cb-person .avatar { width: 38px; height: 38px; }
.chat-menu { position: fixed; top: 62px; right: max(12px, calc(50% - 368px)); z-index: 35; width: min(320px, calc(100% - 24px));
  background: var(--bg); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.35); padding: 12px; display: grid; gap: 4px; }
.chat-menu[hidden] { display: none; }
.cm-title { margin: 0 4px; font-size: .8rem; font-weight: 800; color: var(--muted); }
.chat-menu .share { margin: 4px 0 6px; }
.cm-item { display: block; width: 100%; text-align: left; background: none; color: var(--text); padding: 10px 12px; border-radius: 10px;
  font-weight: 700; text-decoration: none; }
.cm-item:hover { background: var(--surface); }
.cm-item.danger { color: var(--red); }
details.cm-item summary { cursor: pointer; }
details.cm-item p { font-weight: 400; font-size: .9rem; color: var(--muted); }
.cm-tip { margin: 4px; font-size: .82rem; color: var(--muted); }
.chat-pin { position: sticky; top: 58px; z-index: 29; display: flex; align-items: center; gap: 8px; width: calc(100% + 32px);
  margin: 0 -16px; padding: 8px 16px; background: var(--surface); color: var(--text); border: 0; border-left: 4px solid var(--yellow);
  border-radius: 0; text-align: left; font: inherit; font-size: .88rem; text-decoration: none; cursor: pointer; }
.chat-pin .pin-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-pin.open .pin-text { white-space: pre-line; }
.chat-app .chat { padding-top: 10px; padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
.chat-app #older { margin-bottom: 8px; }

/* bubbles: groups like Telegram — the name once, tight spacing, a "tail" corner on the last one */
.chat-app .msg { max-width: min(82%, 540px); border-radius: 18px; box-shadow: 0 1px 1px rgba(0,0,0,.12); }
.chat-app .msg:not(.mine).group-end { border-bottom-left-radius: 6px; }
.chat-app .msg.mine.group-end { border-bottom-right-radius: 6px; }
.chat-app .msg.cont { margin-top: -5px; }
.chat-app .msg.cont header { display: none; }
.chat-app .msg header { margin-bottom: 1px; }
.chat-app .msg header b, .chat-app .msg header .msg-author { color: var(--green); }
.chat-app .day { position: sticky; top: 66px; z-index: 5; }
.chat-app .chat-pin ~ .chat .day { top: 104px; }
.chat-app .composer { border-top: 1px solid var(--surface); box-shadow: none; }
.chat-app .composer-row { align-items: flex-end; }
.chat-app .composer textarea { border-radius: 22px; }
.chat-app .new-pill { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
.chat-app .cookie { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 800px) {
  .chat-app .msg { max-width: 540px; }
  .chat-bar, .chat-pin { margin: 0 -16px; }
}
.chat-app .day, .chat-app .chat-pin ~ .chat .day { position: static; }
.msg.flash { animation: flash 2.4s ease-out; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--yellow); } 100% { box-shadow: 0 1px 1px rgba(0,0,0,.12); } }
.cab-tabs { position: sticky; top: 0; z-index: 10; background: var(--bg); padding: 6px 0; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.cab-tabs a { white-space: nowrap; }
.cab-panel[hidden] { display: none; }
.tabs a.on { background: var(--green); color: #fff; }
.push-box { background: var(--surface); border-radius: var(--radius-sm); padding: 4px 16px 14px; margin: 20px 0; }
.push-prefs label { display: block; font-weight: 600; margin: 6px 0; }
.danger-zone { margin: 24px 0 8px; color: var(--muted); }
.danger-zone summary { cursor: pointer; color: var(--red); font-weight: 700; }
.danger-btn { background: var(--red); color: #fff; margin-top: 8px; }

/* compact floating chat button, bottom right, never over the text column's middle */
.chat-fab-round { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 20;
  display: inline-flex; align-items: center; gap: 6px; padding: 12px 18px; border-radius: 999px; background: var(--green);
  color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.chat-fab-round .count { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--red); color: #fff; font-size: .75rem; font-style: normal; display: grid; place-items: center; }
body { padding-bottom: 80px; }
/* Long links and addresses wrap instead of pushing the page wider; headings never break mid-word. */
main p, main dd, main li, main .muted, main small { overflow-wrap: anywhere; }
main .caps, main h1, main h2, main strong { overflow-wrap: normal; word-break: normal; }
.blocks .block strong.caps { display: block; max-width: 100%; }
.history { list-style: none; padding: 0; display: grid; gap: 4px; }
.history li { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border-radius: 12px; padding: 10px 14px; border-left: 4px solid var(--line, #444); }
.history .h-what { font-weight: 700; }
.history .h-what small { font-weight: 400; color: var(--muted); }
.history .h-meta { font-size: .8rem; color: var(--muted); }
.history .h-login, .history .h-register { border-left-color: var(--green); }
.history .h-logout { border-left-color: var(--muted); }

/* donations */
.don-hero { background: linear-gradient(135deg, var(--green), #138a45); color: #fff; border-radius: var(--radius); padding: 22px 20px; margin: 8px 0 18px; }
.don-hero h1 { margin: 0 0 8px; font-size: 1.7rem; }
.don-lead { margin: 0 0 14px; font-size: 1.05rem; }
.don-counter { display: flex; gap: 12px; }
.don-counter div { flex: 1; background: rgba(255,255,255,.18); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; }
.don-counter b { font-size: 1.6rem; font-weight: 900; line-height: 1.1; }
.don-counter span { font-size: .85rem; opacity: .9; }
.don-block { margin: 22px 0; }
.calc { background: var(--surface); border-radius: var(--radius-sm); padding: 16px; display: grid; gap: 10px; }
.calc input[type=range] { width: 100%; accent-color: var(--green); }
.calc select { font: inherit; padding: 6px 10px; border-radius: 10px; background: var(--bg); color: var(--text); border: 2px solid var(--line, transparent); }
.calc-out { display: grid; gap: 12px; }
.calc-total { display: flex; flex-direction: column; }
.calc-total b { font-size: 2rem; font-weight: 900; color: var(--green); line-height: 1.1; }
.calc-total span, .calc-total small { color: var(--muted); font-size: .85rem; }
.calc-split p { margin: 4px 0; }
.bar { height: 12px; border-radius: 6px; background: var(--blue); overflow: hidden; }
.bar-help { display: block; height: 100%; background: var(--green); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
.dot-help { background: var(--green); } .dot-ops { background: var(--blue); }
.don-uses { display: grid; gap: 10px; }
.don-uses > div { background: var(--surface); border-radius: var(--radius-sm); padding: 14px 16px; }
.don-uses span { font-size: 1.5rem; margin-right: 6px; }
.don-uses p { margin: 6px 0 0; color: var(--muted); }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.amount input { position: absolute; opacity: 0; }
.amount span { display: block; text-align: center; padding: 14px 0; border-radius: 14px; background: var(--surface); font-weight: 900; font-size: 1.2rem; border: 2px solid transparent; cursor: pointer; }
.amount input:checked + span { border-color: var(--green); background: var(--green); color: #fff; }
.amount input:focus-visible + span { outline: 3px solid var(--yellow); }
.don-other { margin-top: 16px; }
.report-month { background: var(--surface); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 8px; }
.report-month summary { cursor: pointer; }
.don-names { display: flex; flex-wrap: wrap; gap: 6px; }
.don-names span { background: var(--surface); border-radius: 999px; padding: 4px 12px; font-size: .9rem; }
@media (min-width: 700px) { .calc-out { grid-template-columns: 1fr 1.4fr; align-items: center; } .don-uses { grid-template-columns: 1fr 1fr; } }
.block-donate { border-left-color: var(--red); }
.nav-donate { color: var(--red) !important; font-weight: 800; }
.don-first { background: #fff; color: #138a45; }
.pay-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--surface); padding: 4px; border-radius: 14px; margin-bottom: 10px; }
.pay-mode input { position: absolute; opacity: 0; }
.pay-mode span { display: block; text-align: center; padding: 10px; border-radius: 10px; font-weight: 800; cursor: pointer; }
.pay-mode input:checked + span { background: var(--bg); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.pay-btn { background: #000; color: #fff; font-size: 1.1rem; padding: 16px; margin-top: 8px; }
.pay-logos { opacity: .85; margin-right: 6px; font-weight: 600; }
.pay-hint { color: var(--muted); font-size: .85rem; margin: 8px 0 0; }

/* comments and star ratings */
.comments { margin-top: 28px; }
.comments h2 small { color: var(--muted); font-weight: 600; font-size: .9rem; }
.stars { --r: 0; display: inline-block; font-size: 1.1rem; line-height: 1; letter-spacing: 2px;
  background: linear-gradient(90deg, var(--yellow) calc(var(--r) / 5 * 100%), rgba(127,127,127,.35) 0);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars::before { content: "★★★★★"; }
.stars.sm { font-size: .85rem; }
.rating-sum { margin: 0 0 10px; }
.comment-form { display: grid; gap: 8px; background: var(--surface); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 14px; }
.comment-form textarea { font: inherit; padding: 10px 12px; border-radius: 12px; border: 2px solid transparent; background: var(--bg); color: var(--text); resize: vertical; }
.comment-form textarea:focus { outline: none; border-color: var(--green); }
.comment-form .btn { justify-self: start; }
.star-input { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 1.8rem; line-height: 1; color: rgba(127,127,127,.4); cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--yellow); }
.star-input input:focus-visible + label { outline: 2px solid var(--green); border-radius: 4px; }
.comment-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.comment-list li { background: var(--surface); border-radius: var(--radius-sm); padding: 10px 14px; }
.comment-list header { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.comment-list header a { color: inherit; }
.comment-list time { margin-left: auto; color: var(--muted); font-size: .8rem; }
.comment-list p { margin: 6px 0 0; }
.comment-list footer { margin-top: 4px; }
.comment-list footer form { display: inline; }
.empty-comments { color: var(--muted); }
.comments, .comment-list li { scroll-margin-top: 120px; }
