/* Air Flow: one palette and component scale for the existing accounting UI. */
.logo{border:0;background:none;text-align:left;cursor:pointer}
#nav button.active{background:var(--accent-fill);color:#fff}
.af-search-line .search-with-voice{margin:0}
.products-stock-commands{display:flex;flex:none;align-items:center;gap:6px}
.products-stock-commands .af-stock-command{display:inline-flex;align-items:center;gap:6px;min-height:48px;white-space:nowrap}
.af-stock-command .af-icon{flex:none}
.stock-picker-products{display:grid;gap:6px;max-height:min(48vh,25rem);overflow-y:auto;overscroll-behavior:contain}
.stock-picker-product{grid-template-columns:minmax(0,1fr);min-width:0}
.stock-picker-product.is-current{border-color:var(--accent-border);background:var(--accent-light)}
.stock-picker-count{margin:8px 0 0;color:var(--sub);font-size:12px}
@media(max-width:760px){
 .products-stock-commands .af-stock-command{width:44px;min-width:44px;min-height:48px;justify-content:center;padding:0}
 .products-stock-commands .af-stock-command span{display:none}
 /* A text-only personal layout needs its label and its own row beside search. */
 .af-search-line:has(.af-stock-command[data-layout-look="text"]){flex-wrap:wrap}
 .products-stock-commands:has([data-layout-look="text"]){flex:1 0 100%;flex-wrap:wrap}
 .products-stock-commands .af-stock-command[data-layout-look="text"]{
   width:auto;min-width:0;max-width:100%;padding-inline:12px;white-space:normal;
 }
 .products-stock-commands .af-stock-command[data-layout-look="text"] > span{display:inline}
}
@media(max-width:340px){
 .af-search-line:has(.products-stock-commands){flex-wrap:wrap;gap:6px}
 .af-search-line:has(.products-stock-commands) .search-with-voice{flex-basis:100%}
 .products-stock-commands{margin-inline-start:auto}
}
.af-product-copy .af-name-button{display:block;width:100%}
.af-product-copy .af-stock{display:flex}
.af-product-cards{touch-action:pan-y}
.simple-mode .af-product-name strong{font-size:16px}
.simple-mode .af-stock,.simple-mode .af-price{font-size:14px}


html{scroll-padding-top:90px}body{font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.12px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{transition:background .18s,border-color .18s,color .18s,box-shadow .18s}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--focus);outline-offset:3px}button svg{pointer-events:none}.af-icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle}.point-right{transform:rotate(180deg)}.af-muted{color:var(--sub);font-size:13px}.af-kicker{font-size:10px;letter-spacing:1.7px;font-weight:650;color:var(--sub)}
.sidebar{width:224px;padding:25px 15px 17px;background:var(--nav);border-right:1px solid var(--line)}.logo{padding:0 8px;font-size:19px;letter-spacing:-.6px;gap:10px}.logo-square{background:none;color:var(--ink);width:36px;height:42px;box-shadow:none}.logo-square .af-icon{width:35px;height:35px;stroke-width:1.3}.logo small{letter-spacing:.2px;font-size:10px;font-weight:450;margin-top:1px;color:var(--sub)}.store-label{padding:17px 10px 20px;font-size:11px;border-bottom:0;margin-bottom:2px}.store-label small{font-size:10px}.sidebar nav{gap:4px}.sidebar nav button{height:44px;font-size:13px;font-weight:500;border-radius:10px;padding:10px 13px;gap:12px;margin:0}.sidebar nav button>span:first-child{width:20px;display:grid;place-items:center}.sidebar nav button.active{background:var(--accent-fill);color:#fff;box-shadow:0 4px 10px #1769e819}.sidebar nav button.active .count{background:#ffffff24;color:#fff}.sidebar .count{margin-left:auto;padding:2px 7px;border-radius:6px;font-size:10px}.sidebar-bottom{padding-top:14px;margin-top:auto}.sidebar-link{font-size:11px;padding:7px 10px;min-height:32px}.sidebar-status{font-size:11px}.account-avatar{border-top:1px solid var(--line);padding-top:16px;margin-top:12px;font-size:13px}.account-avatar small{font-size:10px}
.workspace{margin-left:224px}.workspace>header{height:72px;padding:0 28px;border-bottom:1px solid var(--line);background:var(--nav);position:sticky;top:0;z-index:12}.breadcrumbs{font-size:13px}.header-actions{gap:10px}.header-actions>.icon-button{border:1px solid var(--line);border-radius:11px;width:40px;height:40px;background:var(--white)}.connection{font-size:10px;max-width:160px}.workspace main{padding:28px;max-width:1900px;margin:0 auto}.button{border:1px solid var(--line);border-radius:10px;padding:10px 15px;min-height:40px;font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.4;background:var(--white);color:var(--ink)}@media (hover:hover) and (pointer:fine){.button:hover{background:var(--hover)}}.button.primary{background:var(--accent-fill);color:#fff;border-color:var(--accent-fill);box-shadow:0 3px 8px #1769e814}.button.primary:hover{filter:brightness(1.06)}.button.danger{background:var(--danger-bg);color:var(--danger);border-color:var(--danger-border)}.button.small{font-size:12px;padding:9px 12px}.button.full{display:flex;width:100%}.icon-button{border-radius:10px;min-width:40px;min-height:40px}.button:disabled{filter:none}
.page-head{margin-bottom:26px;gap:20px}.page-head h1{font-size:30px;letter-spacing:-1px;font-weight:650}.page-head p{font-size:13px;max-width:650px;line-height:1.6;color:var(--sub)}.eyebrow{font-size:10px;letter-spacing:1.5px;margin-bottom:8px}.panel,.settings-card,.kpi,.quick-action,.onboarding{border-radius:var(--af-radius);box-shadow:var(--af-shadow);border-color:var(--line)}.panel-head{padding:18px 22px}.panel-head h2{font-size:15px;font-weight:650}.panel-body{padding:22px}.kpi{padding:22px}.kpi-top{font-size:12px}.kpi strong{font-size:29px;margin-top:20px;font-weight:650}.kpi small{font-size:11px;line-height:1.6}.kpi.accent{background:var(--accent-light);border-color:var(--accent-border)}.kpi.accent strong{color:var(--ink)}.kpi.accent small,.kpi.accent .kpi-top{color:var(--text-secondary)}.quick-action b,.stock-item strong{font-size:13px}.quick-action small,.stock-item small{font-size:11px}.tag{font-size:11px;border-radius:6px;padding:5px 8px}.hint-box,.notice,.conflict p{font-size:12px;line-height:1.7;border-radius:10px}.hint-box{background:var(--raised)}.table-wrap th{font-size:11px;padding:14px 16px}.table-wrap td,.table-wrap td strong{font-size:13px}.table-wrap td small{font-size:11px}.stat-tabs{border-radius:10px}.stat-tabs button{min-height:36px;font-size:12px;border-radius:7px}.filters{gap:10px}.filters input,.filters select{font-size:13px;border-radius:9px;min-height:40px}.field{gap:7px;margin-bottom:18px}.field>span,.field>label{font-size:12px}.field input,.field select,.field textarea{font-size:14px;min-height:44px;border-radius:10px;background:var(--input)}.field small{font-size:11px}.field-row{gap:16px}.form-line{border-radius:12px;padding:18px}.form-actions{gap:10px}.detail-summary>div{border-radius:12px}.detail-summary small{font-size:11px}.detail-summary strong{font-size:22px}.detail-section h3{font-size:15px}.detail-section p{font-size:13px}.settings-card{padding:25px}.settings-card h2{font-size:18px}.settings-card p,.settings-card li{font-size:13px}.partner-card h3{font-size:15px}.partner-card p{font-size:12px}.partner-card .partner-numbers{font-size:13px}.balance-list small{font-size:12px}.empty h3{font-size:20px}.empty p{font-size:13px}.empty.compact h3{font-size:16px}.empty.compact p{font-size:12px}.chart-col b{font-size:10px}.chart-col span{font-size:10px}.chart-empty{font-size:13px}footer{font-size:10px;padding:20px 28px}.toast{border-radius:12px;font-size:13px;padding:14px 20px;z-index:100}.update-banner{border-radius:12px;font-size:13px}
.quick-search{border:1px solid var(--line);border-radius:12px;box-shadow:0 2px 8px var(--shadow);padding:0 9px 0 16px;background:var(--input);gap:10px;min-height:52px}.quick-search>span:first-child{font-size:23px;color:var(--sub)}.quick-search input{font-size:14px;min-width:0;padding:14px 0;color:var(--ink)}.quick-search .key{font-size:9px;white-space:nowrap}.mic-control{border-radius:9px;min-height:38px}.mic-status{margin-top:5px}.mic-copy strong{font-size:10px;font-weight:450}.mic-copy>span:empty{display:none}.search-with-voice[data-phase="idle"] .mic-status{display:none}
.af-search-title{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.af-search-title h1{font-size:29px;line-height:1.2;font-weight:650;letter-spacing:-1px;margin:7px 0 0}.af-search-title h1>span{color:var(--accent)}.af-search-line{display:flex;align-items:flex-start;gap:10px;margin-bottom:18px}.af-search-line .search-with-voice{flex:1;min-width:0}.af-search-line .quick-search{margin:0}.af-scan-button{border:1px solid var(--line);background:var(--white);color:var(--accent);height:52px;width:52px;flex-shrink:0;border-radius:12px}.af-scan-button:hover{background:var(--accent-light)}
.af-categories{display:flex;gap:9px;overflow-x:auto;padding:2px 1px 16px;scrollbar-width:thin;scrollbar-color:var(--line) transparent;scroll-snap-type:x proximity;margin-bottom:5px}.af-category{flex:0 0 112px;padding:8px 12px 10px;text-align:left;background:var(--white);border:1px solid var(--line);border-radius:12px;scroll-snap-align:start;color:var(--ink);height:128px;transition:height .2s,padding .2s,background .18s}@media (hover:hover) and (pointer:fine){.af-category:hover:not(.active){background:var(--hover)}}.af-category strong{display:block;font-size:11px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.af-category small{display:block;font-size:10px;color:var(--sub);margin-top:3px}.af-category-art{height:72px;display:grid;place-items:center;margin-top:-4px;margin-bottom:4px;overflow:hidden;transition:height .2s,opacity .2s}.part-art{width:86px;height:72px;color:var(--ink)}.af-category-art>.af-icon{width:37px;height:37px;stroke-width:1.3}.af-category.active{background:var(--accent-fill);border-color:var(--accent-fill);color:#fff;box-shadow:0 6px 16px #1769e81c}.af-category.active small{color:#ffffffd9}.af-category.active .part-art{--white:#e8f2ff}.af-categories.is-condensed .af-category{height:49px;flex-basis:auto;min-width:100px;padding:12px 15px}.af-categories.is-condensed .af-category-art,.af-categories.is-condensed small{height:0;opacity:0;margin:0;display:none}
.af-results-surface{border:1px solid var(--line);border-radius:16px;background:var(--white);box-shadow:var(--af-shadow);overflow:hidden}.af-results-toolbar{display:flex;align-items:center;gap:10px;padding:12px;flex-wrap:wrap}.af-view-switch{display:flex;padding:3px;background:var(--raised);border-radius:10px;gap:2px}.af-view-switch button{display:flex;align-items:center;gap:7px;font-size:11px;min-height:35px;padding:7px 11px;background:none;border:0;border-radius:7px;color:var(--sub);white-space:nowrap}.af-view-switch button.active{background:var(--white);color:var(--accent);box-shadow:0 1px 5px var(--shadow)}.af-view-switch .af-icon{width:16px;height:16px}.af-select{margin-left:auto;max-width:220px;min-width:0}.af-select select{width:100%;background:var(--white);border:1px solid var(--line);border-radius:9px;font-size:11px;padding:10px 24px 10px 12px;min-height:40px;color:var(--sub)}.af-filter-button{display:flex;gap:7px;align-items:center;border:1px solid var(--line);background:var(--white);padding:10px;border-radius:9px;font-size:11px;color:var(--ink);min-height:40px}.af-results-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 14px 12px;border-bottom:1px solid var(--line)}.af-results-meta>span{font-size:10px;color:var(--sub);white-space:nowrap}.af-stock-tabs{display:flex;gap:7px;flex-wrap:wrap}.af-stock-tabs button{border:0;border-radius:7px;padding:6px 10px;min-height:30px;font-size:11px;color:var(--sub);background:none}.af-stock-tabs button.active{background:var(--accent-light);color:var(--accent)}.af-selection{display:flex;align-items:center;justify-content:space-between;padding:10px 18px;font-size:12px;background:var(--accent-light);color:var(--accent)}.af-results-footer{display:flex;align-items:center;gap:9px;padding:14px;border-top:1px solid var(--line)}.af-results-footer>span{margin-right:auto;color:var(--sub);font-size:10px}.af-results-footer .button{font-size:10px;min-height:34px;padding:7px 10px}.af-load-more{padding:20px;text-align:center}.af-empty{padding:55px 20px;text-align:center}.af-empty>.af-icon{width:36px;height:36px;color:var(--sub)}.af-empty h2{font-size:19px;font-weight:600}.af-empty p{font-size:13px;color:var(--sub);margin-bottom:20px}
.af-table-scroll{overflow:auto;max-width:100%}.af-products-table{width:100%;border-collapse:separate;border-spacing:0;white-space:normal;table-layout:auto}.af-products-table th{background:var(--raised);font-size:10px;font-weight:450;padding:11px 9px;color:var(--sub);white-space:nowrap}.af-sort{display:flex;gap:7px;align-items:center;background:none;border:0;color:inherit;padding:0;font-size:inherit}.sort-arrow{opacity:.5}.af-products-table td{padding:8px 9px;border-bottom:1px solid var(--line);font-size:11px;color:var(--sub);height:68px;vertical-align:middle}.af-products-table tr:last-child td{border-bottom:0}.af-products-table tbody tr{cursor:pointer}.af-products-table tr.selected{background:var(--accent-light)}
@media (hover:hover) and (pointer:fine){.af-products-table tbody tr:hover:not(.selected){background:var(--hover)}}.af-products-table .af-check{width:33px;padding-left:14px;padding-right:5px}.af-check input{accent-color:var(--accent-fill);height:16px;width:16px;cursor:pointer}.af-products-table td:nth-child(3){min-width:160px}.af-products-table .af-code{white-space:nowrap}.af-product-image{display:grid;place-items:center;position:relative;width:48px;height:48px;border-radius:9px;background:var(--raised);overflow:hidden;flex-shrink:0}.af-product-image .part-art{width:46px;height:42px}.af-product-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:var(--white)}.photo-unavailable>img{display:none}.af-name-button{padding:0;border:0;background:none;text-align:left;color:var(--ink);max-width:100%;font:inherit}.af-name-button:focus-visible{outline-offset:4px;border-radius:3px}.af-product-name strong{display:block;font-size:12px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}.af-product-name small{display:block;font-size:10px;color:var(--sub);margin-top:2px}.af-stock{display:inline-flex;align-items:center;gap:6px;color:var(--positive);font-size:11px;white-space:nowrap}.af-stock i{width:5px;height:5px;border-radius:50%;background:currentColor;flex-shrink:0}.af-stock:where(.low-stock,.unknown-stock,.empty-stock){width:fit-content;max-width:100%;padding:2px 7px;border-radius:6px;white-space:normal}.af-stock.low-stock,.af-stock.unknown-stock{background:var(--yellow);color:var(--warning)}.af-stock.empty-stock{background:var(--danger-bg);color:var(--danger)}.af-price{font-size:13px;font-weight:650;white-space:nowrap;color:var(--ink)}.af-row-actions{display:flex;gap:5px;justify-content:flex-end;align-items:center}.af-add{width:39px;height:34px;border:0;border-radius:8px;background:var(--accent-fill);color:#fff;display:grid;place-items:center}@media (hover:hover) and (pointer:fine){.af-add:hover:not(:disabled){filter:brightness(1.08)}}.af-add .af-icon{width:17px;height:17px}.af-icon-button{display:inline-grid;place-items:center;width:34px;height:34px;min-width:34px;border:1px solid transparent;border-radius:9px;background:none;color:var(--sub);padding:7px}@media (hover:hover) and (pointer:fine){.af-icon-button:hover:not(:disabled){background:var(--raised);color:var(--ink)}}.af-icon-button .af-icon{width:18px;height:18px}.af-favorite.is-favorite{color:var(--danger)}.af-favorite.is-favorite svg{fill:currentColor;stroke:currentColor}
.af-products-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:14px;padding:16px}.af-product-cards{border:1px solid var(--line);border-radius:13px;padding:12px;position:relative;cursor:pointer;background:var(--white)}.af-product-cards>.af-product-image{width:100%;height:150px;background:var(--raised);margin-bottom:13px;border-radius:9px}.af-product-cards>.af-product-image .part-art{width:125px;height:110px}.af-product-cards>.af-favorite{position:absolute;top:16px;right:16px;background:var(--white);border:1px solid var(--line)}.af-product-cards .af-product-name strong{font-size:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:39px}.af-product-cards .af-stock{margin-top:8px}.af-product-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}.af-product-cards .af-price{font-size:17px}.af-product-cards .af-row-actions>.af-icon-button{width:27px;min-width:27px}.af-products-compact{padding:0 16px}.af-product-compact{display:flex;align-items:center;gap:14px;padding:13px 0;border-bottom:1px solid var(--line);cursor:pointer;touch-action:pan-y}.af-product-compact:last-child{border:0}.af-product-compact .af-product-copy{flex:1;min-width:0}.af-product-compact .af-product-bottom{margin:0;gap:18px}.af-product-compact .af-stock{margin-top:5px}.af-product-compact .af-product-image{width:52px;height:52px}
#product-drawer{position:fixed;inset:88px 24px 24px auto;margin:0;width:360px;max-height:none;height:calc(100dvh - 112px);max-width:calc(100% - 32px);padding:0;border:1px solid var(--line);border-radius:16px;background:var(--white);color:var(--ink);box-shadow:var(--af-shadow);z-index:14;overflow:hidden}#product-drawer[open]{display:flex;flex-direction:column}.af-drawer-top{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line);flex-shrink:0}.af-drawer-top>span{margin-right:auto;font-size:11px;color:var(--sub)}.af-drawer-top .af-icon-button{border:1px solid var(--line);background:var(--white)}#product-drawer-body{overflow:auto;overscroll-behavior:contain;flex:1;padding:18px;min-height:0}.af-detail-hero{display:grid;grid-template-columns:120px 1fr;gap:16px;align-items:center}.af-detail-picture{height:152px;position:relative;background:var(--raised);border-radius:12px;display:grid;place-items:center;overflow:hidden}.af-detail-picture>.part-art{width:110px;height:100px}.af-detail-picture>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:var(--white)}.af-no-photo{position:absolute;bottom:8px;font-size:9px;color:var(--sub)}.af-detail-heading h2{font-size:17px;line-height:1.35;letter-spacing:-.4px;margin:4px 0 5px;overflow-wrap:anywhere}.af-detail-heading .af-kicker{font-size:8px;letter-spacing:1px}.af-detail-heading p{color:var(--sub);font-size:11px;margin:0 0 9px}.af-detail-price{font-size:24px;font-weight:650;margin:10px 0}.af-detail-heading .button{font-size:11px;min-height:38px;padding:9px}.af-detail-heading .button svg{width:15px}.af-photo-thumbs{display:flex;gap:7px;overflow-x:auto;grid-column:1/-1;order:3}.af-photo-thumbs button{border:1px solid var(--line);border-radius:8px;background:var(--white);padding:3px;width:44px;height:44px;flex-shrink:0}.af-photo-thumbs button.active{border-color:var(--accent)}.af-photo-thumbs img{width:100%;height:100%;object-fit:contain}.af-detail-tabs{display:flex;gap:18px;overflow-x:auto;border-bottom:1px solid var(--line);margin-top:24px;scrollbar-width:thin}.af-detail-tabs button{padding:12px 0;min-height:44px;border:0;background:none;font-size:11px;white-space:nowrap;color:var(--sub);border-bottom:2px solid transparent}.af-detail-tabs button.active{color:var(--accent);border-color:var(--accent)}.af-detail-content{padding:9px 0}.af-spec-row{display:flex;justify-content:space-between;align-items:baseline;gap:18px;padding:13px 0;border-bottom:1px solid var(--line);font-size:11px}.af-spec-row>span{color:var(--sub);flex-shrink:0;max-width:42%}.af-spec-row>strong{font-weight:450;text-align:right;overflow-wrap:anywhere}.af-detail-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.af-detail-tools .button{font-size:11px;min-height:36px;padding:8px 10px}.af-fitment{padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}.af-fitment p{margin:5px 0;color:var(--sub)}.af-fitment small{color:var(--sub);font-size:10px}.af-history>button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:none;border:0;border-bottom:1px solid var(--line);padding:15px 0;color:var(--ink)}.af-history strong{display:block;font-size:12px;font-weight:500}.af-history small{display:block;font-size:10px;color:var(--sub);margin-top:3px}.af-history .af-icon{margin-left:auto;color:var(--sub);width:15px}.af-history-dot{width:7px;height:7px;border-radius:50%;background:var(--accent);flex-shrink:0}.af-context-menu,.af-filter-sheet{display:grid;gap:8px}.af-context-menu>button,.af-filter-sheet>button{display:flex;align-items:center;gap:14px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--white);color:var(--ink);text-align:left;min-height:52px}.af-context-menu>button:hover,.af-filter-sheet>button:hover{background:var(--hover)}
dialog#modal{border:1px solid var(--line);border-radius:18px;max-height:88dvh;box-shadow:0 20px 80px var(--backdrop)}.modal-header{padding:20px 24px}.modal-header h2{font-size:20px;font-weight:600}.modal-error{font-size:13px;border-radius:10px}.modal-header .icon-button{font-size:24px;border:1px solid var(--line)}#modal-body{padding:24px}.af-receipt-steps{display:flex;gap:8px;margin-bottom:22px;list-style:none;padding:0}.af-receipt-steps li{flex:1;color:var(--sub);font-size:11px;border-bottom:3px solid var(--line);padding-bottom:10px}.af-receipt-steps li.active{color:var(--accent);border-color:var(--accent)}.af-receipt-nav{display:flex;gap:10px;justify-content:space-between;margin-top:20px}.af-receipt-review{background:var(--raised);border-radius:12px;padding:16px;margin-bottom:20px}.af-receipt-review>div{display:flex;gap:16px;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line);font-size:12px}.af-receipt-review strong{white-space:nowrap}.af-receipt-review p{font-size:12px;color:var(--sub)}
.pos{grid-template-columns:minmax(0,1fr) 350px;gap:22px}.pos-list{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}.pos-product{border-radius:13px;padding:18px;min-height:140px}.pos-product strong{font-size:14px;line-height:1.45}.pos-product small{font-size:11px}.pos-price{font-size:15px;color:var(--ink);margin-top:14px;flex-wrap:wrap;gap:8px}.pos-price span{font-size:11px}.cart{top:92px}.cart-line strong{font-size:13px}.cart-fields input{min-height:40px;font-size:14px;border-radius:8px;background:var(--input)}.cart-fields b{font-size:14px}.cart-line small{font-size:11px}.cart-total{font-size:14px}.cart-total strong{font-size:28px;color:var(--ink)}.af-mobile-cart{display:none}.delete-line{width:38px;height:38px;flex-shrink:0}.catalog-grid{gap:14px}.catalog-card{border-radius:13px}.catalog-card strong{font-size:14px}.catalog-card small{font-size:11px}
.af-account-shell{max-width:1040px;margin:0 auto;min-height:100dvh;background:var(--paper);color:var(--ink);padding:32px 24px;font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.af-account-shell h1{font-size:28px;letter-spacing:-.8px}.af-account-shell h2{font-size:19px}.af-account-shell input,.af-account-shell select,.af-account-shell textarea{font:inherit;min-height:44px;background:var(--input);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:10px 12px;max-width:100%;box-sizing:border-box}.af-account-shell a{color:var(--accent)}.af-account-shell button{min-height:var(--ui-control-height);border-radius:var(--ui-control-radius)}.af-account-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.af-account-top>a{display:flex;align-items:center;gap:9px;color:var(--ink);font-weight:650;text-decoration:none}.af-account-top .af-icon{width:26px;height:26px}.af-account-top button{border:1px solid var(--line);padding:8px 12px;background:var(--white);color:var(--ink)}
@media(min-width:1280px){body[data-page="products"].af-product-open .af-search-workspace{margin-right:382px}body[data-page="products"].af-product-open .af-search-title h1{font-size:25px}.af-product-open .af-products-table th,.af-product-open .af-products-table td{padding-inline:7px}}
@media(min-width:1600px){.workspace main{padding:32px 36px}.workspace>header{padding-inline:36px}#product-drawer{width:410px;right:36px}body[data-page="products"].af-product-open .af-search-workspace{margin-right:434px}.af-detail-hero{grid-template-columns:150px 1fr}.af-detail-picture{height:174px}.af-detail-heading h2{font-size:19px}}
@media(max-width:1100px){.sidebar{width:196px;padding-inline:11px}.workspace{margin-left:196px}.workspace main{padding:24px}.workspace>header{padding-inline:24px}.af-search-title h1{font-size:26px}.pos{grid-template-columns:minmax(0,1fr) 310px}.af-select{max-width:175px}.af-products-table td:nth-child(5),.af-products-table th:nth-child(5){display:none}}
@media(max-width:900px){.sidebar{width:250px;z-index:30;overflow-y:auto}.workspace{margin-left:0}.workspace main{padding:22px}.workspace>header{height:64px;padding:0 20px}.bottom-nav{display:flex;z-index:20;background:var(--mobile-nav);backdrop-filter:blur(16px);padding:6px 10px max(9px,env(safe-area-inset-bottom));border-top:1px solid var(--line)}.bottom-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-height:48px;min-width:58px;border-radius:10px;font-size:20px;padding:5px 9px}.bottom-nav button .af-icon{width:21px;height:21px}.bottom-nav button>span{font-size:10px;margin:0}.bottom-nav button.sale-nav{background:none;color:var(--sub)}.bottom-nav button.active{background:var(--accent-light);color:var(--accent)}footer{padding-bottom:100px}.toast{left:50%;bottom:95px}.af-results-meta{flex-wrap:wrap}.af-product-open #product-drawer{box-shadow:0 8px 60px var(--backdrop)}}
@media(max-width:760px){.workspace main{padding:18px 14px}.workspace>header{height:58px;padding:0 14px;gap:12px}.breadcrumbs{font-size:12px}.header-actions{gap:7px}.header-actions>.theme-toggle{width:38px;height:38px;min-height:38px}.header-actions>.assistant-open{display:none}.header-actions>.button{font-size:11px;min-height:36px;padding:8px 10px}.af-search-title{margin-bottom:17px;align-items:flex-end}.af-search-title h1{font-size:24px;max-width:250px;line-height:1.18}.af-search-title .af-kicker{font-size:8px;letter-spacing:1.3px}.af-search-title>.button{font-size:0;width:38px;height:38px;min-height:38px;padding:0;flex-shrink:0;border-radius:11px}.af-search-title>.button::after{content:'＋';font-size:23px;font-weight:400}.af-search-line{gap:8px;margin-bottom:12px}.af-search-line .quick-search{min-height:48px;padding-left:12px;gap:7px}.quick-search input{font-size:16px;min-width:0;padding:12px 0;width:100%}.quick-search .key{display:none}.af-scan-button{height:48px;width:44px;min-width:44px}.mic-control{width:34px;min-width:34px}.mic-control [data-mic-label]{display:none}.af-categories{gap:8px;padding-bottom:12px}.af-category{flex-basis:94px;height:111px;padding:7px 9px}.af-category-art{height:60px}.af-category .part-art{width:76px;height:60px}.af-category strong{font-size:10px}.af-category small{font-size:9px}.af-categories.is-condensed .af-category{min-width:80px;height:43px;padding:10px 13px}.af-results-toolbar{padding:9px;gap:8px;flex-wrap:nowrap}.af-view-switch{flex:1;min-width:0}.af-view-switch button{flex:1;justify-content:center;min-height:38px;padding:8px;font-size:10px;gap:5px}.af-view-switch .af-icon{width:16px;height:16px}.af-select{display:none}.af-filter-button{width:40px;min-width:40px;height:44px;justify-content:center;padding:9px}.af-filter-button>span{display:none}.af-results-meta{padding:0 10px 10px;gap:6px}.af-stock-tabs{gap:3px;flex-wrap:nowrap;overflow-x:auto;max-width:100%}.af-stock-tabs button{font-size:10px;white-space:nowrap;min-height:36px;padding:8px}.af-results-meta>span{display:none}.af-products-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px}.af-product-cards{padding:9px;border-radius:11px}.af-product-cards>.af-product-image{height:127px;margin-bottom:10px}.af-product-cards>.af-product-image .part-art{width:110px;height:95px}.af-product-cards .af-product-name strong{font-size:12px;min-height:36px;line-height:1.5}.af-product-name small{font-size:10px}.af-product-cards>.af-favorite{top:12px;right:12px;width:29px;height:29px;min-width:29px;padding:6px}.af-product-cards>.af-favorite .af-icon{width:15px;height:15px}.af-product-cards .af-product-bottom{gap:4px;margin-top:10px;flex-wrap:wrap}.af-product-cards .af-price{font-size:16px}.af-product-cards .af-row-actions{margin-left:auto;gap:2px}.af-add{width:38px;height:38px}.af-product-cards .af-row-actions>.af-icon-button{width:27px;min-width:27px;padding:5px}.af-product-cards .af-stock{font-size:10px}.af-products-compact{padding:0 11px}.af-product-compact{gap:10px;padding:13px 0;flex-wrap:nowrap}.af-product-compact .af-product-image{width:44px;height:44px}.af-product-compact .af-product-bottom{gap:6px;flex-direction:column;align-items:flex-end}.af-product-compact .af-product-name strong{font-size:12px}.af-product-compact .af-price{font-size:13px}.af-product-compact .af-row-actions{gap:1px}.af-product-compact .af-row-actions .af-add{height:30px;width:34px}.af-products-table{min-width:570px}.af-products-table td{font-size:11px;height:66px}.af-products-table td:nth-child(3){min-width:150px}.af-results-footer{padding:12px;flex-wrap:wrap}.af-results-footer>span{width:100%}.af-results-surface{border-radius:13px}.af-product-open{overflow:hidden}#product-drawer{inset:0;width:100%;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;z-index:40;box-shadow:none!important;background:var(--paper)}.af-drawer-top{padding:max(13px,env(safe-area-inset-top)) 16px 12px;background:var(--white)}.af-drawer-top .af-icon-button{width:42px;height:42px}.af-drawer-top>span{font-size:12px}#product-drawer-body{padding:20px 18px max(30px,env(safe-area-inset-bottom));background:var(--white)}.af-detail-hero{display:flex;flex-direction:column;gap:15px;align-items:stretch}.af-detail-picture{height:225px;background:var(--raised)}.af-detail-picture>.part-art{width:190px;height:160px}.af-detail-heading h2{font-size:23px;line-height:1.3;margin-bottom:7px}.af-detail-heading p{font-size:13px}.af-detail-heading .af-kicker{font-size:9px}.af-detail-heading .af-stock{font-size:12px}.af-detail-price{font-size:29px;margin:12px 0}.af-detail-heading .button{font-size:14px;min-height:48px}.af-detail-heading .button svg{width:19px}.af-photo-thumbs{order:0;margin-top:-5px}.af-detail-tabs{margin-top:20px;gap:22px}.af-detail-tabs button{font-size:12px;min-height:48px}.af-spec-row{font-size:12px;padding:15px 0}.af-detail-tools .button{min-height:42px;font-size:12px}.af-fitment{font-size:13px}.af-history strong{font-size:13px}.af-history small{font-size:11px}.af-history>button{min-height:68px}.pos{grid-template-columns:1fr;gap:20px}.pos-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pos-product{min-height:145px;padding:14px}.pos-product strong{font-size:13px}.pos-product small{font-size:11px}.pos-price{font-size:14px;gap:4px}.pos-price span{font-size:10px}.cart{position:static;scroll-margin-top:78px}.cart-line strong{font-size:14px}.cart-fields input{font-size:16px;width:86px}.cart-fields b{font-size:14px}.cart-total strong{font-size:28px}.af-mobile-cart{position:fixed;bottom:calc(74px + env(safe-area-inset-bottom));left:14px;right:14px;z-index:16;display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;border-radius:13px;background:var(--accent-fill);color:#fff;min-height:50px;padding:12px 17px;box-shadow:0 5px 20px #0f4aab33;font-size:13px}.af-mobile-cart strong{font-size:16px}.af-mobile-cart .af-icon{margin-right:8px}.page-head h1{font-size:26px}.page-head p{font-size:12px;max-width:none}.page-head .head-actions{max-width:140px}.head-actions .button{font-size:11px;min-height:40px;padding:8px 10px}.kpis{gap:10px}.kpi{padding:17px}.kpi-top{font-size:11px}.kpi strong{font-size:25px}.kpi small{font-size:10px}.grid-main,.split,.settings-grid{grid-template-columns:1fr}.panel-head h2{font-size:14px}.panel-body{padding:18px}.quick-action b{font-size:12px}.quick-action small{font-size:10px}.field input,.field select,.field textarea{font-size:16px}.field>span{font-size:12px}.form-line .field-row.three{grid-template-columns:1fr 1fr}.field-row.three .field:last-child{grid-column:1/-1}dialog#modal{position:fixed;inset:auto 0 0;width:100%;max-width:none;max-height:92dvh;margin:0;border-radius:22px 22px 0 0;border-bottom:0}.modal-header{padding:18px 20px}.modal-header h2{font-size:19px}#modal-body{padding:20px 18px max(22px,env(safe-area-inset-bottom))}.form-actions{position:sticky;bottom:-20px;background:var(--white);padding-bottom:10px}.form-actions>.button{min-height:46px;font-size:13px}.af-receipt-steps li{font-size:10px}.af-account-shell{padding:20px 16px}.af-account-shell h1{font-size:25px}.af-account-shell input,.af-account-shell select,.af-account-shell textarea{font-size:16px}.simple-mode .af-product-name strong{font-size:16px}.simple-mode .af-stock{font-size:13px}.simple-mode .af-view-switch button{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.af-mobile-cart,#product-drawer,.af-categories{display:none!important}}
/* A saved packaging family is one card; controls always target the selected package. */
.af-variants{border:0;padding:0;margin:14px 0;min-width:0}.af-variants legend{font-size:12px;color:var(--sub);margin-bottom:8px}.af-variants>div{display:flex;flex-wrap:wrap;gap:7px}.af-variants button{border:1px solid var(--line);background:var(--white);color:var(--ink);border-radius:10px;min-height:44px;padding:9px 13px;font:inherit;font-size:13px;cursor:pointer;max-width:100%;overflow-wrap:anywhere}.af-variants button.active{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);color:var(--accent);font-weight:700}.af-variants button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* The shared search has one rounded focus ring; the input never draws a second rectangle. */
.quick-search:focus-within{border-color:var(--accent-border);box-shadow:0 0 0 2px var(--accent-light)}
.quick-search input:focus,.quick-search input:focus-visible{outline:0;box-shadow:none;border-color:transparent}
input[type="search"]{border-radius:12px}
input[type="search"]:not(.quick-search input):focus-visible{outline:2px solid var(--focus);outline-offset:2px}

.af-search-workspace .af-search-title {align-items:flex-start;flex-wrap:wrap;gap:8px}
.af-product-actions {max-width:100%;margin-inline-start:auto}
.af-product-actions>summary {width:fit-content;margin-inline-start:auto}
.af-product-actions>div {display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.af-results-surface .af-categories.af-product-filters {display:grid;gap:12px;margin:0;padding:12px 14px;background:var(--raised);overflow:visible;border-block:1px solid var(--line)}
.af-results-surface .af-categories.af-product-filters[hidden] {display:none}
.af-filter-fields {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:10px}
.af-filter-fields .field {min-width:0;margin:0}
.af-product-filters .af-stock-tabs,.af-search-workspace .af-results-meta .af-stock-tabs {display:flex;flex-wrap:wrap;overflow:visible}
.af-search-workspace .af-results-toolbar {justify-content:space-between;flex-wrap:wrap}
.af-search-workspace .af-results-toolbar .af-view-switch {margin-inline:0}
.af-search-workspace .af-results-meta {padding-top:8px}
@media(max-width:460px) {
 .af-product-actions>summary {padding:6px 2px;min-height:36px}
 .af-search-workspace .af-results-toolbar {gap:6px}
}

.af-products-table th[aria-sort] .af-sort { color:var(--ink); font-weight:650 }
.af-products-table th[aria-sort] .sort-arrow { color:currentColor; opacity:1 }
.af-results-surface .af-empty h2 { overflow-wrap:anywhere }

.af-products-table .af-code { white-space:normal; overflow-wrap:anywhere }
.af-products-table .af-code small,.af-products-table .af-code span { display:block }
.af-products-table .af-code small { color:var(--sub); font-size:var(--ui-text-small); font-family:inherit }
.af-row-actions .af-choose-variant { max-width:10rem; min-height:44px; padding:.35rem .55rem; white-space:normal; overflow-wrap:normal; word-break:normal; hyphens:none; line-height:1.25 }

/* Keep the icon small while granting the full button a touch target. */
@media screen and (max-width:760px), screen and (pointer:coarse) {
  .af-product-cards > .af-favorite,
  :is(.af-product-cards,.af-product-compact,.af-products-table) .af-row-actions > :is(.af-add,.af-icon-button) {
    min-inline-size:var(--ui-control-height,44px);
    min-block-size:var(--ui-control-height,44px);
  }
}

/* Product cards keep an independent cost and action row at every column width. */
.af-product-cards {
  display:flex;
  flex-direction:column;
  min-inline-size:0;
}
.af-product-cards .af-product-copy { min-inline-size:0; }
.af-product-cards .af-product-name small { overflow-wrap:anywhere; }
.af-product-price {
  display:grid;
  gap:2px;
  min-inline-size:0;
}
.af-product-price .af-price-label {
  color:var(--sub);
  font-size:var(--ui-text-small);
  line-height:1.3;
}
.af-product-price .af-price-value {
  white-space:normal;
  overflow-wrap:anywhere;
  line-height:1.35;
}
.af-product-price .af-price { font-variant-numeric:tabular-nums; }
.af-product-compact .af-product-price { text-align:end; }
.af-row-actions > .af-choose-variant { min-inline-size:min-content; }
@media screen and (max-width:760px) {
  .af-search-workspace .af-results-toolbar > .af-filter-button { justify-self:start; }
}
.af-product-cards .af-product-bottom {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:6px;
  margin-block:auto 0;
  padding-block-start:10px;
}
.af-product-cards .af-product-bottom > .af-product-price { grid-area:1 / 1; }
.af-product-cards .af-row-actions { display:contents; }
.af-product-cards .af-row-actions > [data-action="flow-context"] {
  grid-area:1 / 2;
  justify-self:end;
}
.af-product-cards .af-row-actions > :is(.af-add,.af-choose-variant) {
  grid-area:2 / 1 / auto / -1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:100%;
  min-width:0;
  max-width:none;
  height:auto;
  min-height:var(--ui-control-height);
  padding:6px;
  font-size:var(--ui-text);
  line-height:1.25;
  font-weight:600;
  white-space:normal;
  overflow-wrap:normal;
  word-break:normal;
  hyphens:none;
}
.af-product-cards .af-add .af-icon { flex:none; }
.af-product-cards .af-row-actions > .af-add:disabled {
  background:var(--raised);
  color:var(--sub);
  opacity:1;
}
@media (hover:hover) and (pointer:fine) {
  .af-name-button:hover strong { text-decoration:underline; text-underline-offset:.13em; }
}
@media screen and (min-width:1140px) {
  body:not(.simple-mode) .af-results-surface:has(> .af-product-filters[hidden]):not(:has(> .af-active-filters)) {
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
  }
  .af-results-surface > :not(.af-results-toolbar,.af-results-meta) { min-width:0; grid-column:1 / -1; }
  .af-search-workspace .af-results-toolbar { justify-content:flex-start; }
  .af-search-workspace .af-results-meta {
    align-items:center;
    align-content:center;
    gap:8px;
    flex-wrap:wrap;
    padding:8px 12px;
  }
}
