/* Task-oriented mobile UI, layered over the preserved Barrio brand. */
button, .actions button, .post button, .text-button { min-height:44px; }
button:focus-visible, summary:focus-visible { outline:3px solid var(--violet); outline-offset:3px; }
button, input, textarea, summary { touch-action:manipulation; }
.navigation { position:sticky;top:0;z-index:5;background:var(--paper);padding:8px 0; margin:12px 0; }
.business-hero { padding:24px 0 12px;max-width:none; }
.business-hero h1 { font:700 2rem/1.15 Georgia,serif;letter-spacing:-.03em; }
.business-profile-picker { display:grid;gap:6px;max-width:420px; }
.business-tools, .order-history, .zone-filters, .example-list, .profile-announcements { margin:14px 0;border:1px solid var(--line);border-radius:14px;padding:0 14px;background:#fffdf7; }
summary { min-height:48px;padding:12px 0;cursor:pointer;font-weight:700; }
.business-tools[open], .order-history[open], .zone-filters[open], .example-list[open], .profile-announcements[open] { padding-bottom:14px; }
.next-step { border:1px solid #b7cdbd;border-radius:16px;padding:14px;background:#edf3eb; }
.next-step p { margin:4px 0 10px; }
.next-step button { margin:4px 8px 4px 0; }
.next-step-note { background:#edf3eb;padding:12px;border-radius:12px;color:#294d40; }
.card-options { margin-top:8px;font-size:.85rem; }
.card-options summary { color:var(--muted);font-weight:600; }
.card-options button { margin:4px; }
.post-header { flex-wrap:wrap; }
.tag { white-space:normal;overflow-wrap:anywhere; }
.post-body > .actions { display:grid;grid-template-columns:1fr; }
.profile-primary { margin-bottom:16px; }
.profile-primary > button { width:100%; }
.profile-announcements .post { margin-top:12px; }
.conversation-thread { margin:10px 0; }
.conversation-thread summary { font-size:.9rem;color:var(--violet); }
.conversation-compose { margin-top:12px;display:grid;gap:8px; }
.conversation-compose label { display:grid;gap:6px; }
.conversation-compose textarea { resize:vertical; }
.conversation .actions { display:grid;grid-template-columns:1fr; }
.conversation-top { align-items:start; }
.conversation-top strong { min-width:0;overflow-wrap:anywhere; }
.conversation .status { flex-shrink:0; }
.conversation.closed { opacity:1;box-shadow:none; }
.order-history > .inbox { margin-top:8px; }
#offer-form { padding:8px 0; }
#offer-form label { font-weight:650; }
#offer-form details label { font-weight:400; }
#business-catalog { margin:16px 0; }
#business-data { margin-bottom:16px; }
#business-data:not([open]) { box-shadow:none; }
.dialog { width:min(560px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);overflow:auto; }
.dialog header { gap:12px;align-items:start; }
.dialog header > div { min-width:0; }
.dialog .icon-button { flex-shrink:0;width:44px;height:44px; }
.dialog h2 { overflow-wrap:anywhere; }
.dialog input, .dialog textarea { min-width:0; }
#pickup-form > button:last-child, #request-form > button:last-child, #business-update-form > button:last-child { position:sticky;bottom:0;box-shadow:0 -5px 12px #fffdf7cc; }
.publisher>label { display:grid;gap:6px; }
@media(max-width:720px) {
 main { padding:12px 12px 36px; }
 .intro { padding:20px 0 12px; }
 .intro h1 { font-size:2.3rem; }
 .business-hero { padding-top:18px; }
 .section-heading { flex-wrap:wrap;align-items:start; }
 .section-heading h2 { font-size:1.5rem; }
 .section-heading button { max-width:100%; }
 .navigation button { flex:1;white-space:normal;min-width:0;font-size:.85rem;padding:8px; }
 .business-nav { overflow:visible; }
 .next-step button { width:100%;margin:4px 0; }
 .offer-card > button { display:block;width:100%;margin:8px 0 0; }
 .publisher { padding:12px; }
 .post-cover { height:90px; }
 .business-tools .actions button { width:100%; }
}
@media(prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important;transition:none!important; } }

/* Free individual business access, also usable with the pilot disabled. */
#business-device-dialog{max-height:calc(100dvh - 24px);overflow:auto}
#business-device-dialog>section{padding:20px}
#business-device-dialog header{align-items:start;gap:12px}
#business-device-dialog header button{flex-shrink:0}
#business-device-dialog form{padding:0;min-width:0}
#business-device-dialog form[hidden]{display:none}
#business-device-dialog label{display:grid;gap:4px;min-width:0}
#business-device-dialog input{min-width:0;max-width:100%}
#business-device-dialog [role=status]{overflow-wrap:anywhere}

#transfer-owner-dialog,#transfer-accept-dialog{max-height:calc(100dvh - 24px);overflow:auto}
#transfer-owner-dialog>section,#transfer-accept-dialog>section{padding:20px}
#transfer-owner-dialog label,#transfer-accept-dialog label{display:grid;gap:4px;margin:12px 0}
#transfer-owner-dialog header,#transfer-accept-dialog header{gap:12px;align-items:start}
#transfer-owner-dialog header button,#transfer-accept-dialog header button{flex-shrink:0}
#transfer-owner-dialog [role=status],#transfer-accept-dialog [role=status]{overflow-wrap:anywhere}
