:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.4;font-weight:400;color:#12263a;background:#f5f7fb;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body,h1,h2,p{margin:0}#root{min-height:100svh}.shell{max-width:1120px;margin:0 auto;padding:24px;display:flex;flex-direction:column;gap:16px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#fff;border:1px solid #e3e8f0;border-radius:16px;padding:16px}.topbar h1{font-size:1.4rem}.card{background:#fff;border:1px solid #e3e8f0;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px;box-shadow:0 6px 20px #0820380a}.auth-card,.household-card{max-width:640px;margin:8svh auto 0}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.main-grid{align-items:start}.detail-header{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.item-main{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px}.plus-button{width:38px;height:38px;border-radius:999px;border:0;background:linear-gradient(180deg,#6a7cff,#5367f0);color:#fff;font-size:1.45rem;line-height:1;cursor:pointer;display:grid;place-items:center}.plus-button:hover{filter:brightness(1.04)}.stack{display:flex;flex-direction:column;gap:10px;border:1px dashed #d7deea;border-radius:12px;padding:12px}.inline{display:flex;gap:8px;flex-wrap:wrap}.label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:.92rem}.input{border:1px solid #ccd7e7;border-radius:10px;padding:10px 12px;min-width:0;font-size:.96rem}.input:focus{outline:2px solid #7b8cff;border-color:#7b8cff}.button{border:1px solid #cdd7e6;background:#fff;color:#1f3550;border-radius:10px;padding:10px 12px;cursor:pointer;font-weight:600}.button:hover{background:#f7f9fe}.button:disabled{cursor:not-allowed;opacity:.65}.button.primary{background:linear-gradient(180deg,#6a7cff,#5367f0);color:#fff;border-color:transparent}.button.primary:hover{filter:brightness(1.04)}.button.danger{border-color:#f2ccd0;color:#b4232b;background:#fff6f7}.button.ghost{background:transparent}.muted{color:#5c738d;font-size:.94rem}.hint{background:#f0f4ff;border:1px solid #d3defd;color:#3450a4;border-radius:10px;padding:10px}.callout{background:#eefaf2;border:1px solid #c8edd5;color:#0f5b2a;border-radius:10px;padding:10px;word-break:break-word}.list-stack{display:flex;flex-direction:column;gap:8px}.list-item{width:100%;border:1px solid #d7dfeb;background:#f8faff;border-radius:10px;padding:10px;display:flex;justify-content:space-between;align-items:center;gap:10px}.list-open{border:0;background:transparent;width:100%;padding:0;display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:left;cursor:pointer}.list-item small{color:#667f9b}.product-row{display:flex;align-items:center;justify-content:flex-start;position:relative;z-index:0;gap:8px;border:1px solid #e3e8f0;border-radius:10px;padding:8px 10px;touch-action:pan-y;transition:transform .18s ease}.product-row.swiping{transition:none}.product-row.menu-open{z-index:40}.product-main{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.inline-edit{width:100%;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.inline-edit .input{flex:1;min-width:160px}.product-name{word-break:break-word}.product-name.in-cart{color:#70859d;text-decoration:line-through}.product-flag{color:#9a6700;background:#fff7db;border:1px solid #f1df9d;border-radius:999px;font-size:.72rem;font-weight:600;padding:2px 8px;width:fit-content}.menu{position:relative}.menu-trigger{list-style:none;width:34px;height:34px;border-radius:8px;border:1px solid #d3dceb;background:#fff;display:grid;place-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;font-size:1.2rem;line-height:1}.menu-trigger::-webkit-details-marker{display:none}.product-menu-trigger{display:none}.menu-panel{position:absolute;top:calc(100% + 6px);right:0;min-width:130px;border:1px solid #dce4f0;border-radius:10px;background:#fff;box-shadow:0 10px 24px #142d4b24;z-index:10;padding:6px;display:flex;flex-direction:column;gap:4px}.menu-action{border:0;background:transparent;border-radius:8px;padding:8px 10px;text-align:left;cursor:pointer;color:#1f3550;font-weight:600}.menu-action:hover{background:#f4f7fd}.menu-action.danger{color:#b4232b}.status-bar,.footer-status{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.status-bar{padding:8px 2px;color:#4f6178}.error{color:#b4232b;background:#fff4f4;border:1px solid #f8d0d0;padding:6px 10px;border-radius:8px}@media (max-width: 980px){.shell{padding:14px}.grid{grid-template-columns:1fr}.product-row{align-items:flex-start}.topbar{align-items:flex-start;flex-direction:column}.detail-header{gap:6px}}
