:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --border: #dfe7f2;
  --text: #1b2430;
  --muted: #6f7a89;
  --primary: #1c6dff;
  --primary-dark: #1258d6;
  --warning: #ffcd57;
  --success: #1aaa60;
  --danger: #d64545;
  --shadow: 0 16px 40px rgba(31, 61, 120, 0.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Inter, system-ui, sans-serif; background: var(--bg); color: var(--text); }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.container { max-width: 1480px; margin: 0 auto; padding: 0 24px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-shell { padding: 14px 0; display: grid; gap: 12px; }
.header-row { display: grid; grid-template-columns: auto minmax(320px, 1fr) auto; align-items: center; gap: 18px; }
.header-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.brand { font-weight: 800; font-size: 28px; letter-spacing: -0.04em; white-space: nowrap; }
.brand span { color: var(--text); }
.brand { color: var(--primary); }
.mobile-header-auth-btn { display: none !important; }
.header-logout-btn { width: auto; min-width: 0; flex: 0 0 auto; }
.top-search { min-width: 0; width: 100%; display: grid; grid-template-columns: minmax(180px, 1fr) 160px auto; gap: 12px; }
.top-search input { height: 48px; border-radius: 18px; border: 1px solid var(--border); background: #fff; padding: 0 18px; font-size: 16px; }
.city-fixed { height: 48px; display: inline-flex; align-items: center; border-radius: 18px; border: 1px solid var(--border); background: #fff; padding: 0 18px; font-size: 16px; color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; justify-content: flex-end; min-width: 0; }
.header-actions .btn { flex: 0 0 auto; white-space: nowrap; padding: 0 16px; }
.header-actions-inline:empty { display: none; }
.header-actions-auth {
  justify-content: flex-start;
  overflow-x: auto;
  padding-bottom: 4px;
}
.mode-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 96px; height: 48px; padding: 0 18px; background: #fff; border-radius: 16px; border: 1px solid var(--border); font-weight: 600; }
.mode-chip.active { background: var(--primary); color: #fff; border-color: transparent; box-shadow: var(--shadow); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 16px; border: 1px solid transparent; font-weight: 600; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-light { background: #fff; border-color: var(--border); color: var(--primary); }
.btn-warning { background: var(--warning); color: #3e2e00; }
.btn-danger { background: var(--danger); color: #fff; }
.btn.full { width: 100%; }
.page-shell { padding-top: 24px; padding-bottom: 36px; }
.layout-grid { display: grid; grid-template-columns: 310px minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.sidebar { position: sticky; top: 110px; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 28px; padding: 20px; box-shadow: var(--shadow); }
.panel.compact { padding: 14px; }
.panel + .panel { margin-top: 18px; }
.panel-title, .section-title { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.section-title { margin: 8px 0 16px; }
.tag-list { display: grid; gap: 10px; }
.tag-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 16px; background: #f8fbff; border: 1px solid transparent; }
.tag-row.active, .tag-row:hover { border-color: #bfceea; background: #eef4ff; }
.tag-row strong { color: var(--muted); }
.muted { color: var(--muted); }
.text-link { display: inline-block; margin-top: 10px; color: var(--primary); font-weight: 600; }
.filter-option { display: block; padding: 12px 14px; border-radius: 16px; color: var(--muted); }
.filter-option.active { background: #eef4ff; color: var(--primary); font-weight: 600; }
.toolbar { display: flex; align-items: center; gap: 12px; }
.inline-search { flex: 1; display: flex; gap: 12px; }
.inline-search input { flex: 1; height: 48px; border-radius: 16px; border: 1px solid var(--border); padding: 0 16px; }
.listing-stack { display: grid; gap: 16px; }
.content { min-width: 0; }
.mobile-home-create { display: none !important; }
.mobile-home-bottom-bar { display: none !important; }
.listing-card { display: grid; grid-template-columns: 160px minmax(0,1fr) 190px; gap: 18px; align-items: center; background: var(--panel); border: 1px solid var(--border); border-radius: 28px; padding: 18px; box-shadow: var(--shadow); }
.thumb-wrap img, .thumb-placeholder { width: 160px; height: 120px; object-fit: cover; border-radius: 20px; background: #edf1f6; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.thumb-placeholder.large { width: 100%; height: 440px; border-radius: 24px; }
.listing-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.pill { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 14px; background: #fff3cf; color: #a26b00; border-radius: 999px; font-weight: 600; }
.time { color: var(--muted); white-space: nowrap; }
.listing-main h3, .detail-card h1 { margin: 0 0 10px; font-size: 20px; line-height: 1.25; }
.meta { color: #5a6576; margin-bottom: 8px; }
.reward { color: var(--success); font-weight: 600; }
.listing-submeta { color: var(--muted); font-size: 14px; margin-top: 10px; }
.listing-actions { display: flex; justify-content: flex-end; }
.listing-actions.stack { flex-direction: column; gap: 10px; align-items: stretch; }
.listing-actions.stack > form { width: 100%; margin: 0; }
.listing-actions.stack > form .btn { width: 100%; }
.map-box { height: 390px; border-radius: 24px; overflow: hidden; margin-bottom: 14px; }
.banner-card { background: linear-gradient(180deg, #0f6df8 0%, #4c9eff 100%); color: #fff; }
.banner-card .banner-badge { font-size: 14px; opacity: .9; margin-bottom: 10px; }
.banner-card h3 { margin: 0 0 10px; font-size: 34px; line-height: 1.05; }
.banner-card p { margin: 0 0 18px; opacity: .95; }
.help-card { display: grid; gap: 14px; }
.help-card-mobile { display: none; }
.help-card p { margin: 0; line-height: 1.6; }
.help-link { display: block; margin-top: 0; line-height: 1.5; }
.help-socials-wrap {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  width: 100% !important;
}
.help-socials {
  display: flex;
  width: 240px;
  flex-wrap: nowrap;
  padding-top: 2px;
  justify-content: space-between;
  margin: 0;
}
.help-social {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 84px;
  height: 84px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #f3f7ff;
  color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.help-social:hover,
.help-social:focus {
  box-shadow: 0 8px 18px rgba(31, 61, 120, 0.12);
}
.help-social:hover,
.help-social:focus {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(31, 61, 120, 0.12);
}
.help-social svg {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  flex: 0 0 42px !important;
  display: block;
  fill: currentColor;
}
.help-social-vk { color: #1f3b7a; background: #eef3ff; border-color: #d8e3ff; }
.help-social-vk:hover,
.help-social-vk:focus { background: #e4ecff; border-color: #c9d8ff; }
.help-social-telegram { color: #36aeea; background: #eefaff; border-color: #d4effb; }
.help-social-telegram:hover,
.help-social-telegram:focus { background: #e2f7ff; border-color: #bfe7fb; }
.help-shell { max-width: 900px; margin: 0 auto; }
.help-page-card h1 { margin: 0 0 22px; }
.help-links-list { display: grid; gap: 14px; }
.help-links-item { display: block; }
.help-page-link { display: inline-block; margin: 0; color: #2f6cf6 !important; font-size: 18px; font-weight: 600; line-height: 1.5; text-decoration: none; cursor: pointer; }
.help-page-link:visited { color: #2f6cf6 !important; }
.help-page-link:hover,
.help-page-link:focus { color: #1c5ae0 !important; text-decoration: underline; }
.help-section h2 { margin: 0 0 18px; font-size: 28px; line-height: 1.2; }
.help-rule-list { display: grid; gap: 14px; }
.help-rule-item { padding: 16px 18px; border-radius: 20px; background: #f8fbff; border: 1px solid var(--border); }
.help-rule-item strong { display: block; margin-bottom: 8px; font-size: 17px; }
.help-rule-item p { margin: 0; line-height: 1.65; color: #445163; }
.flash-stack { display: grid; gap: 10px; margin-bottom: 16px; }
.flash { padding: 14px 18px; border-radius: 16px; }
.flash-success { background: #ecfff4; color: #176a41; border: 1px solid #b9ebcd; }
.flash-danger { background: #fff1f1; color: #943737; border: 1px solid #efc8c8; }
.flash-warning { background: #fff8e1; color: #8a5a00; border: 1px solid #f2df9b; }
.auth-shell { display: flex; justify-content: center; }
.auth-card { width: min(100%, 520px); }
.auth-card.wide { width: min(100%, 960px); }
.auth-card h1 { margin-top: 0; margin-bottom: 18px; }
.auth-card label { display: grid; gap: 8px; margin-bottom: 16px; font-weight: 600; }
.auth-card input, .auth-card select, .auth-card textarea { width: 100%; border-radius: 16px; border: 1px solid var(--border); padding: 14px 16px; font: inherit; }
.auth-helper { line-height: 1.6; margin: -4px 0 16px; }
.auth-consent { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 16px; }
.auth-consent > input { flex: 0 0 auto; width: 20px !important; height: 20px; margin: 4px 0 0; padding: 0; }
.auth-card label.auth-consent-label { display: block; flex: 1 1 auto; margin: 0; font-weight: 500; line-height: 1.6; }
.auth-consent-label a { color: var(--primary); }
.auth-page .site-header { position: static; }
.auth-page .header-shell { gap: 0; }
.auth-page .header-row { grid-template-columns: 1fr; }
.auth-page .header-brand-row { justify-content: flex-start; }
.auth-page .top-search,
.auth-page .header-actions,
.auth-page .mobile-header-auth-btn { display: none !important; }
.auth-page .page-shell { padding-top: 40px; }
.auth-page .auth-shell { margin-top: 8px; }
.verification-code-input { letter-spacing: 0.35em; text-align: center; font-size: 24px; font-weight: 700; }
.profile-meta { display: grid; gap: 8px; margin-bottom: 18px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 20px; background: #f8fbff; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.location-picker { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: 24px; background: linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%); }
.location-picker__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.location-picker__hint { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); font-weight: 500; }
.location-picker__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.location-picker__search { margin-bottom: 0; }
.location-autocomplete { position: relative; }
.location-suggestions { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 20; display: grid; gap: 6px; padding: 8px; border: 1px solid var(--border); border-radius: 18px; background: rgba(255,255,255,0.98); box-shadow: var(--shadow); max-height: 260px; overflow: auto; }
.location-suggestions__item { width: 100%; border: 0; background: #f7faff; color: var(--text); border-radius: 14px; padding: 12px 14px; text-align: left; cursor: pointer; font: inherit; }
.location-suggestions__item:hover { background: #eaf2ff; }
.location-picker__status { display: flex; align-items: center; min-height: 54px; padding: 0 16px; border-radius: 16px; background: #fff; border: 1px solid var(--border); color: var(--muted); font-size: 14px; font-weight: 600; }
.location-picker__status[data-tone="success"] { color: #176a41; background: #ecfff4; border-color: #b9ebcd; }
.location-picker__status[data-tone="warning"] { color: #8a5a00; background: #fff8e1; border-color: #f2df9b; }
.location-map { height: 360px; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); background: #dde7f5; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.detail-main { display: grid; gap: 18px; }
.detail-cover { width: 100%; height: 460px; object-fit: cover; border-radius: 24px; }
.thumb-strip { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.thumb-strip img { width: 120px; height: 90px; object-fit: cover; border-radius: 16px; }
.detail-description { line-height: 1.7; color: #364152; }
.contact-box { margin: 18px 0; padding: 16px; border-radius: 20px; background: #f7fbff; border: 1px solid var(--border); }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mini-card { display: grid; grid-template-columns: 86px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mini-card:last-child { border-bottom: 0; }
.mini-card img { width: 86px; height: 66px; object-fit: cover; border-radius: 14px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat-card { display: grid; gap: 8px; }
.stat-card strong { font-size: 34px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.admin-form { display: flex; gap: 12px; }
.admin-form.stack { flex-direction: column; }
.admin-form input { height: 46px; border: 1px solid var(--border); border-radius: 14px; padding: 0 14px; }
.table-wrap { overflow: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.banner-admin-list { display: grid; gap: 12px; }
.banner-admin-item { display: grid; gap: 4px; padding: 14px; border-radius: 16px; background: #f8fbff; }
.admin-actions-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination-wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.pagination-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-chip { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; border: 1px solid var(--border); background: #fff; }
.page-chip.active { background: var(--primary); color: #fff; border-color: transparent; }
.page-gap { color: var(--muted); padding: 0 6px; }
.collection-shell { display: grid; gap: 16px; }
.existing-images { display: grid; gap: 12px; }
.field-title { font-weight: 700; }
.image-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.image-check { display: grid; gap: 8px; padding: 12px; border-radius: 18px; border: 1px solid var(--border); background: #f8fbff; }
.image-check img { width: 100%; height: 140px; object-fit: cover; border-radius: 14px; }
.image-check span { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.image-check input { width: auto; }
.chat-layout { grid-template-columns: minmax(0, 1fr) 300px; }
.chat-main { gap: 16px; }
.chat-inbox { display: grid; gap: 14px; padding: 18px; }
.chat-thread-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 22px; border: 1px solid var(--border); border-radius: 22px; background: #fbfdff; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.chat-thread-card:hover { border-color: #bfd1ef; transform: translateY(-1px); box-shadow: var(--shadow); }
.chat-thread-card__main { min-width: 0; display: grid; gap: 8px; }
.chat-thread-card__title { display: block; font-size: 28px; line-height: 1.15; letter-spacing: -0.03em; }
.chat-thread-card__subject { color: #4c596b; font-size: 21px; line-height: 1.45; overflow-wrap: anywhere; }
.chat-thread-card__meta { flex: 0 0 auto; color: var(--muted); font-size: 15px; line-height: 1.4; white-space: nowrap; padding-top: 4px; }
.chat-thread-hero { display: grid; gap: 10px; }
.chat-thread-hero__subject { font-size: 20px; line-height: 1.5; color: #435164; }
.chat-thread-hero__meta { color: var(--muted); font-size: 15px; line-height: 1.45; }
.chat-message-list { display: grid; gap: 0; padding: 10px 18px; }
.chat-message { display: grid; gap: 12px; padding: 22px 0; }
.chat-message__header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.chat-message__author { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.chat-message__time { color: var(--muted); font-size: 14px; line-height: 1.4; }
.chat-message__body { max-width: 46rem; font-size: 20px; line-height: 1.65; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message-divider { height: 1px; background: var(--border); }
.chat-compose { gap: 14px; }
.chat-compose__field { display: grid; gap: 10px; font-weight: 700; }
.chat-compose textarea { min-height: 150px; line-height: 1.6; resize: vertical; }
.chat-side-card { display: grid; gap: 14px; }
@media (min-width: 981px) {
  .site-header .container { padding-left: 30px; padding-right: 30px; }
}
@media (max-width: 1280px) {
  .header-shell { padding: 16px 0; }
  .header-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 0 14px; }
  .top-search { grid-template-columns: minmax(140px, 1fr) 140px auto; }
  .layout-grid { grid-template-columns: 280px minmax(0,1fr); }
  .right-sidebar { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 980px) {
  .container { padding: 0 16px; }
  .site-header { position: static; }
  .header-shell { padding: 14px 0 16px; }
  .header-row { grid-template-columns: 1fr; min-height: auto; }
  .header-brand-row { width: 100%; }
  .top-search { grid-template-columns: 1fr 1fr; width: 100%; }
  .top-search input { grid-column: 1 / -1; }
  .header-actions { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; margin: 0 -4px; }
  .header-actions .btn { min-width: max-content; }
  .left-sidebar { order: 3; }
  .content { order: 1; }
  .right-sidebar { order: 2; }
  .layout-grid, .detail-layout, .admin-grid, .stats-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .inline-search { width: 100%; }
  .listing-card { grid-template-columns: 1fr; padding: 16px; border-radius: 24px; }
  .thumb-wrap img, .thumb-placeholder { width: 100%; height: 220px; border-radius: 18px; }
  .listing-top { flex-wrap: wrap; }
  .listing-actions { justify-content: flex-start; }
  .listing-actions.stack { width: 100%; }
  .listing-actions.stack .btn { width: 100%; }
  .panel { padding: 16px; border-radius: 24px; }
  .panel.compact { padding: 14px; }
  .page-shell { padding-top: 16px; padding-bottom: 28px; }
  .form-grid, .image-grid, .location-picker__grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
  .form-actions .btn,
  .form-actions form,
  .detail-actions .btn,
  .detail-actions form,
  .admin-form .btn,
  .chat-compose .btn { width: 100%; }
  .detail-cover,
  .thumb-placeholder.large { height: 280px; border-radius: 20px; }
  .thumb-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .thumb-strip img { width: 100%; height: 88px; }
  .detail-actions { flex-direction: column; }
  .mini-card { grid-template-columns: 72px 1fr; gap: 10px; }
  .mini-card img { width: 72px; height: 56px; }
  .admin-form { flex-direction: column; }
  .admin-form input { width: 100%; }
  .admin-actions-inline { flex-direction: column; align-items: stretch; }
  .admin-actions-inline .btn,
  .admin-actions-inline form,
  .admin-actions-inline form .btn { width: 100%; }
  .pagination-wrap { flex-direction: column; align-items: flex-start; }
  .pagination-links { width: 100%; }
  .chat-thread-card { flex-direction: column; }
  .chat-thread-card__title { font-size: 22px; }
  .chat-thread-card__subject { font-size: 18px; }
  .chat-thread-card__meta { white-space: normal; padding-top: 0; }
  .chat-message-list { padding: 4px 14px; }
  .chat-message { padding: 18px 0; }
  .chat-message__author { font-size: 20px; }
  .chat-message__body { font-size: 18px; line-height: 1.6; max-width: none; }
  .map-box,
  .location-map { height: 300px; }
  .right-sidebar { display: grid; grid-template-columns: 1fr; gap: 18px; }
  .home-page.is-guest .header-create-btn { display: none; }
  .help-card-desktop { display: none; }
  .help-card-mobile {
    display: grid;
    margin-top: 18px;
    margin-bottom: 124px;
  }
  .home-page .toolbar { gap: 14px; padding: 16px; }
  .home-page .mode-chip { min-width: 0; }
  .home-page.is-guest .inline-search { display: none; }
  .home-page.is-authenticated .inline-search { display: none; }
  .home-page .toolbar .mode-chip { display: none; }
  .home-page .toolbar { display: none; }
  .auth-page .header-shell {
    display: flex;
    align-items: center;
    min-height: 76px;
    padding: 0;
  }
  .auth-page .header-row { width: 100%; }
  .auth-page .header-brand-row {
    min-height: 76px;
    align-items: center;
  }
  .auth-page .page-shell { padding-top: 18px; }
  .auth-page .auth-shell { margin-top: 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 12px; }
  .brand { font-size: 24px; }
  .header-brand-row { gap: 10px; }
  .mobile-header-auth-btn {
    display: inline-flex !important;
    width: auto;
    min-width: 0;
    max-width: none;
    flex: 0 0 auto;
  }
  .is-guest .header-actions .header-auth-btn { display: none; }
  .top-search { grid-template-columns: 1fr; gap: 10px; }
  .top-search input,
  .city-fixed,
  .top-search .btn { width: 100%; }
  .header-actions { gap: 8px; }
  .header-actions .btn { height: 44px; padding: 0 14px; border-radius: 14px; }
  .mobile-header-auth-btn {
    height: 40px;
    width: auto;
    min-width: 0;
    max-width: none;
    flex: 0 0 auto;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 14px;
    white-space: nowrap;
  }
  .header-logout-btn {
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 14px;
    white-space: nowrap;
  }
  .btn { width: 100%; }
  .header-brand-row .btn { width: auto; }
  .toolbar { gap: 10px; }
  .mode-chip { width: 100%; }
  .inline-search { flex-direction: column; }
  .panel-title, .section-title { font-size: 18px; margin-bottom: 14px; }
  .listing-main h3, .detail-card h1 { font-size: 24px; }
  .meta, .detail-description, .contact-box, .listing-submeta { font-size: 15px; }
  .reward { font-size: 15px; }
  .pill { font-size: 13px; }
  .thumb-wrap img, .thumb-placeholder { height: 190px; }
  .detail-cover,
  .thumb-placeholder.large { height: 220px; }
  .thumb-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thumb-strip img { height: 80px; }
  .location-picker { padding: 14px; }
  .location-map,
  .map-box { height: 240px; border-radius: 18px; }
  .chat-thread-card { padding: 16px; }
  .chat-thread-card__title { font-size: 20px; }
  .chat-thread-card__subject { font-size: 16px; line-height: 1.5; }
  .chat-message__author { font-size: 18px; }
  .chat-message__body { font-size: 16px; line-height: 1.55; }
  .stats-grid { grid-template-columns: 1fr; }
  .page-chip { min-width: 38px; height: 38px; border-radius: 12px; }
  .auth-page .header-shell {
    display: flex;
    align-items: center;
    min-height: 72px;
    padding: 0;
  }
  .auth-page .header-row { width: 100%; }
  .auth-page .header-brand-row {
    min-height: 72px;
    align-items: center;
  }
  .auth-page .page-shell { padding-top: 14px; }
  .auth-page .auth-shell { margin-top: 0; }
  .home-page .toolbar { padding: 14px; }
  .home-page .mobile-home-bottom-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    display: grid !important;
    gap: 7px;
    padding: 7px;
    border: 1px solid rgba(223, 231, 242, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(20, 43, 83, 0.16);
    backdrop-filter: blur(18px);
  }
  .home-page .mobile-home-mode-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: #eef3fb;
  }
  .home-page .mobile-home-mode-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    color: var(--muted);
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
  }
  .home-page .mobile-home-mode-option.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 24px rgba(28, 109, 255, 0.28);
  }
  .home-page .mobile-home-create {
    display: inline-flex !important;
    min-width: 100%;
    height: 38px;
    font-size: 13px;
  }
  .home-page .left-sidebar { padding-bottom: 0; }
  .home-page .content { padding-bottom: 0; }
}
