*{box-sizing:border-box}:root{--green:#147d64;--ink:#203a33;--muted:#68766d;--border:#dce5df}body{margin:0;background:#f2f5f1;color:var(--ink);font:15px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif}button,input,select{font:inherit}button{border:1px solid var(--border);border-radius:9px;background:white;color:var(--ink);padding:8px 11px;min-height:36px;cursor:pointer;touch-action:manipulation;transition:background-color .12s}button:hover{background:#edf5ef}button:disabled{opacity:.45}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#126b56}.subtle{background:transparent}.danger{color:#ad4538}input,select{width:100%;border:1px solid var(--border);border-radius:8px;padding:11px;background:white;margin-top:6px}label{display:block}h1,h2,p{margin:0}p{margin:10px 0}h2{font-size:20px}.hint,.eyebrow{color:var(--muted);font-size:13px}.eyebrow{font-size:12px;font-weight:700}header,main{max-width:1680px;margin:auto;padding:14px 22px}header{display:flex;justify-content:space-between;align-items:center}.brand{color:var(--ink);text-decoration:none;font-size:21px;font-weight:750}.brand span{font-size:14px;color:var(--muted);margin-left:8px}.connection{margin:0 22px;padding:9px 12px;background:#e1eee5;border-radius:8px;font-size:13px;color:#315f4e}.warn,.notice{background:#fff0d9;color:#78561b}.error{background:#f9e7e1;color:#983d30}.board-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}#tables{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.table-card{grid-column:span 2;min-width:0;background:white;border:1px solid var(--border);border-radius:13px;padding:13px;background-image:radial-gradient(ellipse at 87% -10%,#b6dccc36,transparent 55%),linear-gradient(175deg,#e9f5ee,#fff 145px)}.table-card.american{background-image:radial-gradient(ellipse at 87% -10%,#a5bedb32,transparent 55%),linear-gradient(175deg,#e8eff8,#fff 145px)}.table-card.wide{grid-column:span 3}.table-card.selected{border-color:var(--green);box-shadow:0 0 0 1px #147d6422}.table-heading,.card-clock,.line,.total-row{display:flex;align-items:center;justify-content:space-between;gap:6px}.table-heading h2{overflow-wrap:anywhere;min-width:0}.table-tools{display:flex;gap:3px;flex-shrink:0}.table-tools button{padding:3px;min-width:32px;font-size:22px}.card-clock{margin:8px 0}.card-clock strong{display:block;font-size:27px;line-height:1.15;font-variant-numeric:tabular-nums}.time-adjust{display:flex;gap:4px}.time-adjust button{font-size:12px;padding:6px;min-height:33px}.category-pair{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:8px 0}.category-pair img{width:70px;height:36px;object-fit:contain;vertical-align:middle}.drink-category{background:#f7eee2}.food-category{background:#f8eadb}.card-lines{height:138px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;margin:9px 0}.line{padding:5px 0;min-height:45px}.line>div:first-child{min-width:0}.line-name{font-size:14px;font-weight:600;overflow-wrap:anywhere}.line-info{font-size:11px;color:var(--muted)}.qty{display:flex;gap:3px;flex-shrink:0}.qty button{padding:4px;min-width:27px;min-height:31px}.empty{font-size:13px;color:var(--muted);padding:16px 2px}.total-row{margin:4px 0 9px}.total-row>span{color:var(--muted);font-size:12px}.total-row strong{font-size:23px;color:var(--green)}.card-actions{display:grid;grid-template-columns:1fr .8fr 1fr;gap:5px}.card-actions button{font-size:13px;padding:7px 3px}.card{background:white;border:1px solid var(--border);border-radius:13px;padding:14px}.management{position:sticky;top:12px}.product{display:flex;gap:5px;margin:7px 0;min-height:68px}.product button:first-child{position:relative;flex:1;min-width:0;text-align:left;padding-right:76px;background:#f4f6f2;overflow:hidden}.product button:first-child>span{position:relative;z-index:1}.product button:last-child{width:40px;padding:4px;font-size:12px}.product-price{display:block;font-size:13px;color:var(--muted);margin-top:4px}.product img{position:absolute;right:0;bottom:0;object-fit:contain;pointer-events:none}.tea button:first-child{background:#f7ede0}.coffee button:first-child{background:#ede6df}.soda button:first-child{background:#e6f0df}.water button:first-child{background:#e8f1f7}.toast button:first-child{background:#f5e5cf}.actions{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.actions button{flex:1}.daily{margin-top:20px;padding-top:16px;border-top:1px solid var(--border)}#daily-total{display:block;font-size:29px;color:var(--green);margin:6px 0}#daily-detail{line-height:1.8}#reset{width:100%}#welcome{max-width:520px;margin:30px auto;padding:24px}#welcome h1{font-size:30px;margin:12px 0}#login button{width:100%;margin-top:12px}dialog{border:0;border-radius:16px;box-shadow:0 18px 70px #17352a30;width:530px;max-width:calc(100% - 24px);max-height:88dvh;padding:22px;overflow:auto;color:var(--ink)}dialog::backdrop{background:#14352c66}dialog h2{margin-bottom:16px}dialog label{margin:12px 0}dialog .list-button{display:block;width:100%;margin:6px 0;text-align:left}.notice{padding:12px;border-radius:9px;font-size:13px}#toast{position:fixed;top:calc(14px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);background:#193e33;color:white;border-radius:10px;padding:12px 18px;max-width:90%;box-shadow:0 4px 16px #0002;z-index:10;font-size:14px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:1250px){#tables{grid-template-columns:repeat(2,minmax(0,1fr))}.table-card,.table-card.wide{grid-column:auto}.table-card:last-child:nth-child(odd){grid-column:1/-1}.board-layout{grid-template-columns:minmax(0,1fr) 280px}}@media(max-width:1100px){header{padding:12px 14px}main{padding:12px}.connection{margin:0 12px}.board-layout{grid-template-columns:1fr}.management{position:static}#tables{grid-template-columns:1fr}.table-card{padding:14px}.table-card:last-child:nth-child(odd){grid-column:auto}.qty button{min-width:34px;min-height:36px}.card-actions button{min-height:42px;font-size:14px}.table-tools button{min-width:36px;min-height:36px}}@media(prefers-reduced-motion:reduce){button{transition:none}}

.table-card[data-color="#147d64"]{background-image:radial-gradient(ellipse at 87% -10%,#b6dccc36,transparent 55%),linear-gradient(175deg,#e1eee9,#fff 145px)}
.table-card[data-color="#267ab3"],.table-card[data-color="#3478ac"]{background-image:radial-gradient(ellipse at 87% -10%,#a5bedb32,transparent 55%),linear-gradient(175deg,#e3edf5,#fff 145px)}
.table-card[data-color="#6055a3"]{background-image:linear-gradient(175deg,#eae8f3,#fff 145px)}
.table-card[data-color="#a56838"]{background-image:linear-gradient(175deg,#f3ebe5,#fff 145px)}
.table-card[data-color="#ad4a59"]{background-image:linear-gradient(175deg,#f4e6e8,#fff 145px)}
.table-card[data-color="#4f7380"]{background-image:linear-gradient(175deg,#e7ecee,#fff 145px)}
.table-card[data-color="#637c3c"]{background-image:linear-gradient(175deg,#eaf0e4,#fff 145px)}
.table-card[data-color="#394d58"]{background-image:linear-gradient(175deg,#e5e8e9,#fff 145px)}

/* Static, small table illustrations. Movement runs only during direct interaction. */
:root{--green:#14745b;--ink:#203a33;--muted:#586f65;--page:#e8f0eb;--soft:#edf4ef}
body[data-theme="blue"]{--green:#21659a;--page:#e9eff5;--soft:#edf2f8}
body[data-theme="sand"]{--green:#8c592e;--page:#f3eee5;--soft:#f7f1e8}
body[data-theme="contrast"]{--green:#174f40;--ink:#10231e;--muted:#43564f;--page:#f0f2f3;--border:#a5b5ac}
body{background:var(--page)}button{transition:background-color .14s,box-shadow .14s,transform .1s}button:hover{background:var(--soft)}button:active{transform:translateY(1px)}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--green);outline-offset:2px}.primary:hover{background:var(--green);box-shadow:inset 0 0 0 40px #0001}.primary:active{background:var(--green)}
.table-card{position:relative;isolation:isolate;transition:border-color .14s,box-shadow .14s}.table-card::before{content:"";position:absolute;z-index:-1;inset:0;border-radius:12px;background:url('/felt-green.svg') center 48%/min(94%,480px) auto no-repeat;opacity:.24;pointer-events:none}.table-card.american::before{background-image:url('/felt-blue.svg')}.table-card:hover{box-shadow:0 3px 12px #183b2910}.table-card.selected{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}
.category-pair img{width:42px;height:42px}.category-pair button{padding:2px 10px;min-height:43px}.category-pair button::after{content:"+";font-size:19px;vertical-align:middle;margin-left:12px}#food-tab::after,#drinks-tab::after{content:none}#food-tab,#drinks-tab{padding:8px 11px}
.line{padding:6px 8px;background:var(--soft);border-radius:8px;margin-bottom:5px}.line-name{font-size:15px}.line-info{font-size:12px}.qty button{font-size:17px;background:white}.qty button:last-child{color:#a44334}.card-lines{scrollbar-gutter:stable}.time-adjust button{font-size:13px}.card-clock strong{font-size:29px;line-height:1.3}.total-row strong{font-size:25px}.total-row>span{font-size:13px;font-weight:600}.table-tools button{background:#ffffffb8}
.product button:first-child:hover{box-shadow:inset 0 0 0 2px #183b2918}.daily{background:var(--soft);border:0;border-radius:11px;padding:16px;margin-top:16px}#daily-total{font-variant-numeric:tabular-nums;line-height:1.4}#daily-detail{font-size:13px}.completion-row{display:flex;justify-content:space-between;align-items:center;gap:12px;background:var(--soft);border-radius:9px;padding:12px;margin:7px 0}.completion-total{display:block;color:var(--green);font-size:29px;line-height:1.5;margin-top:18px}dialog{background:#fafcfb}dialog .list-button{padding:14px 16px;min-height:52px;border-color:transparent;background:var(--soft)}dialog .list-button.primary{background:var(--green)}#toast{animation:toast-in .17s ease-out;line-height:1.5}@keyframes toast-in{from{opacity:0;translate:0 -7px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){*,*::before{animation:none!important;transition:none!important}button:active{transform:none}}
.connected .brand{display:none}.connected header{position:absolute;right:22px;top:12px;padding:0;z-index:1}.connected #sync-status{margin-top:12px;min-height:39px;padding-right:108px}.connected header button{font-size:14px;min-height:36px}
@media(max-width:1100px){.connected header{right:14px;top:12px}.connected #sync-status{padding-right:90px}}

/* A quiet full-card centerpiece; text and totals keep separate reading surfaces. */
.table-heading,.card-clock{background:#ffffffb8;border-radius:8px;padding:4px 6px}.table-card .hint{padding:0 6px}.total-row{background:#ffffffd9;border-radius:8px;padding:7px 8px}.empty{text-align:center;padding:42px 4px}.table-card.american{background-color:#eef4f9}.line{background:#f4f8f5ed}.american .line{background:#f2f6faed}body[data-theme="contrast"] .table-card::before{opacity:.10}

/* Shared overview and touch-friendly compact phone workspace. */
#table-tabs{display:none}.occupancy{font-size:11px;font-weight:700;color:var(--green);white-space:nowrap}.table-heading h2{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#selected-table{padding:3px 0 5px}.active-tables{padding:10px 0 0}#active-tables{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}#active-tables button{padding:4px 8px;min-height:29px;font-size:12px}.card-lines{overflow-x:hidden;overflow-y:auto;overscroll-behavior:auto;touch-action:pan-y}.line-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.line-info{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.line>div:first-child{flex:1;overflow:hidden}input[type=checkbox]{width:auto;margin:0 9px 0 0;vertical-align:middle}#products{max-height:42vh;overflow-x:hidden;overflow-y:auto;overscroll-behavior:auto}
@media(max-width:1100px){#table-tabs{display:flex;gap:7px;overflow-x:auto;max-width:100%;padding:2px 0 9px;scrollbar-width:thin;position:sticky;top:0;z-index:2;background:var(--page)}#table-tabs button{flex:none;white-space:nowrap;min-height:42px}.table-card:not(.selected){display:none}#tables{display:block}.table-card.selected{display:block}.table-card .card-lines{height:auto;max-height:none;overflow:visible;min-height:64px}.board-layout{display:block}.management{margin-top:12px}#products{max-height:none;overflow:visible}.table-card .table-tools{order:4}.table-heading h2{font-size:20px}.card-clock{margin:3px 0}.category-pair{margin:5px 0}.table-card .empty{padding:18px 4px}}

body{font-family:"Segoe UI Semibold",system-ui,-apple-system,"Segoe UI",sans-serif}.hint{font-weight:500}.eyebrow{font-size:12px;font-weight:700}#selected-table{font-size:15px;font-weight:700;border-radius:8px;background:var(--soft);padding:8px 10px;color:var(--green)}.table-heading{position:relative}.occupancy{position:absolute;left:50%;transform:translateX(-50%);font-size:12px}#active-tables{display:flex;flex-direction:column;gap:5px;max-height:116px;overflow-y:auto;overflow-x:hidden}#active-tables button{width:100%;font-weight:600;text-align:left;white-space:pre-line;font-size:14px;line-height:1.45;min-height:46px}#active-tables .primary{background:var(--green);color:white}
@media(min-width:1101px){body.connected{height:100dvh;overflow:hidden}.connected main{height:calc(100dvh - 64px);padding:10px 16px 12px;max-width:none}.connected #workspace,.connected .board-layout{height:100%;min-height:0}.connected #tables{height:100%;grid-template-rows:repeat(2,minmax(0,1fr));min-height:0}.connected .table-card{display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:12px}.connected .table-heading{flex:none;height:26px;padding:0 3px;background:transparent}.connected .table-heading h2{font-size:17px;max-width:calc(50% - 40px)}.connected .table-tools button{font-size:20px;min-width:28px;min-height:28px;height:28px}.connected .table-card>span.hint{height:20px;font-size:13px;flex:none;padding:0 3px}.connected .card-clock{height:48px;flex:none;margin:0;padding:0 3px;background:transparent}.connected .card-clock strong{font-size:25px}.connected .card-clock .hint{font-size:11px;padding:0}.connected .table-card>.category-pair{position:absolute;right:12px;top:56px;display:flex;margin:0;gap:4px}.connected .table-card>.category-pair button{padding:0;min-height:38px;width:40px}.connected .table-card>.category-pair img{width:34px;height:34px}.connected .table-card>.category-pair button::after{display:none}.connected .time-adjust{position:absolute;right:106px;top:63px}.connected .time-adjust button{padding:2px;min-height:25px;font-size:11px}.connected .card-lines{height:auto;flex:1;min-height:0;margin:5px 0}.connected .line{height:28px;min-height:28px;padding:2px 4px;margin-bottom:2px;border-radius:7px;gap:4px}.connected .line>div:first-child{display:flex;gap:7px;align-items:center}.connected .line-name{font-size:13px;min-width:0;flex:1}.connected .line-info{font-size:12px}.connected .qty{gap:3px}.connected .qty button{min-width:22px;width:22px;min-height:22px;height:22px;padding:0;font-size:12px}.connected .table-card>.hint{font-size:12px;flex:none;height:18px}.connected .total-row{padding:0 3px;height:25px;flex:none;margin:0 0 4px;background:transparent}.connected .total-row strong{font-size:19px}.connected .card-actions{flex:none;height:28px}.connected .card-actions button{min-height:28px;height:28px;padding:3px;font-size:13px}.connected .empty{padding:20px 2px}.connected .management{height:100%;min-height:0;display:flex;flex-direction:column;position:static;padding:12px}.connected .management>.category-pair{flex:none}.connected #products{flex:1;min-height:0;max-height:none;overflow-y:auto}.connected .management>.actions{flex:none;margin:6px 0}.connected .management>.active-tables{flex:none;padding-top:6px}.connected #active-tables{max-height:110px}.connected .daily{flex:none;margin-top:8px;padding:10px}.connected #daily-detail{margin:4px 0;font-size:12px}.connected #daily-total{font-size:25px;margin:2px 0}.connected .product{min-height:54px;height:54px;margin:4px 0}.connected .product button:first-child{padding:5px 65px 5px 12px}.connected .product img{width:52px!important;height:52px!important}.connected .product-price{margin-top:2px}}
@media(min-width:1101px) and (max-width:1250px){.connected #tables{grid-template-columns:repeat(6,minmax(0,1fr))}.connected .table-card{grid-column:span 2}.connected .table-card.wide,.connected .table-card:last-child:nth-child(odd){grid-column:span 3}.connected .board-layout{grid-template-columns:minmax(0,1fr) 290px}}
@media(min-width:1101px){body.connected{display:flow-root}}

@media(min-width:1101px){.connected main{height:100dvh}.connected #sync-status{position:fixed;bottom:8px;left:16px;right:16px;margin:0;padding:8px 12px;min-height:32px}.connected .management>.actions{display:grid;grid-template-columns:1fr 1fr;gap:5px}.connected #edit-products{grid-column:1/-1}.connected .management>.actions button{min-height:29px;height:29px;font-size:13px;padding:3px}.connected header{display:none}}

#active-tables{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;align-content:start}#active-tables button{min-width:0;width:100%;text-align:center;font-size:13px;padding:4px 3px;line-height:1.3;overflow-wrap:anywhere}#active-tables>.hint{grid-column:1/-1}

#active-tables,.connected #active-tables{max-height:140px}#active-tables button{min-height:62px}

.daily-line{display:flex;justify-content:space-between;gap:8px}.daily-line strong{font-weight:600}
@media(min-width:1101px){.connected #selected-table{font-size:14px;line-height:18px;padding:3px 8px}.connected .management>.category-pair{margin:4px 0;height:34px}.connected #food-tab,.connected #drinks-tab{height:34px;min-height:34px;padding:4px 8px;font-size:14px}.connected .management>.actions{height:56px;gap:4px;margin:4px 0}.connected .management>.actions button{height:26px;min-height:26px;padding:2px 5px}.connected #products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;align-content:start}.connected #products .product{position:relative;display:block;min-width:0;height:78px;min-height:78px;margin:0}.connected #products .product button:first-child{display:block;width:100%;height:100%;padding:7px 9px;text-align:left}.connected #products .product button:first-child>span:first-child{display:block;max-width:calc(100% - 42px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:600}.connected #products .product-price{position:absolute;left:10px;bottom:12px;margin:0;max-width:calc(100% - 50px);font-size:13px}.connected #products .product img{width:38px!important;height:38px!important;top:7px;right:7px;bottom:auto}.connected #products .product button:last-child{position:absolute;right:5px;bottom:5px;width:30px;height:24px;min-height:24px;padding:0;font-size:12px;z-index:2}.connected #active-tables button{min-height:60px;height:60px}.connected #active-tables{max-height:126px}.connected .daily{position:relative;height:136px;min-height:136px;padding:8px;margin-top:8px}.connected .daily>.eyebrow{height:32px;padding-top:5px;max-width:112px}.connected #daily-total{position:absolute;right:8px;top:2px;font-size:25px;line-height:34px;margin:0}.connected #daily-total.small-total{font-size:18px}.connected #daily-rounding{position:absolute;left:8px;top:23px;font-size:11px}.connected #daily-detail{height:54px;margin:2px 0 4px;line-height:18px}.connected .daily-line{height:18px;font-size:12px}.connected #reset{height:26px;min-height:26px;padding:2px 5px;font-size:13px}}

@media(min-width:1101px){.connected #products .product button:first-child{width:calc(100% - 36px)}.connected #products .product button:first-child>span:first-child{max-width:100%}.connected #products .product img{width:32px!important;height:32px!important;top:auto;bottom:5px}.connected #products .product button:last-child{right:0;top:0;bottom:0;width:30px;height:100%;min-height:100%;background:var(--soft)}}

@media(min-width:1101px){.connected .board-layout{grid-template-columns:minmax(0,1fr) 344px}.connected #products .product{height:clamp(77px,calc((100dvh - 482px)/2),128px);min-height:77px}}
@media(min-width:1101px) and (max-height:680px){.connected main{height:100dvh}.connected #sync-status{bottom:5px;min-height:28px;padding:5px 10px}.connected .management{padding:8px}.connected #selected-table{padding:1px 8px}.connected .management>.category-pair{height:32px;margin:3px 0}.connected #food-tab,.connected #drinks-tab{height:32px;min-height:32px}.connected .management>.actions{height:54px;margin:3px 0}.connected .management>.actions button{height:25px;min-height:25px}.connected #active-tables button{height:58px;min-height:58px;padding:2px 3px;line-height:1.25}.connected #active-tables{max-height:122px}.connected .daily{height:128px;min-height:128px}.connected .daily>.eyebrow{height:28px;padding-top:3px}.connected #daily-total{font-size:24px;line-height:30px}.connected #daily-detail{margin:1px 0 3px}.connected #reset{height:24px;min-height:24px;padding:1px 4px}}

.entry-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:18px}.download-link{display:inline-flex;align-items:center;min-height:40px;padding:8px 12px;color:var(--green);font-weight:600;text-underline-offset:3px}.download-link:hover{background:var(--soft);border-radius:8px}.download-link:focus-visible{outline:2px solid var(--green);outline-offset:2px}dialog .download-link{display:flex;width:100%;margin:6px 0;border-radius:9px}#connection-status-detail{margin:0 0 12px}#modal-body ol{padding-left:24px;line-height:1.65}#modal-body li{padding:4px 0}@media(max-width:1100px){.connected header{position:static;padding:8px 14px;justify-content:flex-end}}

/* Finite state transitions; the static board does not run an animation loop. */
.table-card[data-color]{--card-accent:var(--table-theme,#147d64);border-color:var(--card-accent);background-image:linear-gradient(150deg,var(--table-wash,#147d6426),#fafcfb 65%,#edf5f0);transition:border-color .24s,box-shadow .16s}
.table-card[data-color].playing{--card-accent:#b6423d}.table-card[data-color].paused{--card-accent:#996e19}
.table-card[data-color].selected{border-color:var(--card-accent);box-shadow:inset 0 0 0 .35px var(--card-accent)}
.table-card[data-color]:hover{box-shadow:inset 0 0 0 1.5px var(--card-accent)}
.table-card::before{opacity:.46}.table-card .card-actions .primary{background:var(--card-accent,var(--green));border-color:var(--card-accent,var(--green));transition:background-color .24s,border-color .24s}
.table-heading{position:relative}.table-heading .occupancy{position:absolute;left:50%;transform:translateX(-50%);background:#e2e8e6;color:#344b43;padding:2px 12px;border-radius:20px;font-size:12px;line-height:20px;font-weight:650}
.table-card .total-row strong{color:var(--table-theme,var(--green))}.table-card .line{background:#f8fcfaed}
.cola button:first-child{background:#fae8e4}.lemonade button:first-child{background:#faf6d6}.fruit-soda button:first-child{background:#faeed7}.energy button:first-child{background:#e7eefa}.turkish-coffee button:first-child{background:#efe4dc}.salep button:first-child{background:#f7efe1}.boza button:first-child{background:#f6e8d1}.meal button:first-child{background:#faedd7}
#toast{background:var(--green);padding-right:48px}#toast .toast-close{position:absolute;right:5px;top:3px;border:0;background:transparent;color:white;font-size:23px;padding:0;width:32px;height:32px;min-height:32px}
.table-context{position:fixed;z-index:20;background:#fbfdfc;border:1px solid var(--border);border-radius:12px;padding:7px;box-shadow:0 8px 26px #173b2928;font-size:14px;min-width:185px}
.context-choices{display:flex;flex-direction:column;gap:3px}.context-choices>strong{padding:8px}.context-choices>button{text-align:left;border:0;background:transparent}.context-choices>button:hover,.context-choices>button:focus{background:var(--soft)}
.context-products{position:absolute;top:0;width:252px;padding:6px;background:#fbfdfc;border:1px solid var(--border);border-radius:12px;overflow-y:auto;box-shadow:0 8px 26px #173b2928}.context-products .product{height:50px;min-height:50px;margin:4px 0}.context-products .product img{width:44px!important;height:44px!important}.context-products .product button:first-child{padding:3px 50px 3px 8px;font-size:13px}.context-products .product-price{margin-top:0;font-size:12px}
@media(min-width:1101px){.connected #products .product{height:64px;min-height:64px}.connected #products .product button:first-child>span:first-child{font-size:12px;font-weight:700}.connected #products .product-price{bottom:8px}.connected #products .product img{width:30px!important;height:30px!important;bottom:3px}.connected .card-clock strong{font-size:22px}.connected .time-adjust{left:14px;right:auto;top:auto;bottom:42px}.connected .time-adjust button{font-size:11px}.connected .table-card{box-shadow:0 1px 0 #254d3724}.connected .table-card .occupancy{font-size:12px}}
@media(max-width:1100px){.product{min-height:60px}.product img{max-width:58px;max-height:58px}.card-clock{padding-right:0}.table-card .table-heading h2{max-width:calc(50% - 38px)}}
@media(prefers-reduced-motion:reduce){.table-card[data-color],.table-card .card-actions .primary{transition:none}}
.category-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;flex:1;min-width:0}.category-totals>div{min-width:0}.category-totals span{display:block;font-size:12px;font-weight:600;color:var(--muted);white-space:nowrap}.category-totals strong{display:block;font-size:14px!important;font-weight:600;color:var(--ink)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.total-row>.category-totals+strong{flex:none;align-self:center}
@media(min-width:1101px){.connected .total-row{height:36px;min-height:36px;margin-top:2px;margin-bottom:5px;gap:10px}.connected .time-adjust{bottom:83px}.connected .table-card.timed .card-lines{margin-bottom:30px}}
@media(min-width:1101px) and (max-width:1300px){.connected .table-card:not(.wide)>.category-pair button{width:32px}.connected .table-card:not(.wide)>.category-pair img{width:28px;height:28px}.connected .table-card:not(.wide) .card-clock strong{font-size:21px}}

/* Short feedback; menus and notices appear in their final position. */
button{transition:background-color 60ms,box-shadow 60ms}button:active{transform:none}
.table-card[data-color]{transition:border-color 80ms,box-shadow 60ms}.table-card .card-actions .primary{transition:background-color 80ms,border-color 80ms}
#toast,dialog,.table-context,.context-products{animation:none;transition:none}
.category-totals{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.category-totals>div:last-child{text-align:right}.category-totals span{font-size:11px}.category-totals strong,.category-totals>div>div{display:block;font-size:13px!important;font-weight:600;color:var(--ink)!important;white-space:nowrap}
@media(min-width:1101px){.connected .time-adjust{left:calc(50% + 17px);top:57px;bottom:auto;right:auto;transform:translateX(-50%);width:min(100px,calc(100% - 250px))}.connected .time-adjust button{flex:1;min-width:0;padding:0}.connected .table-card.timed .card-lines{margin-bottom:5px}.connected #products .product button:first-child{padding:3px 49px 3px 8px}.connected #products .product button:first-child>span:first-child{white-space:normal;line-height:15px;font-size:12px;max-height:30px;overflow:hidden}.connected #products .product-price{bottom:5px;left:8px;max-width:calc(100% - 51px)}.connected #products .product img{width:44px!important;height:44px!important;top:50%;transform:translateY(-50%);bottom:auto;right:4px}}
@media(min-width:1101px) and (max-width:1300px){.connected .table-card:not(.wide) .time-adjust{left:calc(50% + 18px);width:min(100px,calc(100% - 220px))}}
@media(prefers-reduced-motion:reduce){button,.table-card[data-color],.table-card .card-actions .primary{transition:none}}
@media(min-width:1101px){.connected #products .product button:first-child{padding:2px 8px}.connected #products .product button:first-child>span:first-child{white-space:nowrap;max-height:20px}.connected #products .product img{width:40px!important;height:40px!important;top:auto;bottom:2px;transform:none}.connected #products .product-price{max-width:calc(100% - 54px)}}

/* Small cached cutouts share established product tints. */
.product.meatballs,.product.burger,.product.gozleme{background:#faedd7;color:#71461b}.product.ayran{background:#e8f4fa;color:#25556f}.product.glove{background:#e7eefa;color:#334b75}
