/* POCHI 121 — the same controls, with space for a mouse and keyboard. */
h3 { font-size: 15px; font-weight: 650; margin: 0 0 10px; }
a { color: var(--text-secondary); }
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (hover:hover) { button:not(:disabled):hover,summary:hover { background-color: var(--surface-hover); } .primary:not(:disabled):hover { background-color: var(--accent); filter: brightness(.94); } .languages button.active:hover { background: var(--text); } }
#nav { grid-template-columns: repeat(5,minmax(0,1fr)); }
#nav button { min-width: 0; }
#nav span { overflow-wrap: anywhere; }
#desktop-cart,.quick-quantity { display: none; }
.view-toggle { display: flex; justify-content: flex-end; gap: 3px; margin: 12px 0; }
.view-toggle button { min-height: 36px; padding: 6px 12px; font-size: 12px; border: 1px solid var(--line); border-radius: 6px; }
.view-toggle .active { background: var(--surface-subtle); color: var(--accent); }
.product-grid { min-width: 0; }
.field select { display: block; width: 100%; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); padding: 10px; }
.profile-completion { padding: 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; color: var(--text-secondary); }
.profile-completion p { font-size: 11px; margin-top: 8px; }
.profile-completion progress { display: block; width: 100%; height: 4px; margin: 12px 0; accent-color: var(--text-muted); }
progress::-webkit-progress-bar { background: var(--line); border-radius: 4px; }
progress::-webkit-progress-value { background: var(--text-muted); border-radius: 4px; }
.profile-jumps { display: flex; flex-wrap: wrap; gap: 4px 15px; margin: 16px 0 24px; }
.profile-jumps a { font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 4px; }
.profile-section { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 18px; margin: 0 0 18px; scroll-margin-top: 106px; min-width: 0; }
.profile-section .section-heading { padding: 0 0 14px; }
.profile-section h2 { font-size: 19px; }
.profile-section .field { margin-top: 18px; }
.profile-section .field small { display: block; margin: 7px 0 0; line-height: 1.65; }
.profile-section input,.profile-section select { min-width: 0; width: 100%; }
.profile-section .secondary { min-height: 44px; font-size: 12px; margin-top: 12px; }
.profile-section input[type=checkbox] { width: 18px; height: 18px; min-height: 18px; padding: 0; flex: none; accent-color: var(--accent); }
.profile-section fieldset { border: 0; padding: 0; margin: 22px 0 12px; min-width: 0; }
.profile-section legend { font-size: 13px; font-weight: 550; padding: 0; }
.choice-check { display: flex; align-items: flex-start; gap: 9px; padding: 10px 0; font-size: 12px; cursor: pointer; }
.choice-check small { display: block; margin-top: 4px; font-size: 11px; }
.industry-checks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 12px; }
.industry-checks .reason { grid-column: 1/-1; margin-bottom: 8px; }
.repeat-fields + .repeat-fields { border-top: 1px solid var(--line); margin-top: 16px; }
.repeat-fields .text-button { display: block; }
.branch-delivery { border-bottom: 1px solid var(--line); padding: 8px 0 18px; }
.branch-delivery summary { cursor: pointer; padding: 14px 0; font-size: 14px; overflow-wrap: anywhere; }
.branch-delivery:last-child { border: 0; }
.day-choices { display: flex; flex-wrap: wrap; gap: 5px 12px; }
.day-choices .reason { width: 100%; }
.day-choices label { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; font-size: 12px; }
.field-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.notification-row { border-bottom: 1px solid var(--line); padding: 12px 0 16px; }
.notification-row .field { margin-top: 6px; }
.profile-save { margin: 8px 0 28px; }
.profile-save .primary { margin-top: 16px; }
.account-grid { display: grid; gap: 28px; padding-top: 20px; }
.account-grid>*+* { padding-top: 20px; border-top: 1px solid var(--line); }
.wheel-direct { display: block; margin: 10px auto; max-width: 300px; text-align: center; font-size: 12px; }
.wheel-direct span { margin-right: 10px; }
.wheel-direct input { width: 92px; min-height: 44px; padding: 8px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 8px; text-align: center; font-variant-numeric: tabular-nums; }
.wheel-direct small { display: block; margin: 6px 0; }
.wheel { cursor: grab; user-select: none; }
.wheel.dragging { cursor: grabbing; scroll-snap-type: none; }
.profile-columns { min-width: 0; }
.map-link { display: inline-flex; min-height: 44px; align-items: center; }
@media (max-width:599px) { .profile-section { padding: 16px; } .profile-section .field input,.profile-section .field select { font-size: 16px; } .industry-checks { grid-template-columns: 1fr; } html[data-layout=app][data-view=cards] .product-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; } html[data-layout=app][data-view=cards] .product-card { flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 16px; } html[data-layout=app][data-view=cards] .product-main { flex-basis: 100%; flex-direction: column; align-items: stretch; } html[data-layout=app][data-view=cards] .product-photo { width: 100%; height: 180px; } html[data-layout=app][data-view=cards] .qty-button { margin-left: auto; } }
@media (min-width:600px) {
 .topbar { max-width: 1024px; padding: 10px 28px; border-left: 0; border-right: 0; }
 main { max-width: 1024px; width: 100%; padding: 28px 28px 240px; border-left: 0; border-right: 0; }
 h1 { font-size: 32px; }
 .industry-list,.group-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
 .genre-group { margin: 0; align-self: start; }
 .industry-tile { min-width: 0; }
 .industry-tile strong { font-size: 15px; }
 .bottom-actions,#nav { width: min(100%,1024px); }
 html[data-view=cards] .product-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 12px 0; }
 html[data-view=cards] .product-card { flex-wrap: wrap; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); align-content: start; position: relative; gap: 10px; }
 html[data-view=cards] .product-main { flex-direction: column; width: 100%; flex-basis: 100%; align-items: stretch; }
 html[data-view=cards] .product-photo { width: 100%; height: 154px; }
 html[data-view=cards] .product-text { display: block; }
 html[data-view=cards] .qty-button,html[data-view=cards] .select-product { margin-left: auto; }
 .intro-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
 .intro-cards article { min-width: 0; margin: 0; }
 .profile-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; align-items: start; }
 .profile-section { margin-bottom: 0; }
 #profile-delivery,#profile-notifications { grid-column: 1/-1; }
 .notification-row { display: grid; grid-template-columns: minmax(0,1fr) 190px; gap: 20px; align-items: center; }
 .account-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
 .account-grid>*+* { padding-top: 0; border-top: 0; }
 .profile-save .primary { max-width: 420px; }
}
@media (min-width:1024px) {
 body { max-width: 1440px; margin: auto; display: grid; grid-template-columns: 156px minmax(0,1fr) 260px; column-gap: 20px; align-items: start; padding: 0 24px; }
 .topbar { grid-column: 1/-1; grid-row: 1; width: 100%; max-width: none; padding: 8px 0; }
 #app-status { position: fixed; top: 82px; left: 50%; transform: translateX(-50%); width: 100%; max-width: 1392px; }
 main { grid-column: 2; grid-row: 2; max-width: none; padding: 22px 0 36px; min-width: 0; width: 100%; min-height: calc(100dvh - 82px); }
 .hero { margin: 20px 0 24px; }
 h1 { font-size: 30px; letter-spacing: -.025em; }
 .hero p { max-width: 650px; }
 #nav { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; align-self: start; position: sticky; top: 106px; left: auto; transform: none; width: 100%; min-height: 0; border: 0; padding: 0; background: var(--transparent); gap: 6px; }
 #nav button { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px; border-radius: 8px; font-size: 12px; min-height: 48px; }
 #nav button.active { background: var(--accent-soft); }
 #desktop-cart { grid-column: 3; grid-row: 2; display: block; position: sticky; top: 106px; margin-top: 24px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 18px; max-height: calc(100dvh - 126px); overflow: auto; min-width: 0; }
 .cart-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
 .cart-panel-heading h2 { font-size: 18px; }
 .cart-panel-heading span { font-size: 11px; color: var(--text-muted); }
 .cart-panel-items { max-height: min(45dvh,500px); overflow: auto; margin: 16px 0; }
 .cart-panel-line { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 12px; text-align: left; padding: 12px 0; font-size: 12px; border-bottom: 1px solid var(--line); }
 .cart-panel-line span { min-width: 0; overflow-wrap: anywhere; }
 .cart-panel-line strong { flex: none; font-size: 11px; font-variant-numeric: tabular-nums; }
 #desktop-cart .estimate strong { font-size: 20px; }
 #desktop-cart .primary { margin-top: 16px; font-size: 12px; padding: 12px; min-height: 46px; }
 #actions { grid-column: 2; grid-row: 3; }
 .bottom-actions { position: static; transform: none; width: 100%; max-width: 520px; border: 0; padding: 4px 0 32px; }
 html[data-layout=app]:not([data-page=cart]) .bottom-actions.with-nav { display: none; }
 html[data-page=cart] main { min-height: 0; }
 html[data-view=cards] .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
 html[data-view=cards] .product-card { padding: 12px; gap: 8px; }
 html[data-view=cards] .product-photo { height: 136px; }
 .product-name { font-size: 13px; }
 .product-meta { font-size: 10px; }
 .product-spec { font-size: 11px; }
 .product-price { font-size: 12px; }
 .quick-quantity { display: grid; grid-template-columns: 1fr; gap: 6px; width: 100%; align-self: end; }
 .quick-step { display: flex; align-items: center; width: 100%; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
 .quick-step button { min-width: 32px; min-height: 36px; padding: 4px; font-size: 18px; }
 .quick-step input { min-width: 0; width: 100%; height: 36px; border: 0; text-align: center; padding: 4px; background: var(--surface); font-variant-numeric: tabular-nums; appearance: textfield; }
 .quick-step input::-webkit-inner-spin-button { appearance: none; }
 .quick-quantity select { min-width: 0; width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; min-height: 36px; padding: 4px; font-size: 11px; }
 .quick-add { border-radius: 6px; background: var(--surface-subtle); border: 1px solid var(--line); min-height: 36px; font-size: 12px; }
 .product-card>.qty-button { display: none; }
 html[data-view=rows] .product-card { gap: 14px; }
 html[data-view=rows] .quick-quantity { width: 136px; flex: none; grid-template-columns: 1fr; }
 html[data-view=rows] .product-photo { width: 80px; height: 90px; }
 .restock { padding: 0 12px; }
 .restock .product-photo { height: 100px; }
 .restock .quick-quantity { display: none; }
 .restock .product-card>.qty-button { display: grid; margin: 0 0 0 auto; }
 .sheet { bottom: auto; top: 50%; transform: translate(-50%,-50%); border-radius: 16px; width: 460px; max-height: calc(100dvh - 116px); }
 .sheet-backdrop { inset: 82px 0 0; }
 #toast { bottom: 32px; }
 .industry-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .group-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .genre-group { padding: 10px; }
 .genre-group summary strong { font-size: 13px; }
 .genre-grid { gap: 8px; }
 .genre-tile { padding: 10px; }
 .genre-tile strong { font-size: 12px; }
 html[data-layout=setup] { --setup-max: 1120px; }
 html[data-layout=setup] body { grid-template-columns: minmax(0,1fr); max-width: 1200px; }
 html[data-layout=setup] main { grid-column: 1; padding: 28px 0 12px; min-height: 0; }
 html[data-layout=setup] #actions { grid-column: 1; }
 html[data-layout=setup] #desktop-cart,html[data-layout=setup] #nav { display: none; }
 html[data-layout=setup] .bottom-actions { margin: 8px 0 0; }
 html[data-layout=setup] .field,html[data-layout=setup] #auth-form { max-width: 560px; }
 html[data-layout=setup] #auth-form .field { max-width: none; }
 html[data-layout=setup] .industry-list,html[data-layout=setup] .group-list { grid-template-columns: repeat(4,minmax(0,1fr)); }
 html[data-layout=setup] .industry-tile { min-height: 88px; padding: 14px; }
 html[data-layout=setup] .intro-cards article { padding: 24px; }
 html[data-layout=setup] .welcome-mark { margin-top: 12px; }
 html[data-layout=setup] .hero { margin-top: 16px; }
 html[data-layout=setup] .guide-saved { margin-top: 16px; }
 html[data-layout=setup] .setup-progress { max-width: 560px; }
 #profile-delivery,#profile-notifications { grid-column: auto; }
 .profile-columns { display: block; }
 .profile-section { margin-bottom: 20px; }
 .notification-row { grid-template-columns: minmax(0,1fr) 150px; gap: 12px; }
 .account-grid { grid-template-columns: 1fr; }
 .account-grid>*+* { padding-top: 20px; border-top: 1px solid var(--line); }
}
@media (min-width:1280px) { body { grid-template-columns: 168px minmax(0,1fr) 280px; } html[data-view=cards] .product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } html[data-layout=setup][data-view=cards] .product-grid { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media (min-width:1400px) { .profile-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); } #profile-delivery,#profile-notifications { grid-column: 1/-1; } .profile-section { margin-bottom: 0; } }
