/* 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; }
.fund-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; }
.theme-switch { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.theme-label { color: var(--muted); font-size: .85rem; }
.theme-switch button.on { box-shadow: inset 0 0 0 2px var(--green); }

/* ---- compact, readable home: even tiles, big clear titles, short lines ---- */
body { font-size: 17px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.tile { display: flex; flex-direction: column; gap: 2px; min-height: 104px; padding: 14px 14px 12px; border-radius: 18px;
  background: var(--surface); color: var(--text); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.tile:hover, .tile:focus-visible { box-shadow: inset 0 0 0 2px var(--blue); }
.tile-ic { font-size: 1.6rem; line-height: 1; margin-bottom: 4px; }
.tile strong { font-size: 1.12rem; font-weight: 800; line-height: 1.2; }
.tile span:not(.tile-ic) { font-size: .95rem; line-height: 1.35; color: var(--muted); }
.tile-blue { background: var(--blue); color: #fff; box-shadow: none; }
.tile-red { background: var(--red); color: #fff; box-shadow: none; }
.tile-dark { background: var(--block-dark); color: #fff; box-shadow: none; }
.tile-blue span:not(.tile-ic), .tile-red span:not(.tile-ic), .tile-dark span:not(.tile-ic) { color: rgba(255,255,255,.92); }
.tile-outline-blue { box-shadow: inset 0 0 0 2px var(--blue); }
.tile-outline-red { box-shadow: inset 0 0 0 2px var(--red); }
.tile-donate { box-shadow: inset 0 0 0 2px var(--red); }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.hero { padding: 16px 18px 16px; }
.hero-title { font-size: clamp(1.5rem, 6.4vw, 2.1rem); margin: 14px 0 10px; }
.hero-badge { width: 44px; height: 44px; }
.chat-teaser { padding: 14px 16px; gap: 5px; }
.chat-line { font-size: .98rem; }
.add-own { font-size: 1rem; margin: 10px 2px 0; }
/* readable secondary text everywhere: a little larger and darker than before */
.lead-muted, .muted, .cards a span, .help-meta { font-size: 1rem; }

/* every tile its own colour (flag palette + gold and turquoise), the same in light and dark mode */
.tile { box-shadow: none; }
.tile.t-navy   { background: #0b3a6e; color: #fff; }
.tile.t-blue   { background: #0d5eaf; color: #fff; }
.tile.t-sky    { background: #5fb0f0; color: #08223f; }
.tile.t-light  { background: #dceaf9; color: #08223f; }
.tile.t-white  { background: #ffffff; color: #0d5eaf; box-shadow: inset 0 0 0 2px #0d5eaf; }
.tile.t-white-red { background: #ffffff; color: #c8102e; box-shadow: inset 0 0 0 2px #e4002b; }
.tile.t-red    { background: #e4002b; color: #fff; }
.tile.t-wine   { background: #8e1330; color: #fff; }
.tile.t-gold   { background: #f4b400; color: #2b1d00; }
.tile.t-teal   { background: #0f8b8d; color: #fff; }
.tile.t-heart  { background: #fff0f2; color: #b0001f; box-shadow: inset 0 0 0 2px #e4002b; }
.tile.t-stripes { color: #fff; background: repeating-linear-gradient(180deg, #0d5eaf 0 14px, #2f78c4 14px 28px); }
.tile[class*="t-"] span:not(.tile-ic) { color: inherit; opacity: .9; }
.tile.t-white span:not(.tile-ic), .tile.t-white-red span:not(.tile-ic), .tile.t-heart span:not(.tile-ic),
.tile.t-light span:not(.tile-ic) { color: #2c3a4d; opacity: 1; }
.tile.t-gold span:not(.tile-ic), .tile.t-sky span:not(.tile-ic) { color: #1a2433; opacity: 1; }
.tile:hover, .tile:focus-visible { outline: 3px solid var(--yellow, #ffd43b); outline-offset: 2px; }

/* language flags in the hero: Georgian and Greek, round, tap to switch */
.hero-langs { display: flex; gap: 8px; }
.flag { width: 44px; height: 44px; border-radius: 50%; display: block; background-size: cover; background-position: center;
  box-shadow: 0 0 0 3px rgba(255,255,255,.45); opacity: .75; transition: transform .1s, opacity .1s; }
.flag.on { opacity: 1; box-shadow: 0 0 0 3px #fff; }
.flag:hover, .flag:focus-visible { opacity: 1; transform: scale(1.06); }
.flag-ge { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><rect width='20' height='20' fill='%23fff'/><g fill='%23e4002b'><rect x='8.4' width='3.2' height='20'/><rect y='8.4' width='20' height='3.2'/><rect x='4.70' y='3.45' width='1.40' height='3.90'/><rect x='3.45' y='4.70' width='3.90' height='1.40'/><rect x='13.90' y='3.45' width='1.40' height='3.90'/><rect x='12.65' y='4.70' width='3.90' height='1.40'/><rect x='4.70' y='12.65' width='1.40' height='3.90'/><rect x='3.45' y='13.90' width='3.90' height='1.40'/><rect x='13.90' y='12.65' width='1.40' height='3.90'/><rect x='12.65' y='13.90' width='3.90' height='1.40'/></g></svg>"); }  /* square, drawn for the round badge: the four small crosses sit inside the circle */
.flag-gr { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 20'><rect y='0.000' width='27' height='2.222' fill='%230d5eaf'/><rect y='2.222' width='27' height='2.222' fill='%23fff'/><rect y='4.444' width='27' height='2.222' fill='%230d5eaf'/><rect y='6.667' width='27' height='2.222' fill='%23fff'/><rect y='8.889' width='27' height='2.222' fill='%230d5eaf'/><rect y='11.111' width='27' height='2.222' fill='%23fff'/><rect y='13.333' width='27' height='2.222' fill='%230d5eaf'/><rect y='15.556' width='27' height='2.222' fill='%23fff'/><rect y='17.778' width='27' height='2.222' fill='%230d5eaf'/><rect width='11.11' height='11.11' fill='%230d5eaf'/><rect x='4.44' width='2.22' height='11.11' fill='%23fff'/><rect y='4.44' width='11.11' height='2.22' fill='%23fff'/></svg>"); }
.lang-back { font-weight: 800; text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--surface); }

/* transport near a place */
.transit { margin-top: 24px; }
.transit-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.transit-list li { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 14px; padding: 10px 12px; }
.t-ic { font-size: 1.4rem; flex: none; }
.t-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.t-body small { color: var(--muted); font-weight: 400; }
.t-lines { display: flex; flex-wrap: wrap; gap: 4px; }
.line { font-style: normal; font-weight: 800; font-size: .85rem; padding: 1px 8px; border-radius: 6px; background: #0d5eaf; color: #fff; }
.line-m1 { background: #00a651; } .line-m2 { background: #e31e24; } .line-m3 { background: #0071bc; }
.t-walk { flex: none; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.tr-cards { list-style: none; padding: 0; display: grid; gap: 8px; }
.tr-cards a { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--text); text-decoration: none; }
.tr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.tr-row small { color: var(--muted); }
/* small round photo on each tile, with a thin ring in the tile's text colour */
.tile-ph { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; margin-bottom: 6px;
  box-shadow: 0 0 0 2px currentColor; background: rgba(255,255,255,.3); }
@media (max-width: 400px) { .tile-ph { width: 44px; height: 44px; } }
/* the quiet corner note about new chat messages */
.ping { position: fixed; left: 12px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 25; max-width: min(360px, calc(100% - 150px));
  padding: 9px 14px; border-radius: 999px; background: var(--surface); color: var(--text); box-shadow: 0 4px 16px rgba(0,0,0,.25);
  font-size: .92rem; font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; border: 1px solid var(--line); }
.ping.in { opacity: 1; transform: none; }
/* line icons on tiles: one style, in a soft circle of the tile's own colour */
.tile .tile-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 8px;
  background: rgba(255,255,255,.18); font-size: 0; }
.tile.t-white .tile-ic, .tile.t-light .tile-ic { background: rgba(13,94,175,.1); }
.tile.t-white-red .tile-ic, .tile.t-heart .tile-ic { background: rgba(228,0,43,.1); }
.tile.t-gold .tile-ic, .tile.t-sky .tile-ic { background: rgba(255,255,255,.35); }
.tile .ico { width: 28px; height: 28px; }

/* events */
.ev-list { display: grid; gap: 8px; }
.ev-card { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--text); text-decoration: none; }
.ev-date { flex: none; width: 54px; text-align: center; border-radius: 12px; background: var(--red); color: #fff; padding: 6px 0; display: flex; flex-direction: column; line-height: 1.1; }
.ev-date b { font-size: 1.5rem; font-weight: 900; }
.ev-date small { font-size: .78rem; text-transform: lowercase; }
.ev-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ev-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ev-tags i { font-style: normal; font-size: .8rem; background: var(--bg); border-radius: 999px; padding: 1px 8px; }
.ev-tags .ev-free { background: #e6f6ec; color: #0b6b2f; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.ev-actions form { display: inline; }
.listen { margin: 6px 0 12px; display: flex; gap: 8px; }
.listen-audio { width: 100%; max-width: 420px; }
.listen-btn { font-size: 1.05rem; }

/* Rows that scroll sideways (menu, filter chips, tabs): fade the edge where more items are hidden,
   so a word is never cut off by a hard line. rows.js sets .more-l / .more-r from the scroll position. */
.nav, .chips, .tabs, .cab-tabs { -webkit-overflow-scrolling: touch; }
.nav::-webkit-scrollbar, .chips::-webkit-scrollbar, .tabs::-webkit-scrollbar, .cab-tabs::-webkit-scrollbar { display: none; }
.nav::after, .chips::after, .tabs::after, .cab-tabs::after { content: ""; flex: 0 0 4px; }
.more-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
.more-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 48px); mask-image: linear-gradient(to right, transparent, #000 48px); }
.more-l.more-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
@media (min-width: 800px) {
  /* wide screens: the whole menu fits on two lines, nothing hidden */
  .nav { flex-wrap: wrap; overflow: visible; row-gap: 8px; }
}
.nav a.on { background: var(--blue); color: var(--ink); font-weight: 800; }
.nav a.nav-login { background: var(--yellow); color: var(--ink); }  /* .nav a would otherwise paint it dark-on-dark */

/* travel */
.route-list { display: grid; gap: 12px; }
@media (min-width: 640px) { .route-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.route-card { background: var(--surface); border-radius: 18px; padding: 14px 16px; box-shadow: inset 0 0 0 1px var(--line); }
.route-card header { display: flex; flex-direction: column; gap: 2px; }
.route-card header strong { font-size: 1.15rem; }
.route-meta { color: var(--muted); font-size: .9rem; }
.badge-ok { background: var(--green); color: #fff; }
.route-cheap { margin: 10px 0 6px; }
.route-cheap b { font-size: 1.3rem; }
.fare-days { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.fare-days a { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 12px; background: var(--bg); text-decoration: none; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.fare-days a:hover, .fare-days a:focus-visible { box-shadow: inset 0 0 0 2px var(--blue); }
.fd-date { font-size: .85rem; font-weight: 600; }
.fd-time, .fare-days small { font-size: .78rem; color: var(--muted); }
.fd-price { font-size: 1.05rem; }
.route-links { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 6px 0 0; }
.small { font-size: .85rem; }
.trip-list { display: grid; gap: 8px; margin-bottom: 14px; }
.trip-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--surface);
  color: var(--text); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.trip-card.soon { box-shadow: inset 0 0 0 2px var(--blue); }
.trip-date { display: flex; flex-direction: column; align-items: center; min-width: 52px; line-height: 1.1; font-size: .85rem; }
.trip-date b { font-size: 1.5rem; }
.trip-date small { color: var(--muted); }
.trip-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trip-main span, .trip-main small { color: var(--muted); font-size: .9rem; }
.trip-price { font-size: 1.25rem; font-weight: 800; white-space: nowrap; }
.tile.t-wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 12px; }
.tile.t-wide .tile-ic { margin: 0; }
.tile.t-wide .tile-txt { display: flex; flex-direction: column; gap: 2px; }

/* Chat on phones: the space under the messages follows the real height of the box at the bottom
   (rows.js sets --composer-h), so the last message is never hidden behind it. */
.chat-app .chat { padding-bottom: calc(var(--composer-h, 96px) + 12px); }
.chat-app .new-pill { bottom: calc(var(--composer-h, 96px) + 8px); }
/* Compact bubbles, as in Telegram: the time sits at the end of the last line when it fits. */
.chat-app .msg { padding: 5px 10px 5px; line-height: 1.35; }
.chat-app .msg:not(.has-media) p { display: inline; margin: 0; }
.chat-app .msg:not(.has-media) header + p::before { content: ""; display: block; margin-top: 1px; }
.chat-app .msg:not(.has-media) .msg-meta { float: right; margin: 6px 0 -4px 10px; line-height: 1; }
.chat-app .msg::after { content: ""; display: table; clear: both; }
.chat-app .msg header { font-size: .8rem; }
.chat-app .msg .avatar-sm { width: 20px; height: 20px; font-size: .65rem; }
.chat-app .rx-row { clear: both; margin-top: 3px; }
.chat-app .rx { padding: 1px 7px; font-size: .8rem; }
.chat-app .chat { gap: 5px; }
.chat-app .guest-field { padding: 4px 4px 4px 14px; }
.chat-app .guest-field b { padding: 7px 12px; }
.chat-app .guest-hint { font-size: .78rem; margin-top: 4px; }

/* Header: name on the left; chat, my page (or sign in) and the menu on the right. The sections and the
   city live in the menu panel, so the header stays one calm line. */
.top-row { padding-bottom: 10px; }
.top-actions { display: flex; align-items: center; gap: 6px; }
.top-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 42px; min-width: 42px; padding: 0 12px;
  border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 700; font-size: .9rem;
  cursor: pointer; list-style: none; justify-content: center; }
.top-btn::-webkit-details-marker { display: none; }
.top-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.top-btn .avatar-sm { margin: 0; }
.top-btn .count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; font-style: normal; display: grid; place-items: center; }
.top-btn.nav-login { background: var(--yellow); color: var(--ink); }
@media (max-width: 479px) { .top-lbl { display: none; } .top-btn { padding: 0 10px; } }
.hmenu { position: relative; }
.hmenu[open] > summary { box-shadow: inset 0 0 0 2px var(--blue); }
.hmenu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); overflow-y: auto; padding: 12px; border-radius: 18px;
  background: var(--bg); box-shadow: 0 12px 40px rgba(0,0,0,.35), inset 0 0 0 1px var(--line); }
.hmenu-panel .city-form { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.hmenu-panel .city-form label { font-size: .8rem; font-weight: 700; color: var(--muted); }
.hmenu-panel .city-form select { width: 100%; }
.menu-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.menu-links a { padding: 10px 12px; border-radius: 12px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; }
.menu-links a.on { box-shadow: inset 0 0 0 2px var(--blue); font-weight: 800; }

/* ---- polish pass ---- */
/* Links inside text: the site's link colour, no underline until hover. Buttons, cards and chips keep their own look
   (:where keeps this weaker than any class rule). */
:where(main) a:where(:not([class])) { color: var(--link); font-weight: 600; text-decoration: none; }
:where(main) a:where(:not([class])):hover { text-decoration: underline; text-underline-offset: 3px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface);
  color: var(--text); text-decoration: none; font-size: .88rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.pill:hover { box-shadow: inset 0 0 0 2px var(--blue); }
.cab-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.cab-head { align-items: flex-start; }
.cab-head h1 { font-size: 1.6rem; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 12px 0;
  padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cta-card p { margin: 0; flex: 1 1 260px; }
.cta-card .btn { white-space: nowrap; }
/* notifications: one tidy line of text with the time beside it */
.notif-list { gap: 4px; }
.notif-list a { padding: 10px 12px; gap: 10px; align-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.notif-list a:hover { box-shadow: inset 0 0 0 2px var(--blue); }
.notif-list li.unread a { box-shadow: inset 4px 0 0 var(--blue), inset 0 0 0 1px var(--line); font-weight: 600; }
.notif-icon { width: 30px; height: 30px; font-size: .95rem; }
.notif-body { font-size: .95rem; line-height: 1.4; }
.notif-body time { font-size: .78rem; }
/* Tiles: icon and words centred, so short and long labels sit evenly in the tile; hover is a quiet lift,
   one outline only for keyboard focus (hover + focus used to stack two frames). */
.tile:not(.t-wide) { align-items: center; text-align: center; justify-content: center; padding: 16px 12px 14px; }
.tile:not(.t-wide) .tile-ic { margin-left: auto; margin-right: auto; }
.tile { transition: transform .12s ease, filter .12s ease; }
.tile:hover { outline: none; transform: translateY(-2px); filter: brightness(1.04); }
.tile.t-white:hover { box-shadow: inset 0 0 0 2px #0d5eaf; }
.tile.t-white-red:hover, .tile.t-heart:hover { box-shadow: inset 0 0 0 2px #e4002b; }
.tile:not(.t-white):not(.t-white-red):not(.t-heart):hover { box-shadow: none; }
.tile:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; transform: none; }
.tile:active { transform: scale(.98); }

/* footer: links in one centred row, the three designs as equal buttons, the name line last */
.foot { margin-top: 48px; padding: 20px 16px 28px; border-top: 1px solid var(--line); text-align: center; font-size: .9rem; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.foot a, .foot-links a { color: var(--text); text-decoration: none; font-weight: 600; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot .theme-switch { display: grid; grid-template-columns: 1fr; gap: 6px; max-width: 560px; margin: 18px auto 14px; }
.foot .theme-label { grid-column: 1 / -1; font-size: .8rem; }
.foot .theme-switch button { width: 100%; border-radius: 12px; padding: 10px 12px; font-size: .9rem; font-weight: 700; }
@media (min-width: 640px) { .foot .theme-switch { grid-template-columns: repeat(3, 1fr); } }
.foot-note { margin: 0; color: var(--muted); font-size: .82rem; }

/* form labels: clear but not shouting */
.form label { font-weight: 700; font-size: .95rem; }
.form .field { margin-bottom: 14px; }
.form small.help, .form .helptext { display: block; margin-top: 4px; color: var(--muted); font-size: .85rem; }
/* the round chat button stays out of the way where the page has its own button or a form at the bottom */
body:has(main form.form) .chat-fab-round, body:has(.sticky-cta) .chat-fab-round { display: none; }

/* "to be checked" and similar labels: a quiet amber tag instead of a loud filled pill */
:root { --warn-bg: rgba(244,180,0,.18); --warn-ink: #7a5200; }
@media (prefers-color-scheme: dark) { :root { --warn-bg: rgba(244,180,0,.16); --warn-ink: #f6c344; } }
.badge { background: var(--warn-bg); color: var(--warn-ink); font-weight: 700; font-size: .72rem; padding: 2px 9px; letter-spacing: .01em; }
.badge-ok, .badge-green { background: rgba(15,139,141,.18); color: inherit; }
.cards .badge, .help-card .badge { margin: 2px 0; }
/* the call / website / map buttons of a place: one even row */
.biz .actions, .actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.actions .btn { text-align: center; padding-left: 10px; padding-right: 10px; }
small.unverified { background: var(--warn-bg); color: var(--warn-ink); font-weight: 700; padding: 1px 8px; }
/* Tabs switch the page's sections; chips filter the list. Tabs are underlined, so the two never look alike. */
body:not(.theme-simple) .tabs { gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
body:not(.theme-simple) .tabs a { background: none; border-radius: 0; padding: 10px 12px 9px; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px; }
body:not(.theme-simple) .tabs a:hover { color: var(--text); }
body:not(.theme-simple) .tabs a.on { background: none; color: var(--text); border-bottom-color: var(--blue); }
body:not(.theme-simple) .tabs a .count { margin-left: 6px; }
/* boxes that used the highlight colour (white in the flags design) get a calm card look in every design */
body:not(.theme-simple) .how { background: var(--surface); color: var(--text); box-shadow: inset 4px 0 0 var(--blue), inset 0 0 0 1px var(--line); padding-left: 38px; }
body:not(.theme-simple) .how b, body:not(.theme-simple) .how strong { color: var(--text); }
body:not(.theme-simple) .st-pending { background: var(--warn-bg); color: var(--warn-ink); }
body:not(.theme-simple) .notice { background: var(--surface); border-left-color: var(--warn-ink); box-shadow: inset 0 0 0 1px var(--line); }
/* a list of checkboxes (categories, languages): roomy rows that are easy to tap, in two columns on wider screens */
.form div[id^="id_"]:has(> div > label > input[type=checkbox]) { display: grid; grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 560px) { .form div[id^="id_"]:has(> div > label > input[type=checkbox]) { grid-template-columns: 1fr 1fr; } }
.form div[id^="id_"] > div > label:has(input[type=checkbox]) { display: flex; align-items: center; gap: 10px; margin: 0;
  padding: 10px 12px; border-radius: 12px; background: var(--surface); font-weight: 500; font-size: .95rem; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line); }
.form div[id^="id_"] > div > label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--blue); font-weight: 700; }
.form input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.empty .btn, .inbox .empty .btn { display: inline-block; margin-top: 4px; }
.inbox .empty a.btn { display: inline-flex; background: var(--blue); color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 800; }
/* list bullets that read as signs, not as boxes to tick: ✓ for the good points, ! for what to watch out for */
.checklist li { box-shadow: inset 0 0 0 1px var(--line); }
.checklist li::before { content: "✓"; width: 20px; height: 20px; top: 11px; border-radius: 50%; display: grid; place-items: center;
  font-size: .75rem; font-weight: 900; background: rgba(15,139,141,.2); color: #36c2b4; }
.checklist.cons li::before { content: "!"; background: var(--warn-bg); color: var(--warn-ink); }

/* flights as a departure board: one row per route, the price large on the right, the whole row opens the live search */
.flight-board { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fb-row { background: var(--surface); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.fb-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px;
  color: var(--text); text-decoration: none; }
.fb-row:hover { box-shadow: inset 0 0 0 2px var(--blue); }
.fb-codes { display: flex; flex-direction: column; align-items: center; min-width: 46px; padding: 6px 4px; border-radius: 10px;
  background: rgba(127,127,127,.12); font-size: .8rem; line-height: 1.15; letter-spacing: .04em; }
.fb-codes i { font-style: normal; font-size: .7rem; opacity: .6; transform: rotate(90deg); }
.fb-route { display: flex; flex-direction: column; min-width: 0; }
.fb-route strong { font-size: 1.02rem; }
.fb-meta { color: var(--muted); font-size: .85rem; }
.fb-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; white-space: nowrap; }
.fb-price b { font-size: 1.45rem; line-height: 1.1; }
.fb-price small { color: var(--muted); font-size: .75rem; }
.fb-check { font-size: .85rem; font-weight: 700; color: var(--link); }
.fb-row .fare-days { display: flex; gap: 6px; overflow-x: auto; padding: 0 14px 12px; margin: 0; scrollbar-width: none; }
.fb-row .fare-days a { min-width: 84px; }
.fb-note { margin-top: 10px; }
@media (min-width: 700px) { .fb-main { padding: 14px 18px; gap: 16px; } .fb-price b { font-size: 1.6rem; } }

/* home chat preview: the last messages as small dialogue bubbles, so five fit where two bars did */
.tz-feed { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 4px 0 2px; }
.tz-msg { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; max-width: 88%; padding: 5px 11px 5px;
  border-radius: 14px 14px 14px 4px; background: rgba(255,255,255,.17); font-size: .92rem; line-height: 1.35; }
.tz-msg b { flex-basis: 100%; font-size: .78rem; font-weight: 800; opacity: .95; }
.tz-msg span { overflow-wrap: anywhere; }
.tz-msg time { margin-left: auto; font-size: .7rem; opacity: .7; }
.chat-teaser .chat-line { display: none; }
.fb-check { font-size: 1.8rem; line-height: 1; color: var(--muted); font-weight: 400; }
/* chat preview, compact: name and text on one line in each bubble; on wide screens title and button on the left,
   the messages filling the right, so the block is no taller than the conversation itself */
.tz-msg { flex-wrap: nowrap; max-width: 100%; padding: 4px 10px; gap: 6px; }
.tz-msg b { flex-basis: auto; flex: none; font-size: .82rem; }
.tz-msg b::after { content: ":"; }
.tz-msg span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tz-msg time { flex: none; padding-left: 4px; }
.tz-feed { gap: 3px; }
@media (min-width: 700px) {
  .chat-teaser { display: grid; grid-template-columns: minmax(200px, 30%) 1fr; grid-template-areas: "head feed" "cta feed";
    align-items: start; column-gap: 24px; row-gap: 10px; padding: 18px 22px; }
  .chat-teaser-head { grid-area: head; flex-direction: column; align-items: flex-start; gap: 4px; }
  .chat-teaser .tz-feed { grid-area: feed; margin: 0; }
  .chat-teaser-cta { grid-area: cta; align-self: end; margin: 0; }
}
/* Tiles, proportions: content starts at the top so the icons of a row stand on one line; every subtitle keeps
   two lines of room, so all tiles are the same height; four columns on wide screens. */
.tile:not(.t-wide) { justify-content: flex-start; padding: 16px 10px 14px; min-height: 0; gap: 3px; }
.tile .tile-ic { width: 44px; height: 44px; margin-bottom: 8px; border-radius: 13px; }
.tile .ico { width: 26px; height: 26px; }
.tile:not(.t-wide) strong { font-size: 1.02rem; line-height: 1.2; }
.tile:not(.t-wide) span:not(.tile-ic):not(.tile-txt) { font-size: .84rem; line-height: 1.3; min-height: 2.6em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 700px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
}
