:root{--accent:#7d00d4;--accent-soft:#a44de1;--accent-hover:#f8eeff;--accent-selected:#f2deff;--bg:#f3f3f3;--bg-elevated:#fff;--surface:#fff;--surface-2:#f9f1ff;--border:#ebecf2;--text:#121212b3;--text-h:#000;--danger:#ec2d2d;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0}#root{width:100%;max-width:1560px;min-height:100vh;margin:0 auto}.app{gap:1.1rem;padding:1rem;display:grid}.auth-gate{place-items:center;min-height:100vh;padding:1rem;display:grid}.auth-card{border:1px solid var(--border);background:var(--bg-elevated);border-radius:1rem;width:min(420px,100%);padding:1.1rem;box-shadow:0 10px 28px #0000000f}.auth-card h1{color:var(--text-h);margin:0;font-size:1.35rem}.auth-card p{margin:.45rem 0 .75rem}.auth-error{color:var(--danger);margin-top:.6rem;font-size:.84rem}.app-header{background:linear-gradient(180deg, var(--surface-2), #fff);border:1px solid var(--border);border-radius:1rem;padding:1rem 1.1rem}.app-header h1{color:var(--text-h);margin:0;font-size:1.7rem}.app-header p{color:var(--text);margin:.25rem 0 0}.header-meta{flex-wrap:wrap;gap:.45rem;margin-top:.65rem;display:flex}.header-meta span{border:1px solid var(--border);color:var(--text-h);background:#fff;border-radius:999px;padding:.2rem .6rem;font-size:.78rem;font-weight:600}.ops-steps{color:var(--text);gap:.2rem;margin-top:.65rem;font-size:.82rem;display:grid}.signout-button{border:1px solid var(--border);background:var(--surface);color:var(--text-h);cursor:pointer;border-radius:.55rem;margin-top:.7rem;padding:.35rem .65rem;font-size:.82rem}.signout-button:hover{background:var(--accent-hover)}.controls{grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem;display:grid}.controls label{color:var(--text);gap:.4rem;font-size:.88rem;display:grid}.restaurant-search{position:relative}.restaurant-options{z-index:12;border:1px solid var(--border);background:#fff;border-radius:.65rem;max-height:240px;display:grid;position:absolute;top:calc(100% + .3rem);left:0;right:0;overflow:auto;box-shadow:0 10px 24px #0000001a}.restaurant-options button{border:0;border-bottom:1px solid var(--border);text-align:left;cursor:pointer;color:var(--text-h);background:0 0;gap:.1rem;padding:.55rem .7rem;display:grid}.restaurant-options button:last-child{border-bottom:0}.restaurant-options button:hover{background:var(--accent-hover)}.restaurant-options button span{color:var(--text);font-size:.82rem}.restaurant-hint{color:var(--text);margin-top:.35rem;font-size:.8rem}.restaurant-error{color:var(--danger);margin-top:.35rem;font-size:.8rem}.use-without-verify{border:1px dashed var(--accent);color:var(--accent);cursor:pointer;background:#fff;border-radius:.55rem;margin-top:.45rem;padding:.35rem .6rem;font-size:.8rem;font-weight:600}.use-without-verify:hover{background:var(--accent-hover)}.controls input,.controls select,.actions button,textarea{background:var(--surface);border:1px solid var(--border);color:var(--text-h);font:inherit;border-radius:.65rem;padding:.6rem .75rem}.controls input:focus,.controls select:focus,textarea:focus{border-color:var(--accent);outline:0;box-shadow:0 0 0 3px #7d00d429}.actions{flex-wrap:wrap;gap:.5rem;display:flex}.actions button{cursor:pointer;background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}.actions button:hover:not(:disabled){background:var(--accent-soft);border-color:var(--accent-soft)}.actions button:disabled{opacity:.55;cursor:not-allowed}.status{color:var(--text);margin:0;font-size:.9rem}.workspace{grid-template-columns:minmax(0,2fr) minmax(300px,1fr);align-items:start;gap:.75rem;display:grid}.editor{gap:.75rem;display:grid}.panel{border:1px solid var(--border);text-align:left;background:var(--bg-elevated);border-radius:.85rem;padding:.95rem;box-shadow:0 6px 20px #0000000a}.panel h2{color:var(--text-h);margin:0 0 .6rem;font-size:1rem}.meta-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;display:grid}.meta-grid label,.section-fields label{gap:.35rem;font-size:.9rem;display:grid}.editor-mode{justify-content:space-between;align-items:center;margin-bottom:.6rem;display:flex}.editor-mode>div{gap:.35rem;display:flex}.editor-mode button{border:1px solid var(--border);background:var(--surface);color:var(--text-h);cursor:pointer;border-radius:.55rem;padding:.4rem .7rem}.editor-mode button.active{border-color:var(--accent);background:var(--accent-hover);color:var(--accent)}.reorder-hint{color:var(--text);margin:-.15rem 0 .65rem;font-size:.8rem}.add-section{flex-wrap:wrap;gap:.4rem;margin-bottom:.8rem;display:flex}.add-section button{border:1px solid var(--border);background:var(--surface);color:var(--text-h);cursor:pointer;border-radius:.5rem;padding:.35rem .55rem}.token-catalog{border:1px dashed var(--accent-soft);background:var(--accent-hover);border-radius:.6rem;margin-bottom:.8rem;padding:.6rem}.token-list{flex-wrap:wrap;gap:.35rem;margin-top:.45rem;display:flex}.token-list button{border:1px solid var(--border);background:var(--surface);color:var(--text-h);cursor:pointer;border-radius:.5rem;padding:.25rem .5rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.78rem}.sections{gap:.6rem;display:grid}.section-card{border:1px solid var(--border);background:#fff;border-radius:.6rem;padding:.65rem;transition:border-color .12s,box-shadow .12s,opacity .12s}.section-card.dragging{opacity:.55}.section-card.drag-over{border-color:var(--accent);box-shadow:0 0 0 2px #7d00d424}.section-header{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.section-header>div{gap:.35rem;display:flex}.section-header button{border:1px solid var(--border);background:var(--surface);color:var(--text-h);cursor:pointer;border-radius:.4rem;padding:.2rem .45rem}.section-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin-top:.6rem;display:grid}textarea{box-sizing:border-box;width:100%;color:var(--text-h);background:#fff;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.json-actions{align-items:center;gap:.6rem;margin-top:.5rem;display:flex}.json-actions button{border:1px solid var(--border);background:var(--accent);color:#fff;cursor:pointer;border-radius:.5rem;padding:.4rem .7rem;font-weight:600}.error-text{color:var(--danger);font-size:.85rem}.panel-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;display:grid}pre{white-space:pre-wrap;word-break:break-word;border:1px solid var(--border);max-height:360px;color:var(--text-h);background:#fff;border-radius:.55rem;margin:0;padding:.55rem;font-size:.8rem;overflow:auto}.preview{position:sticky;top:1rem}.receipt-preview{border:1px dashed var(--accent-soft);color:var(--text-h);background:#fff;border-radius:.6rem;gap:.45rem;padding:.8rem;font-size:.92rem;display:grid}.preview-header{text-align:center}.preview-row{justify-content:space-between;gap:.5rem;display:flex}.tone-high{color:var(--text-h);font-weight:700}.tone-medium{color:var(--text);font-weight:500}.preview-total{font-weight:700}.preview-divider{border:0;border-top:1px solid var(--border);margin:.2rem 0}.preview-copy{margin-top:.4rem;font-weight:600}.preview-note{opacity:.8;margin:.7rem 0 0;font-size:.82rem}@media (width<=900px){.controls,.meta-grid,.section-fields,.workspace,.panel-grid{grid-template-columns:1fr}.preview{position:static}}@media (width>=1400px){.app{padding:.85rem}}
