/* Elaka — Facebook-style stylesheet */
:root {
    --brand: #1877f2;
    --brand-dark: #166fe5;
    --brand-soft: #e7f3ff;
    --green: #42b72a;
    --green-dark: #36a420;
    --bg: #f0f2f5;
    --card: #ffffff;
    --hover: #f2f2f2;
    --input: #f0f2f5;
    --text: #050505;
    --muted: #65676b;
    --border: #ced0d4;
    --divider: #e4e6eb;
    --danger: #e41e3f;
    --danger-soft: #ffebe9;
    --warning-soft: #fff4d6;
    --info-soft: #e7f3ff;
    --radius: 8px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .2);
    --shadow-lg: 0 12px 28px rgba(0, 0, 0, .2), 0 2px 4px rgba(0, 0, 0, .1);
    --topbar-h: 56px;

    --c-alert: #e41e3f;
    --c-event: #7b61ff;
    --c-lost_found: #f7923b;
    --c-marketplace: #1877f2;
    --c-service: #00a400;
    --c-news: #65676b;
    --c-discussion: #a033ff;
    --c-poll: #e42a7c;
}

:root { color-scheme: light; }

/* Dark mode: chosen with the toggle (data-theme="dark"), or by the system when no choice was made. */
:root[data-theme="dark"] {
    color-scheme: dark;
    --brand-soft: #263951;
    --bg: #18191a;
    --card: #242526;
    --hover: #3a3b3c;
    --input: #3a3b3c;
    --text: #e4e6eb;
    --muted: #b0b3b8;
    --border: #3e4042;
    --divider: #3e4042;
    --danger-soft: #3d1f24;
    --warning-soft: #3a3320;
    --info-soft: #263951;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --brand-soft: #263951;
        --bg: #18191a;
        --card: #242526;
        --hover: #3a3b3c;
        --input: #3a3b3c;
        --text: #e4e6eb;
        --muted: #b0b3b8;
        --border: #3e4042;
        --divider: #3e4042;
        --danger-soft: #3d1f24;
        --warning-soft: #3a3320;
        --info-soft: #263951;
        --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    }
}

/* Theme toggle: show the moon in light mode, the sun in dark mode. */
.theme-toggle { border: 0; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.theme-float { position: fixed; top: 12px; right: 12px; z-index: 50; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    font: 15px/1.34 "Segoe UI Historic", "Segoe UI", Helvetica, Arial, "Noto Sans Bengali", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; font-weight: 700; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.0625rem; font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--divider); margin: 12px 0; }
code { background: var(--input); padding: 1px 5px; border-radius: 4px; }
blockquote { margin: .4rem 0; padding: .4rem .8rem; border-left: 3px solid var(--divider); color: var(--muted); }

.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.container-wide { width: 100%; padding: 0; }
main.container, main.container-wide { flex: 1; padding-top: 16px; padding-bottom: 40px; }
.container-wide > .flash { max-width: 680px; margin: 0 auto 12px; }
.muted { color: var(--muted); }
.small { font-size: .8125rem; }
.tiny { font-size: .75rem; line-height: 1.4; }
.center { text-align: center; }
.spacer { flex: 1; }
.inline { display: inline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; vertical-align: middle; }

/* ---------- avatars ---------- */
.avatar {
    --hue: 214;
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 40px; height: 40px; border-radius: 50%; font-weight: 700; font-size: 1.05rem; color: #fff;
    background: linear-gradient(135deg, hsl(var(--hue) 70% 58%), hsl(calc(var(--hue) + 40) 65% 45%));
    user-select: none;
}
.avatar-sm { width: 32px; height: 32px; font-size: .875rem; }
.avatar-md { width: 60px; height: 60px; font-size: 1.6rem; }
.avatar-lg { width: 88px; height: 88px; font-size: 2.4rem; }
.avatar-xl { width: 168px; height: 168px; font-size: 4.5rem; border: 4px solid var(--card); }
.avatar-anon { background: #8a8d91; }

/* ---------- top bar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 1000; height: var(--topbar-h);
    display: grid; grid-template-columns: 1fr minmax(0, 600px) 1fr; align-items: center;
    padding: 0 16px; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 2px 4px rgba(0, 0, 0, .05);
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-right { justify-content: flex-end; }
.logo { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; }
.logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo:hover { text-decoration: none; }
.top-search {
    display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px;
    background: var(--input); color: var(--muted); width: 240px;
}
.top-search .icon { width: 16px; height: 16px; }
.top-search input[type=search] { width: 100%; border: 0; box-shadow: none; background: transparent; padding: 0; outline: none !important; font-size: .9375rem; }

.topbar-center { display: flex; justify-content: center; height: 100%; }
.tab-icon {
    position: relative; display: flex; align-items: center; justify-content: center; flex: 0 1 112px;
    height: 100%; color: var(--muted); border-bottom: 3px solid transparent; border-top: 3px solid transparent;
}
.tab-icon .icon { width: 26px; height: 26px; }
.tab-icon::before { content: ""; position: absolute; inset: 4px 2px; border-radius: 8px; z-index: -1; }
.tab-icon:hover::before { background: var(--hover); }
.tab-icon.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-icon.active:hover::before { background: transparent; }

.circle-btn, .account-menu > summary {
    position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 40px; height: 40px; border-radius: 50%; background: var(--divider); color: var(--text); cursor: pointer;
}
.circle-btn:hover { filter: brightness(.95); text-decoration: none; }
.circle-btn.active { background: var(--brand-soft); color: var(--brand); }
.circle-btn .badge { position: absolute; top: -4px; right: -6px; margin: 0; }
.account-menu { position: relative; }
.account-menu > summary { list-style: none; background: none; }
.account-menu > summary::-webkit-details-marker { display: none; }
.menu-panel {
    position: absolute; right: 0; top: 48px; width: 340px; padding: 8px; border-radius: var(--radius);
    background: var(--card); box-shadow: var(--shadow-lg);
}
.menu-profile { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; color: var(--text); box-shadow: 0 2px 12px rgba(0, 0, 0, .12); }
.menu-profile span { display: flex; flex-direction: column; }
.menu-profile:hover, .menu-item:hover { background: var(--hover); text-decoration: none; }
.menu-item {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 0; border-radius: 8px;
    background: none; color: var(--text); font: inherit; font-weight: 500; cursor: pointer; text-align: left;
}
.menu-ic { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--divider); }

.loc-chip {
    display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px;
    font-size: .875rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); white-space: nowrap;
}
.loc-chip:hover { text-decoration: none; filter: brightness(.97); }
.loc-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(66, 183, 42, .25); }
.loc-chip.stale { background: var(--warning-soft); color: #9a6b00; }
.loc-chip.stale .dot { background: #e0a800; box-shadow: none; }
.badge {
    display: inline-block; min-width: 19px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff;
    font-size: .75rem; line-height: 19px; text-align: center; font-weight: 700; margin-left: 4px; vertical-align: middle;
}

@media (max-width: 1100px) { .top-search { width: 40px; padding: 0 12px; } .top-search input { display: none; } }
@media (max-width: 760px) {
    .topbar { grid-template-columns: auto 1fr; height: auto; padding: 8px 12px 0; row-gap: 4px; }
    .topbar-center { grid-column: 1 / -1; grid-row: 2; height: 48px; justify-content: space-around; }
    .tab-icon { flex: 1; }
    .loc-chip { display: none; }
    .menu-panel { width: min(340px, calc(100vw - 24px)); }
}

/* ---------- buttons & forms ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 12px;
    border-radius: 6px; border: 0; background: var(--divider); color: var(--text);
    font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; text-decoration: none !important; white-space: nowrap;
}
.btn:hover { filter: brightness(.95); }
.btn:disabled { opacity: .5; cursor: default; }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-success, .btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); filter: none; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { height: 32px; padding: 0 12px; font-size: .875rem; }
.btn-lg { height: 48px; padding: 0 16px; font-size: 1.0625rem; }
.btn-xl { height: 48px; font-size: 1.25rem; }
.btn-wide { min-width: 194px; }
.btn-block { display: flex; width: 100%; margin-top: 8px; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; }
.linklike:hover { text-decoration: underline; }

.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9375rem; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number],
input[type=datetime-local], select, textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font: inherit;
    background: var(--card); color: var(--text);
}
.input-lg { padding: 14px 16px !important; font-size: 1.0625rem !important; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.form label.check, label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; }
.form-actions .check { margin-right: auto; }
#pollOptions { display: flex; flex-direction: column; gap: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-radio, .chip-check { cursor: pointer; }
.form .chip-radio, .form .chip-check { flex-direction: row; }
.chip-radio input, .chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span, .chip-check span {
    display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--divider); font-weight: 600; font-size: .875rem;
}
.chip-radio input:checked + span, .chip-check input:checked + span { background: var(--brand-soft); color: var(--brand); }
.chip-radio input:focus-visible + span, .chip-check input:focus-visible + span { outline: 2px solid var(--brand); }

.cat-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.form .cat-option { flex-direction: row; cursor: pointer; font-weight: 600; }
.cat-option input { position: absolute; opacity: 0; }
.cat-option span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--divider); border-radius: 8px; width: 100%; }
.cat-option span:hover { background: var(--hover); }
.cat-option small { color: var(--muted); font-size: .8rem; font-weight: 400; }
.cat-option input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.cat-option input:focus-visible + span { outline: 2px solid var(--brand); }

/* ---------- cards & layout ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feed-layout, .post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.profile-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.sticky { position: sticky; top: calc(var(--topbar-h) + 16px); }
.page-head { margin-bottom: 16px; }
.page-head.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.back-link .icon { width: 16px; height: 16px; }
@media (max-width: 900px) {
    .feed-layout, .post-layout, .profile-layout { grid-template-columns: 1fr; }
    .sticky { position: static; }
}
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

/* Facebook three-column home */
.fb-layout { display: grid; grid-template-columns: minmax(240px, 360px) minmax(0, 680px) minmax(240px, 360px); justify-content: space-between; gap: 32px; }
.fb-feed { min-width: 0; padding: 0 16px; width: 100%; max-width: 680px; justify-self: center; }
.fb-left, .fb-right { padding: 0 8px; position: sticky; top: calc(var(--topbar-h) + 16px); align-self: start; max-height: calc(100vh - var(--topbar-h) - 16px); overflow-y: auto; scrollbar-width: thin; }
.fb-right .sticky { position: static; }
.side-title { color: var(--muted); font-size: 1.0625rem; font-weight: 600; padding: 4px 8px; margin: 0; }
.side-list { display: flex; flex-direction: column; }
.side-list a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; color: var(--text); font-weight: 500; }
.side-list a:hover { background: var(--hover); text-decoration: none; }
.side-list a.active { background: var(--brand-soft); }
.side-list .badge { margin-left: auto; }
.side-ic { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border-radius: 50%; }
.side-ic .icon { width: 22px; height: 22px; }
.side-ic.ic-blue { color: var(--brand); background: var(--brand-soft); }
.side-ic.ic-grey { background: var(--divider); }
.side-ic.emoji { font-size: 1.3rem; background: var(--card); box-shadow: inset 0 0 0 1px var(--divider); }
.side-foot { color: var(--muted); font-size: .8125rem; padding: 8px; }
.map-card { padding: 8px; }
.map-card .map { margin-bottom: 6px; }
.map-card p { margin: 0 4px 4px; }
.fb-feed .tabs { display: none; }
@media (max-width: 1100px) {
    .fb-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; padding: 0 16px; }
    .fb-left { display: none; }
    .fb-feed { padding: 0; justify-self: end; }
    .fb-feed .tabs { display: flex; }
}
@media (max-width: 900px) {
    .fb-layout { grid-template-columns: minmax(0, 1fr); padding: 0 8px; }
    .fb-right { display: none; }
    .fb-feed { justify-self: center; }
}

.composer { padding: 12px 16px 8px; }
.composer-top { display: flex; gap: 8px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--divider); }
.composer-input {
    flex: 1; display: flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 999px;
    background: var(--input); color: var(--muted); font-size: 1.0625rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.composer-input:hover { filter: brightness(.96); text-decoration: none; }
.composer-actions { display: flex; padding-top: 8px; }
.composer-actions a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 8px;
    color: var(--muted); font-weight: 600;
}
.composer-actions a:hover { background: var(--hover); text-decoration: none; }
.composer-actions .emoji { font-size: 1.3rem; }

.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 12px; transition: opacity .6s; box-shadow: var(--shadow); }
.flash.fade { opacity: 0; }
.flash-success { background: #e9f8e6; color: #1c6b10; }
.flash-error { background: var(--danger-soft); color: #b0122d; }
.flash-warning { background: var(--warning-soft); color: #8a6300; }
.flash-info { background: var(--info-soft); color: #0b5bc9; }
:root[data-theme="dark"] .flash-success { background: #1f3a1b; color: #a6e19a; }
:root[data-theme="dark"] .flash-error { color: #ff9aa9; }
:root[data-theme="dark"] .flash-warning { color: #f0cb6b; }
:root[data-theme="dark"] .flash-info { color: #8ab8f8; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .flash-success { background: #1f3a1b; color: #a6e19a; }
    :root:not([data-theme="light"]) .flash-error { color: #ff9aa9; }
    :root:not([data-theme="light"]) .flash-warning { color: #f0cb6b; }
    :root:not([data-theme="light"]) .flash-info { color: #8ab8f8; }
}

.hero { text-align: center; padding: 40px 24px; }
.hero-icon { font-size: 3rem; }
.hero p { margin: 12px 0; }
.empty { text-align: center; padding: 30px; }

/* ---------- login / register ---------- */
body.bare { background: var(--bg); }
.bare-main { flex: 1; width: 100%; }
.wordmark { color: var(--brand); font: 700 60px/1 Helvetica, Arial, sans-serif; letter-spacing: -2px; }
.auth-split {
    display: flex; align-items: center; justify-content: center; gap: 32px; max-width: 980px; margin: 0 auto;
    padding: 72px 16px 112px; min-height: 70vh;
}
.auth-brand { flex: 1 1 500px; max-width: 580px; padding-bottom: 80px; }
.auth-logo { display: block; width: 120px; height: 120px; object-fit: contain; margin: 0 0 4px -8px; }
.auth-brand .wordmark { font-size: 68px; margin: 0 0 -6px -4px; }
.auth-brand h2 { font-size: 28px; font-weight: 400; line-height: 32px; width: 500px; max-width: 100%; }
.auth-box { flex: 0 0 396px; }
.auth-card { width: 100%; max-width: 396px; padding: 16px; box-shadow: 0 2px 4px rgba(0, 0, 0, .1), 0 8px 16px rgba(0, 0, 0, .1); }
.auth-card .form { gap: 12px; }
.auth-card hr { margin: 20px 0; }
.auth-note { text-align: center; font-size: .875rem; margin-top: 28px; }
.auth-stack { display: flex; flex-direction: column; align-items: center; padding: 40px 16px 80px; gap: 20px; }
.auth-card.wide { max-width: 432px; padding: 0 16px 16px; }
.auth-card-head { margin: 0 -16px 16px; padding: 12px 16px; border-bottom: 1px solid var(--divider); text-align: center; }
.auth-card-head h1 { font-size: 25px; margin: 0; }
.auth-card-head p { margin: 2px 0 0; }
.auth-wrap { display: flex; justify-content: center; padding: 30px 16px; }
@media (max-width: 900px) {
    .auth-split { flex-direction: column; padding-top: 24px; gap: 16px; }
    .auth-brand { flex: none; text-align: center; padding: 0; }
    .auth-logo { width: 88px; height: 88px; margin: 0 auto 4px; }
    .auth-brand .wordmark { margin: 0; font-size: 52px; }
    .auth-brand h2 { font-size: 20px; line-height: 26px; margin: 8px auto 0; }
    .auth-box { flex: none; width: 100%; max-width: 396px; }
}

.footer { background: var(--card); padding: 20px 0; font-size: .75rem; color: var(--muted); }
.footer-inner { max-width: 980px; margin: 0 auto; padding: 0 16px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-inner hr { flex-basis: 100%; margin: 4px 0; }

/* ---------- tabs & toolbar ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.tabs a {
    white-space: nowrap; padding: 8px 14px; border-radius: 999px; color: var(--text); background: var(--card);
    font-size: .9375rem; font-weight: 600; box-shadow: var(--shadow);
}
.tabs a:hover { text-decoration: none; background: var(--hover); }
.tabs a.active { background: var(--brand-soft); color: var(--brand); }
.toolbar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.card.toolbar { padding: 8px; }
.toolbar input[type=search] { flex: 1 1 200px; width: auto; border-radius: 999px; background: var(--input); border-color: transparent; }
.toolbar select { width: auto; background: var(--input); border-color: transparent; font-weight: 600; }

/* ---------- posts ---------- */
.post-card { padding: 0; overflow: hidden; }
.post-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px 0; }
.post-full .post-head { padding: 0 0 12px; }
.post-who { flex: 1; min-width: 0; }
.post-author { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .9375rem; }
.post-sub { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--muted); font-size: .8125rem; }
.post-sub a { color: var(--muted); }
.post-sub .icon { width: 12px; height: 12px; }
.post-content { padding: 4px 16px 12px; }
.post-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .8125rem; margin-bottom: 6px; }
.post-title { margin: 6px 0 4px; font-size: 1.0625rem; }
.post-full .post-title { font-size: 1.5rem; }
.post-title a { color: var(--text); }
.post-excerpt { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.post-fact { margin: 2px 0 6px; font-size: .9375rem; color: var(--muted); }
.price { font-weight: 700; color: var(--text) !important; font-size: 1.0625rem; }
.post-media { display: block; background: #000; }
.post-media img { display: block; width: 100%; max-height: 520px; object-fit: contain; margin: 0 auto; }
.post-image { display: block; width: calc(100% + 32px); max-width: none; margin: 12px -16px; max-height: 640px; object-fit: contain; background: #000; }
.post-body { margin: 12px 0; font-size: 1rem; overflow-wrap: anywhere; }
.stat { color: var(--muted); }

.post-counts { display: flex; align-items: center; gap: 8px; margin: 0 16px; padding: 10px 0; color: var(--muted); font-size: .9375rem; }
.post-counts a { color: var(--muted); }
.count-reacts { display: inline-flex; align-items: center; gap: 6px; }
.react-bubble {
    display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%;
    background: var(--brand); font-size: 10px; box-shadow: 0 0 0 2px var(--card);
}
.post-bar { display: flex; gap: 4px; margin: 0 16px; padding: 4px 0; border-top: 1px solid var(--divider); }
.post-bar form { flex: 1; display: flex; }
.bar-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 36px; border-radius: 6px;
    border: 0; background: none; color: var(--muted); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer;
}
.bar-btn:hover { background: var(--hover); text-decoration: none; }
.bar-btn.on { color: var(--brand); }

.cat-tag {
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-weight: 600;
    background: var(--brand-soft); color: var(--brand); font-size: .8125rem; white-space: nowrap;
}
.cat-tag.cat-alert { background: rgba(228, 30, 63, .1); color: var(--c-alert); }
.cat-tag.cat-event { background: rgba(123, 97, 255, .12); color: var(--c-event); }
.cat-tag.cat-lost_found { background: rgba(247, 146, 59, .14); color: #c86a12; }
.cat-tag.cat-marketplace { background: rgba(24, 119, 242, .1); color: var(--c-marketplace); }
.cat-tag.cat-service { background: rgba(0, 164, 0, .1); color: #078a07; }
.cat-tag.cat-news { background: var(--divider); color: var(--muted); }
.cat-tag.cat-discussion { background: rgba(160, 51, 255, .1); color: var(--c-discussion); }
.cat-tag.cat-poll { background: rgba(228, 42, 124, .1); color: var(--c-poll); }
.sub-tag { padding: 3px 9px; border-radius: 999px; background: var(--divider); font-size: .8125rem; color: var(--muted); font-weight: 600; }
.verified {
    display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--brand);
    font-weight: 700; font-size: .7rem; border-radius: 999px; min-width: 16px; height: 16px; padding: 0 4px;
}
.post-meta .verified, .alert-item .verified { font-size: .75rem; height: 20px; padding: 0 8px; }
.role-tag { font-size: .75rem; padding: 1px 6px; border-radius: 4px; background: var(--divider); color: var(--muted); font-weight: 600; }
.role-moderator, .role-admin { background: var(--brand-soft); color: var(--brand); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 12px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.reactions { display: flex; gap: 4px; margin: 12px 0 0; padding: 4px 0; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.reactions form { flex: 1; display: flex; }
.react-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border: 0; border-radius: 6px;
    background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer;
}
.react-btn:hover { background: var(--hover); }
.react-btn.on { color: var(--brand); background: var(--brand-soft); }
.post-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; padding-top: 12px; }
.report-box summary { list-style: none; }
.report-box summary::-webkit-details-marker { display: none; }
.report-box[open] .form { margin-top: 10px; min-width: 260px; }

/* alert strip */
.alert-strip { border-left: 4px solid var(--c-alert); }
.alert-strip h2 { font-size: 1.0625rem; color: var(--c-alert); }
.alert-item { display: block; color: var(--text); padding: 6px 8px; margin: 0 -8px; border-radius: 6px; font-size: .9375rem; }
.alert-item:hover { background: var(--hover); text-decoration: none; }

/* polls */
.poll { margin: 14px 0; }
.poll-option {
    position: relative; display: flex !important; flex-direction: row !important; align-items: center; gap: 10px;
    padding: 10px 12px; border: 1px solid var(--divider); border-radius: 8px; margin-bottom: 8px; overflow: hidden; cursor: pointer; font-weight: 600;
}
.poll-option.mine { border-color: var(--brand); }
.poll-label { position: relative; z-index: 1; flex: 1; }
.poll-pct { position: relative; z-index: 1; font-size: .85rem; color: var(--muted); }
.poll-bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand-soft); z-index: 0; transition: width .4s; }
.poll-option input { position: relative; z-index: 1; }

/* comments */
.comments h2 { margin-bottom: 12px; font-size: 1.0625rem; }
.comment { display: flex; gap: 6px; padding: 4px 0; }
.comment.removed { opacity: .5; }
.comment-main { min-width: 0; }
.bubble { display: inline-block; max-width: 100%; padding: 8px 12px; border-radius: 18px; background: var(--input); }
.comment-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .8125rem; }
.comment-body { font-size: .9375rem; overflow-wrap: anywhere; }
.comment-body p { margin: 0; }
.comment-tools { display: flex; align-items: center; gap: 12px; padding: 2px 12px; font-size: .75rem; color: var(--muted); font-weight: 700; }
.comment-tools .linklike { color: var(--muted); font-weight: 700; }
.comment-form { margin-top: 12px; }
.comment-compose { display: flex; gap: 6px; align-items: flex-start; }
.comment-compose textarea { border-radius: 18px; background: var(--input); border-color: transparent; padding: 8px 12px; }

/* profile */
.profile-hero { padding: 0; overflow: hidden; }
.cover { height: 300px; background: linear-gradient(135deg, #1877f2 0%, #6aa7ff 45%, #a6e3c8 100%); }
.profile-id { display: flex; align-items: flex-end; gap: 16px; padding: 0 32px 16px; margin-top: -84px; flex-wrap: wrap; }
.profile-name { flex: 1; min-width: 200px; padding-bottom: 8px; }
.profile-name h1 { font-size: 2rem; margin-bottom: 4px; }
.profile-name p { margin: 0; }
.profile-id .btn { margin-bottom: 12px; }
.profile-tabs { display: flex; gap: 4px; margin: 0 32px; border-top: 1px solid var(--divider); }
.profile-tabs a { padding: 16px; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; }
.profile-tabs a:hover { background: var(--hover); text-decoration: none; border-radius: 6px 6px 0 0; }
.profile-tabs a.active { color: var(--brand); border-bottom-color: var(--brand); }
.section-title { padding: 12px 16px; }
.section-title h2 { margin: 0; }
@media (max-width: 760px) {
    .cover { height: 180px; }
    .profile-id { flex-direction: column; align-items: center; text-align: center; padding: 0 16px 16px; }
    .avatar-xl { width: 140px; height: 140px; font-size: 3.6rem; }
    .profile-tabs { margin: 0 16px; overflow-x: auto; }
}

/* maps */
.map { height: 380px; border-radius: 8px; margin-bottom: 10px; background: var(--input); z-index: 0; }
.map-sm { height: 260px; }
.emoji-marker { background: none; border: 0; }
.emoji-marker span {
    display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); font-size: 17px;
}
.emoji-marker.me span { background: var(--brand); }
.emoji-marker.pick span { background: #ffe9a8; }

/* lists */
.list { padding: 8px; }
.list > p { padding: 12px; margin: 0; }
.notif { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; color: var(--text); }
.notif:hover { background: var(--hover); text-decoration: none; }
.notif-ic { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--brand-soft); font-size: 1.6rem; }
.notif-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.notif-time { color: var(--muted); font-size: .8125rem; }
.notif.unread .notif-time { color: var(--brand); font-weight: 600; }
.notif-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--brand); flex: none; }
.area-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }

.mod-row { display: flex; gap: 16px; justify-content: space-between; padding: 12px; border-bottom: 1px solid var(--divider); }
.mod-row:last-child { border-bottom: 0; }
.mod-main { flex: 1; min-width: 0; }
.mod-actions { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 640px) { .mod-row { flex-direction: column; } .mod-actions { flex-direction: row; } }

.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--divider); vertical-align: middle; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table tr.banned td { opacity: .6; }
.table select { width: auto; padding: 4px 8px; }

.stats { display: flex; gap: 22px; margin-top: 10px; }
.stats div { display: flex; flex-direction: column; }
.stats b { font-size: 1.4rem; }
.stats span { color: var(--muted); font-size: .82rem; }

/* people & friends */
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.people-tabs .badge { margin-left: 4px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.person-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.person-cover { display: flex; justify-content: center; align-items: center; height: 130px; background: linear-gradient(135deg, var(--brand-soft), var(--hover)); }
.person-cover:hover { text-decoration: none; filter: brightness(.97); }
.person-body { display: flex; flex-direction: column; gap: 2px; padding: 12px; flex: 1; }
.person-name { font-weight: 700; font-size: 1.0625rem; color: var(--text); }
.person-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.person-actions form { flex: 1; display: flex; }
.person-actions .btn { flex: 1; justify-content: center; }
.person-actions .friend-chip { flex-basis: 100%; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.profile-actions .btn { margin-bottom: 0; }
.friend-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); }
.friend-chip .icon { width: 18px; height: 18px; }
.friend-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.friend-thumbs a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text); font-size: .8125rem; font-weight: 600; text-align: center; }
.friend-thumbs .avatar { width: 100%; height: auto; aspect-ratio: 1; border-radius: 8px; font-size: 2rem; }
.post-author a { color: inherit; }
.tab-icon .tab-badge { position: absolute; top: 6px; left: 50%; margin: 0 0 0 6px; }

/* ---------- lost pet board ---------- */
.pet-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pet-filters .pet-area { flex: 0 1 180px; }
.tabs .spacer { flex: 1; }
.map-lg { height: 520px; }
.pet-list { display: flex; flex-direction: column; }
.pet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 16px; }
.pet-card { display: flex; gap: 12px; padding: 12px; border-left: 4px solid var(--c-lost_found); }
.pet-card.pet-lost { border-left-color: var(--danger); }
.pet-card.pet-found { border-left-color: var(--green); }
.pet-card.is-closed { opacity: .7; }
.pet-card-body { flex: 1; min-width: 0; }
.pet-card .post-title { margin: 4px 0 2px; }
.pet-facts { margin: 0 0 2px; color: var(--text); font-size: .9375rem; }
.pet-thumb {
    flex: none; display: flex; align-items: center; justify-content: center; width: 112px; height: 112px;
    border-radius: 8px; overflow: hidden; background: var(--input);
}
.pet-thumb:hover { text-decoration: none; }
.pet-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pet-thumb-emoji { font-size: 3rem; }
.pet-thumb-sm { width: 56px; height: 56px; }
.pet-thumb-sm .pet-thumb-emoji { font-size: 1.6rem; }
.pet-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: .8125rem; margin-bottom: 4px; }
.pet-kind, .pet-status {
    display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: .75rem;
    text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
}
.pet-kind-lost { background: var(--danger); color: #fff; }
.pet-kind-found { background: var(--green); color: #fff; }
.pet-status-active { background: var(--brand-soft); color: var(--brand); }
.pet-status-sighted { background: var(--warning-soft); color: #9a6b00; }
.pet-status-reunited { background: #e9f8e6; color: #1c6b10; }
.pet-status-closed { background: var(--divider); color: var(--muted); }
:root[data-theme="dark"] .pet-status-sighted { color: #f0cb6b; }
:root[data-theme="dark"] .pet-status-reunited { background: #1f3a1b; color: #a6e19a; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .pet-status-sighted { color: #f0cb6b; }
    :root:not([data-theme="light"]) .pet-status-reunited { background: #1f3a1b; color: #a6e19a; }
}
.pet-legend { display: flex; align-items: center; gap: 6px; margin: 0 4px 4px; color: var(--muted); }
.pet-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.pet-dot.lost { background: var(--danger); }
.pet-dot.found { background: var(--green); margin-left: 8px; }
.pet-tips { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }

/* map pins */
.emoji-marker.pet-pin-lost span { box-shadow: 0 0 0 3px var(--danger), 0 1px 4px rgba(0, 0, 0, .3); }
.emoji-marker.pet-pin-found span { box-shadow: 0 0 0 3px var(--green), 0 1px 4px rgba(0, 0, 0, .3); }
.emoji-marker.pet-pin-sighting span { background: #fff4d6; width: 28px; height: 28px; font-size: 15px; }
.emoji-marker.pet-pin-reunited, .emoji-marker.pet-pin-closed { opacity: .55; }

/* report page */
.pet-full .pet-badges { margin-bottom: 0; }
.pet-gallery { margin: 12px -16px; background: #000; }
.pet-gallery-main { display: block; width: 100%; max-height: 520px; object-fit: contain; }
.pet-gallery-thumbs { display: flex; gap: 6px; padding: 6px; overflow-x: auto; background: var(--card); border-bottom: 1px solid var(--divider); }
.pet-gallery-thumbs button { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--input); }
.pet-gallery-thumbs button.on { border-color: var(--brand); }
.pet-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pet-nophoto { display: flex; align-items: center; justify-content: center; height: 180px; margin: 12px 0; border-radius: 8px; background: var(--input); font-size: 5rem; }
.pet-cta { background: var(--brand-soft); box-shadow: none; margin: 12px 0 0; }
.pet-cta p { margin: 0 0 8px; }
.pet-owner h2, .pet-matches h2, .pet-sightings h2 { font-size: 1.0625rem; }
.pet-status-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pet-match { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; }
.pet-match:hover { background: var(--hover); }
.pet-match-main { flex: 1; min-width: 0; }
.pet-score { flex: none; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 4px 10px; font-size: .875rem; }
.pet-sighting { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--divider); }
.pet-sighting:last-of-type { border-bottom: 0; }
.pet-sighting.removed { opacity: .5; }
.pet-sighting-num {
    flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
    border-radius: 50%; background: var(--warning-soft); font-weight: 700; font-size: .875rem;
}
.pet-sighting-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pet-sighting-main .comment-tools { padding: 2px 0; }
.pet-sighting-photo { display: block; max-width: 100%; max-height: 260px; border-radius: 8px; margin-top: 6px; }
.pet-sighting-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--divider); }
.pet-sighting-form h3 { margin: 0; }
.pet-sighting-form p { margin: 0; }
.pet-previews { display: flex; gap: 8px; flex-wrap: wrap; }
.pet-previews:empty { display: none; }
.pet-previews img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.pet-privacy { padding: 12px; border: 1px solid var(--divider); border-radius: 8px; }
.pet-privacy legend { float: left; margin-bottom: 4px; }

/* sharing */
.pet-share h3 { margin-bottom: 4px; }
.pet-share p { margin: 0 0 8px; }
.pet-share-row { display: flex; gap: 6px; }
.pet-share-row input { font-size: .8125rem; padding: 6px 10px; }
.pet-qr { display: flex; justify-content: center; margin: 12px auto; width: 180px; max-width: 100%; background: #fff; border-radius: 8px; padding: 6px; }
.pet-qr svg { width: 100%; height: auto; display: block; }
.pet-share-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 6px; }

@media (max-width: 640px) {
    .pet-head { flex-direction: column; }
    .pet-thumb { width: 84px; height: 84px; }
    .pet-filters .pet-area { flex: 1 1 140px; }
    .map-lg { height: 400px; }
}

/* printable poster */
.pet-poster { display: none; }
@media print {
    body { background: #fff; color: #000; }
    .topbar, .footer, .flash, .no-print, .theme-float, main > .post-layout, main > p { display: none !important; }
    .pet-poster { display: block; text-align: center; font-size: 14pt; }
    .pet-poster h1 { font-size: 48pt; margin: 0; color: #c00; }
    .pet-poster h2 { font-size: 28pt; margin: 4pt 0 12pt; }
    .pet-poster img { max-width: 100%; max-height: 9cm; object-fit: contain; }
    .pet-poster-contact { font-size: 22pt; font-weight: 700; }
    .pet-qr-print { width: 5cm; margin: 12pt auto 4pt; }
}

/* ---------- marketplace ---------- */
.mk-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.mk-head-actions .icon { width: 16px; height: 16px; }
.mk-filters .btn .icon { width: 16px; height: 16px; }
.mk-more { flex: 1 1 100%; }
.mk-more > summary { cursor: pointer; font-weight: 600; color: var(--muted); padding: 4px 6px; width: max-content; border-radius: 6px; }
.mk-more > summary:hover { background: var(--hover); }
.mk-more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px 12px; padding: 8px 4px 4px; align-items: end; }
.mk-more-grid label { display: flex; flex-direction: column; gap: 4px; font-size: .875rem; font-weight: 600; color: var(--muted); }
.mk-more-grid label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); padding-bottom: 8px; }
.mk-more-grid select, .mk-more-grid input[type=number] { width: 100%; background: var(--input); border-color: transparent; }
.mk-more-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 4px; }
.mk-resultbar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mk-resultbar .spacer { flex: 1; }
.mk-resultbar .tabs { margin: 0; padding: 0; }

.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.mk-grid .mk-card { margin: 0; }
.mk-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.mk-card.is-sold { opacity: .7; }
.mk-thumb {
    position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1;
    background: var(--input); overflow: hidden;
}
.mk-thumb:hover { text-decoration: none; }
.mk-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.mk-card:hover .mk-thumb img { transform: scale(1.03); }
.mk-thumb-emoji { font-size: 3.5rem; }
.mk-ribbon {
    position: absolute; top: 8px; left: 8px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700;
    color: #fff; background: rgba(0, 0, 0, .7);
}
.mk-ribbon-sold { background: var(--danger); }
.mk-ribbon-reserved { background: #b7791f; }
.mk-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mk-price { font-weight: 700; font-size: 1.0625rem; color: var(--text); }
.mk-price small { font-weight: 600; font-size: .8125rem; }
.mk-price-lg { font-size: 1.5rem; margin: 0 0 4px; }
.mk-title { margin: 0; font-size: .9375rem; font-weight: 600; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mk-title a { color: var(--text); }
.mk-sub { margin: 0; color: var(--muted); font-size: .8125rem; }
.mk-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: .75rem; }
.mk-badges .sub-tag { font-size: .75rem; padding: 2px 8px; }
.mk-warn { color: #9a6b00; font-weight: 600; }

.mk-type, .mk-status { padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: .75rem; }
.mk-type { background: var(--brand-soft); color: var(--brand); }
.mk-type-free { background: #e9f8e6; color: #1c6b10; }
.mk-type-buy { background: rgba(123, 97, 255, .12); color: var(--c-event); }
.mk-status-available { background: #e9f8e6; color: #1c6b10; }
.mk-status-reserved { background: var(--warning-soft); color: #9a6b00; }
.mk-status-sold { background: var(--danger); color: #fff; }
:root[data-theme="dark"] .mk-type-free, :root[data-theme="dark"] .mk-status-available { background: #1f3a1b; color: #a6e19a; }
:root[data-theme="dark"] .mk-status-reserved, :root[data-theme="dark"] .mk-warn { color: #f0cb6b; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .mk-type-free, :root:not([data-theme="light"]) .mk-status-available { background: #1f3a1b; color: #a6e19a; }
    :root:not([data-theme="light"]) .mk-status-reserved, :root:not([data-theme="light"]) .mk-warn { color: #f0cb6b; }
}

.mk-full .mk-gallery { margin-top: -16px; }
.mk-full .mk-badges { margin-bottom: 2px; }
.mk-nophoto { height: 220px; }
.mk-section-title { font-size: 1.0625rem; margin: 16px 0 0; }
.mk-manage h2, .mk-seller h2 { font-size: 1.0625rem; margin-top: 0; }
.mk-manage > p { margin: 0 0 6px; }
.mk-status-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.mk-seller-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mk-seller-row a { color: var(--text); }
.mk-contact { display: flex; flex-direction: column; gap: 8px; }
.mk-contact .btn { justify-content: center; width: 100%; }
.mk-contact-call { background: var(--brand); color: #fff; }
.mk-contact-whatsapp { background: #25d366; color: #fff; }
.mk-contact-call:hover, .mk-contact-whatsapp:hover { filter: brightness(.95); text-decoration: none; }
.mk-sold-note { margin: 0; padding: 10px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-weight: 600; text-align: center; }
.mk-tips ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.mk-tips h3 { margin: 0; }
.mk-similar h2 { font-size: 1.125rem; margin: 20px 0 10px; }

.mk-edit-photos { display: flex; gap: 10px; flex-wrap: wrap; }
.mk-edit-photo { display: flex; flex-direction: column; gap: 4px; width: 96px; font-size: .8125rem; }
.mk-edit-photo img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; }
.mk-edit-photo .check { display: flex; align-items: center; gap: 4px; }
.mk-negotiable { align-self: end; padding-bottom: 10px; }
.mk-contact-fields > p { margin: 0 0 8px; }

.emoji-marker.mk-pin-reserved span { box-shadow: 0 0 0 3px #b7791f, 0 1px 4px rgba(0, 0, 0, .3); }
.emoji-marker.mk-pin-sold { opacity: .55; }

@media (max-width: 640px) {
    .mk-head { flex-direction: column; }
    .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .mk-thumb-emoji { font-size: 2.5rem; }
    .mk-price-lg { font-size: 1.25rem; }
}

/* ---------- utility outage tracker ---------- */
.outage-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.outage-list { display: flex; flex-direction: column; }
.outage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 16px; }
.outage-card { display: flex; gap: 12px; padding: 12px; border-left: 4px solid var(--c-alert); }
.outage-card.outage-electricity, .outage-full.outage-electricity { border-left-color: #e8a200; }
.outage-card.outage-water, .outage-full.outage-water { border-left-color: #1877f2; }
.outage-card.outage-gas, .outage-full.outage-gas { border-left-color: #e4572e; }
.outage-card.outage-internet, .outage-full.outage-internet { border-left-color: #7b61ff; }
.outage-card.is-restored { opacity: .75; }
.outage-card-body { flex: 1; min-width: 0; }
.outage-card .post-title { margin: 4px 0 2px; }
.outage-card .post-sub { margin: 0 0 4px; }
.outage-thumb {
    flex: none; display: flex; align-items: center; justify-content: center; width: 88px; height: 88px;
    border-radius: 8px; overflow: hidden; background: var(--input);
}
.outage-thumb:hover { text-decoration: none; }
.outage-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.outage-thumb-emoji { font-size: 2.6rem; }
.outage-counts { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; color: var(--muted); }
.outage-eta { color: var(--text); font-weight: 600; }
.outage-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: .8125rem; }
.outage-util, .outage-status {
    display: inline-flex; align-items: center; gap: 3px; padding: 3px 10px; border-radius: 999px; font-weight: 700;
    font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
}
.outage-util { background: var(--divider); color: var(--text); }
.outage-status-reported { background: var(--danger-soft); color: var(--danger); }
.outage-status-confirmed { background: var(--warning-soft); color: #9a6b00; }
.outage-status-repairing { background: var(--brand-soft); color: var(--brand); }
.outage-status-restored { background: #e9f8e6; color: #1c6b10; }
:root[data-theme="dark"] .outage-status-confirmed { color: #f0cb6b; }
:root[data-theme="dark"] .outage-status-restored { background: #1f3a1b; color: #a6e19a; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .outage-status-confirmed { color: #f0cb6b; }
    :root:not([data-theme="light"]) .outage-status-restored { background: #1f3a1b; color: #a6e19a; }
}

/* map pins */
.emoji-marker.outage-pin-reported span { box-shadow: 0 0 0 3px var(--danger), 0 1px 4px rgba(0, 0, 0, .3); }
.emoji-marker.outage-pin-confirmed span { box-shadow: 0 0 0 3px #e8a200, 0 1px 4px rgba(0, 0, 0, .3); }
.emoji-marker.outage-pin-repairing span { box-shadow: 0 0 0 3px var(--brand), 0 1px 4px rgba(0, 0, 0, .3); }
.emoji-marker.outage-pin-restored { opacity: .55; }
.emoji-marker.outage-pin-report span { width: 24px; height: 24px; font-size: 13px; background: var(--warning-soft); }

/* incident page */
.outage-full { border-left: 4px solid var(--c-alert); }
.outage-full .post-title { margin: 8px 0; }
.outage-steps { display: flex; gap: 4px; list-style: none; padding: 0; margin: 8px 0 4px; counter-reset: none; }
.outage-steps li {
    flex: 1; text-align: center; padding: 6px 4px; border-radius: 6px; background: var(--input);
    color: var(--muted); font-size: .8125rem; font-weight: 600;
}
.outage-steps li.done { background: var(--brand-soft); color: var(--brand); }
.outage-steps li.current { background: var(--brand); color: #fff; }
.outage-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.outage-manage h2, .outage-timeline h2, .outage-reports h2 { font-size: 1.0625rem; margin-top: 0; }
.outage-manage-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.outage-eta-form { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; margin-bottom: 10px; }
.outage-eta-form label { flex: 0 1 260px; }
.outage-update-form { padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--divider); }
.outage-feed { list-style: none; margin: 0; padding: 0; }
.outage-feed-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--divider); }
.outage-feed-item:last-child { border-bottom: 0; }
.outage-feed-item.removed { opacity: .5; }
.outage-feed-item > div { flex: 1; min-width: 0; }
.outage-feed-ic {
    flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
    border-radius: 50%; background: var(--input);
}
.outage-feed-sys strong { margin-right: 6px; }
.outage-feed-item .comment-tools { padding: 2px 0 0; }
.outage-report { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--divider); }
.outage-report:last-child { border-bottom: 0; }
.outage-report.removed { opacity: .5; }
.outage-report-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.outage-photos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.outage-photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; display: block; }
.report-box.inline { display: inline-block; }

/* report form */
.outage-util-picker { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.outage-anon { align-self: end; padding-bottom: 10px; }
.outage-dupes h2 { font-size: 1.0625rem; margin: 0; }
.outage-dupes > p { margin: 2px 0 8px; }
.outage-dupe { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; }
.outage-dupe:hover { background: var(--hover); }
.outage-dupe-ic { font-size: 1.6rem; flex: none; }
.outage-dupe-main { flex: 1; min-width: 0; }

/* statistics */
.outage-stats { flex-wrap: wrap; }
.outage-bar { display: block; height: 6px; margin-top: 4px; border-radius: 3px; background: var(--divider); position: relative; overflow: hidden; }
.outage-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--c); border-radius: 3px; }
.outage-areas { margin: 6px 0 16px; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.outage-areas .muted { margin-left: 6px; font-size: .875rem; }

@media (max-width: 640px) {
    .outage-head { flex-direction: column; }
    .outage-thumb { width: 64px; height: 64px; }
    .outage-steps li { font-size: .6875rem; }
}
