/* v82: mobile-only density improvements, no reduced touch targets. */
.compact-top-button,.compact-chat-toolbar,.compact-section-bar,.compact-ai-disclosure,.compact-settings-tabs{display:none}
.compact-sheet{--sheet-border:var(--line,#ded8e7);border:1px solid var(--sheet-border);padding:0;color:var(--ink);background:var(--ui-surface);width:min(380px,100%);max-width:100%;max-height:100dvh;height:100dvh;margin:0 0 0 auto;border-radius:12px 0 0 12px;box-sizing:border-box}
.compact-sheet::backdrop{background:rgba(26,21,33,.38)}
body.compact-overlay{overflow:hidden}
.compact-sheet-head{display:flex;align-items:center;justify-content:space-between;padding:8px 16px;border-bottom:1px solid var(--line)}
.compact-sheet-head h2{font-size:22px;margin:0;line-height:1.3}
.compact-sheet-head>button{width:44px;height:44px;border:0;background:var(--ui-soft);border-radius:8px;color:var(--ink);font-size:28px;cursor:pointer}
.compact-identity{padding:16px 16px 8px;display:flex;justify-content:space-between;gap:8px;align-items:center}
.compact-identity strong{font-size:16px;overflow-wrap:anywhere}.compact-identity>span{font-size:14px;color:var(--muted)}
.compact-groups{display:flex;gap:4px;margin:8px 16px 16px;background:var(--ui-soft);padding:4px;border-radius:8px}
.compact-groups button{flex:1;min-width:0;min-height:44px;border:0;border-radius:6px;background:none;color:var(--ink);font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.compact-groups button[aria-pressed=true]{background:var(--accent);color:#fff}
.compact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 16px 16px}
.compact-link{display:flex;align-items:center;gap:8px;min-height:52px;padding:8px;border:1px solid var(--line);background:var(--ui-surface);color:var(--ink);border-radius:8px;font:inherit;font-size:14px;line-height:1.4;text-align:left;cursor:pointer;min-width:0}
.compact-link .ui-icon{width:20px;height:20px;flex:none;color:var(--accent)}
.compact-link[aria-current=page]{border-color:var(--accent);background:var(--ui-soft);font-weight:750}
.compact-sheet-foot{padding:12px 16px;border-top:1px solid var(--line)}
.compact-sheet-foot .compact-link{width:100%;border:0}
.compact-tools-body{padding:16px;font-size:16px;line-height:1.5}
.compact-tools-body>details{display:block!important;margin:0 0 12px!important;max-height:none!important;color:var(--ink)}
.compact-tools-body>details>summary{min-height:44px;font-size:16px;cursor:pointer}
.compact-categories{padding:16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.compact-categories button{min-width:0!important;width:100%!important}
.compact-sheet :focus-visible,.compact-top-button:focus-visible,.compact-chat-toolbar button:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
@media(max-width:760px){
 body{padding-bottom:64px}
 .topbar,body.app-subview .topbar,body:has(.chat-show-thread) .topbar{position:sticky;top:0;z-index:50;display:grid;grid-template-columns:44px minmax(0,1fr) auto 44px;grid-template-rows:auto;gap:4px;align-items:center;height:56px;min-height:56px;padding:4px 8px;background:var(--ui-surface);border-bottom:1px solid var(--line)}
 .compact-top-button{display:grid;place-items:center;width:44px;min-height:44px;border:0;border-radius:8px;background:none;color:var(--ink);padding:10px;cursor:pointer}
 .compact-top-button svg{width:24px;height:24px}
 .topbar .brand{gap:6px;font-size:20px;min-width:0;margin:0}.topbar .brand-avatar{width:28px;height:28px;border-radius:8px}
 .topbar .location-field{width:auto;min-width:0;max-width:136px;height:44px;min-height:44px;padding:6px 8px;gap:4px;font-size:14px;white-space:nowrap;margin:0}
 .topbar .location-value{overflow:hidden;text-overflow:ellipsis}.topbar .location-icon{width:16px;height:18px;flex:none}.topbar .location-chevron{display:none}
 .topbar .header-actions{display:none}
 .topbar .searchbar,body:has(.chat-show-thread) .topbar .searchbar{display:none}
 body.compact-search-open .topbar{height:auto}
 body.compact-search-open .topbar .searchbar{display:flex;grid-column:1/-1;grid-row:2;height:48px;margin:4px 0;width:100%;padding:4px 6px}
 .topbar .searchbar input{font-size:16px;min-width:0}
 .topbar .searchbar .search-submit{min-height:40px;padding:6px 12px;font-size:14px}
 .mobile-nav{display:grid;grid-template-columns:1fr 1.3fr .85fr .8fr 1fr;height:64px;min-height:64px;padding:4px 8px calc(4px + env(safe-area-inset-bottom));gap:2px}
 .mobile-nav button{min-width:0;min-height:52px;padding:2px 0;font-size:14px;gap:2px;border-radius:8px}
 .mobile-nav button .ui-icon{width:22px;height:22px}
 .mobile-nav button[data-nav=create] .ui-icon{width:30px;height:30px;padding:4px;border-radius:8px}
 .wrap{width:calc(100% - 24px);margin-left:auto;margin-right:auto}
 .hero.hybrid-hero{margin-top:12px;padding:0;min-height:0;display:block;background:none;border-radius:0}
 body.app-subview .hero.hybrid-hero,body.app-subview .category-section,body.app-subview .now-searching{display:none!important}
 .hybrid-hero .hero-copy{padding:0;min-height:0}
 .hybrid-hero .hybrid-eyebrow,.hybrid-hero .hybrid-visual,.hybrid-hero .hybrid-stats,.hybrid-hero .hero-copy>p,.now-searching{display:none}
 .hybrid-hero h1{display:none}
 .hybrid-hero h1 br{display:none}
 .hybrid-hero .hero-search{margin:0;min-height:48px;padding:4px 8px}
 .hero-search input{font-size:16px}
 .hero-search .btn{min-height:40px;padding:8px 12px;font-size:14px}
 .growth-home-links{display:none}
 .growth-home-links .text-btn{min-height:44px;font-size:14px}
 .category-section{margin-top:8px;margin-bottom:12px;padding:0}
 .category-section .section-heading{display:none}
 #categoryList{display:block;padding:4px 0 8px}
 #categoryList .category-featured-grid{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x proximity}
 #categoryList .category-editorial{flex:0 0 112px;min-width:112px;max-width:112px;height:96px;min-height:96px;padding:4px;border-radius:8px;scroll-snap-align:start}
 #categoryList .category-editorial-label{padding:4px 2px;gap:4px;min-height:40px;align-items:start}
 #categoryList .category-editorial-label>span{display:none}
 #categoryList .category-secondary-block{display:none}
 #categoryList img{height:44px!important;max-height:44px!important;object-fit:contain}
 #categoryList strong,#categoryList span{font-size:14px;line-height:1.2}
 .listing-guide{display:none}
 .results-section{margin-top:8px;margin-bottom:16px;padding:0!important}
 .search-tools{margin:0 0 8px;gap:8px}
 .search-tools .btn{min-height:44px;padding:8px 12px;font-size:14px}
 .results-header{margin:0 0 12px;gap:8px}
 .results-header select{min-height:44px;padding:8px;font-size:14px}
 .listing-grid{gap:12px}
 .listing-card .card-image{height:112px;min-height:0;aspect-ratio:auto}
 .listing-card .card-body{padding:10px}
 .listing-card .card-price{font-size:18px}
 .listing-card .card-title{font-size:16px;line-height:1.3}
 .listing-card .card-meta{font-size:14px;gap:4px}
 .listing-card .favorite-toggle{width:44px;height:44px;min-height:44px}
 .section-heading h2,#resultsTitle{font-size:22px}
 .section-heading .eyebrow,#resultsEyebrow{display:none}
 .section-heading{margin-bottom:12px}
 body.app-subview .filter-toolbar,body.app-subview .search-tools{display:none!important}
 body.app-subview .results-section{margin-top:12px}
 .account-sidebar{display:none!important}
 .account-layout{display:block;gap:0}
 .account-panel{padding:0;min-height:0}
 .account-page-heading,.account-welcome{margin-bottom:16px;gap:8px}
 .account-page-heading .eyebrow,.account-welcome .eyebrow{display:none}
 .account-page-heading h1,.account-welcome h1{font-size:24px;margin:0;line-height:1.3}
 .account-page-heading p,.account-welcome p{font-size:14px;margin:4px 0;line-height:1.5}
 .account-page-heading .btn,.account-welcome .btn{min-height:44px;padding:8px 12px;font-size:14px}
 .account-stat-grid{gap:8px;margin-bottom:16px}
 .account-stat{padding:12px;min-height:80px}.account-stat strong{font-size:26px}.account-stat span{font-size:14px}
 .account-section-head{margin:16px 0 8px}.account-section-head h2{font-size:20px}.account-section-head p{font-size:14px;margin:4px 0}
 .account-listing{padding:12px;gap:10px}.account-listing-photo{width:64px;height:64px}
 .account-listing-title{font-size:16px}.account-listing-meta{font-size:14px}
 .account-listing-actions .btn{font-size:14px;min-height:44px;padding:8px}
 .compact-settings-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 12px}
 .compact-settings-tabs button{min-height:44px;padding:8px;border:1px solid var(--line);border-radius:8px;font-family:inherit;font-size:14px;color:var(--ink);background:var(--ui-surface);cursor:pointer}
 .compact-settings-tabs button[aria-pressed=true]{border-color:var(--accent);background:var(--ui-soft);color:var(--accent);font-weight:700}
 [data-settings-hidden]{display:none!important}
 .account-panel>.settings-card{padding:16px;margin-bottom:12px}
 .account-panel>.settings-card[data-settings-panel=account]{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;align-items:center}
 .settings-card[data-settings-panel=account]>.account-avatar{width:44px;height:44px;font-size:24px}
 .settings-card[data-settings-panel=account]>.btn{grid-column:1/-1;font-size:14px;min-height:44px;padding:8px}
 .settings-info h2{font-size:18px;margin:0 0 4px}.settings-info p{font-size:14px;line-height:1.5;margin:2px 0;overflow-wrap:anywhere}
 body:has(.chat-show-thread) .results-section{width:100%;margin:0!important}
 body:has(.chat-show-thread) .results-section>.section-heading{display:none!important}
 body:has(.chat-show-thread) .footer{display:none}
 .account-panel .chat-layout.chat-show-thread{height:calc(100dvh - 120px - env(safe-area-inset-bottom));min-height:0;margin:0;border:0;gap:0}
 .chat-show-thread .chat-main{height:100%;min-height:0;border:0;border-radius:0;display:flex;flex-direction:column;overflow:hidden}
 .chat-show-thread .chat-head{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;grid-template-areas:"back person menu";padding:4px 8px;gap:4px;min-height:56px}
 .chat-show-thread .chat-person{gap:8px;min-height:48px}
 .chat-show-thread .chat-person .conversation-avatar{width:32px;height:32px;min-width:32px;flex-basis:32px;font-size:18px}
 .chat-person-copy{min-width:0;display:block}
 .chat-person-copy>strong{font-size:16px;line-height:1.3}
 .chat-person-copy>span:not(.status-badge){display:none}
 .chat-show-thread .chat-head .compact-chat-status{display:block;grid-area:auto;font-size:14px;line-height:1.3;background:none;color:var(--muted);padding:0!important;max-width:100%;white-space:normal}
 .chat-show-thread .chat-listing{padding:4px 12px;min-height:44px;gap:8px}
 .chat-show-thread .chat-listing-photo{display:none}
 .chat-show-thread .chat-listing-copy{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;width:100%}
 .chat-show-thread .chat-listing-title{font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}
 .chat-show-thread .chat-listing-price{font-size:14px;white-space:nowrap;flex:none}
 .chat-show-thread .chat-listing-arrow{font-size:20px}
 .chat-show-thread .chat-safety-warning,.chat-show-thread .chat-tools-v77,.chat-show-thread .chat-assistant-details{display:none}
 .compact-chat-toolbar{display:flex;gap:8px;padding:0 12px;border-bottom:1px solid var(--line);min-height:44px}
 .compact-chat-toolbar button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;flex:1;padding:4px;background:none;border:0;font-size:14px;font-family:inherit;color:var(--ink);cursor:pointer}
 .compact-chat-toolbar .ui-icon{width:18px;height:18px;color:var(--accent)}
 .chat-show-thread .chat-main>.chat-messages{flex:1 1 0;min-height:100px;max-height:none;padding:12px;overflow-y:auto;overscroll-behavior:contain}
 .chat-main .chat-bubble{padding:10px 12px;font-size:16px;line-height:1.5;max-width:88%;border-radius:10px}
 .chat-message-meta{margin-top:4px;font-size:14px}
 .chat-show-thread .chat-compose{padding:8px 12px;gap:8px;min-height:64px}
 .chat-compose input{min-width:0;font-size:16px;min-height:44px;padding:8px 12px}
 .chat-compose>.btn{width:auto;min-width:44px;max-width:130px;min-height:44px;padding:10px;font-size:14px;gap:0}
 .chat-compose>.btn:has(.ui-icon){width:44px;max-width:44px;font-size:0}
 .chat-compose>.btn .ui-icon{display:block;width:22px;height:22px}
 .compact-ai-disclosure{display:block;font-size:14px;line-height:1.5;padding:4px 12px;margin:0;background:var(--ui-soft);color:var(--ink)}
 .chat-more-menu .v78-chat-draft-note{display:flex;flex-direction:column;padding:8px;font-size:14px}
 .chat-more-menu .v78-chat-draft-note span{max-width:none}
 .chat-show-thread .chat-tools-v77[open],.chat-show-thread .chat-safety-warning[open]{display:none}
 .chat-show-thread .chat-main:has(.deal-controls){height:100%;overflow-y:auto}
 .chat-show-thread .chat-main:has(.deal-controls)>.chat-messages{min-height:180px;max-height:none}
 #appView .tab-row:has([data-action=admin-tab]){display:none}
 .compact-section-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;margin:0 0 12px;font-size:14px;border-bottom:1px solid var(--line)}
 .compact-section-bar button{display:flex;align-items:center;gap:6px;border:0;color:var(--accent);background:none;font:inherit;min-height:44px;cursor:pointer}
 .compact-section-bar .ui-icon{width:18px;height:18px}
 #appView:has([data-action=admin-tab])>.listing-head{margin-bottom:8px}
 #appView:has([data-action=admin-tab]) h1{font-size:24px;line-height:1.3;margin:0 0 4px}
 #appView:has([data-action=admin-tab])>.eyebrow{display:none}
 .admin-page-heading{margin:0 0 8px}
 .admin-page-heading>.eyebrow{display:none}
 .admin-page-heading p{font-size:14px;line-height:1.5;margin:4px 0 8px}
 .admin-card{padding:16px;margin-bottom:12px}
 .footer{padding-top:16px}
}
@media(min-width:761px){.compact-chat-status{display:none!important}}
@media(max-width:360px){
 .topbar .brand span{display:none}
 .compact-grid{gap:6px;padding:0 12px 12px}
}
@media(prefers-reduced-motion:reduce){.compact-sheet *{scroll-behavior:auto;transition:none}}
/* Shared account labels must wrap on 320px; do not clip longer sections. */
.compact-link>span{min-width:0;overflow-wrap:anywhere}
@media(max-width:360px){.compact-grid{grid-template-columns:1fr}}

.compact-grid-categories{padding-top:16px}
