:root{--ink:#171815;--muted:#6f706b;--paper:#f5f3ee;--card:#fff;--line:#dedbd2;--green:#174d3b;--amber:#bd7628;--red:#b94734;--accent:#ba4c2e}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.45 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,input{font:inherit}
button{border:0;border-radius:14px;padding:13px 20px;background:var(--ink);color:#fff;font-weight:750;cursor:pointer}
button:disabled{opacity:.55;cursor:wait}
.ghost{background:transparent;color:var(--ink);border:1px solid var(--line)}
.hidden{display:none!important}
main{max-width:1440px;margin:auto;padding:0 28px 48px}
header{height:94px;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:13px}
.brand strong{display:block;font-size:22px}
.brand span{display:block;color:var(--muted)}
.brand-mark{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#fff;font:700 24px Georgia}
.panel,.metric{background:var(--card);border:1px solid var(--line);border-radius:24px}
.controls{padding:28px 30px;display:grid;grid-template-columns:1fr auto;gap:14px 24px;align-items:center}
.eyebrow{font-size:12px;letter-spacing:.16em;font-weight:800;color:var(--muted)}
h1,h2{margin:5px 0 0;line-height:1.1}
h1{font-size:34px}
h2{font-size:28px}
.actions{display:flex;gap:10px;align-items:center}
.actions input{min-width:170px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#fff;font-weight:700}
.meta{grid-column:1/-1;display:flex;gap:20px;color:var(--muted);font-size:13px}
.notice{grid-column:1/-1;padding:11px 14px;border-radius:12px;background:#fff0dc;color:#885019;font-weight:650}
.summary{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin:18px 0}
.metric{padding:20px 22px}
.metric span{color:var(--muted)}
.metric strong{display:block;font-size:34px;margin-top:7px}
.section-head{display:flex;justify-content:space-between;align-items:end;padding:26px 28px 20px}
.legend{display:flex;gap:16px;color:var(--muted);font-size:13px}
.legend i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}
.legend .good{background:var(--green)}
.legend .warn{background:var(--amber)}
.legend .hot{background:var(--red)}
.timeline{border-top:1px solid var(--line)}
.slot{border-bottom:1px solid var(--line);display:grid;grid-template-columns:150px 165px 145px minmax(140px,360px);gap:20px;align-items:center;padding:17px 28px}
.slot:last-child{border-bottom:0}
.slot time{font-size:27px;font-weight:400;line-height:1.05;display:grid;gap:3px}
.slot time span{display:block;white-space:nowrap}
.slot strong{font-size:34px;color:var(--green)}
.slot small{font-size:13px;color:var(--muted)}
.slot>span{color:var(--muted)}
.bar{height:10px;background:#eceae4;border-radius:999px;overflow:hidden}
.bar i{height:100%;display:block;border-radius:inherit;background:var(--green)}
.slot.warn .bar i{background:var(--amber)}
.slot.hot .bar i{background:var(--red)}
.slot.warn strong{color:var(--amber)}
.slot.hot strong{color:var(--red)}
.slot.warn{box-shadow:inset 5px 0 var(--amber)}
.slot.hot{box-shadow:inset 5px 0 var(--red);background:#fff9f7}
.empty{padding:40px;text-align:center;color:var(--muted)}
.specials{margin-top:18px}
.special-list{border-top:1px solid var(--line)}
.special-list>div{display:grid;grid-template-columns:260px 1fr;gap:20px;padding:20px 28px;border-bottom:1px solid var(--line);align-items:center}
.special-list>div:last-child{border-bottom:0}
.special-list h3{font-size:18px;margin:0}
.special-items{display:grid;gap:10px}
.special-items>div{display:flex;justify-content:flex-start;gap:14px}
.special-items span{font-weight:650}
.special-items b{white-space:nowrap;min-width:32px}
.special-items small{color:var(--muted);font-size:13px;font-weight:600}
.special-empty{color:var(--muted)}
.tomorrow-production{margin-top:18px;overflow:hidden;border-top:5px solid var(--green)}
.tomorrow-production .section-head{align-items:center}
.tomorrow-production .section-head p{max-width:760px;margin:9px 0 0;color:var(--muted);font-size:14px}
.tomorrow-total{min-width:180px;padding:15px 18px;border-radius:15px;background:#e6f0eb;text-align:right}
.tomorrow-total span,.tomorrow-total strong{display:block}
.tomorrow-total span{color:var(--muted);font-size:12px}
.tomorrow-total strong{margin-top:4px;color:var(--green);font-size:28px}
.tomorrow-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:0 28px 26px}
.tomorrow-grid>article{overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fbfaf7}
.tomorrow-grid>article>header{height:auto;padding:18px 20px;border-bottom:1px solid var(--line)}
.tomorrow-grid>article>header,.tomorrow-grid>article>header>div{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tomorrow-grid h3{margin:0;font-size:18px}.tomorrow-grid header small{display:block;margin-top:3px;color:var(--muted);font-size:11px}.tomorrow-grid header>strong{font-size:22px;white-space:nowrap}
.tomorrow-icon{display:grid;flex:0 0 36px;width:36px;height:36px;place-items:center;border-radius:11px;background:#e6f0eb;color:var(--green);font-size:13px;font-weight:900}.tomorrow-icon.sand{background:#fff0dc;color:#945a1d}
.tomorrow-items{display:grid}.tomorrow-items>div{display:flex;min-height:68px;align-items:center;justify-content:space-between;gap:14px;padding:14px 20px;border-bottom:1px solid var(--line)}.tomorrow-items>div:last-child{border-bottom:0}.tomorrow-items b,.tomorrow-items span{display:block}.tomorrow-items b{font-size:14px}.tomorrow-items span{margin-top:4px;color:var(--muted);font-size:12px}.tomorrow-items em{max-width:180px;padding:7px 9px;border-radius:9px;background:#f9ddd8;color:#983e30;font-size:11px;font-style:normal;font-weight:800;text-align:right}.tomorrow-items small{color:#8b877f;font-size:10px}.tomorrow-empty{display:block!important;min-height:68px!important;justify-content:flex-start!important;color:var(--muted)}.tomorrow-empty.error{color:var(--red)}
.tomorrow-items>.tomorrow-product{display:block;padding:0}.tomorrow-product-summary{display:flex;min-height:68px;align-items:center;justify-content:space-between;gap:14px;padding:14px 20px}.tomorrow-orders{display:grid;border-top:1px solid var(--line);background:#fff}.tomorrow-order{display:grid;grid-template-columns:minmax(90px,.75fr) minmax(175px,1.45fr) auto;align-items:center;gap:12px;padding:10px 20px;border-bottom:1px solid #ebe8e1}.tomorrow-order:last-child{border-bottom:0}.tomorrow-order span{margin:0;color:var(--ink);font-size:12px;font-weight:800}.tomorrow-order strong{color:var(--green);font-size:12px}.tomorrow-order small{font-size:11px;text-align:right}.tomorrow-order.late{box-shadow:inset 3px 0 var(--red);background:#fff8f6}.tomorrow-order.late strong{color:var(--red)}.tomorrow-order-empty{padding:10px 20px;border-top:1px solid var(--line);background:#fff;color:var(--muted);font-size:11px}
.tomorrow-production>footer{display:flex;align-items:center;gap:18px;padding:14px 28px;border-top:1px solid var(--line);background:#f8f6f1;color:var(--muted);font-size:11px}.tomorrow-production>footer span{display:flex;align-items:center;gap:6px}.tomorrow-production>footer i{display:inline-block;width:9px;height:9px;border-radius:50%}.tomorrow-production>footer i.planned{background:var(--green)}.tomorrow-production>footer i.late{background:var(--red)}.tomorrow-production>footer b{margin-left:auto;font-weight:650}
.login{min-height:100vh;display:grid;place-items:center;padding:24px}
.login-card{width:min(420px,100%);padding:36px;background:#fff;border:1px solid var(--line);border-radius:26px;box-shadow:0 18px 60px #2d2b2520}
.login-card .brand-mark{margin-bottom:22px}
.login-card p{color:var(--muted);margin:8px 0 24px}
.login-card label{display:block;font-weight:700;margin:14px 0}
.login-card input{display:block;width:100%;padding:13px;margin-top:6px;border:1px solid var(--line);border-radius:12px}
.login-card button{width:100%;margin-top:10px}
.error{color:var(--red);font-weight:650;margin-top:12px}
@media(max-width:900px){
  main{padding:0 14px 30px}
  .controls{grid-template-columns:1fr}
  .actions{flex-wrap:wrap}
  .meta{grid-column:auto;flex-direction:column;gap:4px}
  .summary{grid-template-columns:repeat(2,1fr)}
  .slot{grid-template-columns:115px 125px 110px minmax(100px,1fr);gap:12px;padding:15px 18px}
  .legend{display:none}
  .special-list>div{grid-template-columns:1fr}
  .special-items>div{align-items:flex-start}
  .tomorrow-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
  h1{font-size:27px}
  .summary{grid-template-columns:1fr 1fr}
  .metric{padding:16px}
  .metric strong{font-size:27px}
  .section-head{padding:22px 18px}
  .slot{grid-template-columns:94px 105px 1fr;gap:10px}
  .slot .bar{grid-column:1/-1;height:7px}
  .slot time{font-size:20px}
  .slot strong{font-size:27px}
  .special-list>div{padding:17px 18px;gap:6px}
  .special-items>div{display:grid;gap:2px}
  .tomorrow-production .section-head{align-items:flex-start;flex-direction:column}.tomorrow-total{width:100%;text-align:left}.tomorrow-grid{padding:0 14px 18px}.tomorrow-grid>article>header{align-items:flex-start;flex-direction:column}.tomorrow-items>div{align-items:flex-start;flex-direction:column}.tomorrow-product-summary{align-items:flex-start;flex-direction:column}.tomorrow-order{grid-template-columns:1fr;gap:2px}.tomorrow-order small{text-align:left}.tomorrow-items em{max-width:none;text-align:left}.tomorrow-production>footer{align-items:flex-start;flex-direction:column;padding:14px 18px}.tomorrow-production>footer b{margin-left:0}
}
