:root{color-scheme:dark;color:#f5f5f5;background:#090909;--accent:#d4af37;--line:#36322a;--surface:#191919;--dim:#a6a6a6}
body{background:#090909;color:#f5f5f5}
header{background:#111;border-bottom:1px solid var(--line);min-height:4.25rem}
header,nav,main,footer{padding-inline:clamp(.85rem,2.4vw,2.5rem)}
.brand{display:flex;align-items:center;gap:.6rem}.brand img{width:2.8rem;height:2.1rem;object-fit:contain;border-radius:.2rem}.brand strong{color:#f5f5f5;letter-spacing:.16em}.brand span,header small,.muted,footer{color:var(--dim)}
nav,.panel,.nora-log .panel,.login{background:var(--surface);border-color:var(--line);box-shadow:none;color:#f5f5f5}
nav button,button,input,select,textarea,.item{background:#222;color:#f5f5f5;border-color:#4b4539}
button:hover:not(:disabled),nav button:hover:not(:disabled){border-color:#d4af37;color:#f4d27a}
.primary,nav [aria-current=page],#nora-access[aria-current=page]{background:linear-gradient(150deg,#f4d27a,#d4af37);color:#141006;border-color:#f4d27a;font-weight:700}
.primary:hover:not(:disabled),nav [aria-current=page]:hover:not(:disabled){color:#141006}
:focus-visible{outline:2px solid #f4d27a;outline-offset:3px}
h1{color:#f5f5f5} h2,.item strong,.panel a,a{color:#f4d27a}
th{color:#f4d27a;background:#222} td{color:#f5f5f5} tbody tr:hover{background:#222}
.tag{background:#393018;color:#f4d27a}.nora-message,.nora-log pre{background:#222;color:#f5f5f5}.nora-message.user{background:#3a301c;color:#f5f5f5}
#notice:not(:empty){background:#183021;color:#d3f3d7} #notice[data-error=true]{background:#391b1e;color:#ffd8d8}
main{min-width:0}.login{max-width:29rem;margin:clamp(3rem,14vh,10rem) auto;padding:clamp(1.4rem,5vw,2.5rem);border-top:2px solid #d4af37}
.dashboard{display:grid;grid-template-columns:minmax(0,1fr) minmax(16rem,21rem);gap:1rem;align-items:start}.dashboard-primary{min-width:0}
.dashboard .home-stats{grid-template-columns:repeat(auto-fit,minmax(min(100%,8.7rem),1fr))}
.dashboard .home-stats .panel{border-top:2px solid #a58329}.dashboard .home-stats strong{font-size:clamp(1rem,1.9vw,1.42rem);overflow-wrap:anywhere}
.dashboard-blocks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;margin-top:1rem}.dashboard-blocks .panel{margin:0}
.dashboard-list{list-style:none;margin:0;padding:0}.dashboard-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.6rem;padding:.6rem 0;border-bottom:1px solid var(--line)}.dashboard-list li:last-child{border-bottom:0}
.sales-chart{display:flex;align-items:end;gap:clamp(.18rem,1vw,.65rem);min-height:8rem;padding:.8rem 0 .3rem;overflow:auto}
.sales-chart button{flex:1;min-width:2rem;padding:.25rem;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:.35rem;background:transparent;border-color:transparent;font-size:.67rem;color:#a6a6a6}
.sales-chart meter{writing-mode:vertical-lr;direction:rtl;appearance:none;width:90%;max-width:2.6rem;height:5.5rem;accent-color:#d4af37}
.sales-chart meter::-webkit-meter-bar{background:#28241a;border:0;border-radius:.25rem}
.sales-chart meter::-webkit-meter-optimum-value{background:linear-gradient(#f4d27a,#9d721b);border-radius:.25rem}
.sales-chart button[aria-pressed=true]{color:#f4d27a;border-color:#d4af37}
.nora-panel{border-color:#98782e;background:radial-gradient(ellipse at top,#2c2111 0,transparent 55%),#111}
.nora-identity{display:grid;grid-template-columns:minmax(5.5rem,8rem) minmax(0,1fr);gap:.8rem;align-items:center}
.nora-identity img{width:100%;border-radius:.65rem;aspect-ratio:197/229;object-fit:cover;box-shadow:0 0 1.35rem #d4af3733}
.nora-identity strong{font-size:1.28rem;letter-spacing:.05em}
.nora-state{color:#f4d27a;min-height:1.5em}.nora-wave{display:flex;align-items:center;gap:3px;height:1.7rem;color:#d4af37}
.nora-wave i{height:.45rem;width:3px;border-radius:3px;background:currentColor}.nora-wave i:nth-child(2n){height:.9rem}.nora-wave i:nth-child(3n){height:1.25rem}
.nora-identity:is([data-state=escutando],[data-state=processando],[data-state=respondendo],[data-state=pesquisando],[data-state=analisando],[data-state=executando]) .nora-wave i{animation:nora-pulse 720ms ease-in-out infinite alternate}.nora-wave i:nth-child(2n){animation-delay:150ms}.nora-wave i:nth-child(3n){animation-delay:310ms}
@keyframes nora-pulse{from{transform:scaleY(.5)}to{transform:scaleY(1.18)}}
@media(prefers-reduced-motion:reduce){.nora-wave i{animation:none!important}}
.nora-panel form{margin-top:.75rem}.nora-panel .row{margin-top:.6rem}.nora-center{margin-bottom:1rem}
#menu-toggle{display:none}
@media(min-width:960px){
 body:has(#nav:not([hidden])){display:grid;grid-template-columns:13.5rem minmax(0,1fr);grid-template-rows:auto 1fr auto;min-height:100vh}
 body:has(#nav:not([hidden])) .shell{display:contents}
 body:has(#nav:not([hidden])) header{grid-column:1/-1;position:sticky;top:0;z-index:6}
 body:has(#nav:not([hidden])) nav{grid-column:1;grid-row:2/4;position:sticky;top:4.25rem;align-self:start;display:flex;flex-wrap:nowrap;flex-direction:column;align-items:stretch;max-height:calc(100dvh - 4.25rem);overflow:auto;padding:.9rem .65rem;background:#111;border-right:1px solid var(--line)}
 body:has(#nav:not([hidden])) nav button{text-align:left;min-height:2.6rem}
 body:has(#nav:not([hidden])) main,body:has(#nav:not([hidden])) footer{grid-column:2}
 body:has(#nav:not([hidden])) #menu-toggle{display:block}
 body.menu-collapsed:has(#nav:not([hidden])){grid-template-columns:minmax(0,1fr)}
 body.menu-collapsed:has(#nav:not([hidden])) nav{display:none}
 body.menu-collapsed:has(#nav:not([hidden])) main,body.menu-collapsed:has(#nav:not([hidden])) footer{grid-column:1}
}
@media(max-width:959px){
 .dashboard{grid-template-columns:minmax(0,1fr)}
 body:has(#nav:not([hidden])){padding-bottom:calc(4.5rem + env(safe-area-inset-bottom))}
 #nav{position:fixed;bottom:0;left:0;right:0;z-index:7;border-top:1px solid var(--line);padding:.5rem max(.6rem,env(safe-area-inset-right)) calc(.5rem + env(safe-area-inset-bottom)) max(.6rem,env(safe-area-inset-left));overflow-x:auto;white-space:nowrap;flex-wrap:nowrap;gap:.35rem}
 #nav button{flex:none;min-height:42px;order:2}
 #nav button[data-page=home],#nav button[data-page=tickets],#nav button[data-page=nora],#nav button[data-page=pdv],#nav button[data-page=alerts]{order:0}
}
@media(max-width:540px){.dashboard-blocks{grid-template-columns:1fr} input,select,textarea{font-size:16px} #account{gap:.35rem}.brand img{width:2rem;height:1.5rem}}

.ticket-quantity{flex-wrap:nowrap}.ticket-quantity button{min-width:2.65rem;min-height:2.65rem;line-height:1}

#nora-access{background:#222;color:#f4d27a;border-color:#98782e}@media(max-width:959px){.shell{position:static}}

.nora-voice-stage{display:flex;flex-direction:column;align-items:center;gap:.7rem;margin-block:1rem}
.nora-voice-stage[hidden],.nora-log[hidden]{display:none}
.nora-voice-orb{width:9rem;height:9rem;border:2px solid #d4af37;border-radius:50%;padding:0;overflow:hidden;background:#191919;touch-action:none}
.nora-voice-orb img{display:block;pointer-events:none;width:100%;height:100%;object-fit:cover;object-position:center 35%}
.nora-voice-stage[data-mode="escutando"] .nora-voice-orb,.nora-voice-stage[data-mode="respondendo"] .nora-voice-orb{box-shadow:0 0 1.25rem #d4af3780}
.nora-voice-stage[data-mode="processando"] .nora-voice-orb{border-style:dashed}
