/* Authenticated workspace: retain the existing green palette and plain controls. */
.workspace{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh;font-size:16px}
.work-sidebar{background:#173f35;color:#fff;padding:34px 20px;display:flex;flex-direction:column;gap:32px;position:sticky;top:0;height:100vh}
.work-brand{font-size:28px;font-weight:750;line-height:1.2;color:inherit;text-decoration:none;letter-spacing:-.8px}
.work-brand span{font-weight:450;font-size:23px}.work-sidebar nav{display:grid;gap:6px}
.work-sidebar nav a{color:#d7e7df;text-decoration:none;padding:13px 15px;border-radius:9px;font-size:15px}
.work-sidebar nav a.active,.work-sidebar nav a:hover{background:#31594b;color:white}
.work-mode{margin-top:auto;font-size:13px;line-height:1.5;color:#c4dccc}
.work-main{min-width:0;background:#f5f7f4}
.work-header{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:22px 36px;background:white;border-bottom:1px solid #dde5dd;position:sticky;top:0;z-index:3}
.work-header label{display:grid;gap:5px;min-width:200px}.work-header label>span{font-size:13px;color:#637467}
.workspace select,.workspace input,.workspace textarea,.work-login input,#work-form input,#work-form select,#work-form textarea{font:inherit;font-size:16px;min-height:46px;border:1px solid #cbd6ca;border-radius:8px;padding:10px 12px;max-width:100%;background:white}
.workspace .btn,#work-form .btn,.work-login .btn{font-size:14px;min-height:44px}
.work-sync{font-size:13px;padding:10px 36px;background:#e8efe5;color:#405a39}
.work-content{max-width:1400px;padding:32px 36px 70px;margin:auto}.work-content h1{font-size:28px}
.work-content .panel{margin-top:24px}.work-content .panel-head h2{font-size:19px}
.workspace .product-name{font-size:16px}.workspace .product-code{font-size:13px}
.workspace table{width:100%;border-collapse:collapse}.workspace th{font-size:13px;text-align:left;padding:18px}
.workspace td{padding:18px;border-top:1px solid #e7ece5;font-size:15px}.workspace .low{color:#a64228}
.inline-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.work-todo .todo-grid{display:grid;grid-template-columns:repeat(4,1fr);padding:4px 20px 20px;gap:14px}
.todo-item{border:1px solid #d9e2d4;background:#f7faf3;border-radius:12px;padding:18px;display:grid;gap:8px;text-align:left;cursor:pointer;color:#254231}
.todo-item strong{font-size:28px}.todo-item span{font-size:14px}
.work-record{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px;border-bottom:1px solid #e4eae1;flex-wrap:wrap}.work-record p{font-size:14px;color:#65705f;margin-top:7px}
.work-record strong{font-size:16px}.work-empty{padding:30px}.work-tabs{display:flex;gap:10px;margin:20px 0}
.work-login{min-height:100vh;display:grid;place-items:center;padding:25px;background:#edf3e8}
.work-login-card{width:min(440px,100%);border-radius:20px;padding:36px;background:white;box-shadow:0 20px 70px #1b412114}
.work-login-card h1{font-size:24px;margin:26px 0}.work-login-card .inline-actions{margin-top:22px}
.work-demo-access{margin-top:26px;padding-top:20px;border-top:1px solid #e0e6dc;display:flex;gap:12px;flex-wrap:wrap}.work-demo-access p{width:100%;font-size:13px;color:#666}
.field{display:grid;gap:8px;margin:0 0 18px;font-size:14px}.field>span{font-weight:650}
#work-form .field input,#work-form .field select,#work-form textarea{width:100%}
#work-form .dialog-body{font-size:16px}.dialog-head p{margin-top:8px;font-size:13px;color:#657364}
#modal:has(#work-form){width:min(820px,calc(100% - 28px));max-height:92dvh}
#work-form .dialog-body{max-height:68dvh;overflow-y:auto}
.work-check{display:flex;gap:10px;align-items:center;font-size:15px;margin-top:20px}
#work-form .work-check input{width:20px;min-height:20px;height:20px;flex-shrink:0}
.form-error{color:#a53222;background:#fff2ed;padding:12px;margin:14px 0;font-size:15px}
.form-error:empty,.form-error[hidden]{display:none}
.work-line{display:grid;grid-template-columns:minmax(180px,2fr) minmax(90px,1fr);gap:12px;padding:18px;border:1px solid #d8e1d1;border-radius:12px;margin:16px 0;background:#fbfcf8}
.work-line .field{margin:0}.work-line>.btn{justify-self:start}.work-notice{background:#f1f5eb;padding:15px;border-radius:10px;line-height:1.6;font-size:14px;margin-bottom:18px}
.work-balances{display:flex;gap:22px;padding:24px 0}.work-balances strong{display:block;font-size:28px;margin-top:8px}
.work-large-photo{display:block;max-width:100%;max-height:65vh;object-fit:contain;margin:auto}
#history{margin-top:20px}#history table{width:100%;border-collapse:collapse;font-size:14px}#history td,#history th{padding:14px 8px;border-bottom:1px solid #ddd;text-align:left}#history small{color:#666}
#scan-area{margin:18px 0;padding:14px;background:#eaf0e5;border-radius:12px}#scan-area video{width:100%;max-height:300px;object-fit:cover;border-radius:8px}#scan-area p{margin:10px 0;font-size:14px}
.placeholder{font-size:35px;color:#7d986a}.error{background:#863b2c!important}
button:disabled{opacity:.6;cursor:wait}
@media(max-width:900px){.workspace{grid-template-columns:170px minmax(0,1fr)}.work-content{padding:24px 20px}.work-header{padding:16px 20px;align-items:flex-start;flex-direction:column;gap:12px}.work-todo .todo-grid{grid-template-columns:repeat(2,1fr)}.work-sync{padding:10px 20px}}
@media(max-width:600px){.workspace{display:block}.work-sidebar{height:auto;position:static;padding:18px;gap:18px}.work-brand{font-size:24px}.work-brand br{display:none}.work-brand span{font-size:21px}.work-sidebar nav{display:flex;overflow-x:auto;gap:4px}.work-sidebar nav a{white-space:nowrap;font-size:14px;padding:10px}.work-mode{display:none}.work-header{position:static}.work-header label{width:100%}.work-header select{width:100%;min-width:0}.work-content{padding:22px 14px}.work-content h1{font-size:24px}.work-content .quick-actions{grid-template-columns:repeat(2,1fr)}.work-content .quick-action{min-height:90px}.work-content .search-box{flex-wrap:wrap;padding:10px}.work-content .search-box input{width:100%;flex-basis:100%}.workspace td,.workspace th{padding:12px}.workspace td:last-child .btn{font-size:12px;padding:8px}.workspace .product-cell{min-width:165px}.workspace .thumb{width:40px;height:45px}.work-line{grid-template-columns:1fr}.work-todo .todo-grid{padding:0 14px 14px;gap:8px}.todo-item{padding:14px}.work-login-card{padding:25px}.dialog-footer{flex-wrap:wrap}#work-form .dialog-body{max-height:65dvh}.work-record{padding:17px}.work-header .inline-actions>span{width:100%;font-size:14px}}

@media(max-width:600px){
 .work-sidebar nav{scrollbar-width:none}.work-sidebar nav::-webkit-scrollbar{display:none}
 .stock-table,.stock-table tbody{display:block;min-width:0;width:100%}
 .stock-table thead{display:none}
 .stock-table tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:12px;border-bottom:1px solid var(--line,#dbe5df)}
 .stock-table td{display:block;padding:7px 3px;border:0;min-width:0;white-space:normal}
 .stock-table td:first-child,.stock-table td:last-child{grid-column:1 / -1}
 .stock-table td[data-label]::before{content:attr(data-label);display:block;font-size:12px;color:#55665f;margin-bottom:4px}
 .stock-table td:last-child .inline-actions{justify-content:flex-end}
 .work-header .inline-actions{gap:6px}
 .work-sync{font-size:12px}
}
.work-line>.work-notice{grid-column:1 / -1;margin:0;padding:8px}

.product-picker{position:relative;min-width:0}.product-picker>.field{margin-bottom:8px}
.product-picker>.picker-input{width:100%}.picker-status{display:block;font-size:13px;line-height:1.5;color:#4d6459;margin-top:7px}
.picker-popup{border:1px solid #b7cbbc;border-radius:10px;background:#fff;box-shadow:0 6px 18px #193f3515;margin-top:6px;overflow:hidden}
.picker-popup[hidden],.picker-create[hidden],.order-line-field[hidden],.search-suggestions[hidden]{display:none!important}
.picker-popup [role=listbox]{max-height:255px;overflow-y:auto}
.picker-popup button,.search-suggestions>button{display:block;width:100%;text-align:left;min-height:46px;padding:12px 14px;border:0;border-bottom:1px solid #e3eae2;background:#fff;color:#183e35;font:inherit;cursor:pointer}
.picker-popup strong,.picker-popup small,.search-suggestions strong,.search-suggestions small{display:block}
.picker-popup small,.search-suggestions small{font-size:12px;color:#587165;margin-top:3px}
.picker-popup button:hover,.picker-popup [aria-selected=true],.search-suggestions>button:hover{background:#eaf3e8}
.picker-popup p{padding:12px;font-size:14px}.picker-actions{border-top:1px solid #dbe6d8}
.picker-actions button{color:#245d3c;font-weight:650;background:#f4f8f1}
.picker-create{background:#edf4e9;border:1px solid #c8d9c2;border-radius:10px;margin-top:10px;padding:14px}
.picker-create p{margin:0 0 12px;font-size:14px}.picker-create .field{margin-bottom:12px}
.picker-error{color:#963526}.work-line>.product-picker{grid-column:1 / -1}
.search-box{flex-wrap:wrap}.search-suggestions{flex-basis:100%;width:100%;border-top:1px solid #dfe7dc;max-height:350px;overflow:auto}

.work-confirm {max-width:560px;width:calc(100% - 32px);border:0;border-radius:18px;padding:24px;}
.work-confirm::backdrop{background:#172923aa}
.confirmation-summary{white-space:pre-wrap;line-height:1.6;overflow-wrap:anywhere;max-height:55vh;overflow:auto}
.work-sync .btn{margin-left:12px;padding:4px 12px}
.local-pending{border-left:4px solid #c27711}

.cash-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:18px}
.cash-card{border:1px solid #d8e1d1;border-radius:12px;padding:18px;background:#fbfcf8}
.cash-card h3{margin-top:0}.cash-card>strong{font-size:24px}.cash-card p{line-height:1.5}
.cash-denominations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cash-denominations .field{margin:0}.cash-denominations input{width:100%;min-width:0}
.cash-total{font-size:24px;font-weight:700;padding:18px;background:#f1f5eb;border-radius:12px}
.cash-history{padding:18px 0;border-bottom:1px solid #d8e1d1}
@media(max-width:600px){.cash-cards{grid-template-columns:1fr}.cash-denominations{grid-template-columns:repeat(2,minmax(0,1fr))}}

.cash-preview{max-width:100%;max-height:220px;object-fit:contain;border-radius:10px}
.cash-preview[hidden]{display:none}

/* Online shop: listings prepared with AI and store orders. */
.shop-setup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;padding:4px 22px 18px}
.shop-setup .setting-row{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #eef2ea;font-size:14px}
.shop-setup .work-notice{margin:0 22px 18px}
.shop-order.done{opacity:.72}.shop-items{margin:8px 0 6px;padding-left:18px;font-size:14px;line-height:1.5}.shop-items small{color:#65705f}
.shop-order small{display:block;margin-top:8px;color:#65705f;font-size:13px}
.shop-listing .product-cell{min-width:0}.shop-listing .product-name{text-align:left}
.shop-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.shop-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:12px 0 16px}
.shop-photos figure{margin:0;border:1px solid #dde5dd;border-radius:12px;overflow:hidden;background:#fff}
.shop-photos img{display:block;width:100%;aspect-ratio:1;object-fit:contain;background:#f5f7f4}
.shop-photos .processed img{background:#fff}.shop-photos figcaption{font-size:12px;color:#65705f;padding:8px 10px;border-top:1px solid #eef2ea}
.shop-preview{border:1px solid #dde5dd;border-radius:14px;padding:22px;background:#fff;margin:8px 0 12px}
.shop-preview h3{margin:0 0 6px;font-size:22px;letter-spacing:-.3px}.shop-card-text{color:#4d6459;font-size:15px;margin:0 0 14px}
.shop-description{font-size:15px;line-height:1.6}.shop-description p{margin:0 0 12px}.shop-description ul,.shop-description ol{margin:0 0 12px;padding-left:20px}
.shop-description h3{font-size:16px;margin:14px 0 6px}
.shop-seo{margin:0 0 16px;border:1px solid #e3eae2;border-radius:10px;padding:10px 14px;font-size:14px}
.shop-seo summary{cursor:pointer;font-weight:650}.shop-seo dl{display:grid;grid-template-columns:150px minmax(0,1fr);gap:6px 14px;margin:12px 0 4px}
.shop-seo dt{color:#65705f}.shop-seo dd{margin:0;overflow-wrap:anywhere}
#modal .inline-actions{margin:8px 0 14px}
@media(max-width:600px){.shop-setup-grid{grid-template-columns:1fr}.shop-seo dl{grid-template-columns:1fr}}
.shop-filters{flex-wrap:wrap;padding:0 22px;margin:14px 0 6px}.shop-count{opacity:.65;margin-left:4px}
.shop-pending{color:#a65d1e;font-size:12px}.shop-history-box{margin-top:10px;font-size:13px}
.shop-history-box summary{cursor:pointer;color:#4d6459}.shop-history{margin:8px 0 0;padding-left:18px;line-height:1.6}
.shop-history span{color:#65705f;margin-right:6px}.shop-history-empty{margin:8px 0 0;color:#65705f}
.shop-order.status-cancelled,.shop-order.status-refunded{opacity:.7}

/* Home tiles, variant C: solid colour, white label, large watermark icon. */
.work-content .quick-actions.tiles-c{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;margin:22px 0 26px}
.tiles-c .quick-action{position:relative;aspect-ratio:1;min-height:0;border:0;border-radius:18px;padding:18px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;gap:0;text-align:left;color:#fff;overflow:hidden;cursor:pointer;transition:transform .15s,box-shadow .15s}
.tiles-c .quick-action:hover{transform:translateY(-2px);box-shadow:0 12px 24px -14px rgba(0,0,0,.4);border-color:transparent}
.tiles-c .quick-action:focus-visible{outline:3px solid #1e5aa8;outline-offset:2px}
.tiles-c .quick-action strong{display:block;font-size:17px;line-height:1.2;color:#fff}
.tiles-c .quick-action small{display:block;margin-top:3px;font-size:13px;color:#fff;opacity:.85}
.tiles-c .quick-action svg{stroke:currentColor;fill:none;stroke-linecap:round;stroke-linejoin:round}
.tiles-c .quick-action svg.k{width:36px;height:36px;stroke-width:1.8}
.tiles-c .quick-action svg.w{position:absolute;right:-22px;top:-16px;width:120px;height:120px;opacity:.22;stroke-width:1.3;pointer-events:none}
.tiles-c .tile-count{background:#1f6b4f}.tiles-c .tile-receive{background:#1e5aa8}.tiles-c .tile-waste{background:#b7562b}.tiles-c .tile-order{background:#5a3f9e}.tiles-c .tile-return{background:#0e6b6b}.tiles-c .tile-new-product{background:#3d4a5c}
.cash-panel .panel-head{background:#173f35;color:#fff}.cash-panel .panel-head h2{color:#fff}
.cash-panel .cash-cards{background:#e6efe6}
.cash-card.cash-evening{background:#173f35;color:#fff;border-color:#173f35}.cash-card.cash-evening p{color:#cfe0d6}
.cash-card.cash-evening .btn{background:#fff;border-color:#fff;color:#173f35}.cash-card.cash-evening .btn.primary{background:#fff;color:#173f35}
@media(max-width:980px){.work-content .quick-actions.tiles-c{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.work-content .quick-actions.tiles-c{grid-template-columns:repeat(2,minmax(0,1fr))}.work-content .quick-action{min-height:0}}
@media(prefers-reduced-motion:reduce){.tiles-c .quick-action{transition:none}}

/* ---------- message board ---------- */
/* A note on a record reaches whoever opens that record. This reaches the shop. */
.board-bell{position:relative;display:inline-flex;align-items:center;justify-content:center;
 width:40px;height:40px;border:1px solid #cdd8cf;border-radius:10px;background:#f3f8f4;color:#173f35;cursor:pointer}
.board-bell:hover{border-color:#245d3c;background:#e9f2eb}
.board-bell svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.board-badge{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;
 background:#9d3826;color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}
.board-list{list-style:none;margin:0 0 6px;padding:0}
.board-msg{padding:13px 0;border-bottom:1px solid #f0f4f0;border-left:3px solid #245d3c;padding-left:12px}
.board-msg.read{border-left-color:#dde4de;opacity:.72}
.board-msg.pinned{background:#f7faf7}
.board-top{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.board-top strong{font-size:15px;color:#173f35}
.board-top span{font-size:12px;color:#7d8f83}
.board-body{margin:6px 0 0;font-size:14px;line-height:1.5;color:#2c3a32;white-space:pre-wrap;overflow-wrap:anywhere}
.board-link{margin-top:8px;font-size:12px;color:#245d3c;border:1px solid #cfe0d3;border-radius:999px;
 padding:4px 11px;background:#f4faf5;cursor:pointer;font:inherit}
.board-seen{margin:8px 0 0;font-size:12px;color:#7d8f83}
.board-actions{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.board-done{font-size:12px;color:#3d6b46;align-self:center}
.board-compose{margin-top:14px;padding-top:14px;border-top:1px solid #e6ebe6}

/* The second bell: what staff returned or wrote off, for whoever answers for it. */
.events-bell{margin-left:8px}
.events-coin{display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;color:#245d3c;background:#f3f8f4;border:1px solid #dbe6dd}
.events-list{list-style:none;margin:0;padding:0}
.events-row{display:grid;grid-template-columns:46px minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid #f0f4f0}
.events-row.fresh{border-left:3px solid #245d3c;padding-left:10px;margin-left:-13px}
.events-shot{width:46px;height:46px;object-fit:contain;border:1px solid #e6ebe6;border-radius:8px;background:#fff}
.events-what{min-width:0}
.events-top{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.events-top strong{font-size:14px;color:#173f35}
.events-top span{font-size:12px;color:#7d8f83}
.events-line{margin:3px 0 0;font-size:14px;color:#2c3a32;overflow-wrap:anywhere}
.events-who{margin:2px 0 0;font-size:12px;color:#7d8f83}
.events-ok{display:inline-block;margin-top:5px;font-size:12px;color:#3d6b46}
.events-bad{display:inline-block;margin-top:5px;font-size:12px;font-weight:650;color:#9d3826}
.events-note{margin:6px 0 0;font-size:13px;font-style:italic;color:#3c5a49;overflow-wrap:anywhere}

/* ---------- stock check ---------- */
/* Counted on a tablet, standing at a drawer: places are recognised by a photograph of
   the drawer, and keys come two to a line so a thumb has room. */
.count-places{list-style:none;margin:18px 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.count-place{width:100%;padding:12px;border:1px solid #cdd8cf;border-radius:14px;background:#fff;cursor:pointer;
 display:flex;flex-direction:column;align-items:flex-start;gap:6px;font:inherit;text-align:left}
.count-place:hover{border-color:#245d3c;background:#f7faf7}
.count-place-shot{width:100%;height:78px;object-fit:cover;border-radius:10px;background:#f3f8f4;display:block}
.count-place strong{font-size:16px;color:#173f35;line-height:1.2;overflow-wrap:anywhere}
.count-place small{color:#5d6b63;font-variant-numeric:tabular-nums}
.count-place.count-nowhere{border-style:dashed;border-color:#b08a3a;background:#fdfaf2}
.count-place.count-nowhere strong{color:#6d5417}
.count-addplace{border-style:dashed;justify-content:center;align-items:center}
.count-dash{display:flex;align-items:center;justify-content:center;font-size:30px;color:#7d8f83;border:1px dashed #b4c4b8}
.count-noshot{display:block;border:1px dashed #cdd8cf}

.count-bar{display:block;width:100%;height:6px;border-radius:999px;background:#e2e9e3;overflow:hidden}
.count-bar.wide{height:9px;margin:8px 0 2px}
.count-bar i{display:block;height:100%;background:#245d3c;transition:width .25s ease}
.count-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;color:#5d6b63;font-variant-numeric:tabular-nums}
.count-section{margin:18px 0 8px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#7d8f83}

/* Two to a line on a tablet, more when there is room; each card is one target. */
.count-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
.count-card button{width:100%;display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:12px;align-items:center;
 padding:10px 12px;border:1px solid #dde4de;border-radius:12px;background:#fff;cursor:pointer;font:inherit;text-align:left}
.count-card button:hover{border-color:#245d3c;background:#f7faf7}
.count-card button:focus-visible{outline:3px solid #245d3c;outline-offset:-3px}
.count-card.done button{border-color:#7fb089;background:#f5faf6}
.count-photo{width:52px;height:52px;object-fit:contain;border:1px solid #e6ebe6;border-radius:8px;background:#fff}
.count-what{min-width:0;display:flex;flex-direction:column;gap:2px}
.count-what strong{font-size:15px;font-weight:650;line-height:1.25;overflow-wrap:anywhere}
.count-elsewhere{font-size:12px;color:#9d3826}
.count-go{font-size:24px;line-height:1;color:#9bb0a2;padding-right:2px}
.count-tick{min-width:38px;padding:5px 9px;border-radius:999px;background:#245d3c;color:#fff;font-weight:700;font-size:15px;text-align:center;font-variant-numeric:tabular-nums}

/* Shut by default, so nothing jumps while somebody is working down the list. */
.count-done-box{margin-top:18px;border-top:1px solid #e2e9e3;padding-top:12px}
.count-done-box summary{cursor:pointer;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#7d8f83;padding:4px 0}
.count-done-box summary:hover{color:#245d3c}
.count-done-box[open] summary{margin-bottom:10px}

/* The entry screen. One question, asked large. */
.count-subject{display:flex;gap:14px;align-items:center;padding-bottom:14px;margin-bottom:4px;border-bottom:1px solid #e6ebe6}
.count-shot{width:72px;height:72px;object-fit:contain;border:1px solid #e6ebe6;border-radius:10px;background:#fff}
.count-subject-text h3{margin:0 0 2px;font-size:18px}
.count-subject-text code{font-size:14px;color:#5d6b63}
.count-shot-btn{padding:0;border:0;background:none;cursor:pointer;line-height:0}
.count-shot-btn:focus-visible{outline:3px solid #245d3c;outline-offset:2px;border-radius:10px}
.count-subject{align-items:flex-start}
.count-subject-text{min-width:0}
.count-fact{margin:2px 0;font-size:13px;color:#3c4a41}
.count-fact span{color:#7d8f83;margin-right:6px}
.count-fact.note{margin-top:6px;font-style:italic}
.count-qty input{font-size:30px;height:66px;text-align:center;font-variant-numeric:tabular-nums;font-weight:650}
/* The spinner arrows are a mis-tap waiting to happen on a touch screen. */
.count-qty input::-webkit-outer-spin-button,.count-qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.count-qty input[type=number]{-moz-appearance:textfield;appearance:textfield}
.count-place-field select{height:48px;font-size:16px}
.count-home{display:flex;gap:10px;align-items:center;margin-top:12px;padding:12px 14px;border:1px solid #cfe0d3;border-radius:10px;background:#f4faf5;cursor:pointer}
.count-home input{width:20px;height:20px}
/* The one thing here that must stop somebody mid-tap. */
.count-warning{margin:12px 0;padding:11px 13px;border-left:3px solid #9d3826;background:#f7ece8;border-radius:0 8px 8px 0;color:#6d2719}

.count-reports{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.count-reports button{width:100%;display:flex;flex-direction:column;gap:2px;align-items:flex-start;padding:12px 14px;border:1px solid #dde4de;border-radius:12px;background:#fff;cursor:pointer;font:inherit;text-align:left}
.count-reports button:hover{border-color:#245d3c;background:#f3f8f4}
.count-reports small{color:#5d6b63}
.count-diff{font-weight:700;color:#9d3826}
.count-progress{margin:10px 0 14px;color:#5d6b63;font-variant-numeric:tabular-nums}

/* A movement's note, under the action it explains. */
.history-note{display:block;margin-top:3px;color:#3c5a49;font-style:italic;max-width:32ch;white-space:normal;word-break:break-word}
.loc-chip{display:inline-block;padding:1px 7px;border-radius:6px;background:#e6efe6;color:#245d3c;font-weight:650;font-size:12px}
.new-location{margin:-8px 0 14px;padding:12px 14px;border:1px dashed #b7cbbc;border-radius:10px;background:#f4f8f1}.new-location .field{margin-bottom:10px}

.shop-zone{border-top:1px solid #e4eae1}.shop-zone-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 22px 4px}.shop-method.off{opacity:.6}.shop-cat p{overflow-wrap:anywhere}

.photo-picker{display:grid;gap:10px}.photo-buttons{display:flex;gap:8px;flex-wrap:wrap}
.photo-preview{max-width:100%;max-height:240px;object-fit:contain;border-radius:10px;border:1px solid #dde5dd;background:#fff}
.photo-name{margin:0;font-size:13px;color:#65705f}

.brand-chip{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:6px;background:#eef2ea;color:#4d6459;font-size:13px;font-weight:600;vertical-align:middle}

.bulk-search{width:100%;margin:0 0 10px}.bulk-tools{display:flex;gap:8px;align-items:center;margin-bottom:10px}.bulk-count{margin-left:auto;font-weight:650;color:#245d3c}
.bulk-list{max-height:46vh;overflow:auto;border:1px solid #dde5dd;border-radius:10px}
.bulk-item{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:10px 14px;border-bottom:1px solid #eef2ea;cursor:pointer}.bulk-item:hover{background:#f4f8f1}.bulk-item small{color:#65705f}.bulk-item[hidden]{display:none}
#work-form .bulk-item input{min-height:0;width:20px;height:20px;margin:0}

/* Product card: facts on the left, the key's picture framed on the right. */
.product-head{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:24px;align-items:start}
.product-facts{min-width:0}.product-facts h3{margin:0 0 10px;overflow-wrap:anywhere}
.product-facts p{margin:0 0 12px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.product-shot{margin:0;aspect-ratio:1;border:1px solid #dde5dd;border-radius:14px;background:#fff;display:grid;place-items:center;overflow:hidden;padding:12px}
.product-shot img{max-width:100%;max-height:100%;object-fit:contain}
.product-shot-empty{font-size:13px;color:#7d8a81;text-align:center;padding:0 10px}
@media(max-width:700px){.product-head{grid-template-columns:1fr}.product-shot{max-width:200px}}

/* Movement history: quantity and the undo button keep out of each other's way. */
.history-table td,.history-table th{vertical-align:middle}
.history-table .qty-col{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.history-table .qty-value{font-weight:650}.history-table .qty-value.negative{color:#a64228}
.history-table .undo-col{text-align:right;white-space:nowrap;width:1%;padding-left:18px}

/* List thumbnails: a fixed square each, picture contained inside it. */
.stock-table .product-cell{display:grid;grid-template-columns:52px minmax(0,1fr);gap:14px;align-items:center;min-width:0}
.stock-table .thumb{width:52px;height:52px;flex:none;border-radius:10px;background:#f3f6f1;border:1px solid #e2e9e0;display:grid;place-items:center;overflow:hidden;padding:4px}
.stock-table .thumb img{width:100%;height:100%;object-fit:contain;display:block}
.stock-table .product-cell>div{min-width:0}
.stock-table .product-name{display:block;text-align:left;overflow-wrap:anywhere}
.stock-table .product-code{overflow-wrap:anywhere}

/* Back sits above everything in a dialog and reads as a way out, not a form action. */
.dialog-top{position:sticky;top:0;z-index:4;margin:-24px -24px 14px;padding:14px 24px 12px;background:#eef3ea;border-bottom:1px solid #d9e4d6;border-radius:18px 18px 0 0}
#work-form .btn.back-button,.workspace .btn.back-button{background:#2f5d49;border-color:#2f5d49;color:#fff;font-size:15px;padding:10px 20px;min-height:42px}
.btn.back-button:hover{background:#24493a}
.dialog-head{margin-bottom:18px}
@media(max-width:600px){.dialog-top{margin:-18px -18px 12px;padding:12px 18px}}

/* Pictures: roomy on the card, the whole key visible in the list, full size on click. */
.product-head{grid-template-columns:minmax(0,1fr) 300px}
.product-shot{width:100%;aspect-ratio:1;padding:16px;cursor:pointer;border:1px solid #dde5dd;border-radius:14px;background:#fff;display:grid;place-items:center;overflow:hidden}
.product-shot:hover{border-color:#9db9a8}
.product-shot.empty{cursor:default}
.product-shot.empty span{font-size:13px;color:#7d8a81;text-align:center}
.product-shot img{width:100%;height:100%;object-fit:contain;display:block}
@media(max-width:800px){.product-head{grid-template-columns:1fr}.product-shot{max-width:260px}}

.stock-table .product-cell{grid-template-columns:76px minmax(0,1fr)}
.stock-table .thumb{width:76px;height:76px;padding:6px;border-radius:12px}
.stock-table .thumb img{width:100%;height:100%;object-fit:contain}
.stock-table .thumb.placeholder{font-size:26px;color:#8aa392}

#modal .photo-full{margin:0;display:grid;place-items:center;background:#fff;border:1px solid #dde5dd;border-radius:14px;padding:18px;min-height:52vh}
#modal .photo-full img{max-width:100%;max-height:70vh;object-fit:contain;display:block}
.photo-full-caption{margin:12px 0 0;text-align:center;color:#4d6459;font-size:14px}
#modal:has(.photo-full){width:min(760px,calc(100% - 28px))}

/* Back: its own framed bar above the heading, clear of the title. */
.dialog-top{position:static;margin:-24px -24px 18px;padding:14px 24px;background:#eef3ea;border:1px solid #d9e4d6;border-bottom-width:1px;border-radius:18px 18px 0 0;display:flex}
.dialog-head{margin-top:0}

.btn.danger{border-color:#d7b3a8;color:#8f3c26;background:#fdf4f1}
.btn.danger:hover{background:#f8e7e1;border-color:#c08f80}
.work-record .product-cell{display:grid;grid-template-columns:76px minmax(0,1fr);gap:14px;align-items:center;min-width:0}
.work-record .thumb{width:76px;height:76px;padding:6px;border-radius:12px;background:#f3f6f1;border:1px solid #e2e9e0;display:grid;place-items:center;overflow:hidden}
.work-record .thumb img{width:100%;height:100%;object-fit:contain}

/* Catalogue drawings are small files; let every frame scale them up to fill it. */
#modal .photo-full{min-height:62vh}
#modal .photo-full img{width:auto;height:70vh;max-width:100%;object-fit:contain}
.product-shot img{width:100%;height:100%;object-fit:contain}
.stock-table .thumb img,.work-record .thumb img{width:100%;height:100%;object-fit:contain}

/* Sortable headings: the whole heading is the control, the arrow shows the direction. */
.stock-table th.sortable{padding:0}
.stock-table th.sortable button{width:100%;display:flex;align-items:center;gap:6px;padding:18px;border:0;background:none;font:inherit;font-size:13px;font-weight:650;color:#637467;text-align:left;cursor:pointer}
.stock-table th.sortable button:hover{color:#183e35;background:#f1f5ee}
.stock-table th.sorted button{color:#183e35}
.sort-mark{font-size:10px;line-height:1}
.stock-table .price-col{white-space:nowrap;font-variant-numeric:tabular-nums}
.price-missing{color:#a6714a;font-weight:600}

/* Keep checkout favorites self-contained at every table width. */
.checkout-favorite{position:relative;display:inline-flex;flex-direction:column;align-items:center;gap:4px;flex:0 0 44px;width:44px;vertical-align:middle}
.checkout-favorite .checkout-favorite-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;box-sizing:border-box;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:3px;border-radius:9px;line-height:1;white-space:nowrap}
.checkout-favorite-star{display:block;font-size:20px;line-height:20px}
.checkout-favorite-label{display:block;font-size:10px;font-weight:700;letter-spacing:.04em;line-height:12px}
.checkout-favorite-button[aria-pressed="true"]{background:#e8f3ee;border-color:#39735c;color:#17533b}
.checkout-favorite-status{position:absolute;top:4px;right:4px;width:7px;height:7px;border-radius:50%;background:#b87918;box-shadow:0 0 0 2px #fff;pointer-events:auto}
.checkout-favorite-status[data-state="synced"]{background:#278057}
.checkout-favorite-status[data-state="error"]{background:#b73b36}
.checkout-favorite-status[data-state="unlinked"]{background:#77858a}
.stock-table td:last-child .inline-actions:has(.checkout-favorite)>.icon-button{width:44px;min-width:44px;height:44px}
.stock-table td:last-child .inline-actions:has(.checkout-favorite){align-items:flex-start;column-gap:10px;row-gap:8px}

.return-quantity-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,.5fr);gap:12px;align-items:end}
.return-quantity-row>.field{min-width:0}
.return-quantity-row select,.return-quantity-row input{width:100%;min-width:0;box-sizing:border-box}

#work-form textarea.compact-movement-note{height:46px;min-height:46px;box-sizing:border-box;resize:vertical}

/* Recipe quantities describe a sale, independently of current stock. */
.product-components{margin-top:22px}
#product-components section{padding:16px 0;border-top:1px solid var(--border,#e6e0f0)}
#product-components .panel-head{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
#product-components h3{margin:0 0 10px}
#product-components .work-record{gap:12px;flex-wrap:wrap}

/* Keep settings content clear of rounded panel borders. */
.clover-card .panel-head{border-bottom:1px solid var(--line,#e6e0f0)}
.clover-card .panel-head h2{margin:0;font-size:19px}
.clover-card .panel-head p,.clover-overview .panel-head p{font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.clover-card-body{padding:22px;min-width:0}
.clover-card-body>.work-notice:last-child{margin-bottom:0}
.clover-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.clover-fields .field{min-width:0;margin:0 0 18px}
.clover-fields input{width:100%;min-width:0;box-sizing:border-box}
.clover-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.clover-actions .btn{min-width:0;white-space:normal;overflow-wrap:anywhere}
.clover-result:empty{display:none}
.clover-result:not(:empty){margin-top:18px}
.work-content .panel>p:not(.work-notice):not(.work-empty){margin:0;padding:20px 22px}
.work-content .panel>.work-notice{margin:18px 22px}

/* A single scrolling dialog, with space for facts instead of a large blank photo. */
#modal:has(#work-form):has(.product-card){width:min(880px,calc(100vw - 28px));max-width:calc(100vw - 28px);box-sizing:border-box}
#modal:has(.product-card) #work-form .dialog-body{max-height:none;overflow:visible}
#modal .product-card{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:24px;align-items:start}
#modal .product-card .product-facts p{margin-bottom:8px;line-height:1.5;overflow-wrap:anywhere}
#modal .product-card .product-shot{width:100%;max-width:180px;margin:0;box-sizing:border-box}
#modal .product-card .product-shot-empty{aspect-ratio:auto;min-height:116px;padding:24px 12px;cursor:default}
#modal .product-card .work-balances{padding:14px 0;gap:18px;flex-wrap:wrap}
#modal .product-card .work-balances strong{font-size:24px;margin-top:4px}
#modal .product-card .product-card-actions{margin:8px 0 0}
#modal:has(.product-card) #product-components{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
#modal:has(.product-card) #product-components section{min-width:0}
#modal:has(.product-card) #product-components .work-record{padding:14px 0}
@media(max-width:700px){
 .clover-card-body{padding:16px}
 .clover-fields,.clover-actions{grid-template-columns:1fr}
 .clover-fields{gap:0}
 #modal .product-card{grid-template-columns:1fr;gap:16px}
 #modal .product-card-media{grid-row:1;justify-self:start}
 #modal .product-card .product-shot{max-width:140px;width:140px}
 #modal .product-card .product-shot-empty{min-height:72px;padding:16px 12px}
 #modal:has(.product-card) #product-components{grid-template-columns:1fr;gap:0}
 .work-content .panel>p:not(.work-notice):not(.work-empty){padding:16px}
 .work-content .panel>.work-notice{margin:16px}
}

#modal .product-card-actions .btn{font-size:13px;padding:10px 12px}
@media(min-width:701px){#modal .product-card .product-facts>p .btn{min-height:36px;padding:8px 10px;font-size:13px}}

#modal .product-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px}
#modal .product-meta p{min-width:0;align-content:start}
#modal .product-card-actions .btn{white-space:normal;max-width:100%}
@media(max-width:700px){#modal .product-meta{grid-template-columns:1fr}}

#modal:has(#work-form):has(.product-card){padding:24px}
#modal:has(.product-card) #history{max-width:100%;overflow-x:auto}
@media(max-width:700px){
 #modal:has(#work-form):has(.product-card){padding:18px}
 #modal:has(.product-card) .dialog-top{margin:-18px -18px 18px;padding:12px 18px}
}
/* ---------- owner: sales, backups, privileges (12.10.2026) ---------- */
.sales-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin-bottom:16px}
.sales-views{display:flex;flex-wrap:wrap;gap:6px}
.sales-period{display:flex;gap:10px;align-items:center}.sales-period div{display:flex;flex-direction:column;min-width:0}
.sales-period small{color:var(--muted,#736d82)}
.sales-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:8px 0 18px}
.sales-tile{border:1px solid var(--line,#e8e4ef);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:2px}
.sales-tile span{font-size:13px;color:var(--muted,#736d82)}.sales-tile strong{font-size:20px}
.sales-tile small{color:var(--muted,#736d82)}
.sales-delta{font-size:12px;font-weight:600;color:var(--muted,#736d82)}.sales-delta.up{color:#1f7a4d}.sales-delta.down{color:#b3261e}
.sales-chart-wrap{overflow-x:auto}
.sales-chart{width:100%;min-width:520px;height:auto;display:block}
.sales-chart .grid{stroke:var(--line,#e8e4ef);stroke-width:1}
.sales-chart .axis{font-size:11px;fill:var(--muted,#736d82)}
.sales-chart .current{fill:var(--violet,#7153e6)}.sales-chart .previous{fill:#cfc9da}
.sales-chart .hit{fill:transparent}.sales-chart .slot:hover .hit,.sales-chart .slot:focus .hit{fill:var(--pale,#f5f2fc)}
.sales-chart .slot:focus{outline:none}
.sales-legend{display:flex;gap:16px;font-size:13px;color:var(--muted,#736d82);margin-top:6px}
.sales-legend i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.sales-legend i.current{background:var(--violet,#7153e6)}.sales-legend i.previous{background:#cfc9da}
.sales-sync{font-size:13px;color:var(--muted,#736d82);margin-top:10px}.sales-sync.warn{color:#8a5a00}
.sales-table td,.sales-table th{white-space:nowrap}.sales-table tr.selected td{background:var(--pale,#f5f2fc)}
.sales-table tr.sales-total td{font-weight:700;border-top:2px solid var(--line,#e8e4ef)}
.sales-table tr.cash-out td:nth-child(4){color:#b3261e;font-weight:600}
button.link{background:none;border:0;padding:0;color:var(--violet,#7153e6);text-decoration:underline;cursor:pointer;font:inherit}
.backup-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:12px 0;align-items:start}
.backup-grid .inline-actions{grid-column:1/-1}
.backup-grid small{display:block;color:var(--muted,#736d82);font-size:12px;margin-top:4px}
#backup-settings h3{margin-top:24px}
.privilege-card{border:1px solid var(--line,#e8e4ef);border-radius:12px;padding:10px 14px;margin:10px 0}
.privilege-card summary{cursor:pointer;padding:4px 0}
.privilege-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:6px 18px;margin-top:10px}
.privilege-row{display:flex;flex-direction:column}.privilege-row small{color:var(--muted,#736d82);margin-left:24px}
@media (max-width:600px){.sales-period{width:100%;justify-content:space-between}.sales-tile strong{font-size:18px}}

.work-hello{font-weight:700;font-size:16px;margin-right:4px}
.ai-span{grid-column:1/-1;margin:8px 0 0}
.describe-result{border:1px solid var(--line,#e8e4ef);border-radius:12px;padding:12px 14px;margin-top:12px}
.describe-result small{color:var(--muted,#736d82)}
#describe-notes{width:100%}

/* 14.10.2026: content placed straight inside a panel lines up with its heading (22px),
   and settings forms use even columns instead of a ragged auto-fit row. */
.work-content .panel>:is(form,h3,.inline-actions,.settings-tabs,.sales-tabs,.privilege-card,.form-error),.work-content .panel #sales-detail>p{margin-left:22px;margin-right:22px}
.work-content .panel>.backup-grid{margin:16px 22px}
.work-content .panel>:is(form,.backup-grid,.inline-actions,.privilege-card,.form-error):last-child{margin-bottom:22px}
.work-content .panel>h3{margin-top:24px;margin-bottom:10px;font-size:16px}
.backup-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#ai-settings-form,.describe-panel .backup-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.backup-grid .field :is(select,input,textarea){width:100%;min-width:0;box-sizing:border-box}
.work-record>.inline-actions{justify-content:flex-end;flex-wrap:wrap}
@media(max-width:760px){.backup-grid,#ai-settings-form,.describe-panel .backup-grid{grid-template-columns:1fr}}

/* 15.10.2026: stage B batches */
.batch-switches{list-style:none;margin:0 22px 12px;padding:0;display:flex;gap:18px;flex-wrap:wrap;font-size:14px}
.batch-fields{border:0;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:14px}.batch-fields legend{font-weight:650;margin-bottom:6px}

/* 15.10.2026: Live / Sandbox switch in the Clover tab */
.clover-env-toggle{display:flex;gap:8px;margin:20px 0 8px}.clover-env-toggle .btn{min-width:140px}
.clover-env-note{margin:0 0 4px}
#content[data-clover-env=live_eu] [data-clover=sandbox],#content[data-clover-env=live_eu] .env-sandbox{display:none!important}
#content[data-clover-env=sandbox] [data-clover=live_eu],#content[data-clover-env=sandbox] .env-live{display:none!important}
#content[data-clover-env=live_eu] .clover-env-toggle .btn.primary{background:#9c362b;border-color:#9c362b}

/* 16.10.2026: till choices */
.choice-group{border-top:1px solid var(--line,#e8e4ef);padding:4px 22px 18px}.choice-group .panel-head{padding:14px 0}
.choice-chip{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--line,#e8e4ef);border-radius:999px;padding:2px 10px;margin:2px 4px 2px 0}
.choice-group input[name=label]{width:100%}.choice-product{width:100%;min-width:220px}.choice-group input[name=quantity]{width:80px}
.work-content .panel>p:has(input[name=new_group]){margin:0 22px}
.product-choices{margin-top:16px;border-top:1px solid var(--line,#e8e4ef)}.product-choices .panel-head{padding:12px 0}.choice-toggle{display:flex;gap:6px}
.choice-pick{display:flex;flex-wrap:wrap;gap:14px;margin:8px 0}.product-choices .choice-group{padding:4px 0 12px}

/* 16.10.2026: tabs instead of long pages; product groups; till answers picked by typing */
.tab-off,.tab-heading{display:none!important}
.tab-count:empty{display:none}.tab-count{display:inline-block;min-width:18px;padding:0 6px;margin-left:4px;border-radius:999px;background:var(--violet-soft,#f0ebfc);color:var(--violet-dark,#573ac1);font-size:12px;line-height:18px}
.btn.primary .tab-count{background:#ffffff33;color:#fff}
.btn.small{min-height:34px;padding:6px 12px;font-size:13px}
/* product card */
#modal .product-tabs{margin:22px 0 0}
#modal .product-pane{padding-top:18px}
#modal .product-more{margin:16px 0 0}
#modal .product-danger{margin-top:22px;padding-top:14px;border-top:1px dashed var(--line,#e8e4ef);display:flex;justify-content:flex-end}
#modal .product-groups-line{margin-top:14px}
#modal:has(.product-card) .product-pane #product-components{margin-top:12px}
/* search under a field */
.answer-search{position:relative;flex:1 1 260px;min-width:0;max-width:520px}
.answer-search input{width:100%;box-sizing:border-box}
.answer-popup{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 4px);max-height:320px;overflow:auto;background:#fff;border:1px solid var(--line,#e8e4ef);border-radius:12px;box-shadow:0 12px 32px #2b1d4a1f;padding:6px}
.answer-item{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;text-align:left;background:none;border:0;border-radius:8px;padding:8px 10px;cursor:pointer;font:inherit;color:inherit}
.answer-item small{color:var(--muted,#736d82);font-size:12px}
.answer-item:hover,.answer-item[aria-selected=true]{background:var(--violet-soft,#f0ebfc)}
.answer-item.kind-group strong::before{content:"▦ ";color:var(--violet,#7153e6)}
.answer-item.kind-text strong,.answer-item.kind-create strong{color:var(--violet-dark,#573ac1)}
.answer-item.kind-text,.answer-item.kind-create{border-top:1px solid var(--line,#e8e4ef);border-radius:0 0 8px 8px}
/* till questions */
.choice-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}.choice-top .work-notice{flex:1 1 300px;margin:0}
.choice-toggle{display:flex;gap:6px}
.choice-cards{display:grid;gap:14px;margin:16px 0}
.choice-card{border:1px solid var(--line,#e8e4ef);border-radius:14px;padding:14px 16px;background:#fff}
.choice-card.is-draft{border-style:dashed;background:#fcfbff}
.choice-card header{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.choice-card h4{margin:0;font-size:17px}.choice-count{color:var(--muted,#736d82);font-size:13px;flex:1 1 auto}
.choice-required{display:flex;align-items:center;gap:6px;font-size:13px}
.choice-line{display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px 10px;align-items:start;margin:8px 0}
.choice-caption{grid-column:1;color:var(--muted,#736d82);font-size:13px;padding-top:5px}
.choice-chips{grid-column:2;display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-height:30px}
.choice-line .answer-search{grid-column:2;width:100%}
#modal .product-pane{min-height:240px}
.choice-chip{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--line,#e8e4ef);border-radius:999px;padding:3px 4px 3px 10px;margin:0;font-size:13px;background:#faf9fd;max-width:100%}
.choice-chip.kind-group{background:var(--violet-soft,#f0ebfc);border-color:#ddd0f7;font-weight:600}.choice-chip.kind-group::before{content:"▦";color:var(--violet,#7153e6)}
.choice-chip.kind-text{border-style:dashed}
.chip-x{border:0;background:none;cursor:pointer;color:var(--muted,#736d82);font-size:16px;line-height:1;width:22px;height:22px;border-radius:50%}.chip-x:hover{background:#0000000f;color:#b42318}
.choice-also{margin:0 0 6px;color:var(--muted,#736d82);font-size:13px}
.choice-add{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0 16px}
.choice-new{display:inline-flex;gap:6px;align-items:center;margin-left:auto}.choice-new input{width:220px}
.choice-send{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;border-radius:12px;background:var(--pale,#f5f2fc)}.choice-send p{margin:0}
.till-choices-root:not(.product-choices){padding-bottom:18px}
.till-choices-root:not(.product-choices)>:is(.choice-send,.choice-add,.choice-cards,.work-notice){margin-left:22px;margin-right:22px}
/* groups page */
.groups-layout{display:grid;grid-template-columns:minmax(220px,300px) minmax(0,1fr);gap:18px;align-items:start}
.groups-new{display:flex;gap:6px;padding:0 16px 12px}.groups-new input{flex:1;min-width:0}
.groups-nav{display:flex;flex-direction:column;padding:0 8px 10px}
.groups-item{display:flex;flex-direction:column;gap:2px;text-align:left;background:none;border:1px solid transparent;border-radius:10px;padding:10px 12px;cursor:pointer;font:inherit;color:inherit}
.groups-item small{color:var(--muted,#736d82)}.groups-item:hover{background:#faf8fe}.groups-item.active{background:var(--violet-soft,#f0ebfc);border-color:#e0d6f5}
.group-head{gap:10px;flex-wrap:wrap}.group-head input{flex:1 1 220px;font-size:18px;font-weight:650}
.group-detail>.work-notice,.group-add,.group-filter,.group-total{margin:0 22px 12px}
.group-add{display:flex}.group-filter input{width:100%;max-width:320px}
.group-table td{vertical-align:middle}.group-total{color:var(--muted,#736d82);font-size:13px;padding-bottom:12px}
@media(max-width:800px){.groups-layout{grid-template-columns:1fr}.choice-line{grid-template-columns:1fr}.choice-caption,.choice-chips,.choice-line .answer-search{grid-column:1}.choice-caption{padding:0}.choice-new{margin-left:0}.choice-new input{width:100%}}
.panel:has(.answer-search),.choice-card,.till-choices-root{overflow:visible!important}
/* Folder tabs (owner, 16.10): one row left to right; the chosen tab opens into a frame
   around what it shows. Settings: groups on top, the group's tabs below. */
.settings-groups{display:flex;gap:6px;margin:18px 0 14px;padding:5px;background:#fff;border:1px solid #d8cdef;border-radius:14px;width:max-content;max-width:100%;box-sizing:border-box}
.settings-groups .btn{border-color:transparent;background:transparent;min-height:38px;padding:8px 16px;font-size:14px;white-space:nowrap}
.settings-groups .btn.primary{background:var(--violet,#7153e6);color:#fff}
.folder-tabs{display:flex;flex-wrap:nowrap;gap:4px;align-items:flex-end;margin:0;padding:0 0 0 2px;border-bottom:1px solid #d8cdef;position:relative;z-index:1}
.folder-tabs .btn{flex:0 0 auto;white-space:nowrap;border:1px solid transparent;border-bottom:0;border-radius:12px 12px 0 0;background:transparent;color:var(--muted,#736d82);min-height:40px;padding:9px 16px;font-size:14px;font-weight:600;margin-bottom:-1px;box-shadow:none}
.folder-tabs .btn:hover{background:#f6f3fc;color:#433c54}
.folder-tabs .btn.primary,.folder-tabs .btn[aria-selected=true]{background:#fff;font-weight:700;color:var(--violet-dark,#573ac1);border-color:#d8cdef;border-bottom:1px solid #fff;box-shadow:inset 0 3px 0 var(--violet,#7153e6)}
.folder-tabs .btn.primary .tab-count{background:var(--violet-soft,#f0ebfc);color:var(--violet-dark,#573ac1)}
.folder-tabs .btn[hidden]{display:none}
.folder-body{border:1px solid #d8cdef;box-shadow:0 6px 18px #4a2f8a0d;border-top:0;border-radius:0 0 16px 16px;padding:4px 20px 20px;background:#fff}
/* the frame under page and settings tabs: the visible panel joins the bar */
.work-content>.folder-tabs{margin-top:8px}
.work-content>.folder-tabs~section.panel:not(.tab-off),.work-content>.folder-tabs~[data-settings-panel]:not([hidden]){margin-top:0;border-top:0;border-top-left-radius:0;border-top-right-radius:0}
.work-content>.folder-tabs~[data-settings-panel]:not([hidden]):not(.panel){border:1px solid #d8cdef;border-top:0;background:#fff;padding:14px;margin-top:0}
.work-content>.folder-tabs~[data-settings-panel]:not([hidden])~[data-settings-panel]:not([hidden]){border-top:0;border-radius:0}
.work-content .panel>.folder-tabs{margin:14px 22px 0}
@media(max-width:700px){.folder-tabs,.settings-groups{flex-wrap:wrap;width:auto}.folder-tabs .btn{padding:8px 11px;font-size:13px}}
#modal:has(#work-form):has(.product-card){width:min(1000px,calc(100vw - 28px))}
#content .batch-title{margin:18px 0 10px;font-size:16px}

/* gallery (17.10) */
.gallery-strip{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;max-width:180px}
.gallery-thumb{width:52px;height:52px;padding:2px;border:1px solid #d8cdef;border-radius:8px;background:#fff;cursor:pointer}
.gallery-thumb img{width:100%;height:100%;object-fit:cover;border-radius:6px;display:block}
.gallery-thumb.is-main{border-color:var(--violet,#7153e6);box-shadow:0 0 0 1px var(--violet,#7153e6)}
#modal .gallery-actions{justify-content:center;margin-top:10px}
