:root{--bg:#fdf8f4;--text:#2b2118;--muted:#7a6a5c;--primary:#b5485d;--primary-text:#fff;--border:#e2d6cc;--error:#b3261e;color:var(--text);font-family:system-ui,sans-serif}*{box-sizing:border-box}body{background:var(--bg);margin:0}main{max-width:420px;margin:0 auto;padding:32px 16px}h1{margin:0 0 24px;font-size:1.6rem}form{flex-direction:column;gap:16px;display:flex}label{flex-direction:column;gap:6px;font-weight:600;display:flex}input,textarea{font:inherit;border:1px solid var(--border);background:#fff;border-radius:10px;padding:14px;font-size:1.1rem}button{background:var(--primary);min-height:52px;color:var(--primary-text);border:0;border-radius:10px;font-size:1.1rem;font-weight:600}button.secondary{color:var(--primary);border:1px solid var(--primary);background:0 0}button:disabled{opacity:.6}.error{color:var(--error);margin:0}.muted{color:var(--muted)}:root{--surface:#fff;--primary-soft:#f6e3e7;--ok:#2e7d4f}h2{margin:0;font-size:1.3rem}h3{margin:0;font-size:1.05rem}.topbar{max-width:420px;color:var(--muted);justify-content:space-between;align-items:center;margin:0 auto;padding:12px 16px 0;display:flex}main.with-nav{padding-top:12px;padding-bottom:96px}.bottom-nav{background:var(--surface);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom);display:flex;position:fixed;bottom:0;left:0;right:0}.bottom-nav button{color:var(--muted);background:0 0;border-radius:0;flex:1;min-height:60px;font-size:1rem}.bottom-nav button[aria-current=page]{color:var(--primary);box-shadow:inset 0 3px 0 var(--primary)}button.link{color:var(--primary);background:0 0;min-height:44px;padding:0 4px;font-weight:600}button.back{align-self:flex-start}button.small{min-height:40px;padding:0 12px;font-size:.9rem}button.danger{color:var(--error);border:1px solid var(--error);background:0 0}.stack{flex-direction:column;gap:14px;display:flex}.row{gap:10px;display:flex}.row>*{flex:1;min-width:0}.row-between{justify-content:space-between;align-items:center;gap:8px;display:flex}.row-between h3{white-space:nowrap}.segmented{background:var(--primary-soft);border-radius:12px;margin-bottom:16px;padding:4px;display:flex}.segmented button{min-height:44px;color:var(--primary);background:0 0;flex:1}.segmented button[aria-selected=true],.segmented button[aria-checked=true]{background:var(--surface);box-shadow:0 1px 3px #0000001f}.list{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.card{text-align:left;background:var(--surface);width:100%;color:var(--text);border:1px solid var(--border);align-items:center;gap:12px;padding:10px;font-weight:400;display:flex}.card.inactive{opacity:.6}.card-body{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.card-body strong{overflow-wrap:anywhere}.thumb{object-fit:cover;border-radius:8px;flex-shrink:0;width:56px;height:56px}.thumb-empty{background:var(--primary-soft);place-items:center;font-size:1.5rem;display:grid}.badge{background:var(--border);color:var(--text);white-space:nowrap;border-radius:999px;padding:4px 8px;font-size:.8rem;font-weight:600}.badge.aberto{color:var(--ok);background:#dff1e6}.badge.fechado{color:var(--error);background:#f3dcdb}.photo{flex-direction:column;gap:10px;display:flex}.photo img,.photo-empty{aspect-ratio:4/3;object-fit:cover;background:var(--primary-soft);border-radius:12px;width:100%}.photo-empty{color:var(--muted);place-items:center;display:grid}.switch-row{flex-direction:row;align-items:center;gap:12px;min-height:48px;font-weight:400}input[role=switch]{appearance:none;background:var(--border);border:0;border-radius:999px;flex-shrink:0;width:52px;height:30px;margin:0;padding:0;transition:background .15s;position:relative}input[role=switch]:after{content:"";background:#fff;border-radius:50%;width:24px;height:24px;transition:transform .15s;position:absolute;top:3px;left:3px;box-shadow:0 1px 2px #0000004d}input[role=switch]:checked{background:var(--primary)}input[role=switch]:checked:after{transform:translate(22px)}input[role=switch]:focus-visible{outline:3px solid var(--primary-soft);outline-offset:2px}.cycle{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:4px 14px}.cycle[open]{padding-bottom:16px}.cycle summary{cursor:pointer;align-items:center;gap:10px;min-height:64px;list-style:none;display:flex}.cycle summary::-webkit-details-marker{display:none}.cycle summary:after{content:"›";color:var(--muted);font-size:1.6rem;transition:transform .15s}.cycle[open] summary:after{transform:rotate(90deg)}.cycle[open] summary{border-bottom:1px solid var(--border);margin-bottom:8px}input[type=date],input[type=datetime-local]{width:100%;min-width:0}.menu-item{border:1px solid var(--border);border-radius:10px;padding:6px 12px}.menu-item.on{border-color:var(--primary);background:#fff8f9}.limit{align-items:flex-end;gap:12px;padding:4px 0 8px 64px;display:flex}.limit label{flex:1;min-width:0;font-size:.9rem;font-weight:400}.limit input{width:100%;min-width:0;padding:10px}.sold{color:var(--muted);white-space:nowrap;padding-bottom:12px}.order-header{margin-bottom:16px}.order-header h1{margin-bottom:8px}.deadline{background:var(--primary-soft);border-radius:12px;margin:0;padding:12px 14px;line-height:1.4}.deadline.big{font-size:1.15rem;font-weight:600}.small{margin:0;font-size:.9rem}main.with-checkout{padding-bottom:110px}.product{border-radius:12px;flex-wrap:wrap}.product.soldout{filter:grayscale();opacity:.6}.thumb.big{width:80px;height:80px}.badge.low{color:#8a5a00;background:#fff1d6;align-self:flex-start}.product .badge{align-self:flex-start;margin-top:4px}.stepper{align-items:center;gap:4px;margin-left:auto;display:flex}.stepper button{border-radius:50%;width:48px;min-height:48px;padding:0;font-size:1.5rem}.stepper output{text-align:center;min-width:2ch;font-size:1.2rem;font-weight:700}.checkout-bar{padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border);align-items:center;gap:16px;display:flex;position:fixed;bottom:0;left:0;right:0}.checkout-bar span{flex-direction:column;display:flex}.checkout-bar strong{font-size:1.3rem}.checkout-bar button{flex:1}.hp{opacity:0;width:1px;height:1px;position:absolute;left:-9999px}.summary li{border-bottom:1px solid var(--border);padding:8px 0}.summary .total{border-bottom:0;font-size:1.15rem;font-weight:700}a.button{background:var(--primary);min-height:52px;color:var(--primary-text);border-radius:10px;place-items:center;font-size:1.1rem;font-weight:600;text-decoration:none;display:grid}a.button.whatsapp{background:#1f8f4e}.setting{background:var(--surface);border:1px solid var(--border);border-radius:12px;margin-bottom:16px;padding:4px 14px}a.button.big{text-align:center;min-height:72px;padding:0 16px;font-size:1.25rem}select{font:inherit;border:1px solid var(--border);background:#fff;border-radius:10px;width:100%;min-width:0;padding:12px;font-size:1rem}.diag-item{background:var(--surface);border:1px solid var(--border);border-radius:12px;flex-direction:column;gap:6px;padding:12px;display:flex}.wrap{overflow-wrap:anywhere}.diag-item pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0;font-size:.75rem}.badge.api{color:var(--error);background:#f3dcdb}.badge.front{color:#8a5a00;background:#fff1d6}table.diff{border-collapse:collapse;table-layout:fixed;width:100%;font-size:.85rem}.diff th,.diff td{text-align:left;vertical-align:top;border-top:1px solid var(--border);overflow-wrap:anywhere;padding:4px 6px}.diff thead th{color:var(--muted);border-top:0}.diff tbody th{width:30%;font-weight:600}.diff tr.changed td{background:#fff1d6}input[type=search]{width:100%}.with-checkout.stack{padding-bottom:96px}.checkout-bar.above-nav{bottom:calc(60px + env(safe-area-inset-bottom));padding-bottom:12px}.saved{color:var(--ok);background:#dff1e6;border-radius:12px;margin:0;padding:12px 14px;font-weight:600}.client{flex-direction:column;gap:8px;display:flex}.client .link{align-self:flex-start}.suggestions{border:1px solid var(--border);background:var(--surface);border-radius:10px;margin:0;padding:0;list-style:none;overflow:hidden}.suggestions button{text-align:left;width:100%;color:var(--text);border-bottom:1px solid var(--border);background:0 0;border-radius:0;padding:0 14px;font-weight:400}.suggestions li:last-child button{border-bottom:0}.suggestions button.new{color:var(--primary);font-weight:600}.production-row{background:var(--surface);border:1px solid var(--border);border-radius:12px;justify-content:space-between;align-items:center;padding:14px 16px;font-size:1.15rem;display:flex}.production-row strong{font-size:1.6rem}.to-receive{background:var(--primary-soft);border-radius:12px;margin:0;padding:12px 14px}.order-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;flex-direction:column;gap:6px;padding:12px;display:flex}.order-card.cancelled{opacity:.55}.order-card a{color:var(--primary);overflow-wrap:anywhere}.order-card .switch-row{min-height:40px}.tags{flex-wrap:wrap;gap:6px;display:flex}.tags:empty{display:none}.actions{flex-wrap:wrap;gap:8px;display:flex}.actions>*{flex:1;min-width:0}a.button.small{min-height:40px;padding:0 12px;font-size:.9rem}a.button.secondary{color:var(--primary);border:1px solid var(--primary);background:0 0}.badge.cobrar{background:var(--error);color:#fff;letter-spacing:.04em}.badge.status-novo{color:#1d4f91;background:#e3ecfa}.badge.status-confirmado{color:#8a5a00;background:#fff1d6}.badge.status-pronto,.badge.status-entregue{color:var(--ok);background:#dff1e6}button.danger-text{color:var(--error)}.alert{background:#fff1d6;border:1px solid #e6c27a;border-radius:12px;flex-direction:column;gap:10px;padding:14px;display:flex}.alert a{color:var(--text);font-weight:600}.actions>*{white-space:nowrap;padding:0 6px}.order-card button.link{font-size:.95rem}.client input{padding:12px 10px;font-size:1rem}.order-card .row-between{flex-wrap:wrap}.segmented.many{grid-template-columns:1fr 1fr;gap:4px;display:grid}.temp-password{text-align:center;letter-spacing:.12em;background:var(--surface);border:2px dashed var(--primary);-webkit-user-select:all;user-select:all;border-radius:12px;margin:0;padding:18px;font:700 2rem ui-monospace,monospace}.saved-tick{color:var(--ok);white-space:nowrap;margin-left:auto;font-weight:700}.limit{flex-wrap:wrap}.unsaved{color:#8a5a00;flex-basis:100%;font-size:.85rem;font-weight:600}.banner{text-align:center;z-index:10;margin:0;padding:10px 16px;font-weight:600;position:sticky;top:0}.banner.offline{background:var(--error);color:#fff}.banner.update{color:#1d4f91;background:#e3ecfa}.banner.update .link{color:#1d4f91;min-height:32px;text-decoration:underline}.topbar .link{color:var(--muted);padding:0;font-weight:600}.topbar .link:last-child{color:var(--primary)}.push-prompt{margin-bottom:14px}.push-prompt .row button{min-height:44px;font-size:.95rem}.order-card.highlight{border:2px solid var(--primary);box-shadow:0 0 0 4px var(--primary-soft)}
