:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--bg:#f8fafc;--fg:#0f172a;--muted:#475569;--card:#fff;--border:#dbe2ea;--accent:#2563eb;--accent-fg:#fff;--error:#dc2626;--control-bg:#fff}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#020617;--fg:#f8fafc;--muted:#94a3b8;--card:#111827;--border:#334155;--accent:#3b82f6;--accent-fg:#fff;--error:#f87171;--control-bg:#0b1220}}:root[data-theme=light]{--bg:#f8fafc;--fg:#0f172a;--muted:#475569;--card:#fff;--border:#dbe2ea;--accent:#2563eb;--accent-fg:#fff;--error:#dc2626;--control-bg:#fff}:root[data-theme=dark]{--bg:#020617;--fg:#f8fafc;--muted:#94a3b8;--card:#111827;--border:#334155;--accent:#3b82f6;--accent-fg:#fff;--error:#f87171;--control-bg:#0b1220}*{box-sizing:border-box}body{background:var(--bg);color:var(--fg);margin:0;padding:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif}main{max-width:1060px;margin:0 auto;padding:24px 16px 48px}h1{margin-top:0;margin-bottom:8px}.topbar{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.topbar-controls{gap:8px;display:inline-flex}.locale-switch{align-items:center;display:inline-flex}.switch-btn{border:1px solid var(--border);background:var(--control-bg);min-width:40px;height:32px;color:var(--fg);cursor:pointer;border-radius:8px;padding:4px 8px}.locale-btn{text-transform:uppercase;min-width:48px;font-weight:600}.theme-btn{min-width:40px;font-size:20px;line-height:1}.hint{color:var(--muted);margin-top:0}.card{background:var(--card);border:1px solid var(--border);border-radius:12px;margin-bottom:16px;padding:16px}.grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;display:grid}.manipulator-groups{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;margin-top:12px;display:grid}.manipulator-group{border:1px solid var(--border);border-radius:10px;min-width:0;margin:0;padding:12px}.manipulator-group legend{padding:0 6px;font-weight:600}.manipulator-toolbar{margin-top:4px}.manipulator-toolbar .control-field{flex:150px;min-width:0}.settings-toolbar,.recipe-toolbar{flex-wrap:wrap;align-items:flex-end;gap:12px;display:flex}.dual-select-stack{grid-template-columns:1fr 1fr;gap:12px;display:grid}.control-field{flex:220px}.inline-action-btn{white-space:nowrap;align-self:flex-end;margin-left:auto}.recipe-toolbar .inline-action-btn{min-height:50px}.settings-toolbar .control-field{flex:170px;min-width:150px}.secondary-btn{color:var(--fg);border-color:var(--border);background:0 0}@media (max-width:980px){.settings-toolbar .control-field{flex:220px;min-width:0}.dual-select-stack{grid-template-columns:1fr}}label{flex-direction:column;gap:8px;font-size:14px;display:flex}.selected-recipe-icon,.selected-recipe-icon-placeholder{border:1px solid var(--border);background:var(--control-bg);border-radius:6px;width:32px;height:32px}.selected-recipe-icon{object-fit:contain;padding:2px}input,select,button{border:1px solid var(--border);background:var(--control-bg);color:inherit;border-radius:8px;padding:8px 10px;font-size:14px}select option{background:var(--control-bg);color:var(--fg)}button{background:var(--accent);color:var(--accent-fg);border-color:var(--accent);cursor:pointer}.actions{gap:10px;margin-top:12px;display:flex}.custom-select{position:relative}.custom-select-trigger{background:var(--control-bg);width:100%;color:var(--fg);border-color:var(--border);grid-template-columns:32px minmax(0,1fr) 20px;align-items:center;gap:8px;min-height:50px;display:grid}.custom-select-trigger-label{text-overflow:ellipsis;white-space:nowrap;text-align:left;overflow:hidden}.custom-select-caret{text-align:right;color:var(--muted)}.custom-select-menu{z-index:20;background:var(--card);border:1px solid var(--border);border-radius:10px;max-height:360px;padding:8px;position:absolute;top:calc(100% + 6px);left:0;right:0;overflow:auto;box-shadow:0 12px 24px #02061729}.custom-select-search{width:100%;margin-bottom:8px}.custom-select-empty{color:var(--muted);padding:8px 10px;font-size:13px}.receipt-option-group+.receipt-option-group{border-top:1px solid var(--border);margin-top:10px;padding-top:10px}.receipt-option-group-title{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px;font-size:12px}.receipt-option{text-align:left;width:100%;color:var(--fg);background:0 0;border-color:#0000;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:8px;padding:6px 8px;display:grid}.receipt-option:hover{background:#3b82f61a}.receipt-option.active{background:#3b82f62e}.receipt-option-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.receipt-option-icon,.receipt-option-icon-placeholder{border:1px solid var(--border);background:var(--control-bg);border-radius:4px;width:20px;height:20px}.receipt-option-icon{object-fit:contain;padding:1px}.result-meta{width:100%;color:var(--muted);flex-wrap:wrap;margin-bottom:12px;display:flex}.result-meta-item{flex:1 1 0;min-width:0;margin-right:24px}.result-meta-item:last-child{margin-right:0}table{border-collapse:collapse;width:100%}th,td{border-bottom:1px solid var(--border);text-align:left;padding:8px 10px}.cell-right{text-align:right}.quantity-cell{justify-content:flex-end;align-items:center;gap:8px;min-width:140px;display:inline-flex}.copy-btn{border:1px solid var(--border);min-width:26px;height:24px;color:var(--muted);cursor:pointer;background:0 0;border-radius:6px;padding:0 6px;font-size:13px;line-height:1}.copy-btn:hover{color:var(--fg)}td img{object-fit:contain;vertical-align:middle;width:24px;height:24px;margin-right:8px}.error{color:var(--error)}
