:root{font:16px system-ui,sans-serif;color:#21392d;background:#edf2ea;--ink:#21392d;--line:#cddacf;--accent:#275946}
*{box-sizing:border-box}body{margin:0}.board{max-width:1600px;margin:auto;padding:clamp(14px,2.6vw,38px)}
.board-header,.board-toolbar,.brand,nav,.lookup,.batch-actions{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap}
.board-header{justify-content:space-between;background:#19382e;color:white;border-radius:18px;padding:1rem 1.25rem}
.brand img{width:50px;height:58px;object-fit:contain}.brand span{font-size:.74rem;font-weight:750;letter-spacing:.12em}.brand h1{margin:.12rem 0;font-size:clamp(1.45rem,3vw,2rem)}
.board-toolbar{justify-content:space-between;padding:.5rem 0}.board-toolbar p,.order-time{color:#466052}
button,a,input{font:inherit}button,nav a,.lookup a{border:1px solid var(--line);padding:.65rem .8rem;border-radius:9px;background:#fff;color:var(--ink);text-decoration:none;font-weight:650;min-height:44px;cursor:pointer}
button.chosen,a.chosen,.lookup button,.collect button{background:var(--accent);color:white;border-color:var(--accent)}
input{border:1px solid #a9bdad;border-radius:8px;background:white;padding:.55rem .65rem;min-height:44px;color:var(--ink)}
.lookup{margin:1rem 0;padding:1rem 0}.lookup label{font-weight:700}
.kitchen-grid,.customer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:1rem;align-items:start}
.kitchen-order,.customer-order,.board-empty{background:#fff;border:1px solid var(--line);border-radius:15px;padding:1rem}
.kitchen-order header{display:flex;align-items:start;justify-content:space-between;gap:.5rem}.kitchen-order header strong{font-size:1.45rem}
.kitchen-order header p,.order-time,.batch p{margin:.3rem 0}.batch{border-top:1px solid var(--line);margin-top:.8rem;padding-top:.75rem}
.batch h2{font-size:1.15rem;margin:0}.batch ul{list-style:none;padding:0;margin:.5rem 0}.batch li{padding:.55rem .4rem;border-bottom:1px solid #e1e9e1}.batch li small{display:block;color:#53665c;margin-top:.25rem}.removed{color:#8a3329}
.batch-actions label{font-size:.85rem;display:grid;gap:.25rem}.batch-actions input{width:7rem}.batch-actions{align-items:end;margin-top:.65rem}
.customer-order{border-left:7px solid #bc892f}.customer-order.ready{border-left-color:#278458}.customer-order strong{display:block;font-size:clamp(1.6rem,4vw,2.6rem);margin-bottom:.45rem}
.customer-order p{margin:.4rem 0;color:#4f6559}.badge{display:inline-block;padding:.3rem .55rem;border-radius:7px;background:#f8ecd0;color:#664327;font-weight:750}.badge.cooking{background:#dce8f3;color:#2d4d70}.badge.ready,.badge.collected{background:#d8efdc;color:#1e5d39}.badge.cancelled,.problem{background:#fbe0d9;color:#812c21;padding:.65rem;border-radius:8px}.completed,.collect{margin-top:.75rem}.completed summary{cursor:pointer}

.kitchen-board .brand img{filter:brightness(0) invert(1)}
.kitchen-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;align-items:start}
.kitchen-column{min-width:0;border:1px solid var(--line);border-radius:16px;background:#e5ede4;padding:.75rem}
.kitchen-column-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.35rem .25rem .85rem}
.kitchen-column-head h2{font-size:1.13rem;margin:0}.kitchen-column-head span{font-weight:750;border-radius:999px;padding:.24rem .58rem;background:white}
.kitchen-column:nth-child(1) .kitchen-column-head{color:#764b15}.kitchen-column:nth-child(3) .kitchen-column-head{color:#216640}
.kitchen-column .kitchen-order + .kitchen-order{margin-top:.65rem}
.column-empty{color:#576e60;margin:.25rem .25rem .5rem}
@media(max-width:820px){.kitchen-columns{grid-template-columns:1fr}}
.kitchen-board,.customer{min-height:100vh;isolation:isolate}
.kitchen-board::before,.customer::before{
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:#377653;opacity:.18;
  -webkit-mask:url("cafe-line-art.png") center bottom / min(1700px,115vw) auto no-repeat;
  mask:url("cafe-line-art.png") center bottom / min(1700px,115vw) auto no-repeat;
}
.kitchen-board .kitchen-columns{gap:.65rem}
.kitchen-board .kitchen-column{padding:.45rem;border-radius:12px}
.kitchen-board .kitchen-column-head{padding:.28rem .3rem .55rem}
.kitchen-board .kitchen-order{padding:.55rem .65rem;border-radius:9px}
.kitchen-board .kitchen-order + .kitchen-order{margin-top:.4rem}
.kitchen-board .kitchen-order header{align-items:center}
.kitchen-board .kitchen-order header strong{font-size:1.14rem}
.kitchen-board .kitchen-order header p,.kitchen-board .order-time{font-size:.81rem;margin:.14rem 0}
.kitchen-board .badge{font-size:.76rem;padding:.18rem .4rem}
.kitchen-board .batch{margin-top:.35rem;padding-top:.35rem}
.kitchen-board .batch h2{font-size:.94rem}
.kitchen-board .batch p{font-size:.8rem;margin:.15rem 0}
.kitchen-board .batch ul{margin:.18rem 0}
.kitchen-board .batch li{padding:.24rem .12rem;font-size:.88rem}
.kitchen-board .batch li small{margin-top:.12rem;font-size:.78rem}
.kitchen-board .batch-actions{gap:.3rem;margin-top:.35rem;align-items:center}
.kitchen-board .batch-actions label{display:flex;align-items:center;gap:.25rem;font-size:.73rem}
.kitchen-board .batch-actions input{width:3.7rem;padding:.25rem .3rem}
.kitchen-board .batch-actions button,.kitchen-board .collect button{padding:.28rem .4rem;font-size:.8rem;min-height:44px}
.kitchen-board .completed,.kitchen-board .collect{margin-top:.35rem;font-size:.8rem}
.kitchen-board .completed p{margin:.2rem 0}

.kitchen-dense .kitchen-order{padding:.38rem .5rem}
.kitchen-dense .dense-order-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.4rem}
.kitchen-dense .kitchen-order-identity{min-width:0}
.kitchen-dense .kitchen-order .kitchen-table-label{display:block;font-size:1.3rem;line-height:1.1}
.kitchen-invoice-number{display:block;margin-top:.14rem;font-size:.74rem;font-weight:600;color:#4b6659;overflow-wrap:anywhere}
.kitchen-dense .dense-batch-heading{display:flex;justify-content:space-between;gap:.35rem;font-size:.78rem;color:#3e5e50}
.kitchen-dense .dense-batch-heading span{margin-left:auto}
.kitchen-dense .batch li{padding:.13rem 0;border-bottom:0}
.kitchen-dense .batch li small{display:inline;margin-left:.3rem}
.kitchen-dense .order-time{line-height:1.2}
.kitchen-dense .dense-actions{display:flex;flex-wrap:wrap;align-items:start;gap:.3rem;margin-top:.18rem}
.kitchen-dense .dense-actions button,.kitchen-dense .dense-actions summary{font-size:.79rem}
.kitchen-dense .next-stage{min-height:44px;padding:.23rem .6rem}
.kitchen-dense .batch-options{flex:1;min-width:3.8rem}
.kitchen-dense .batch-options summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:#345a48}
.kitchen-dense .batch-options[open]{flex-basis:100%}
.kitchen-dense .batch-options[open] summary{min-height:32px}

.customer-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.9rem;align-items:start}
.customer-column{min-width:0;background:#e5ede4;border:1px solid var(--line);border-radius:16px;padding:.75rem}
.customer-column header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.25rem .2rem .75rem}
.customer-column header h2{font-size:clamp(1rem,2vw,1.4rem);margin:0}
.customer-column header span{background:white;border-radius:100px;padding:.2rem .55rem;font-weight:750}
.customer-column.new header{color:#654813}.customer-column.ready header{color:#216640}
.customer-column .customer-order+.customer-order{margin-top:.5rem}
.customer-column .customer-order strong{overflow-wrap:anywhere}
.customer-column .customer-order.new{border-left-color:#7d9d68}
@media(max-width:650px){.customer-columns{grid-template-columns:1fr}}

.customer-tv .brand img{filter:brightness(0) invert(1)}
.customer-tv .customer-columns{margin-top:1rem}

.customer-tv .board{padding:clamp(8px,1.3vw,22px)}
.customer-tv .board-header{padding:.45rem .75rem;border-radius:12px}
.customer-tv .brand img{width:39px;height:42px}
.customer-tv .brand strong,.customer-tv .brand h1{font-size:1.4rem}
.customer-tv .customer-columns{margin-top:.55rem;gap:.5rem}
.customer-tv .customer-column{padding:.32rem .42rem;border-radius:9px}
.customer-tv .customer-column header{padding:.18rem .18rem .33rem}
.customer-tv .customer-column header h2{font-size:clamp(.88rem,1.7vw,1.2rem)}
.tv-orders{width:100%;table-layout:fixed;border-collapse:collapse;text-align:left;font-variant-numeric:tabular-nums}
.tv-orders th,.tv-orders td{padding:.15rem .18rem;border-bottom:1px solid #d8e3d8}
.tv-orders thead{background:#d6e3d6;color:#324c3e;font-size:.73rem}
.tv-orders thead th:first-child{width:54%}
.tv-orders th:not(:first-child),.tv-orders td:not(:first-child){text-align:center}
.tv-orders tbody th{font-size:clamp(.84rem,1.65vw,1.24rem);font-weight:750;overflow-wrap:anywhere}
.tv-orders tbody tr{background:#fff}
.tv-orders tbody tr:nth-child(even){background:#f5f8f5}
.tv-time{width:2rem;height:2rem;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#edf1ed;color:#315143;font-size:.72rem;font-weight:750;white-space:nowrap}
.tv-time.tv-eta{background:#dcefdc;color:#205a36}
.tv-time.overdue{background:#f7e6ce;color:#754521}
@media(max-width:650px){
 .customer-tv .customer-columns{grid-template-columns:repeat(3,minmax(0,1fr));gap:.24rem}
 .customer-tv .customer-column{padding:.2rem}
 .tv-time{width:1.45rem;height:1.45rem;font-size:.58rem}
 .tv-orders thead{font-size:.58rem}
 .tv-orders tbody th{font-size:.67rem}
}

.tv-table-label,.tv-invoice-number{display:block;line-height:1.12}
.tv-invoice-number{margin-top:2px;font-size:.68em;font-weight:600;color:#4b6659}

.customer-display .board{padding:clamp(8px,1.3vw,22px)}
.customer-display .board-header{padding:.45rem .75rem;border-radius:12px}
.customer-display .brand img{width:39px;height:42px}
.customer-display-columns{margin-top:.65rem}
.customer-display-times{display:flex;align-items:start;gap:.35rem}
.customer-display-times>div{display:grid;justify-items:center;gap:.1rem}
.customer-display-times small{font-size:.66rem;color:#4b6659}
.customer-display .tv-time{width:1.8rem;height:1.8rem}
@media (max-width:820px) and (min-width:600px){.customer-display-columns{grid-template-columns:repeat(3,minmax(0,1fr))}}

.kitchen-order[data-timing]{border-inline-start-width:4px}
.kitchen-order[data-timing="on-time"]{border-inline-start-color:#2e8151;background:#edf7ee}
.kitchen-order[data-timing="soon"]{border-inline-start-color:#b48a18;background:#fff5d9}
.kitchen-order[data-timing="late"]{border-inline-start-color:#b9443a;background:#fcecea}
