:root {
  --oat:#f7ead0;
  --oat-soft:#fffaf0;
  --straw:#f3c251;
  --gold:#d99012;
  --gold-dark:#9a5a09;
  --brown:#3b210d;
  --brown-soft:#6f451c;
  --line:#ead9b8;
  --line-strong:#d8bc7a;
  --paper:#fffdf7;
  --surface:#ffffff;
  --text:#20170f;
  --muted:#735f48;
  --shadow:0 10px 26px rgba(59,33,13,.08);
}
* { box-sizing:border-box; }
html { min-height:100%; overflow-y:scroll; scrollbar-gutter:stable; background:#f8f1e4; }
body { min-height:100vh; margin:0; display:flex; flex-direction:column; color:var(--text); background:linear-gradient(180deg,#fffaf0 0,#f8f1e4 220px,#fffdf7 100%); font-family:Arial, Helvetica, sans-serif; font-size:15px; line-height:1.35; }
a { color:#704008; text-decoration:none; }
a:hover { color:#4a2a10; text-decoration:underline; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.topbar { flex:0 0 auto; background:rgba(255,253,247,.96); border-bottom:1px solid var(--line); box-shadow:0 2px 10px rgba(59,33,13,.04); }
.topbar-inner { max-width:1180px; min-height:72px; margin:0 auto; padding:8px 22px; display:flex; align-items:center; justify-content:space-between; gap:20px; min-width:0; }
.brand-logo-link { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; line-height:0; text-decoration:none; border-radius:8px; }
.brand-logo-link:hover { text-decoration:none; }
.brand-logo-link:focus-visible { outline:2px solid var(--gold-dark); outline-offset:4px; }
.brand-header-logo { display:block; width:auto; height:56px; max-height:56px; background:transparent; filter:none; }
.topbar nav { display:flex; align-items:center; justify-content:flex-end; gap:12px; flex-wrap:nowrap; white-space:nowrap; min-width:0; overflow:visible; }
.topbar nav a, .topbar nav button, .button { display:inline-flex; align-items:center; justify-content:center; min-height:34px; max-width:160px; padding:6px 8px; color:var(--brown); background:transparent; border:0; border-radius:7px; font-size:13px; font-weight:700; cursor:pointer; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.topbar nav a:hover, .topbar nav button:hover { background:#fff3d3; text-decoration:none; }
.topbar nav .post, .button { min-height:36px; padding:7px 13px; background:var(--gold); color:#fff; border:1px solid #b87518; border-radius:8px; box-shadow:none; }
.topbar nav .post:hover, .button:hover { background:#bf760d; color:#fff; }
.lang-switch { display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:8px; overflow:hidden; background:#fff; }
.lang-switch a { min-height:30px; padding:6px 8px; font-size:12px; font-weight:800; border-left:1px solid var(--line); border-radius:0; }
.lang-switch a:first-child { border-left:0; }
.lang-switch a[aria-current="true"] { background:#fff3d3; color:var(--brown); }
.topbar nav .user { min-width:0; max-width:140px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--brown); font-weight:700; }
.topbar nav form { margin:0; }
.account-menu { position:relative; flex:0 0 auto; }
.account-menu summary { display:inline-flex; align-items:center; min-height:34px; padding:6px 9px; border:1px solid var(--line); border-radius:8px; color:var(--brown); background:#fff; font-size:13px; font-weight:800; cursor:pointer; list-style:none; }
.account-menu summary::-webkit-details-marker { display:none; }
.account-menu summary::after { content:'▾'; margin-left:6px; font-size:10px; color:var(--muted); }
.account-menu[open] summary { background:#fff3d3; border-color:var(--gold); }
.account-dropdown { position:absolute; z-index:20; top:calc(100% + 8px); right:0; display:grid; gap:2px; min-width:220px; padding:8px; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 14px 28px rgba(59,33,13,.16); white-space:normal; }
.topbar nav .account-dropdown a, .topbar nav .account-dropdown button, .topbar nav .account-dropdown .user { justify-content:flex-start; width:100%; max-width:100%; min-height:34px; padding:7px 9px; text-align:left; }
.topbar nav .account-dropdown .user { color:var(--muted); font-size:12px; font-weight:700; border-top:1px solid #f0e3c8; margin-top:4px; }
.menu-lang { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; padding:0 0 7px; margin:0 0 5px; border-bottom:1px solid #f0e3c8; }
.topbar nav .menu-lang a { justify-content:center; min-height:30px; border:1px solid var(--line); background:#fffdf7; }
.topbar nav .menu-lang a[aria-current="true"] { background:#fff3d3; border-color:var(--gold); }
.location-fields { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.market-fieldset { display:grid; gap:7px; margin:2px 0; padding:10px; border:1px solid var(--line); border-radius:12px; background:#fffdf7; }
.market-fieldset legend { padding:0 5px; color:var(--brown); font-weight:900; font-size:13px; }
.market-fieldset .note { margin:0; font-size:12px; line-height:1.3; }
.check-row { flex-direction:row !important; align-items:center; gap:7px !important; min-height:28px; }
.check-row input { width:auto; }
.small-note { max-width:100%; white-space:normal; font-size:12px; }
.page { flex:1 0 auto; width:100%; max-width:1180px; margin:0 auto; padding:22px 22px 36px; }
.page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin:0 0 16px; min-width:0; }
.page-head h1, .brand-wordmark { min-width:0; max-width:100%; margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--brown); font-family:Arial, Helvetica, sans-serif; font-size:26px; line-height:1.1; font-weight:800; letter-spacing:0; text-shadow:none; }
.note { min-width:0; max-width:50%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); }
.brand-home-head, .brand-section-head { min-height:0; }
.desktop-home-grid, .desktop-browse-grid { display:grid; grid-template-columns:220px minmax(0,1fr); gap:22px; align-items:stretch; }
.desktop-section-grid { display:grid; grid-template-columns:220px minmax(0,1fr); gap:22px; align-items:start; min-width:0; }
.desktop-section-grid > * { min-width:0; }
.desktop-nav-panel, .desktop-filter-panel { min-width:0; position:sticky; top:84px; display:flex; flex-direction:column; gap:12px; }
.desktop-content-panel, .desktop-list-panel { min-width:0; }
.categories { display:grid; grid-template-columns:1fr; gap:8px; margin:0; padding:12px; background:rgba(255,255,255,.78); border:1px solid var(--line); border-radius:12px; box-shadow:0 1px 0 rgba(59,33,13,.03); }
.category { display:flex; align-items:center; gap:10px; min-width:0; min-height:39px; padding:8px 10px; color:var(--text); background:#fffdf7; border:1px solid #eadfc7; border-radius:8px; overflow:hidden; box-shadow:none; }
.slim-nav .categories { padding:8px; gap:6px; max-height:calc(100vh - 110px); overflow:auto; scrollbar-width:thin; }
.slim-nav .category { min-height:39px; padding:8px 10px; gap:10px; }
.slim-nav .category-mark { width:24px; height:24px; }
.slim-nav .category-mark svg { width:22px; height:22px; }
.slim-nav .category-title { font-size:14px; }
.category:hover { text-decoration:none; background:#fff8e7; border-color:#d8bc7a; }
.category.active { background:#fff3d3; border-color:#d99012; box-shadow:inset 3px 0 0 var(--gold); }
.category-mark { display:inline-grid; place-items:center; flex:0 0 auto; width:24px; height:24px; color:#9a5a09; opacity:.9; }
.category-mark svg { display:block; width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.category-title { display:block; min-width:0; max-width:100%; color:#4a2a10; line-height:1.15; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:14px; font-weight:600; }
.subcategories, .sub-subcategories { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:flex-start; gap:7px; margin:0; padding:0; min-height:0; }
.subcategories a, .sub-subcategories a { display:inline-flex; align-items:center; justify-content:center; min-height:24px; max-width:100%; padding:3px 8px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#5c350b; background:#fff8e7; border:1px solid var(--line); border-radius:999px; font-size:12px; font-weight:600; box-shadow:none; }
.subcategories a:hover, .subcategories a.active, .sub-subcategories a:hover { text-decoration:none; color:#fff; background:#9a5a09; border-color:#9a5a09; }
.filters { display:grid; grid-template-columns:1fr; gap:9px; align-items:end; margin:0; padding:14px; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 1px 0 rgba(59,33,13,.03); }
.filters label, .form-card label, .auth-card label { display:flex; flex-direction:column; gap:5px; font-weight:700; font-size:13px; color:var(--brown); }
input, select, textarea, button { font:inherit; padding:8px 9px; border:1px solid #caa86a; border-radius:7px; background:#fff; color:var(--text); }
button { background:#fff8e7; cursor:pointer; }
.filters button, .form-card button, .auth-card button { min-height:38px; background:var(--gold); border-color:#b87518; color:#fff; font-weight:800; }
.filters button:hover, .form-card button:hover, .auth-card button:hover { background:#bf760d; }
.brand-cloud { columns:2; margin:0; padding:12px; background:#fff; border:1px solid var(--line); border-radius:12px; font-size:13px; }
.brand-cloud a { display:block; padding:3px 0; color:#704008; }
.results-card { min-height:520px; min-width:0; padding:16px; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); }
.results-head { display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin:0 0 12px; padding-bottom:10px; border-bottom:1px solid #f0e3c8; min-width:0; }
.results-head h2 { min-width:0; margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:20px; color:var(--brown); }
.results-head span, .result-count { flex:0 0 auto; max-width:45%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-weight:700; }
.listings { width:100%; border-collapse:separate; border-spacing:0 8px; background:transparent; }
.listings th { text-align:left; padding:8px 10px; background:#fff8e7; border-bottom:1px solid var(--line); color:var(--brown); font-size:12px; font-weight:800; }
.listings th:first-child { border-top-left-radius:8px; }
.listings th:last-child { border-top-right-radius:8px; text-align:right; }
.listings tr { position:relative; }
.listings tbody tr { background:#fff; border-radius:13px; box-shadow:0 1px 3px rgba(59,33,13,.04); }
.listings td { padding:7px 8px; border-top:1px solid #f0e3c8; border-bottom:1px solid #f0e3c8; vertical-align:middle; }
.listings td:first-child { border-left:1px solid #f0e3c8; border-radius:13px 0 0 13px; }
.listings td:last-child { border-right:1px solid #f0e3c8; border-radius:0 13px 13px 0; }
.listings tbody tr:hover { background:#fffdf7; }
.listing-main strong { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#4a2a10; font-size:15px; line-height:1.15; }
.listing-title-row { display:flex; align-items:flex-start; gap:7px; min-width:0; }
.listing-title-row > a { min-width:0; }
.card-favorite-form { flex:0 0 auto; margin:0; }
.card-favorite-button { display:grid; place-items:center; width:28px; height:28px; min-height:28px; padding:0; border:1px solid #ead9b8; border-radius:999px; background:#fffaf0; color:#9a5a09; font-size:19px; font-weight:900; line-height:1; }
.card-favorite-button.active { background:#3b210d; border-color:#3b210d; color:#f0c66d; }
.card-favorite-button:hover { background:#fff3d3; }
.card-favorite-button.active:hover { background:#4a2a10; }
.pagination-controls { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; margin-top:12px; color:var(--muted); font-size:13px; }
.pager-link { display:inline-flex; align-items:center; min-height:36px; padding:0 12px; border:1px solid #ead9b8; border-radius:999px; background:#fffaf0; color:#704008; font-weight:700; }
.pager-link.primary { background:#3b210d; border-color:#3b210d; color:#fff; }
.listing-main small { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; max-height:32px; overflow:hidden; color:var(--muted); margin-top:3px; font-size:12px; line-height:1.32; }
.listing-market-badges { display:flex; flex-wrap:wrap; gap:5px; margin:0; }
.listing-flags { display:flex; flex-wrap:wrap; align-items:center; gap:5px; margin-top:5px; }
.transaction-side-chip { display:inline-flex; align-items:center; min-height:22px; padding:2px 7px; border-radius:999px; background:#eef8ff; color:#24506f; font-size:11px; font-weight:900; line-height:1; }
.transaction-side-chip.buy, .transaction-side-chip.looking, .transaction-side-chip.rent_wanted, .transaction-side-chip.job_wanted { background:#f2f0ff; color:#3e347c; }
.transaction-side-chip.hire, .transaction-side-chip.offer, .transaction-side-chip.rent_out { background:#eef9ed; color:#27622d; }
.listing-market-badges span { display:inline-flex; align-items:center; min-height:22px; padding:2px 7px; border-radius:999px; background:#fff3d3; color:var(--brown); font-size:11px; font-weight:800; line-height:1; }
.thumb { width:82px; }
.thumb span, .thumb img { display:block; width:72px; height:54px; border-radius:8px; background:linear-gradient(135deg,#f3ead7,#fff8e7); border:1px solid #ead9b8; position:relative; object-fit:cover; }
.thumb span::after { content:""; position:absolute; left:16px; right:16px; bottom:13px; height:10px; border:2px solid #b98a3d; border-top-left-radius:10px; border-top-right-radius:10px; opacity:.45; }
.photo-gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:10px; margin:14px 0; }
.photo-gallery img, .photo-gallery video { width:100%; aspect-ratio:4 / 3; object-fit:cover; border-radius:12px; border:1px solid var(--line); background:#fff8e7; }
.price { font-weight:900; white-space:nowrap; text-align:right; color:var(--brown); }
.listing-actions { text-align:right; }
.listing-actions form, .favorite-form { margin:0; }
.danger-link { border-color:#b45d10; color:#7a2f00; background:#fff0df; font-size:12px; font-weight:800; }
.danger-link:hover { background:#ffe0c2; }
.favorite-button { margin:12px 0 0; min-height:36px; border-color:#d8bc7a; color:#7a4308; background:#fff8e7; font-weight:800; }
.favorite-button.active, .favorite-mark { color:#b45d10; }
.account-list-card { min-height:220px; }
.empty-row td { padding:42px 18px; text-align:center; color:var(--muted); background:#fffdf7; border:1px dashed var(--line); border-radius:10px; }
.empty-row strong { display:block; color:var(--brown); margin-bottom:4px; }
.empty-row small { display:block; }
.section-note, .empty-state { min-width:0; max-width:100%; margin:8px 0 12px; overflow:hidden; overflow-wrap:anywhere; color:var(--muted); }
.category-body { min-height:220px; padding:16px; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); }
.section-card { min-height:0; min-width:0; padding:18px; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); }
.section-hero { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding-bottom:14px; border-bottom:1px solid #f0e3c8; min-width:0; }
.section-hero > * { min-width:0; }
.section-hero > div { flex:1 1 auto; max-width:100%; overflow:hidden; }
.eyebrow { margin:0 0 6px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--brown); font-size:20px; font-weight:900; }
.section-chip-grid { display:flex; flex-wrap:wrap; gap:7px; margin:14px 0; }
.section-chip { display:flex; align-items:center; justify-content:center; min-height:28px; max-width:180px; padding:4px 9px; border:1px solid var(--line); border-radius:999px; background:#fffdf7; color:var(--brown); box-shadow:none; font-size:12px; }
.section-chip:hover { text-decoration:none; border-color:#d99012; background:#fff8e7; }
.section-chip.active { background:#fff3d3; border-color:#d99012; box-shadow:inset 3px 0 0 var(--gold); }
.section-chip span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:700; line-height:1.2; }
.section-chip small { min-width:0; margin-top:8px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:12px; }
.section-preview { margin-top:12px; padding:14px; border:1px dashed var(--line); border-radius:12px; background:#fffdf7; }
.place-rail { display:grid; gap:7px; margin:10px 8px 0; }
.place-link { display:flex; justify-content:space-between; gap:8px; padding:8px 10px; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--ink); font-weight:700; }
.place-link small { color:var(--muted); font-weight:600; }
.place-link.active { background:#fff3d3; border-color:var(--gold); }
.auto-market-grid { display:grid; grid-template-columns:minmax(0,300px) minmax(0,1fr); gap:16px; align-items:start; margin-top:14px; }
.auto-discovery, .auto-results { min-width:0; }
.auto-market .section-chip-grid { margin:0 0 10px; }
.auto-market .section-chip { min-height:28px; padding:4px 9px; }
.auto-tools { display:grid; grid-template-columns:1fr; gap:12px; margin:0; align-items:start; }
.auto-market .filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
.auto-market .filters button { grid-column:1 / -1; }
.auto-market .brand-cloud { margin:0; max-height:185px; overflow:auto; scrollbar-width:thin; }
.auto-market .results-head { margin:0 0 10px; }
.area-note { border:1px solid #e5d1a4; background:#fffdf7; color:var(--muted); padding:9px 12px; margin:10px 0 14px; font-size:13px; line-height:1.35; }
.area-note strong { color:var(--brown); }
.post-section-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.flow-steps { display:flex; align-items:center; gap:6px; max-width:760px; margin:0 0 12px; padding:0; list-style:none; }
.flow-steps li { display:inline-flex; align-items:center; gap:5px; min-height:28px; padding:4px 8px; border:1px solid var(--line); border-radius:999px; background:#fffdf7; color:var(--muted); font-size:12px; font-weight:800; }
.flow-steps li span { display:grid; place-items:center; width:18px; height:18px; border-radius:999px; background:#f0e3c8; color:#6f4b18; font-size:11px; }
.flow-steps li.done, .flow-steps li.active { color:var(--brown); background:#fff3d3; border-color:#e0bf78; }
.flow-steps li.done span, .flow-steps li.active span { background:var(--gold); color:#fff; }
.auth-progress { margin:8px 0 12px; }
.smart-form label small { color:var(--muted); font-size:11px; font-weight:700; }
.optional-upload { grid-column:1 / -1; padding:8px 10px; border:1px dashed var(--line); border-radius:10px; background:#fffdf7; }
.optional-upload summary { cursor:pointer; color:var(--brown); font-size:13px; font-weight:800; }
.optional-upload label { margin-top:8px; }
.car-post-form { align-items:end; }
.car-extra-details { grid-column:1 / -1; }
.car-extra-details label { margin-top:8px; }
.car-post-form > button.wide { grid-column:1 / -1; }
.compact-signup-location { padding:10px; }
.compact-signup-location .note { margin:4px 0 0; }
.post-page-head { display:block; max-width:860px; }
.post-page-head .note { display:block; max-width:760px; margin:8px 0 0; white-space:normal; overflow:visible; text-overflow:clip; line-height:1.45; }
.post-section-card { display:flex; align-items:center; gap:10px; min-width:0; min-height:82px; padding:14px; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:var(--shadow); color:var(--brown); }
.post-section-card:hover { text-decoration:none; border-color:var(--gold); background:#fff8e7; }
.post-section-card.active { border-color:var(--gold); background:#fff3d3; box-shadow:inset 4px 0 0 var(--gold), var(--shadow); }
.post-section-mark { display:grid; place-items:center; flex:0 0 auto; width:34px; height:34px; color:var(--gold-dark); }
.post-section-mark svg { display:block; width:32px; height:32px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.post-section-card strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:16px; }
.post-section-card small { display:block; margin-top:3px; color:var(--muted); font-size:12px; font-weight:800; }
.post-section-card small em { display:inline-flex; margin-left:6px; padding:1px 5px; border-radius:999px; background:#fff8e7; color:#9a5a09; font-style:normal; font-size:10px; }
.post-actions, .post-other-sections { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.post-other-sections { align-items:center; padding:14px; border:1px solid var(--line); border-radius:14px; background:#fffdf7; }
.post-other-sections h2 { flex:1 0 100%; margin:0 0 2px; font-size:18px; color:var(--brown); }
.post-other-sections a { display:inline-flex; padding:6px 9px; border:1px solid var(--line); border-radius:999px; background:#fff; font-size:13px; font-weight:800; }
.form-card { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; border:1px solid var(--line); padding:16px; background:#fff; border-radius:14px; box-shadow:var(--shadow); }
.form-card .wide { grid-column:1 / -1; }
.auth-card { max-width:440px; margin:24px auto; border:1px solid var(--line); background:#fff; border-radius:14px; padding:20px; box-shadow:var(--shadow); }
.auth-card .note { max-width:100%; white-space:normal; overflow:visible; text-overflow:clip; line-height:1.45; }
.auth-card form { display:grid; gap:12px; }
.admin-task-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.admin-subnav { display:flex; align-items:center; gap:6px; overflow-x:auto; margin:-4px 0 16px; padding:0 0 10px; border-bottom:1px solid var(--line); scrollbar-width:thin; }
.admin-subnav-link { display:inline-flex; align-items:center; gap:6px; flex:0 0 auto; min-height:34px; padding:7px 11px; border-radius:10px; color:var(--muted); font-size:13px; font-weight:800; text-decoration:none; transition:background .15s ease,color .15s ease; }
.admin-subnav-link:hover { background:#fff3d3; color:var(--brown); }
.admin-subnav-link.active { background:#fff3d3; color:#4a2a10; box-shadow:inset 0 0 0 1px #ead4a6; }
.admin-task-card { display:grid; gap:8px; min-height:136px; padding:16px; border:1px solid var(--line); background:#fff; border-radius:14px; box-shadow:var(--shadow); color:var(--brown); }
.admin-task-card:hover { text-decoration:none; border-color:var(--gold); background:#fff8e7; }
.admin-task-card span { justify-self:start; padding:4px 8px; border-radius:999px; background:#fff3d3; color:var(--gold-dark); font-size:12px; font-weight:800; }
.admin-task-card strong { font-size:20px; line-height:1.15; }
.admin-task-card small { color:var(--muted); line-height:1.35; }
.admin-back { margin:-4px 0 14px; }
.admin-back a { display:inline-flex; min-height:34px; align-items:center; padding:6px 10px; border:1px solid var(--line); border-radius:999px; background:#fffdf7; font-weight:800; }
.admin-card { margin:0 0 16px; padding:16px; border:1px solid var(--line); background:#fff; border-radius:14px; box-shadow:var(--shadow); overflow-x:auto; }
.admin-card-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 12px; }
.admin-card-head h2 { margin:0; color:var(--brown); font-size:20px; line-height:1.15; }
.admin-category-layout { display:grid; grid-template-columns:minmax(320px,0.9fr) minmax(0,1.4fr); gap:14px; align-items:start; }
.category-editor-card { position:sticky; top:76px; }
.category-editor-summary { display:flex; align-items:center; justify-content:space-between; gap:10px; cursor:pointer; list-style:none; color:var(--brown); font-size:20px; line-height:1.15; font-weight:900; }
.category-editor-summary::-webkit-details-marker { display:none; }
.category-editor-summary .summary-hint { min-height:26px; padding:4px 8px; border:1px solid #e0bf78; border-radius:999px; background:#fff8e7; color:#9a5a09; font-size:12px; font-weight:900; }
.category-editor-card .compact-category-form { margin-top:12px; }
.compact-category-form { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:12px; box-shadow:none; }
.admin-category-toolbar { display:grid; grid-template-columns:minmax(180px,1fr) auto auto auto; gap:8px; align-items:end; margin:0 0 12px; }
.admin-category-toolbar label { display:flex; flex-direction:column; gap:5px; color:var(--brown); font-size:13px; font-weight:800; }
.admin-category-toolbar input { width:100%; min-height:36px; border:1px solid var(--line); border-radius:8px; padding:7px 9px; background:#fffdf7; }
.category-tree-head { display:grid; grid-template-columns:minmax(210px,1.5fr) minmax(90px,.8fr) minmax(120px,1fr) 58px 92px; gap:8px; padding:6px 8px; border-bottom:1px solid var(--line); color:#6f5a3b; font-size:12px; font-weight:900; }
.admin-category-tree { display:grid; gap:5px; }
.category-tree-group { border:1px solid #eadfca; border-radius:10px; background:#fffdf8; overflow:hidden; }
.category-tree-group summary { display:grid; grid-template-columns:18px minmax(210px,1.5fr) auto 92px; gap:8px; align-items:center; min-height:36px; padding:5px 8px; cursor:pointer; list-style:none; }
.category-tree-group summary::-webkit-details-marker { display:none; }
.tree-toggle::before { content:'▸'; display:inline-block; color:var(--gold-dark); font-weight:900; transition:transform .12s ease; }
.category-tree-group[open] > summary .tree-toggle::before { transform:rotate(90deg); }
.category-tree-group summary strong, .category-tree-main strong { display:block; color:var(--brown); font-size:14px; line-height:1.12; }
.category-tree-group summary small, .category-tree-main small, .category-tree-i18n small { display:block; color:var(--muted); margin-top:1px; font-size:11px; line-height:1.15; }
.tiny-status { min-height:22px; padding:2px 6px; font-size:11px; justify-self:end; }
.category-tree-children { border-top:1px solid #f0e5d0; }
.category-tree-row { display:grid; grid-template-columns:minmax(210px,1.5fr) minmax(90px,.8fr) minmax(120px,1fr) 58px 92px; gap:8px; align-items:center; min-height:34px; padding:4px 8px 4px calc(8px + (var(--depth,0) * 18px)); border-top:1px solid #f4ecd9; }
.category-tree-row:first-child { border-top:0; }
.category-tree-row.selected { background:#fff8e7; box-shadow:inset 4px 0 0 var(--gold); }
.category-tree-parent, .category-tree-i18n, .category-tree-order { font-size:13px; color:#3f3425; }
.category-tree-order { font-weight:800; }
.category-tree-actions { display:flex; justify-content:flex-end; align-items:center; gap:4px; }
.category-tree-actions form { margin:0; }
.category-row-manage, .mobile-category-meta { display:none; }
.category-row-manage summary { display:inline-grid; place-items:center; width:30px; height:28px; min-height:28px; padding:0; border:1px solid #e0bf78; border-radius:8px; background:#fff8e7; color:#4a2a10; font-size:18px; line-height:1; font-weight:900; cursor:pointer; list-style:none; }
.category-row-manage summary::-webkit-details-marker { display:none; }
.category-row-manage-panel { display:grid; gap:7px; margin-top:6px; padding:8px; border:1px solid #f0e5d0; border-radius:9px; background:#fffdf7; }
.category-row-manage-panel dl { display:grid; gap:4px; margin:0; }
.category-row-manage-panel dl div { display:grid; grid-template-columns:58px minmax(0,1fr); gap:6px; align-items:start; }
.category-row-manage-panel dt { color:var(--muted); font-size:11px; font-weight:800; }
.category-row-manage-panel dd { margin:0; min-width:0; overflow-wrap:anywhere; color:#3f3425; font-size:12px; }
.category-row-manage-panel .category-tree-actions { justify-content:flex-start; }
.tiny-button, .category-tree-actions .tiny-button { min-height:26px; padding:3px 7px; border-radius:8px; font-size:11px; line-height:1; }
.category-tree-empty { padding:18px; }
.admin-search { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:10px; align-items:end; margin:0 0 14px; }
.admin-search label { display:flex; flex-direction:column; gap:5px; color:var(--brown); font-size:13px; font-weight:800; }
.admin-search input, .admin-user-actions input { width:100%; min-height:36px; border:1px solid var(--line); border-radius:8px; padding:7px 9px; background:#fffdf7; }
.status-pill, .admin-protected, .tester-badge, .temporary-test-badge { display:inline-flex; align-items:center; min-height:28px; padding:4px 8px; border-radius:999px; background:#fff3d3; color:var(--brown); font-size:12px; font-weight:800; }
.user-badges { display:flex; flex-wrap:wrap; gap:5px; margin-top:5px; }
.tester-badge { background:#e0f2fe; color:#075985; }
.temporary-test-badge { background:#fef3c7; color:#92400e; }
.is-temporary-test { background:#fffdf7; }
.is-suspended .status-pill { background:#fee2e2; color:#991b1b; }
.admin-user-row .admin-user-main strong { max-width:280px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-user-stat span { display:none; }
.admin-user-inline-meta { display:none; }
.admin-user-actions { display:grid; gap:5px; justify-items:end; }
.admin-user-actions form { display:flex; gap:5px; justify-content:flex-end; align-items:center; flex-wrap:nowrap; }
.admin-user-actions input { max-width:150px; }
.admin-user-actions button { min-height:30px; padding:5px 9px; font-size:12px; font-weight:800; }
.admin-user-actions .compact-protected { min-height:24px; padding:3px 7px; font-size:11px; }
.admin-user-manage { position:relative; }
.admin-user-manage summary { display:inline-flex; align-items:center; min-height:28px; padding:4px 8px; border:1px solid #e0bf78; border-radius:8px; background:#fff8e7; color:#4a2a10; font-size:12px; font-weight:800; cursor:pointer; list-style:none; }
.admin-user-manage summary::-webkit-details-marker { display:none; }
.admin-user-manage-panel { display:grid; gap:5px; margin-top:5px; }
.admin-cleanup-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; }
.admin-cleanup-actions form { margin:0; }
.error { background:#fff0df; border:1px solid #b45d10; color:#7a2f00; padding:9px; border-radius:8px; }
.transient-status{animation:statusFlashOut 1.8s ease forwards}@keyframes statusFlashOut{0%,78%{opacity:1;max-height:80px;margin-top:0;margin-bottom:12px;padding-top:9px;padding-bottom:9px}100%{opacity:0;max-height:0;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;border-width:0;overflow:hidden}}
.detail { max-width:860px; margin:0 auto; padding:18px; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); }
.detail-title { display:flex; justify-content:space-between; gap:20px; align-items:baseline; border-bottom:1px solid var(--line); }
.detail-title strong { font-size:28px; color:var(--gold-dark); }
.specs { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:#e6d7b8; border:1px solid #e6d7b8; }
.specs div { background:#fff; padding:8px; }
.specs dt { color:var(--muted); font-size:12px; }
.specs dd { margin:2px 0 0; font-weight:700; }
.contact { display:grid; gap:6px; border:1px solid var(--line); background:#fff8e7; padding:12px; margin-top:16px; border-radius:10px; }
footer { flex:0 0 auto; margin-top:auto; background:#fffaf0; border-top:1px solid var(--line); color:var(--muted); }
.footer-inner { max-width:1180px; margin:0 auto; padding:16px 22px; text-align:center; font-size:13px; }
@media (max-width:900px) {
  .topbar-inner { min-height:56px; padding:6px 12px; gap:8px; }
  .brand-header-logo { height:40px; max-height:40px; }
  .topbar nav { gap:6px; overflow:visible; }
  .topbar nav::-webkit-scrollbar { display:none; }
  .topbar nav a, .topbar nav button { min-height:28px; padding:4px 6px; font-size:11px; border-radius:7px; }
  .topbar nav .post { min-height:32px; padding:5px 8px; font-size:12px; }
  .account-menu summary { min-height:30px; padding:5px 7px; font-size:12px; }
  .account-dropdown { min-width:184px; right:0; }
  .topbar nav a[href^="/signup"] { display:none; }
  .lang-switch a { min-height:26px; padding:4px 6px; font-size:11px; }
  .page { padding:14px 12px 28px; }
  .page-head { flex-direction:column; align-items:flex-start; gap:5px; margin-bottom:12px; }
  .page-head .note { max-width:100%; white-space:normal; overflow:visible; text-overflow:clip; line-height:1.35; }
  .page-head h1, .brand-wordmark { font-size:22px; white-space:normal; overflow:visible; text-overflow:clip; }
  .admin-page-head { margin-bottom:8px; }
  .admin-page-head .note { display:none; }
  .admin-subnav { gap:4px; margin:-2px 0 10px; padding-bottom:7px; }
  .admin-subnav-link { min-height:30px; padding:5px 8px; font-size:12px; }
  .desktop-home-grid, .desktop-browse-grid, .desktop-section-grid { display:grid; grid-template-columns:1fr; gap:10px; }
  .desktop-nav-panel, .desktop-filter-panel { position:static; gap:8px; }
  .desktop-nav-panel .categories { display:flex; grid-template-columns:none; gap:6px; padding:8px; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; }
  .desktop-nav-panel .categories::-webkit-scrollbar { display:none; }
  .desktop-nav-panel .category { flex:0 0 auto; width:144px; min-height:34px; padding:6px 8px; }
  .desktop-nav-panel .category-title { font-size:13px; }
  .category-mark { width:24px; height:24px; }
  .category-mark svg { width:22px; height:22px; }
  .subcategories, .sub-subcategories { gap:6px; overflow-x:auto; flex-wrap:nowrap; padding-bottom:2px; scrollbar-width:none; }
  .subcategories::-webkit-scrollbar, .sub-subcategories::-webkit-scrollbar { display:none; }
  .subcategories a, .sub-subcategories a { flex:0 0 auto; max-width:70vw; }
  .filters { grid-template-columns:repeat(2,minmax(0,1fr)); padding:12px; }
  .filters button { grid-column:1 / -1; }
  .brand-cloud { display:none; }
  .results-card { min-height:360px; padding:12px; border-radius:12px; }
  .results-head { margin-bottom:10px; }
  .results-head h2 { font-size:18px; }
  .listings, .listings tbody, .listings tr, .listings td { display:block; width:100%; }
  .listings thead { display:none; }
  .listings tbody { display:grid; gap:10px; }
  .listings tr { display:grid; grid-template-columns:78px minmax(0,1fr); gap:4px 10px; padding:10px; border:1px solid var(--line); border-radius:12px; background:#fffdf7; }
  .listings td { border:0; padding:0; }
  .listings .thumb { grid-row:1 / span 4; width:auto; }
  .thumb span, .thumb img { width:68px; height:52px; }
  .listing-main { grid-column:2; }
  .listings td[data-label] { grid-column:2; display:flex; justify-content:space-between; gap:10px; color:var(--muted); font-size:13px; }
  .listings td[data-label]::before { content:attr(data-label); font-weight:700; color:#8a6a3a; }
  .listings .price { text-align:left; color:var(--brown); font-size:17px; }
  .empty-row { display:block !important; padding:0 !important; }
  .empty-row td { display:block; padding:34px 14px; }
  .form-card, .specs, .location-fields { grid-template-columns:1fr; }
  .section-card { padding:12px; }
  .section-hero { display:none; }
  .section-chip-grid { display:flex; grid-template-columns:none; flex-wrap:nowrap; gap:6px; margin:9px 0; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; }
  .section-chip-grid::-webkit-scrollbar { display:none; }
  .section-chip { flex:0 0 auto; max-width:132px; min-height:22px; padding:2px 6px; border:0; border-radius:0; background:transparent; box-shadow:none; font-size:12px; }
  .section-chip.active { background:transparent; border-color:transparent; box-shadow:inset 0 -2px 0 var(--gold); color:var(--brown); }
  .section-preview { margin-top:8px; padding:10px; }
  .auto-market-grid { grid-template-columns:1fr; gap:12px; }
  .auto-market .section-chip { min-height:22px; padding:2px 6px; }
  .auto-tools { grid-template-columns:1fr; margin:8px 0 10px; }
  .auto-market .filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .auto-market .filters button { grid-column:1 / -1; }
  .post-section-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .flow-steps { gap:4px; margin:0 0 8px; overflow-x:auto; scrollbar-width:none; }
  .flow-steps::-webkit-scrollbar { display:none; }
  .flow-steps li { flex:0 0 auto; min-height:24px; padding:3px 6px; font-size:11px; }
  .flow-steps li span { width:16px; height:16px; font-size:10px; }
  .post-section-card { min-height:58px; padding:8px; border-radius:10px; }
  .smart-form { gap:8px; padding:10px; }
  .smart-form textarea { rows:3; }
  .optional-upload { padding:7px 8px; }
  .optional-upload summary { font-size:12px; }
  .compact-signup-location { padding:8px; }
  .post-section-mark { width:28px; height:28px; }
  .post-section-mark svg { width:26px; height:26px; }
  .post-section-card strong { font-size:14px; }
  .post-section-card small { font-size:11px; }
  .post-other-sections { padding:12px; gap:7px; }
  .category-body { min-height:180px; padding:14px; }
  .auth-card { margin:14px auto; padding:16px; border-radius:12px; }
  .auth-card h1 { margin:0 0 10px; font-size:24px; line-height:1.1; }
  .auth-card p { margin:8px 0; }
  .admin-card { padding:12px; border-radius:12px; overflow-x:visible; }
  .admin-card-head { align-items:flex-start; flex-direction:column; gap:8px; }
  .admin-card-head h2 { font-size:18px; }
  .admin-category-layout { grid-template-columns:1fr; gap:10px; }
  .category-editor-card { position:static; }
  .compact-category-form, .admin-category-toolbar { grid-template-columns:1fr; }
  .admin-task-grid { grid-template-columns:1fr; gap:10px; }
  .admin-task-card { min-height:110px; padding:13px; border-radius:12px; }
  .admin-task-card strong { font-size:18px; }
  .category-tree-head { display:none; }
  .category-list-card { padding:8px; }
  .category-list-card .admin-card-head { flex-direction:row; align-items:center; gap:6px; margin-bottom:6px; }
  .category-list-card .admin-card-head h2 { font-size:18px; }
  .admin-category-toolbar { gap:6px; margin-bottom:8px; }
  .admin-category-toolbar label { gap:3px; font-size:12px; }
  .admin-category-toolbar input { min-height:32px; padding:6px 8px; }
  .admin-category-toolbar button, .admin-category-toolbar .button { min-height:32px; padding:6px 9px; font-size:12px; }
  .admin-category-tree { gap:4px; }
  .category-tree-group { border-radius:9px; }
  .category-tree-group summary { grid-template-columns:16px minmax(0,1fr) auto; gap:6px; min-height:38px; padding:6px 7px; }
  .category-tree-group summary > .category-tree-actions, .category-tree-group summary > .tiny-status, .category-tree-group summary .desktop-category-meta { display:none; }
  .category-tree-group summary > .category-row-manage { display:block; grid-column:3; grid-row:1; justify-self:end; }
  .category-tree-group summary .mobile-category-meta { display:block; color:var(--muted); font-size:11px; line-height:1.1; margin-top:1px; }
  .category-tree-row { grid-template-columns:minmax(0,1fr) auto; gap:2px 7px; min-height:42px; padding:6px 7px 6px calc(7px + (var(--depth,0) * 12px)); align-items:center; }
  .category-tree-main strong { font-size:15px; line-height:1.1; }
  .category-tree-row .desktop-category-meta, .category-tree-parent, .category-tree-i18n, .category-tree-order, .category-tree-row > .category-tree-actions { display:none; }
  .category-tree-row .mobile-category-meta { display:block; color:var(--muted); font-size:11px; line-height:1.1; margin-top:1px; }
  .category-row-manage { display:block; grid-column:2; grid-row:1; justify-self:end; }
  .category-row-manage[open] { grid-column:1 / -1; grid-row:auto; justify-self:stretch; }
  .category-row-manage[open] summary { width:max-content; margin-left:auto; }
  .category-row-manage-panel .category-tree-actions { display:flex; grid-column:auto; }
  .category-row-manage-panel .tiny-button { min-height:24px; padding:3px 7px; font-size:11px; }
  .admin-list-card { padding:10px; }
  .admin-listings tr { grid-template-columns:62px minmax(0,1fr); }
  .admin-listings .thumb span, .admin-listings .thumb img { width:56px; height:44px; }
  .admin-listings .listing-main small { overflow-wrap:anywhere; }
  .admin-listings .listing-actions { grid-column:1 / -1; text-align:right; padding-top:4px; }
  .admin-listings .listing-actions button { min-height:34px; padding:6px 12px; }
  .admin-users-card { padding:8px; }
  .admin-users-card .admin-card-head { flex-direction:row; align-items:center; gap:6px; margin-bottom:6px; }
  .admin-users-card .admin-card-head h2 { font-size:18px; }
  .admin-users-card .admin-cleanup-actions { justify-content:flex-end; gap:4px; }
  .admin-users-card .admin-cleanup-actions .small-note { display:none; }
  .admin-users-card .admin-cleanup-actions button { min-height:28px; padding:4px 8px; font-size:11px; border-radius:8px; }
  .admin-users { background:transparent; }
  .admin-users tbody { gap:5px; }
  .admin-users .admin-user-row { grid-template-columns:minmax(0,1fr) auto; gap:4px 7px; padding:6px 7px; border-radius:9px; align-items:center; }
  .admin-users .admin-user-main { grid-column:1; display:block; min-width:0; }
  .admin-users .admin-user-main strong { max-width:100%; font-size:13px; line-height:1.1; }
  .admin-users .admin-user-main small { display:none; }
  .admin-users .user-badges { display:none; }
  .admin-users .admin-user-inline-meta { display:flex; align-items:center; gap:5px; margin-top:3px; color:var(--muted); font-size:10px; font-weight:800; white-space:nowrap; }
  .admin-users .admin-user-inline-meta .status-pill { min-height:18px; padding:1px 5px; font-size:10px; line-height:1; }
  .admin-users .status-pill, .admin-users .admin-protected, .admin-users .tester-badge, .admin-users .temporary-test-badge { min-height:19px; padding:2px 5px; font-size:10px; line-height:1; }
  .admin-users .admin-user-status, .admin-users .admin-user-stat { display:none !important; }
  .admin-users .admin-user-actions { grid-column:2; justify-self:end; display:block; padding-top:0; text-align:right; }
  .admin-users .admin-user-actions .compact-protected { min-height:21px; padding:2px 6px; font-size:10px; border-radius:999px; }
  .admin-users .admin-user-manage summary { min-height:23px; padding:2px 6px; border-radius:999px; font-size:10px; }
  .admin-users .admin-user-manage[open] { grid-column:1 / -1; justify-self:stretch; text-align:left; }
  .admin-users .admin-user-manage-panel { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:3px; margin-top:4px; }
  .admin-users .admin-user-actions .suspend-form { display:grid; grid-column:1 / 3; grid-template-columns:minmax(0,1fr) auto; gap:3px; }
  .admin-users .admin-user-actions .revoke-form { grid-column:2; display:block; }
  .admin-users .admin-user-actions input { min-height:25px; max-width:none; padding:3px 6px; font-size:11px; border-radius:7px; }
  .admin-users .admin-user-actions button { min-height:25px; padding:3px 7px; border-radius:7px; font-size:11px; }
  .admin-users .admin-user-actions .revoke-form button { width:auto; background:transparent; border-color:#e5d1a4; }
  .admin-search { grid-template-columns:minmax(0,1fr) auto; gap:5px; margin-bottom:7px; align-items:end; }
  .admin-search label { gap:2px; font-size:11px; }
  .admin-search input { min-height:30px; padding:5px 7px; }
  .admin-search button, .admin-search .button { min-height:30px; padding:5px 8px; font-size:12px; }
  .admin-user-actions { grid-column:1 / -1; justify-items:stretch; text-align:left; }
  .admin-user-actions form { justify-content:stretch; }
  .admin-user-actions input, .admin-user-actions button { flex:1 1 auto; }
}
@media (max-width:430px) {
  body { font-size:14px; }
  .topbar-inner { padding:5px 8px; gap:6px; }
  .brand-header-logo { height:36px; max-height:36px; }
  .topbar nav { gap:4px; }
  .topbar nav .post { max-width:70px; padding:5px 7px; }
  .lang-switch a { padding:4px 5px; }
  .account-menu summary { max-width:82px; }
  .topbar nav a[href^="/login"] { max-width:52px; overflow:hidden; }
  .page { padding-left:10px; padding-right:10px; }
  .desktop-nav-panel .category { width:138px; }
  .category-title { font-size:13px; }
  .filters { grid-template-columns:1fr; }
  .auto-market .filters { grid-template-columns:1fr; }
  .form-card { gap:9px; padding:12px; }
  .form-card label, .auth-card label { font-size:12px; }
  input, select, textarea, button { padding:7px 8px; }
}
.form-card > *, .auth-card form > *, .admin-card table { min-width:0; }


/* Web listing cards mirror the compact native iOS/Android card rhythm. */
@media (min-width:901px) {
  .listings thead { display:none; }
  .listings tbody { display:grid; gap:7px; }
  .listings tr { display:grid; grid-template-columns:82px minmax(0,1fr) auto auto auto; align-items:center; min-height:86px; padding:7px 10px 7px 7px; border:1px solid #f0e3c8; border-radius:13px; background:#fff; box-shadow:0 1px 3px rgba(59,33,13,.035); overflow:hidden; }
  .listings td { border:0; padding:0 6px; }
  .listings td:first-child, .listings td:last-child { border:0; border-radius:0; }
  .listings .thumb { width:76px; padding:0; }
  .listings .thumb span, .listings .thumb img { width:72px; height:54px; border-radius:8px; }
  .listings .listing-main { min-width:0; align-self:center; padding-left:2px; }
  .listings td[data-label] { max-width:112px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#735f48; font-size:12px; }
  .listings .price { min-width:84px; color:#3b210d; font-size:16px; text-align:right; }
  .listing-title-row { align-items:center; gap:6px; }
  .card-favorite-button { width:26px; height:26px; min-height:26px; font-size:17px; }
}
@media (max-width:900px) {
  .listings tr { min-height:86px; padding:7px; border-radius:13px; background:#fff; box-shadow:0 1px 3px rgba(59,33,13,.035); }
  .listings .listing-main strong { font-size:16px; }
  .listings td[data-label]::before { display:none; }
  .listings td[data-label] { min-height:0; padding:0; justify-content:flex-start; font-size:11px; }
  .listings td[data-label][data-label*="Gads"], .listings td[data-label][data-label*="Year"] { display:inline-flex; }
  .listings .price { grid-column:2; font-size:16px; text-align:left; }
}

/* === Admin categories: row actions, inline form, drag/drop, rename === */
.cat-row { position: relative; }
.cat-row.cat-dragging { opacity: .4; }
.cat-row.cat-drop-target, .category-tree-group.cat-drop-target { outline: 2px dashed #3b82f6; outline-offset: -1px; background: #eff6ff; }
.cat-row-actions { gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
.cat-row-actions .cat-act { min-width: 28px; min-height: 26px; padding: 2px 6px; font-size: 12px; line-height: 1; border: 1px solid #d1d5db; background: #fffdf7; border-radius: 6px; cursor: pointer; }
.cat-row-actions .cat-act:hover { background: #fff8e7; }
.cat-row-actions .cat-act:disabled { opacity: .3; cursor: not-allowed; }
.cat-row-actions .cat-act-delete { color: #b91c1c; border-color: #fca5a5; }
.cat-row-actions .cat-act-delete:hover { background: #fee2e2; }
.category-tree-group summary .cat-act-add { margin-left: 6px; min-height: 26px; padding: 3px 8px; font-size: 11px; line-height: 1; border: 1px solid #e0bf78; background: #fff8e7; color: #4a2a10; border-radius: 6px; cursor: pointer; font-weight: 800; }
.category-tree-group summary .cat-act-add:hover { background: #fde68a; }
.cat-inline-form { display: flex; gap: 6px; align-items: center; padding: 8px 10px; margin: 4px 0; border: 1px dashed #3b82f6; border-radius: 8px; background: #eff6ff; }
.cat-inline-form input[type="text"] { flex: 1; min-height: 32px; padding: 6px 8px; border: 1px solid #93c5fd; border-radius: 6px; background: #fff; font-size: 14px; }
.cat-inline-form button { min-height: 32px; padding: 4px 10px; }
.cat-inline-form .cat-cancel { background: #fff; }
.cat-inline-rename { width: 100%; min-height: 26px; padding: 2px 6px; border: 1px solid #3b82f6; border-radius: 4px; font: inherit; font-weight: 700; color: inherit; }
.cat-name { cursor: text; }


.message-overview-stats{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 12px}.message-overview-stats a{display:inline-flex;align-items:baseline;gap:5px;border:1px solid #ead9b8;background:#fffaf0;border-radius:14px;padding:9px 12px;color:#735f48;text-decoration:none}.message-overview-stats a.active{border-color:#3b210d;background:#fff3d6}.message-overview-stats strong{color:#2b1a09;font-size:1.25rem}.message-inbox-grid{display:block}.message-thread-list,.message-chat{background:#fff;border:1px solid #eadfcb;border-radius:22px;padding:14px;box-shadow:0 10px 30px rgba(80,55,25,.08)}.message-thread-list{display:flex;flex-direction:column;gap:10px;max-height:72vh;overflow:auto}.message-modal-backdrop{position:fixed;inset:0;z-index:1000;background:rgba(43,26,9,.42);display:flex;align-items:center;justify-content:center;padding:18px}.message-chat-modal{width:min(760px,96vw);max-height:92vh;display:flex;flex-direction:column;gap:10px}.message-modal-head{display:flex;align-items:flex-start;gap:12px;border-bottom:1px solid #ead9b8;padding-bottom:8px}.message-modal-head h2{margin:0}.message-chat-modal .web-message-list{max-height:62vh}.message-listing-group{border:1px solid #ead9b8;background:#fffdf8;border-radius:18px;padding:9px;display:grid;gap:7px}.message-listing-group.unread{border-color:#d99012;background:#fff8e8}.message-listing-group>header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}.message-listing-group>header strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-thread-row{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border:1px solid #eadfcb;border-radius:14px;color:#2d2118;text-decoration:none;background:#fff}.message-thread-row.active,.message-thread-row:hover{background:#f4efe5;border-color:#3b210d}.message-thread-row.unread{border-color:#d99012;background:#fff8e8}.message-thread-row small,.message-thread-row span{color:#756958;font-size:.86rem;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.message-thread-row strong{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}.message-thread-row strong:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.web-message-list{max-height:520px;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:10px;background:#f6f0e6;border-radius:18px}.web-message-row{display:flex}.web-message-row.mine{justify-content:flex-end}.web-message-row.theirs{justify-content:flex-start}.web-message-bubble{max-width:min(74%,520px);border-radius:18px;padding:8px 11px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.05)}.web-message-row.mine .web-message-bubble{background:#5b35d5;color:#fff}.web-message-bubble small,.web-message-bubble time{display:block;font-size:.72rem;opacity:.7}.web-message-bubble p{margin:.2rem 0}.web-message-bubble audio{max-width:100%;height:34px}.telegram-web-composer{display:flex;gap:8px;align-items:center;margin-top:10px}.telegram-web-composer input[type=text],.telegram-web-composer input[name=body]{flex:1;border:1px solid #d6c49e;border-radius:18px;padding:12px}.telegram-web-composer input[type=file]{max-width:180px}.telegram-web-composer button{border:0;border-radius:18px;background:#4a250f;color:#fff;padding:12px 18px;font-weight:700}@media(max-width:760px){.message-inbox-grid{display:block}.message-thread-list{display:grid;max-height:none;margin-bottom:12px}.message-thread-row{border-radius:16px}.telegram-web-composer{flex-wrap:wrap}.telegram-web-composer input[type=file]{max-width:100%}}

/* Web parity: mobile browser cards should track native iOS compact listing UI; desktop stays normalized. */
.web-nav-badge, .web-unread-badge { display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 6px; margin-left:6px; border-radius:999px; background:#d99012; color:#fff; font-size:11px; font-weight:900; line-height:20px; vertical-align:middle; }
.web-nav-badge[hidden] { display:none; }
.own-listing-mark { display:grid; place-items:center; width:28px; height:28px; border-radius:999px; background:#eee2cf; color:#6b5a45; font-size:20px; font-weight:900; }
.message-thread-row.unread { border-color:#d99012; background:#fff8e8; }
.message-thread-row strong { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.post-edit-window-note { max-width:860px; white-space:normal; overflow:visible; }

@media (max-width: 760px) {
  .topbar-inner { min-height:64px; padding:8px 12px; gap:8px; }
  .brand-header-logo { height:38px; max-height:38px; }
  .topbar nav { gap:6px; }
  .topbar nav .post { min-height:42px; padding:8px 13px; border-radius:12px; font-size:14px; }
  .account-menu summary { min-height:42px; padding:8px 12px; border-radius:12px; font-size:14px; }
  .page { padding:18px 12px 88px; }
  .brand-home-head h1, .brand-section-head h1 { font-size:30px; line-height:1.05; }
  .desktop-home-grid, .desktop-browse-grid, .desktop-section-grid, .auto-market-grid { display:block; }
  .desktop-nav-panel, .desktop-filter-panel { position:static; margin-bottom:12px; }
  .categories { display:flex; flex-direction:row; overflow-x:auto; scroll-snap-type:x proximity; padding:8px; gap:8px; border-radius:16px; }
  .category { flex:0 0 42%; min-height:56px; border-radius:14px; scroll-snap-align:start; }
  .category-title { font-size:16px; }
  .subcategories, .sub-subcategories, .section-chip-grid { flex-wrap:nowrap; overflow-x:auto; padding-bottom:4px; }
  .subcategories a, .sub-subcategories a, .section-chip { flex:0 0 auto; min-height:34px; border-radius:999px; }
  .results-card, .section-card { padding:14px; border-radius:18px; min-height:0; }
  .results-head h2 { font-size:24px; }
  .listings, .listings tbody, .listings tr, .listings td { display:block; width:100%; }
  .listings thead { display:none; }
  .listings { border-spacing:0; }
  .listings tbody { display:grid; gap:12px; }
  .listings tbody tr { position:relative; display:grid; grid-template-columns:112px minmax(0,1fr); gap:10px; min-height:132px; padding:10px 12px; border:1px solid #ead9b8; border-radius:18px; background:#fff; box-shadow:0 1px 5px rgba(59,33,13,.04); overflow:hidden; }
  .listings td { padding:0; border:0; }
  .listings td:first-child, .listings td:last-child { border:0; border-radius:0; }
  .listings td.thumb { grid-row:1 / span 5; width:104px; }
  .thumb span, .thumb img { width:102px; height:82px; border-radius:12px; }
  .listing-main { min-width:0; padding-right:4px; }
  .listing-title-row { align-items:flex-start; gap:8px; }
  .listing-title-row > a { flex:1; min-width:0; }
  .listing-main strong { font-size:20px; line-height:1.1; white-space:nowrap; }
  .listing-flags { margin-top:8px; }
  .transaction-side-chip, .listing-market-badges span { min-height:25px; padding:4px 8px; font-size:12px; }
  .listing-main small { -webkit-line-clamp:2; max-height:38px; font-size:14px; line-height:1.35; margin-top:6px; }
  .listings td[data-label] { grid-column:2; color:#6f5a42; font-size:13px; line-height:1.2; }
  .listings td[data-label]::before { content:attr(data-label) ': '; color:#9a8a78; font-weight:700; }
  .listings td.price { grid-column:2; text-align:left; color:#704008; font-size:16px; }
  .listing-actions { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:8px; text-align:left; }
  .listing-actions form { display:inline-flex; margin:0; }
  .card-favorite-button, .own-listing-mark { width:34px; height:34px; min-height:34px; font-size:22px; }
  .web-unread-badge { min-width:24px; height:24px; line-height:24px; font-size:12px; }
  .message-inbox-grid { display:block; }
  .message-thread-list { margin-bottom:12px; }
  .message-thread-row { border-radius:16px; }
}
.web-use-location { width:100%; margin:6px 0 10px; justify-content:center; }
@media (min-width: 761px) { .web-use-location { width:auto; } .section-content-stack { display:grid; gap:16px; } }

/* Parity cleanup: remove stale table artifacts from compact native-like generic web cards. */
.secondary-button { background:#fff8e7; color:#4a2a10; border-color:#ead9b8; box-shadow:none; }
.market-scope-controls { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 12px; }
.market-scope-controls a { display:inline-flex; align-items:center; min-height:32px; padding:6px 11px; border:1px solid #ead9b8; border-radius:999px; background:#fffaf0; color:#704008; font-size:13px; font-weight:900; }
.market-scope-controls a.active { background:#3b210d; border-color:#3b210d; color:#fff; }
.voice-record-button { border-radius:999px; border:1px solid #d8bc7a; background:#fff8e7; color:#4a2a10; font-weight:900; }
.voice-record-button.recording { background:#8d1d1d; border-color:#8d1d1d; color:#fff; }
@media (max-width:760px) {
  .brand-section-head { margin-bottom:10px; }
  .section-content-stack { display:grid; gap:10px; }
  .section-card { padding:10px; }
  .section-card .section-preview:empty { display:none; }
  .section-results-card { margin-top:0; }
  .generic-listing-row { grid-template-columns:92px minmax(0,1fr) !important; min-height:112px !important; }
  .generic-listing-row .thumb { width:84px !important; }
  .generic-listing-row .thumb span, .generic-listing-row .thumb img { width:82px !important; height:72px !important; }
  .generic-listing-row td[data-label], .generic-listing-row td.price { display:none !important; }
  .generic-listing-row .listing-main { align-self:start; }
  .generic-listing-row .listing-main strong { font-size:18px; }
  .generic-listing-row .listing-flags { margin-top:6px; }
  .generic-listing-row .listing-market-badges span { min-height:23px; }
  .telegram-web-composer input[data-voice-file], .message-box input[data-voice-file] { max-width:100%; font-size:12px; }
}
.listing-stat-empty, .listing-price-empty { display:none !important; }
@media (min-width:901px) { .generic-listing-row { grid-template-columns:82px minmax(0,1fr) auto !important; } .generic-listing-row td[data-label] { max-width:160px; } }
/* Native-like compact car cards on mobile: no table-detail tails or empty price dashes. */
@media (max-width:760px) {
  .car-listing-row { grid-template-columns:92px minmax(0,1fr) !important; min-height:116px !important; }
  .car-listing-row td[data-label] { display:none !important; }
  .car-listing-row td.price:not(.listing-price-empty) { display:inline-flex !important; grid-column:2; justify-self:start; width:auto; min-height:24px; margin-top:4px; padding:3px 8px; border-radius:999px; background:#fff3d3; color:#3b210d; font-size:13px; font-weight:900; }
  .car-listing-row .listing-main small { -webkit-line-clamp:2; max-height:38px; }
  .car-listing-row .thumb { width:84px !important; }
  .car-listing-row .thumb span, .car-listing-row .thumb img { width:82px !important; height:72px !important; }
}

/* iOS parity mobile shell + cards. This intentionally overrides older table-card mobile CSS. */
.mobile-app-search, .mobile-tabbar { display:none; }
@media (max-width:760px) {
  body.brand-shell { background:#f7f0e4; color:#2d1608; }
  .topbar { position:sticky; top:0; z-index:40; background:#f7f0e4; border-bottom:1px solid #ead9b8; box-shadow:0 1px 0 rgba(74,37,15,.04); }
  .topbar-inner { min-height:92px; padding:10px 16px 8px; align-items:center; }
  .brand-logo-link { display:flex; align-items:center; }
  .brand-header-logo { height:76px !important; max-height:76px !important; width:auto; object-fit:contain; }
  .topbar nav { align-self:start; padding-top:0; display:grid; grid-template-columns:auto auto; gap:8px; align-items:start; }
  .topbar nav .post { min-height:44px; padding:10px 14px; border-radius:16px; background:#de930a; color:#fff; font-size:15px; box-shadow:0 4px 10px rgba(166,105,0,.18); }
  .account-menu summary { min-height:44px; padding:10px 13px; border-radius:16px; background:#fffdf8; color:#2d1608; border:1px solid #e4cf9c; font-size:15px; }
  .mobile-app-search { display:block; padding:0 16px 10px; }
  .mobile-app-search form { display:grid; grid-template-columns:minmax(0,1fr) 56px; gap:8px; margin:0; }
  .mobile-app-search input { min-height:52px; border:1px solid #dfc989; border-radius:15px; background:#fff; padding:0 16px; font-size:18px; box-shadow:0 1px 2px rgba(74,37,15,.04) inset; }
  .mobile-app-search button { min-height:52px; border-radius:15px; background:#d99012; color:#fff; font-size:24px; border:0; }
  .page { padding:10px 14px 104px !important; max-width:none; }
  .brand-home-head, .brand-section-head { display:none !important; }
  .desktop-home-grid, .desktop-section-grid, .desktop-browse-grid, .auto-market-grid { display:block !important; }
  .desktop-nav-panel, .desktop-content-panel, .section-content-stack { display:block; }
  .desktop-nav-panel, .desktop-filter-panel { margin:0 0 8px; padding:0; background:transparent; border:0; box-shadow:none; }
  .categories { margin:0 0 8px; padding:0; border:0; background:transparent; display:flex !important; gap:8px; overflow-x:auto; scroll-padding:14px; border-radius:0; }
  .category { flex:0 0 auto; min-width:122px; min-height:48px; padding:9px 14px; border-radius:15px; background:#fffdf8; border:1px solid #e4cf9c; box-shadow:0 1px 2px rgba(74,37,15,.04); }
  .category.active { background:#3b1b09; border-color:#3b1b09; color:#fff; }
  .category-icon { font-size:20px; }
  .category-title { font-size:16px; font-weight:850; white-space:nowrap; }
  .subcategories, .sub-subcategories, .section-chip-grid { display:flex !important; flex-wrap:nowrap !important; gap:7px; overflow-x:auto; margin:0 0 8px; padding:0 0 4px; }
  .subcategories a, .sub-subcategories a, .section-chip { flex:0 0 auto; min-height:31px; padding:6px 12px; border-radius:999px; background:#fffdf8; border:1px solid #e6d4ad; color:#4a2a10; font-size:14px; font-weight:700; }
  .subcategories a.active, .section-chip.active { background:#3b1b09; color:#fff; border-color:#3b1b09; }
  .section-card, .results-card, .auto-market { padding:0 !important; border:0 !important; background:transparent !important; box-shadow:none !important; border-radius:0 !important; margin:0 !important; }
  .section-hero, .auto-market .section-hero { display:none !important; }
  .auto-tools { margin:0; }
  .filters { display:flex !important; overflow-x:auto; gap:8px; margin:0 0 8px; padding:0; background:transparent; border:0; box-shadow:none; }
  .filters label { flex:0 0 148px; font-size:11px; color:#6b553d; }
  .filters input, .filters select { min-height:36px; border-radius:999px; padding:6px 10px; font-size:13px; }
  .filters button { flex:0 0 auto; min-height:36px; border-radius:999px; padding:6px 12px; }
  .brand-cloud { display:none !important; }
  .results-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:8px 0 8px; padding:0; border:0; }
  .results-head h2 { font-size:0 !important; margin:0; }
  .results-head h2::after { content:'Jaunākie sludinājumi'; font-size:20px; line-height:1.1; font-weight:900; color:#3b1b09; }
  .results-head span { font-size:13px; font-weight:800; color:#735a38; }
  .market-scope-controls { display:flex; flex-wrap:nowrap; overflow-x:auto; gap:8px; margin:0 0 10px; padding:0; }
  .market-scope-controls a { flex:0 0 auto; min-height:40px; padding:8px 15px; border-radius:999px; font-size:14px; font-weight:900; background:#fffdf8; border:1px solid #e4cf9c; color:#4a2a10; }
  .market-scope-controls a.active { background:#3b1b09; color:#fff; border-color:#3b1b09; }
  .listings, .listings tbody { display:block !important; width:100%; border:0; background:transparent; }
  .listings thead { display:none !important; }
  .listings tbody { display:grid !important; gap:9px; }
  .listings tbody tr, .generic-listing-row, .car-listing-row { position:relative; display:grid !important; grid-template-columns:86px minmax(0,1fr) !important; column-gap:12px; min-height:118px !important; padding:10px 38px 10px 10px !important; border:0 !important; border-radius:14px !important; background:#fff !important; box-shadow:0 2px 10px rgba(68,36,12,.055) !important; overflow:hidden; align-items:start; }
  .listings td { display:block; width:auto !important; padding:0 !important; border:0 !important; min-width:0; }
  .listings td.thumb { grid-column:1; grid-row:1 / span 3; width:86px !important; }
  .thumb span, .thumb img, .generic-listing-row .thumb span, .generic-listing-row .thumb img, .car-listing-row .thumb span, .car-listing-row .thumb img { width:76px !important; height:76px !important; border-radius:10px !important; object-fit:cover; }
  .thumb span { background:#f5eddd; border:1px solid #ead9b8; }
  .listing-main { grid-column:2; align-self:start !important; padding:0 !important; min-width:0; }
  .listing-title-row { display:block; min-width:0; padding-right:0; }
  .listing-title-row > a { display:block; min-width:0; color:#201006; text-decoration:none; }
  .listing-main strong, .generic-listing-row .listing-main strong, .car-listing-row .listing-main strong { display:block; font-size:18px !important; line-height:1.12; font-weight:900; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
  .card-favorite-form { position:absolute; right:9px; top:9px; margin:0; z-index:2; }
  .card-favorite-button { width:28px !important; height:28px !important; min-height:28px !important; padding:0 !important; border:0 !important; background:transparent !important; color:#80632c; font-size:25px !important; box-shadow:none !important; }
  .own-listing-mark { position:absolute; right:12px; top:13px; width:24px !important; height:24px !important; min-height:24px !important; background:#eee2cf; font-size:18px !important; }
  .listing-flags { display:flex !important; align-items:center; gap:5px; flex-wrap:wrap; margin:7px 0 0 !important; }
  .listing-market-badges { display:flex !important; align-items:center; gap:5px; flex-wrap:wrap; }
  .transaction-side-chip, .listing-market-badges span { min-height:22px !important; padding:3px 7px !important; border-radius:999px !important; font-size:12px !important; font-weight:800 !important; line-height:1.1; }
  .listing-market-badges span[title='Target market'] { display:none !important; }
  .listing-main small { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; max-height:34px !important; margin-top:6px !important; color:#6a5a49; font-size:13px !important; line-height:1.25 !important; }
  .listings td[data-label], .car-listing-row td[data-label], .generic-listing-row td[data-label] { display:none !important; }
  .listings td.price, .car-listing-row td.price, .generic-listing-row td.price { display:none !important; }
  .car-listing-row td.price:not(.listing-price-empty) { display:none !important; }
  .pagination-controls { margin:12px 0 0; }
  footer { display:none; }
  .mobile-tabbar { position:fixed; left:14px; right:14px; bottom:12px; z-index:50; display:grid; grid-template-columns:1fr 1fr 1fr; gap:0; padding:8px; border:1px solid #e4cf9c; border-radius:24px; background:rgba(255,253,248,.95); box-shadow:0 10px 30px rgba(64,36,13,.18); backdrop-filter:blur(14px); }
  .mobile-tabbar a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; min-height:55px; border-radius:18px; color:#4a2a10; font-weight:850; text-decoration:none; }
  .mobile-tabbar a.active { background:#3b1b09; color:#fff; }
  .mobile-tabbar span { font-size:20px; line-height:1; }
}

/* iOS parity pass 2: app-like mobile header and lighter typography. */
.mobile-action-cluster { display:none; }
@media (max-width:760px) {
  body.brand-shell { font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',sans-serif; font-weight:400; }
  .topbar-inner { grid-template-columns:132px minmax(0,1fr); display:grid; align-items:center; min-height:134px; padding:10px 14px 6px; }
  .brand-header-logo { height:116px !important; max-height:116px !important; }
  .topbar-inner > nav { display:none !important; }
  .mobile-action-cluster { display:grid; gap:7px; justify-items:end; align-self:center; }
  .mobile-action-icons { display:flex; gap:8px; align-items:center; justify-content:flex-end; }
  .mobile-action-icons a { position:relative; display:grid; place-items:center; width:42px; height:42px; border-radius:999px; border:1px solid #dbc893; background:#fffdf8; color:#3b1b09; text-decoration:none; font-size:20px; font-weight:500; box-shadow:0 1px 2px rgba(64,36,13,.04); }
  .mobile-action-icons .web-nav-badge { position:absolute; right:-4px; top:-6px; min-width:18px; height:18px; line-height:18px; padding:0 5px; font-size:10px; background:#d99012; }
  .mobile-lang-chips { display:flex; gap:8px; justify-content:flex-end; }
  .mobile-lang-chips a { display:grid; place-items:center; min-width:44px; min-height:34px; border-radius:999px; border:1px solid #dbc893; background:#fffdf8; color:#3b1b09; text-decoration:none; font-size:13px; font-weight:600; }
  .mobile-lang-chips a.active { background:#3b1b09; color:#fff; border-color:#3b1b09; }
  .mobile-world-pill { display:flex; align-items:center; justify-content:center; max-width:100%; min-height:38px; padding:7px 13px; border-radius:999px; border:1px solid #dbc893; background:#fffdf8; color:#6a563c; text-decoration:none; font-size:14px; font-weight:500; white-space:nowrap; }
  .mobile-app-search { padding:0 14px 10px; }
  .mobile-app-search input { font-size:18px; font-weight:400; color:#2d1608; }
  .mobile-app-search input::placeholder { color:#b3aaa0; font-weight:300; }
  .category-title, .subcategories a, .sub-subcategories a, .section-chip, .market-scope-controls a { font-weight:500 !important; }
  .results-head h2::after { font-weight:700; letter-spacing:-.02em; }
  .results-head span { font-weight:500; }
  .listing-main strong, .generic-listing-row .listing-main strong, .car-listing-row .listing-main strong { font-weight:650 !important; letter-spacing:-.025em; }
  .transaction-side-chip, .listing-market-badges span { font-weight:500 !important; }
  .listing-main small { font-weight:400; color:#756b61; }
  .mobile-tabbar a { font-weight:500; }
  .mobile-tabbar a.active { font-weight:650; }
}

/* iOS parity pass 3: smaller controls, less chunky than desktop buttons. */
@media (max-width:760px) {
  .topbar-inner { min-height:122px; grid-template-columns:120px minmax(0,1fr); padding:8px 14px 4px; }
  .brand-header-logo { height:104px !important; max-height:104px !important; }
  .mobile-action-cluster { gap:5px; }
  .mobile-action-icons { gap:6px; }
  .mobile-action-icons a { width:34px; height:34px; font-size:17px; font-weight:400; border-color:#e4d3a9; }
  .mobile-lang-chips { gap:6px; }
  .mobile-lang-chips a { min-width:36px; min-height:28px; padding:0 8px; font-size:12px; font-weight:500; }
  .mobile-world-pill { min-height:32px; padding:5px 10px; font-size:12.5px; font-weight:400; }
  .mobile-app-search form { grid-template-columns:minmax(0,1fr) 48px; gap:7px; }
  .mobile-app-search input { min-height:46px; border-radius:14px; font-size:17px; }
  .mobile-app-search button { min-height:46px; border-radius:14px; font-size:20px; font-weight:400; }
  .category { min-height:42px; min-width:108px; padding:7px 12px; border-radius:14px; }
  .category-icon { font-size:17px; }
  .category-title { font-size:14px; font-weight:500 !important; }
  .subcategories a, .sub-subcategories a, .section-chip { min-height:28px; padding:5px 10px; font-size:13px; font-weight:400 !important; }
  .market-scope-controls a { min-height:34px; padding:6px 12px; font-size:13px; font-weight:500 !important; }
  .results-head h2::after { font-size:19px; font-weight:650; }
  .listings tbody { gap:8px !important; }
  .listings tbody tr, .generic-listing-row, .car-listing-row { min-height:106px !important; padding:9px 34px 9px 9px !important; grid-template-columns:78px minmax(0,1fr) !important; column-gap:10px; border-radius:13px !important; }
  .listings td.thumb { width:78px !important; }
  .thumb span, .thumb img, .generic-listing-row .thumb span, .generic-listing-row .thumb img, .car-listing-row .thumb span, .car-listing-row .thumb img { width:68px !important; height:68px !important; border-radius:9px !important; }
  .listing-main strong, .generic-listing-row .listing-main strong, .car-listing-row .listing-main strong { font-size:17px !important; font-weight:600 !important; }
  .listing-flags { margin-top:5px !important; gap:4px; }
  .transaction-side-chip, .listing-market-badges span { min-height:19px !important; padding:2px 6px !important; font-size:11.5px !important; font-weight:450 !important; }
  .listing-main small { margin-top:5px !important; font-size:12.5px !important; line-height:1.22 !important; max-height:31px !important; }
  .card-favorite-button { width:24px !important; height:24px !important; min-height:24px !important; font-size:22px !important; font-weight:300 !important; }
  .mobile-tabbar { left:12px; right:12px; bottom:10px; padding:7px; border-radius:22px; }
  .mobile-tabbar a { min-height:50px; border-radius:16px; font-size:13px; font-weight:450; }
  .mobile-tabbar span { font-size:18px; }
}

/* iOS parity pass 4: ultra-compact mobile density, minimal wasted vertical space. */
@media (max-width:760px) {
  .topbar-inner { min-height:108px; grid-template-columns:106px minmax(0,1fr); padding:6px 14px 3px; }
  .brand-header-logo { height:92px !important; max-height:92px !important; }
  .mobile-action-cluster { gap:4px; }
  .mobile-action-icons a { width:31px; height:31px; font-size:15px; }
  .mobile-lang-chips a { min-width:33px; min-height:25px; padding:0 7px; font-size:11px; }
  .mobile-world-pill { min-height:29px; padding:4px 9px; font-size:12px; }
  .mobile-app-search { padding:0 14px 8px; }
  .mobile-app-search form { grid-template-columns:minmax(0,1fr) 44px; gap:6px; }
  .mobile-app-search input { min-height:42px; border-radius:13px; font-size:16px; padding:0 14px; }
  .mobile-app-search button { min-height:42px; border-radius:13px; font-size:18px; }
  .page { padding-top:8px !important; }
  .categories { gap:6px; margin-bottom:7px; }
  .category { min-height:38px; min-width:100px; padding:6px 10px; border-radius:13px; }
  .category-icon { font-size:15px; }
  .category-title { font-size:13px; }
  .subcategories, .sub-subcategories, .section-chip-grid { gap:6px; margin-bottom:7px; }
  .subcategories a, .sub-subcategories a, .section-chip { min-height:25px; padding:4px 9px; font-size:12px; }
  .filters { gap:6px; margin-bottom:7px; }
  .filters label { flex-basis:132px; font-size:10px; }
  .filters input, .filters select, .filters button { min-height:32px; border-radius:12px; font-size:12px; padding:5px 9px; }
  .results-head { margin:6px 0 6px; }
  .results-head h2::after { font-size:18px; }
  .results-head span { font-size:12px; }
  .market-scope-controls { gap:6px; margin-bottom:8px; }
  .market-scope-controls a { min-height:30px; padding:5px 10px; font-size:12px; }
  .listings tbody { gap:7px !important; }
  .listings tbody tr[data-card-href], .generic-listing-row[data-card-href], .car-listing-row[data-card-href] { cursor:pointer; -webkit-tap-highlight-color:rgba(66,27,8,.08); }
  .listings tbody tr, .generic-listing-row, .car-listing-row { min-height:96px !important; grid-template-columns:70px minmax(0,1fr) !important; column-gap:9px; padding:8px 30px 8px 8px !important; border-radius:12px !important; }
  .listings td.thumb { width:70px !important; }
  .thumb span, .thumb img, .generic-listing-row .thumb span, .generic-listing-row .thumb img, .car-listing-row .thumb span, .car-listing-row .thumb img { width:62px !important; height:62px !important; border-radius:8px !important; }
  .listing-main strong, .generic-listing-row .listing-main strong, .car-listing-row .listing-main strong { font-size:16px !important; line-height:1.08; }
  .listing-flags { margin-top:4px !important; gap:3px; }
  .transaction-side-chip, .listing-market-badges span { min-height:18px !important; padding:2px 5px !important; font-size:10.5px !important; }
  .listing-main small { margin-top:4px !important; font-size:12px !important; line-height:1.18 !important; max-height:28px !important; }
  .card-favorite-form { right:7px; top:7px; }
  .card-favorite-button { width:22px !important; height:22px !important; min-height:22px !important; font-size:20px !important; }
  .pagination-controls { margin-top:8px; font-size:12px; }
  .mobile-tabbar { bottom:8px; padding:6px; border-radius:20px; }
  .mobile-tabbar a { min-height:46px; border-radius:14px; font-size:12px; }
  .mobile-tabbar span { font-size:16px; }
}

/* iOS parity pass 5: reduce mobile font weight/size further. */
@media (max-width:760px) {
  body.brand-shell { font-size:14px; font-weight:350; }
  .mobile-action-icons a { font-size:14px; font-weight:300; }
  .mobile-lang-chips a { font-size:10.5px; font-weight:400; }
  .mobile-world-pill { font-size:11.5px; font-weight:350; }
  .mobile-app-search input { font-size:15px; font-weight:300; }
  .mobile-app-search button { font-size:17px; font-weight:300; }
  .category-title { font-size:12.5px !important; font-weight:400 !important; }
  .category-icon { font-size:14px; }
  .subcategories a, .sub-subcategories a, .section-chip { font-size:11.5px !important; font-weight:350 !important; }
  .filters label { font-size:9.5px; font-weight:450; }
  .filters input, .filters select, .filters button { font-size:11.5px; font-weight:350; }
  .results-head h2::after { font-size:17px; font-weight:560; letter-spacing:-.015em; }
  .results-head span { font-size:11.5px; font-weight:400; }
  .market-scope-controls a { font-size:11.5px !important; font-weight:380 !important; }
  .listing-main strong, .generic-listing-row .listing-main strong, .car-listing-row .listing-main strong { font-size:15px !important; font-weight:520 !important; letter-spacing:-.018em; }
  .transaction-side-chip, .listing-market-badges span { font-size:10px !important; font-weight:350 !important; }
  .listing-main small { font-size:11.5px !important; font-weight:300; color:#746a60; }
  .card-favorite-button { font-weight:200 !important; color:#7b632f; }
  .mobile-tabbar a { font-size:11.5px; font-weight:350; }
  .mobile-tabbar a.active { font-weight:500; }
}

/* iOS parity pass 6: subcategory pills smaller/lighter than main categories. */
@media (max-width:760px) {
  .subcategories, .sub-subcategories, .section-chip-grid { gap:5px; margin-bottom:6px; }
  .subcategories a, .sub-subcategories a, .section-chip { min-height:22px !important; padding:3px 8px !important; border-radius:999px !important; font-size:10.5px !important; font-weight:300 !important; line-height:1.05; }
  .subcategories a.active, .section-chip.active { font-weight:430 !important; }
  .category { min-height:38px; }
  .category-title { font-size:12.5px !important; font-weight:400 !important; }
}

/* iOS parity pass 7: clean unbroken header glyphs and very light web typography. */
@media (max-width:760px) {
  body.brand-shell { font-weight:300; }
  .topbar-inner { min-height:96px; grid-template-columns:96px minmax(0,1fr); padding:6px 14px 2px; }
  .brand-header-logo { height:82px !important; max-height:82px !important; }
  .mobile-action-cluster { gap:3px; overflow:hidden; }
  .mobile-action-icons { gap:5px; }
  .mobile-action-icons a { width:28px; height:28px; font-size:13px; font-weight:300; line-height:1; }
  .mobile-lang-chips { gap:5px; }
  .mobile-lang-chips a { min-width:31px; min-height:23px; padding:0 6px; font-size:10px; font-weight:350; }
  .mobile-world-pill { min-height:26px; padding:3px 8px; font-size:11px; font-weight:300; overflow:hidden; text-overflow:ellipsis; }
  .mobile-app-search { padding-bottom:7px; }
  .mobile-app-search form { grid-template-columns:minmax(0,1fr) 40px; }
  .mobile-app-search input { min-height:39px; font-size:14.5px; font-weight:300; }
  .mobile-app-search button { min-height:39px; font-size:16px; font-weight:300; }
  .category { min-height:35px; min-width:94px; padding:5px 9px; }
  .category-title { font-size:12px !important; font-weight:350 !important; }
  .category-icon { font-size:13px; }
  .subcategories a, .sub-subcategories a, .section-chip { min-height:21px !important; padding:3px 7px !important; font-size:10px !important; font-weight:280 !important; }
  .results-head h2::after { font-size:16px; font-weight:480; }
  .market-scope-controls a { min-height:28px; padding:4px 9px; font-size:11px !important; font-weight:320 !important; }
  .listing-main strong, .generic-listing-row .listing-main strong, .car-listing-row .listing-main strong { font-size:14px !important; font-weight:450 !important; letter-spacing:-.01em; }
  .transaction-side-chip, .listing-market-badges span { font-size:9.5px !important; font-weight:300 !important; }
  .listing-main small { font-size:11px !important; font-weight:280; }
  .listings tbody tr, .generic-listing-row, .car-listing-row { min-height:91px !important; grid-template-columns:64px minmax(0,1fr) !important; padding:7px 28px 7px 7px !important; }
  .thumb span, .thumb img, .generic-listing-row .thumb span, .generic-listing-row .thumb img, .car-listing-row .thumb span, .car-listing-row .thumb img { width:56px !important; height:56px !important; }
  .card-favorite-button { font-size:18px !important; font-weight:200 !important; }
  .mobile-tabbar a { font-size:11px; font-weight:300; }
}

/* iOS parity pass 8: compact/light messaging and admin mobile screens. */
@media (max-width:760px) {
  .plain-shell, .plain-shell .page { font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',sans-serif; font-weight:300; }
  .plain-shell .topbar-inner { min-height:74px; padding:7px 14px; }
  .plain-shell .brand-header-logo { height:64px !important; max-height:64px !important; }
  .plain-shell .topbar nav .post, .plain-shell .account-menu summary { min-height:32px; padding:5px 9px; border-radius:11px; font-size:12px; font-weight:350; }
  .plain-shell .page h1, .message-chat h2, .admin-card h1, .admin-card h2, .admin-card h3 { font-size:20px !important; line-height:1.1; font-weight:520 !important; letter-spacing:-.015em; margin:8px 0 8px; }
  .plain-shell .page p, .plain-shell small, .message-thread-row, .web-message-bubble, .admin-card, .admin-card input, .admin-card button { font-size:12px; font-weight:300; }
  .message-inbox-grid { display:block; gap:10px; }
  .message-thread-list, .message-chat { border-radius:14px; padding:10px; box-shadow:0 2px 10px rgba(68,36,12,.045); }
  .message-thread-list { display:grid; gap:8px; overflow:visible; max-height:none; }
  .message-listing-group { border-radius:13px; padding:7px; }
  .message-thread-row { min-width:0; padding:8px 9px; border-radius:11px; }
  .message-thread-row strong { font-size:12px; font-weight:520; }
  .web-message-list { max-height:320px; padding:8px; border-radius:12px; gap:6px; }
  .web-message-bubble { max-width:82%; padding:7px 9px; border-radius:13px; }
  .web-message-bubble strong { font-weight:450; }
  .telegram-web-composer { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px; margin-top:8px; }
  .telegram-web-composer input[type=text], .telegram-web-composer input[name=body] { min-height:38px; padding:8px 11px; border-radius:13px; font-size:13px; font-weight:300; }
  .telegram-web-composer button, .voice-record-button { min-height:36px; padding:6px 10px; border-radius:13px; font-size:12px; font-weight:450; }
  .telegram-web-composer input[type=file] { grid-column:1 / -1; width:100%; min-height:32px; padding:5px 8px; border-radius:10px; font-size:11px; }
  .admin-shell .admin-nav, .admin-nav { display:flex; gap:5px; overflow-x:auto; padding-bottom:5px; margin-bottom:8px; }
  .admin-nav a { flex:0 0 auto; min-height:26px; padding:5px 8px; border-radius:999px; font-size:11px; font-weight:400; }
  .admin-card { padding:9px !important; border-radius:13px !important; box-shadow:0 2px 10px rgba(68,36,12,.04) !important; }
  .admin-card .card-head, .admin-card header { gap:6px; }
  .admin-card label { font-size:11px; font-weight:400; }
  .admin-card input, .admin-card select, .admin-card textarea { min-height:32px; padding:6px 8px; border-radius:9px; font-size:12px; font-weight:300; }
  .admin-card button, .admin-card .button, .cat-row-actions .cat-act, .category-tree-group summary .cat-act-add { min-height:27px !important; padding:4px 8px !important; border-radius:9px !important; font-size:11px !important; font-weight:400 !important; }
  .cat-row { min-height:38px !important; padding:6px 7px !important; border-radius:10px !important; }
  .cat-row strong, .cat-row .cat-name { font-size:13px !important; font-weight:500 !important; }
  .cat-row small { font-size:10.5px !important; }
  .cat-row-actions { gap:3px; }
  .cat-row-actions .cat-act { min-width:28px !important; width:28px; }
  .admin-users .admin-user-row { min-height:58px !important; padding:8px !important; border-radius:12px !important; }
  .admin-users .admin-user-main strong { font-size:13px !important; font-weight:450 !important; }
  .admin-users .pill, .status-pill, .compact-protected { min-height:18px !important; padding:2px 6px !important; font-size:9.5px !important; font-weight:400 !important; }
  .admin-users .admin-user-actions button, .admin-users .admin-user-manage summary { min-height:25px !important; padding:3px 8px !important; font-size:10.5px !important; }
}

/* iOS parity pass 9: native-like message composer; no raw browser file input. */
.voice-file-picker { display:inline-flex; align-items:center; justify-content:center; cursor:pointer; border:1px solid #d8bc7a; background:#fff8e7; color:#4a2a10; font-weight:600; }
.voice-file-picker input[data-voice-file] { position:absolute !important; width:1px !important; height:1px !important; overflow:hidden !important; opacity:0 !important; pointer-events:none !important; }
.native-message-actions { display:flex; align-items:center; gap:7px; }
.message-send-button { white-space:nowrap; }
@media (max-width:760px) {
  .message-box form.message-form { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px; align-items:center; }
  .message-box form.message-form textarea { grid-column:1 / -1; min-height:48px; border-radius:16px; padding:10px 12px; font-size:13px; font-weight:300; resize:vertical; }
  .message-box .native-message-actions { grid-column:1 / -1; display:grid; grid-template-columns:42px 42px minmax(82px,1fr); gap:7px; }
  .telegram-web-composer { display:grid !important; grid-template-columns:minmax(0,1fr) 38px 38px 58px !important; gap:6px !important; align-items:center; padding:7px; border:1px solid #ead9b8; border-radius:999px; background:#fffdf8; }
  .telegram-web-composer input[name=body] { min-height:38px !important; border:0 !important; background:transparent !important; box-shadow:none !important; padding:0 8px !important; font-size:14px !important; font-weight:300 !important; }
  .telegram-web-composer .voice-file-picker, .telegram-web-composer .voice-record-button { width:38px; height:38px; min-height:38px !important; padding:0 !important; border-radius:999px !important; font-size:16px !important; }
  .telegram-web-composer .message-send-button { min-height:38px !important; padding:0 10px !important; border-radius:999px !important; font-size:11.5px !important; font-weight:520 !important; }
  .voice-file-picker { min-height:36px; border-radius:999px; font-size:16px; }
  .voice-record-button { min-width:38px; }
  .message-box .message-send-button { min-height:36px; border-radius:999px; font-size:12px; font-weight:520; }
  .web-message-row { display:flex; margin:4px 0; }
  .web-message-row.mine { justify-content:flex-end; }
  .web-message-row.theirs { justify-content:flex-start; }
  .web-message-bubble { border-radius:18px !important; max-width:78% !important; }
  .web-message-row.mine .web-message-bubble { background:#5b31dc; color:#fff; }
  .web-message-row.mine .web-message-bubble small, .web-message-row.mine .web-message-bubble time { color:rgba(255,255,255,.72); }
  .web-message-row.theirs .web-message-bubble { background:#fff; color:#2d2118; }
}

/* iOS parity pass 10: reliable message control labels + avoid fixed tab overlap. */
@media (max-width:760px) {
  .plain-shell .page, .brand-shell .page { padding-bottom:96px; }
  .telegram-web-composer .voice-file-picker, .telegram-web-composer .voice-record-button,
  .message-box .voice-file-picker, .message-box .voice-record-button {
    font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',sans-serif;
    font-size:12px !important;
    font-weight:520 !important;
    line-height:1 !important;
  }
  .message-box .native-message-actions { align-items:center; }
  .message-box .voice-file-picker, .message-box .voice-record-button { min-width:40px; }
}

/* iOS parity pass 11: selected category chips must be unmistakable and high-contrast. */
@media (max-width:760px) {
  .categories a.active, .category.active,
  .subcategories a.active, .sub-subcategories a.active,
  .section-chip.active,
  .market-scope-controls a.active {
    background:#421b08 !important;
    border-color:#421b08 !important;
    color:#fffdf7 !important;
    font-weight:700 !important;
    box-shadow:0 2px 8px rgba(66,27,8,.22) !important;
  }
  .categories a.active .category-title,
  .category.active .category-title,
  .categories a.active span,
  .category.active span {
    color:#fffdf7 !important;
    font-weight:720 !important;
  }
  .subcategories a.active, .sub-subcategories a.active, .section-chip.active {
    outline:1px solid rgba(255,255,255,.72) !important;
    outline-offset:-3px !important;
  }
  .market-scope-controls a.active { outline:1px solid rgba(255,255,255,.7) !important; outline-offset:-4px !important; }
}

/* iOS parity pass 12: visible web voice-recording countdown and pulse feedback. */
.voice-record-button.recording {
  background:#8d1d1d !important;
  border-color:#8d1d1d !important;
  color:#fff !important;
  box-shadow:0 0 0 4px rgba(141,29,29,.14), 0 0 0 calc(4px + 10px * (1 - var(--record-progress, 1))) rgba(141,29,29,.08) !important;
  min-width:70px !important;
  animation:auzas-record-pulse .9s ease-in-out infinite;
}
@keyframes auzas-record-pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.04)} }
@media (max-width:760px) {
  .telegram-web-composer { grid-template-columns:minmax(0,1fr) 38px minmax(58px,74px) 58px !important; }
  .telegram-web-composer .voice-record-button.recording,
  .message-box .voice-record-button.recording { font-size:11px !important; letter-spacing:-.02em; }
}
.voice-preview { display:flex; align-items:center; gap:8px; margin-top:6px; padding:6px 8px; border:1px solid #ead9b8; border-radius:14px; background:#fff8e7; color:#4a2a10; font-size:12px; }
.voice-preview audio { width:min(180px,42vw); height:30px; }
.voice-preview button { min-height:28px !important; padding:4px 8px !important; border-radius:999px !important; font-size:11px !important; }
@media (max-width:760px) {
  .telegram-web-composer .voice-preview { grid-column:1 / -1; }
  .message-box .voice-preview { grid-column:1 / -1; }
}

/* iOS parity pass 13: mobile header badges must not cover or clip icons; empty states should read like cards, not broken table cells. */
@media (max-width:760px) {
  .mobile-action-cluster, .mobile-action-icons { overflow:visible !important; }
  .mobile-action-icons { gap:7px !important; padding-top:2px; }
  .mobile-action-icons a {
    width:34px !important;
    height:34px !important;
    font-size:15.5px !important;
    line-height:1 !important;
    overflow:visible !important;
  }
  .mobile-action-icons .web-nav-badge {
    top:-2px !important;
    right:-2px !important;
    min-width:15px !important;
    width:auto !important;
    height:15px !important;
    line-height:15px !important;
    padding:0 3px !important;
    margin:0 !important;
    font-size:8.5px !important;
    font-weight:850 !important;
    border:1.5px solid #fffdf8 !important;
    box-shadow:0 1px 4px rgba(64,36,13,.18);
    transform:translate(18%,-12%);
    z-index:2;
  }
  .listings .empty-row,
  .listings .empty-row td {
    display:block !important;
    width:100% !important;
    max-width:none !important;
  }
  .empty-row td {
    padding:20px 18px !important;
    text-align:center !important;
    border-style:solid !important;
    border-radius:18px !important;
    background:#fffdf8 !important;
    box-shadow:0 10px 26px rgba(64,36,13,.06) !important;
  }
  .empty-row strong {
    max-width:220px;
    margin:0 auto 6px !important;
    font-size:18px !important;
    line-height:1.22 !important;
  }
  .empty-row small {
    max-width:260px;
    margin:0 auto !important;
    font-size:14px !important;
    line-height:1.28 !important;
  }
}

/* Mobile listing details modal: card/image tap opens details without losing list position. */
.listing-detail-modal { display:none; }
@media (max-width:760px) {
  body.listing-modal-open { overflow:hidden !important; }
  .listing-detail-modal {
    position:fixed;
    inset:0;
    z-index:1000;
    display:grid;
    grid-template-rows:auto minmax(0,1fr);
    background:#f7f0e4;
  }
  .listing-detail-modal[hidden] { display:none !important; }
  .listing-detail-modal-bar {
    min-height:52px;
    padding:8px 12px;
    display:flex;
    align-items:center;
    background:rgba(255,253,248,.96);
    border-bottom:1px solid #ead9b8;
    box-shadow:0 2px 12px rgba(64,36,13,.08);
  }
  .listing-detail-modal-bar button {
    min-height:36px;
    padding:0 14px;
    border-radius:999px;
    border:1px solid #d8bc7a;
    background:#fff8e7;
    color:#3b1b09;
    font-size:16px;
    font-weight:700;
  }
  .listing-detail-modal iframe {
    width:100%;
    height:100%;
    border:0;
    background:#f7f0e4;
  }
}

/* Messaging email preference: native-style instant switch, not checkbox form chrome. */
.message-email-settings.native-switch-form {
  margin: 10px 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
}
.native-switch-row {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #ead9b8;
  border-radius: 18px;
  background: rgba(255,253,248,.92);
  color: var(--brown);
  text-align: left;
  box-shadow: 0 6px 18px rgba(64,36,13,.06);
  cursor: pointer;
}
.native-switch-row:disabled { opacity: .72; cursor: wait; }
.native-switch-copy { display: grid; gap: 2px; min-width: 0; }
.native-switch-copy strong { font-size: 15px; line-height: 1.15; color: #2f1608; }
.native-switch-copy small { font-size: 12px; line-height: 1.25; color: #786850; }
.native-switch-pill {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  padding: 3px;
  background: #d8cfbf;
  box-shadow: inset 0 0 0 1px rgba(64,36,13,.12);
  transition: background .15s ease;
}
.native-switch-pill span {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(64,36,13,.24);
  transform: translateX(0);
  transition: transform .15s ease;
}
.native-switch-row.on .native-switch-pill { background: #421b08; }
.native-switch-row.on .native-switch-pill span { transform: translateX(20px); }
.native-switch-row em {
  min-width: 54px;
  color: #7a6449;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}
.native-switch-row.on em { color: #421b08; }
@media (max-width:760px) {
  .message-email-settings.native-switch-form { margin: 8px 0 10px; }
  .native-switch-row { min-height: 58px; grid-template-columns: minmax(0,1fr) auto; padding: 9px 10px; border-radius: 16px; }
  .native-switch-row em { grid-column: 1 / -1; min-width: 0; margin-top: -4px; text-align: right; font-size: 11px; }
  .native-switch-copy strong { font-size: 14px; }
  .native-switch-copy small { font-size: 11px; }
}


/* Messaging inbox UX: sender is secondary, real message preview is primary, newest groups remain scannable. */
.message-thread-sender{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#7a6e5f;font-size:.75rem;font-weight:300;line-height:1.15;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-preview-line{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:#342418;font-size:.82rem;font-weight:300;line-height:1.22}.message-thread-row strong{font-weight:520}.message-thread-row .web-unread-badge{flex:0 0 auto}.message-listing-group>header strong{font-weight:620}
@media (max-width:760px){.message-thread-sender{font-size:10px;font-weight:300}.message-preview-line{font-size:11px;line-height:1.2;-webkit-line-clamp:3}.message-thread-row{gap:4px!important}.message-listing-group>header strong{font-weight:520}}
