:root {
  --green: #69BD43;
  --green-d: #1E9912;
  --green-dd: #136b0b;
  --mint: #EEF8E9;
  --mint-line: #cfe9c2;
  --orange: #FF6200;
  --orange-d: #e05600;
  --peach: #FFF2E6;
  --peach-line: #ffd6b3;
  --navy: #192A3D;
  --ink: #3A4F66;
  --muted: #74859a;
  --line: #e2e8ef;
  --bg: #FAFBFC;
  --card: #ffffff;
  --red: #d33a2a;
  --red-bg: #fdecea;
  --pause: #a3afbd;
  --display: 'Cabin Condensed', 'Cabin', 'Segoe UI', sans-serif;
  --body: 'Cabin', 'Segoe UI', sans-serif;
  --r: 16px;
  --shadow: 0 1px 2px rgba(25, 42, 61, .05), 0 8px 24px -12px rgba(25, 42, 61, .18);
  --hex: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48' viewBox='0 0 56 48'%3E%3Cpath d='M14 1h28l13 23-13 23H14L1 24z' fill='none' stroke='%2369BD43' stroke-opacity='.07' stroke-width='1.2'/%3E%3C/svg%3E");
  line-height: 1.45;
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(255, 98, 0, .45); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); margin: 0; letter-spacing: -.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 1em; height: 1em; flex: none; vertical-align: -.125em; }

/* ---------- demo bar ---------- */
.demobar { position: sticky; top: 0; z-index: 40; background: var(--navy); color: #dfe7f0; }
.demobar .row { max-width: 1120px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.proto { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--orange); color: #fff; padding: 3px 8px; border-radius: 6px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; }
.tabs::-webkit-scrollbar { display: none; }
.tab { white-space: nowrap; border: 0; background: transparent; color: #b9c7d6; padding: 7px 11px; border-radius: 9px; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.tab small { font-size: 11px; opacity: .7; text-transform: uppercase; letter-spacing: .06em; }
.tab:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.tab[aria-current="page"] { background: #fff; color: var(--navy); font-weight: 600; }
.tab[aria-current="page"] small { opacity: .55; }
.clock { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.clock .now { font-family: var(--display); font-weight: 600; color: #fff; font-size: 15px; white-space: nowrap; }
.clock .cut { font-size: 11px; padding: 2px 7px; border-radius: 99px; background: rgba(105, 189, 67, .2); color: #bfe8ab; white-space: nowrap; }
.clock .cut.late { background: rgba(255, 98, 0, .22); color: #ffc49e; }
.cbtn { border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: #dfe7f0; border-radius: 8px; padding: 4px 8px; font-size: 13px; line-height: 1.2; }
.cbtn:hover { background: rgba(255, 255, 255, .08); }
.cbtn.on { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- shared ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 22px 16px 120px; }
.col { max-width: 540px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; margin: 2px 0 18px; }
.brand .mark { width: 38px; height: 34px; clip-path: var(--hex); background: var(--green); display: grid; place-items: center;
  color: #fff; font-family: var(--display); font-weight: 700; font-size: 20px; }
.brand b { font-family: var(--display); color: var(--navy); font-size: 17px; letter-spacing: .04em; display: block; line-height: 1; }
.brand span { color: var(--green-d); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.chip.aktivan { background: var(--mint); color: var(--green-dd); }
.chip.pauza { background: repeating-linear-gradient(-45deg, #eef1f4 0 6px, #e2e7ec 6px 12px); color: #4f5f71; }
.chip.ceka { background: var(--peach); color: #a14300; }
.chip.zavrsen { background: #eef0f3; color: #6b7a8b; }
.chip.warn { background: var(--red-bg); color: var(--red); }
.chip.soft { background: #f1f4f7; color: var(--ink); font-weight: 500; }
.btn { border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; transition: transform .12s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--orange); color: #fff; box-shadow: 0 6px 16px -8px rgba(255, 98, 0, .8); }
.btn.primary:hover { background: var(--orange-d); }
.btn.primary[disabled] { background: #ffc7a3; box-shadow: none; cursor: not-allowed; }
.btn.green { background: var(--green-d); color: #fff; }
.btn.green:hover { background: var(--green-dd); }
.btn.ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--navy); }
.btn.small { min-height: 36px; padding: 7px 12px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
a.btn { text-decoration: none; }
.reveal > * { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.reveal > *:nth-child(2) { animation-delay: .05s; }
.reveal > *:nth-child(3) { animation-delay: .1s; }
.reveal > *:nth-child(4) { animation-delay: .15s; }
.reveal > *:nth-child(5) { animation-delay: .2s; }
.reveal > *:nth-child(n+6) { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- order wizard ---------- */
.order { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.order > section { min-width: 0; }
@media (min-width: 900px) { .order { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; } }
.steps { display: flex; gap: 6px; margin-bottom: 14px; }
.steps li { list-style: none; flex: 1; font-size: 12px; color: var(--muted); }
.steps li::before { content: ''; display: block; height: 4px; border-radius: 4px; background: var(--line); margin-bottom: 6px; }
.steps li.on { color: var(--navy); font-weight: 600; }
.steps li.on::before, .steps li.done::before { background: var(--green); }
.steps { padding: 0; margin-top: 0; }
.h-step { font-size: 30px; line-height: 1.05; margin-bottom: 6px; }
.lede { margin: 0 0 18px; }
.programs { display: grid; gap: 10px; }
.prog { text-align: left; width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 14px 14px 14px 64px; position: relative;
  display: grid; gap: 2px; transition: border-color .15s, box-shadow .15s; }
.prog:hover { border-color: #b9c5d2; }
.prog .hx { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 38px; height: 34px; clip-path: var(--hex); background: var(--mint); display: grid; place-items: center; color: var(--green-d); font-family: var(--display); font-weight: 700; }
.prog b { color: var(--navy); font-size: 16px; }
.prog .meta { font-size: 13px; color: var(--muted); }
.prog .from { position: absolute; right: 14px; top: 14px; font-size: 13px; color: var(--navy); font-weight: 600; }
.prog .from small { display: block; font-weight: 400; color: var(--muted); text-align: right; font-size: 11px; }
.prog[aria-pressed="true"] { border-color: var(--green); box-shadow: 0 0 0 3px rgba(105, 189, 67, .18); }
.prog[aria-pressed="true"] .hx { background: var(--green); color: #fff; }
.field-group { margin: 0 0 22px; }
.field-group > label, .field-group > .lbl { display: block; font-family: var(--display); font-weight: 600; color: var(--navy); font-size: 17px; margin-bottom: 10px; }
.days { display: flex; align-items: center; gap: 12px; }
.daysnum { font-family: var(--display); font-size: 56px; font-weight: 700; color: var(--navy); line-height: 1; min-width: 74px; text-align: center; }
.daysnum small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.stepbtn { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 22px; color: var(--navy); }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.qbtn { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 13px; font-size: 14px; }
.qbtn[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
input[type=range] { width: 100%; accent-color: var(--orange); margin-top: 14px; }
.tierline { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }
.tierline span.on { color: var(--green-d); font-weight: 700; }
.patterns { display: grid; gap: 8px; }
.pat { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 14px; text-align: left; display: flex; gap: 12px; align-items: center; }
.pat[aria-pressed="true"] { border-color: var(--green); box-shadow: 0 0 0 3px rgba(105, 189, 67, .18); }
.pat .week { display: flex; gap: 3px; flex: none; }
.pat .week i { width: 14px; height: 13px; clip-path: var(--hex); background: var(--line); display: block; }
.pat .week i.w { background: var(--green); }
.pat .week i.h { background: var(--orange); }
.pat .week i.hs { background: var(--peach-line); }
.pat b { color: var(--navy); display: block; font-size: 15px; }
.pat span { font-size: 13px; color: var(--muted); }
.dates { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.dbtn { flex: none; width: 62px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 4px; text-align: center; line-height: 1.15; }
.dbtn b { display: block; font-family: var(--display); font-size: 22px; color: var(--navy); }
.dbtn small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.dbtn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); }
.dbtn[aria-pressed="true"] b, .dbtn[aria-pressed="true"] small { color: #fff; }
.dbtn.sat { border-color: var(--peach-line); background: var(--peach); }
.dbtn.sat[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); }
.note { font-size: 13px; background: var(--mint); border-radius: 10px; padding: 9px 12px; color: var(--green-dd); display: flex; gap: 8px; align-items: flex-start; }
.note.orange { background: var(--peach); color: #8a3a00; }
.note.grey { background: #f1f4f7; color: var(--ink); }
.form { display: grid; gap: 14px; }
.addr { border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.addr.work { background: #fff; border: 1.5px solid var(--line); }
.addr.home { background: var(--peach); border: 1.5px solid var(--peach-line); }
.addr h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.addr h3 small { font-family: var(--body); font-weight: 500; color: var(--muted); font-size: 13px; }
.inp { display: grid; gap: 4px; }
.inp span { font-size: 13px; font-weight: 600; color: var(--navy); }
.inp span em { font-style: normal; color: var(--orange); }
.inp input, .inp textarea, .inp select { width: 100%; border: 1.5px solid var(--line); border-radius: 11px; padding: 11px 12px; background: #fff; min-height: 46px; }
.inp input:focus, .inp textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(105, 189, 67, .18); }
.inp.err input { border-color: var(--red); }
.inp .msg { color: var(--red); font-size: 12px; }
.two { display: grid; gap: 10px; align-items: start; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--green-d); }
.navrow { display: flex; gap: 10px; margin-top: 22px; }
.navrow .btn.primary { flex: 1; }

.summary { position: sticky; top: 72px; }
.summary .card { padding: 0; overflow: hidden; }
.sum-top { padding: 16px 18px; background: var(--navy); color: #dfe7f0; }
.sum-top .eyebrow { color: #93a5b8; }
.sum-top h3 { color: #fff; font-size: 20px; margin-top: 4px; }
.sum-body { padding: 14px 18px 18px; display: grid; gap: 8px; font-size: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; }
.sum-row b { color: var(--navy); text-align: right; }
.sum-total { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px; display: flex; justify-content: space-between; align-items: baseline; }
.sum-total b { font-family: var(--display); font-size: 30px; color: var(--navy); }
.sum-total small { color: var(--muted); }
.paynote { font-size: 12px; color: var(--muted); }
.mbar { display: none; }
@media (max-width: 899px) {
  .summary { display: none; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -18px rgba(25, 42, 61, .4); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); gap: 12px; align-items: center; }
  .mbar .t { flex: 1; min-width: 0; }
  .mbar .t small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar .t b { font-family: var(--display); font-size: 22px; color: var(--navy); }
  .order .navrow { display: none; }
}
.done-card { text-align: center; padding: 30px 20px; }
.done-card .big { width: 76px; height: 68px; margin: 0 auto 14px; clip-path: var(--hex); background: var(--green); display: grid; place-items: center; color: #fff; font-size: 34px; }
.linkbox { margin: 16px 0; background: #f4f7fa; border: 1.5px dashed #c9d4df; border-radius: 12px; padding: 10px 12px; font-family: ui-monospace, monospace; font-size: 13px; color: var(--navy); word-break: break-all; }

/* ---------- moj paket ---------- */
.viewas { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 14px; color: var(--muted); flex-wrap: wrap; }
.viewas select { border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 10px; background: #fff; max-width: 100%; }
.staffflag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--navy); padding: 3px 8px; border-radius: 6px; }
.hello { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.hello h1 { font-size: 30px; line-height: 1.05; }
.hello p { margin: 4px 0 0; font-size: 14px; }
.balance { padding: 20px 18px; }
.bal-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 14px; }
.bal-num { font-family: var(--display); font-size: 84px; font-weight: 700; line-height: .85; color: var(--navy); }
.bal-txt { padding-bottom: 6px; }
.bal-txt b { display: block; color: var(--navy); font-size: 18px; font-family: var(--display); }
.bal-txt span { font-size: 13px; color: var(--muted); }
.tokens { display: flex; flex-wrap: wrap; gap: 4px 3px; }
.tok { width: 32px; height: 28px; clip-path: var(--hex); background: var(--green); display: grid; place-items: center; color: #fff; position: relative;
  animation: pop .35s cubic-bezier(.2, .9, .3, 1.4) both; animation-delay: calc(var(--i, 0) * 14ms); }
.tok svg { width: 13px; height: 13px; position: relative; z-index: 1; }
.tok.used { background: var(--green); opacity: .9; }
.tok.used svg { opacity: .9; }
.tok.todo { background: #c9d4df; color: var(--navy); }
.tok.todo::before { content: ''; position: absolute; inset: 2px; clip-path: var(--hex); background: #fff; }
.tok.todo.kuca { background: var(--orange); color: var(--orange-d); }
.tok.todo.kuca::before { background: var(--peach); }
.tok.todo.next { background: var(--navy); }
.tok.todo.next::before { inset: 3px; }
.tok.paused { background: repeating-linear-gradient(-45deg, #dfe4ea 0 4px, #c8d0d9 4px 8px); color: #5c6b7c; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 12px; height: 11px; clip-path: var(--hex); display: inline-block; }
.nextcard { margin-top: 14px; display: grid; gap: 4px; }
.nextcard.posao { border-left: 5px solid var(--green); }
.nextcard.kuca { border-left: 5px solid var(--orange); background: linear-gradient(90deg, var(--peach), #fff 70%); }
.nextcard.paused { border-left: 5px solid var(--pause); background: repeating-linear-gradient(-45deg, #fafbfc 0 10px, #f2f4f7 10px 20px); }
.nextcard .when { font-family: var(--display); font-size: 22px; color: var(--navy); font-weight: 700; }
.nextcard .where { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; }
.nextcard .where svg { margin-top: 3px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.actions .wide { grid-column: 1 / -1; }
.upnext { margin-top: 14px; }
.upnext h3 { font-size: 18px; margin-bottom: 8px; }
.uprow { display: grid; grid-template-columns: 92px 24px 1fr auto; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.uprow:last-child { border-bottom: 0; }
.uprow .d { font-weight: 600; color: var(--navy); }
.uprow.kuca .ic { color: var(--orange); }
.uprow.posao .ic { color: var(--green-d); }
.uprow .a { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uprow.pause { color: var(--muted); display: flex; justify-content: center; gap: 6px; text-align: center; font-size: 13px; background: repeating-linear-gradient(-45deg, #fafbfc 0 8px, #f1f4f7 8px 16px); border-radius: 8px; }
.payline { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; }

/* ---------- sheet ---------- */
.overlay { position: fixed; inset: 0; background: rgba(25, 42, 61, .45); z-index: 60; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: #fff; width: 100%; max-width: 520px; border-radius: 22px 22px 0 0; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); max-height: 92vh; overflow: auto; animation: up .28s cubic-bezier(.2, .8, .2, 1) both; }
@media (min-width: 700px) { .overlay { align-items: center; } .sheet { border-radius: 22px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet .grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 14px; }
.sheet h2 { font-size: 26px; margin-bottom: 4px; }
.sheet .sub { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #f1f4f7; padding: 4px; border-radius: 12px; margin-bottom: 12px; }
.seg button { border: 0; background: transparent; border-radius: 9px; padding: 9px; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.preview { background: var(--navy); color: #dfe7f0; border-radius: 14px; padding: 14px 16px; margin: 6px 0 16px; display: grid; gap: 3px; font-size: 14px; }
.preview b { color: #fff; font-family: var(--display); font-size: 20px; }
.err { color: var(--red); font-size: 14px; margin: 0 0 10px; }

/* ---------- staff: kitchen ---------- */
.kitchen-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.kitchen-head h1 { font-size: 40px; line-height: 1; }
.kitchen-head h1 small { display: block; font-size: 15px; font-family: var(--body); color: var(--muted); font-weight: 500; letter-spacing: 0; margin-bottom: 6px; }
.daynav { display: flex; gap: 8px; align-items: center; }
.lock { font-size: 13px; display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 99px; }
.lock.closed { background: #eef0f3; color: var(--ink); }
.lock.open { background: var(--mint); color: var(--green-dd); }
.lock.done { background: #eef0f3; color: var(--muted); }
.banner { border-radius: 14px; padding: 12px 16px; display: flex; gap: 10px; align-items: center; margin-bottom: 14px; font-weight: 600; }
.banner.posao { background: var(--mint); color: var(--green-dd); }
.banner.kuca { background: var(--peach); color: #8a3a00; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
@media (min-width: 760px) { .kpis { grid-template-columns: 160px 160px 1fr; } }
.kpi { padding: 14px 16px; }
.kpi b { font-family: var(--display); font-size: 40px; color: var(--navy); line-height: 1; display: block; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi.progs { grid-column: 1 / -1; }
@media (min-width: 760px) { .kpi.progs { grid-column: auto; } }
.pbar { display: grid; grid-template-columns: 150px 1fr 28px; gap: 8px; align-items: center; font-size: 13px; margin: 3px 0; }
.pbar .bar { height: 10px; border-radius: 9px; background: #f1f4f7; overflow: hidden; }
.pbar .bar i { display: block; height: 100%; background: var(--green); border-radius: 9px; }
.pbar b { text-align: right; color: var(--navy); }
.area { margin-bottom: 14px; padding: 0; overflow: hidden; }
.area-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #f6f8fa; border-bottom: 1px solid var(--line); }
.area-h h3 { font-size: 18px; }
.drow { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drow:last-child { border-bottom: 0; }
@media (min-width: 760px) { .drow { grid-template-columns: 220px 1fr 240px; align-items: center; gap: 14px; } }
.drow .who b { color: var(--navy); display: block; }
.drow .who a { color: var(--muted); font-size: 13px; text-decoration: none; }
.drow .adr { font-size: 14px; }
.drow .adr small { color: var(--muted); display: block; }
.drow .tags { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-start; }
@media (min-width: 760px) { .drow .tags { justify-content: flex-end; } }
.x2 { font-family: var(--display); font-weight: 700; background: var(--orange); color: #fff; border-radius: 7px; padding: 1px 7px; font-size: 13px; }
.side-lists { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 760px) { .side-lists { grid-template-columns: 1fr 1fr; } }
.mini h3 { font-size: 19px; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.mini .r { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini .r:last-child { border-bottom: 0; }
.mini .r b { color: var(--navy); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty b { display: block; font-family: var(--display); font-size: 22px; color: var(--navy); margin-bottom: 4px; }

/* ---------- staff: customers ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar h1 { font-size: 40px; }
.search { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 240px; background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-family: var(--display); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #f8fafb; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--navy); font-weight: 600; text-align: left; }
.linkbtn:hover { color: var(--orange); }
.prog-mini { display: grid; gap: 4px; min-width: 120px; }
.prog-mini .bar { height: 7px; border-radius: 9px; background: #f1f4f7; overflow: hidden; }
.prog-mini .bar i { display: block; height: 100%; background: var(--green); }
.paidbtn { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.paidbtn.yes { background: var(--mint); border-color: var(--mint-line); color: var(--green-dd); }
.paidbtn.no { color: var(--red); border-color: #f3c3bd; }
.tablewrap { overflow-x: auto; padding: 4px 6px; }
@media (max-width: 760px) { .tbl .hide-m { display: none; } }

/* ---------- toast ---------- */
#toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 11px 16px; border-radius: 12px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 80; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- print (kitchen list) ---------- */
@media print {
  body { background: #fff; }
  .demobar, .daynav, .noprint, #toast { display: none !important; }
  .wrap { padding: 0; }
  .card { box-shadow: none; border: 1px solid #ccc; }
  .drow { grid-template-columns: 200px 1fr 220px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- phones: keep the demo bar out of the way ---------- */
@media (max-width: 600px) {
  .demobar { position: static; }
  .demobar .row { gap: 8px; padding: 8px 12px; }
  .tab small { display: none; }
  .clock { flex-wrap: wrap; row-gap: 6px; }
  .bal-num { font-size: 72px; }
}

/* ---------- driver list (the format of their old printout) ---------- */
.kbar { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin-bottom: 14px; }
.kbar .banner { flex: 1 1 320px; margin: 0; }
.kseg { flex: 0 1 360px; margin: 0; align-self: center; }
.sheetlist { padding: 0; overflow: hidden; }
.lh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 16px; background: #eceff2; border-bottom: 2px solid #c9d0d8; }
.lh h2 { font-size: 22px; text-transform: uppercase; letter-spacing: .02em; font-style: italic; }
table.dl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 1060px; }
table.dl th { text-align: left; font-family: var(--display); font-style: italic; font-size: 13px; color: var(--navy); padding: 8px 8px; border-bottom: 1.5px solid #c9d0d8; text-transform: uppercase; white-space: nowrap; background: #f6f7f9; }
table.dl td { padding: 8px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.dl tbody tr:nth-child(even) td { background: #fbfcfd; }
table.dl tr.kuca td { background: #fff8f1; }
table.dl .rb { width: 34px; text-align: center; font-weight: 700; color: var(--navy); background: #eceff2 !important; }
table.dl .nm { font-weight: 600; color: var(--navy); white-space: nowrap; }
table.dl .ad { min-width: 230px; }
table.dl .ad .k { color: var(--muted); margin-right: 4px; }
table.dl tr.kuca .ad .k { color: var(--orange); }
table.dl .c { text-align: center; }
table.dl .sp { color: var(--red); font-weight: 600; max-width: 170px; }
table.dl .ph a { color: var(--ink); text-decoration: none; white-space: nowrap; }
table.dl .r { text-align: right; }
table.dl .pay { white-space: nowrap; }
table.dl .pay b { color: var(--red); }
table.dl .pay small { display: block; font-size: 11px; color: var(--muted); }
table.dl .ex { white-space: nowrap; }
table.dl .no { max-width: 200px; }
.flag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 1px 6px; border-radius: 5px; margin-top: 2px; }
.flag.new { background: var(--peach); color: #a14300; }
.flag.last { background: var(--red-bg); color: var(--red); }
.totals { display: grid; gap: 14px; padding: 14px 16px 18px; border-top: 2px solid #c9d0d8; background: #fafbfc; }
@media (min-width: 900px) { .totals { grid-template-columns: 1.1fr .9fr 1.3fr; align-items: start; } }
.tt { border-collapse: collapse; font-size: 14px; width: 100%; }
.tt th { font-family: var(--display); font-style: italic; color: var(--muted); font-weight: 600; text-align: right; padding: 3px 8px; }
.tt th:first-child { text-align: left; }
.tt td { padding: 4px 8px; border-bottom: 1px solid var(--line); text-align: right; font-weight: 700; color: var(--navy); }
.tt td:first-child { text-align: left; font-weight: 500; font-style: italic; color: var(--ink); }
.tt tr.sum td { border-bottom: 0; font-size: 16px; }
.tt.money td:last-child { font-family: var(--display); font-size: 17px; }

@media print {
  .kbar, .side-lists, .kitchen-head, .reveal > * { animation: none !important; }
  .kbar, .side-lists { display: none !important; }
  .kitchen-head { display: none; }
  .sheetlist { border: 0 !important; }
  .lh { background: #e6e6e6; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  table.dl { min-width: 0; font-size: 9.5pt; }
  table.dl thead { display: table-header-group; }
  table.dl tr { break-inside: avoid; }
  table.dl th, table.dl .rb, table.dl tr.kuca td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tablewrap { overflow: visible; padding: 0; }
  .totals { break-inside: avoid; grid-template-columns: 1.1fr .9fr 1.3fr; }
}

/* ---------- site mode: opened from the redesigned site ---------- */
.sitehead { display: none; }
.site-mode { --display: 'Unbounded', 'Cabin', sans-serif; --navy: #16281A; --bg: #F5F8F1; }
.site-mode .demobar { display: none; }
.site-mode .sitehead { display: flex; position: sticky; top: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; text-decoration: none; color: #16281A; font-weight: 600; font-size: 15px;
  background: rgba(245, 248, 241, .82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid rgba(22, 40, 26, .08); }
.site-mode .sitehead img { height: 28px; width: auto; }
.site-mode .brand { display: none; }
.site-mode .h-step { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.site-mode .daysnum { font-size: 44px; }
.site-mode .bal-num { font-size: 66px; }
.site-mode .hello h1 { font-size: 26px; }
.site-mode .card, .site-mode .prog, .site-mode .pat { border-radius: 20px; }
.site-mode .summary .sum-top { background: #10301a; }
.site-mode .summary { top: 78px; }

/* ---------- phone pass (2026-10-07): 44px tap targets, no text under 14px on the order flow ---------- */
@media (max-width: 760px) {
  .qbtn { min-height: 44px; padding: 0 16px; font-size: 15px; }
  input[type=range] { height: 44px; margin-top: 6px; cursor: pointer; }
  .steps li, .tierline, .paynote, .inp .msg, .mbar .t small { font-size: 14px; }
  .chip { font-size: 13.5px; }
  .prog .from { font-size: 14px; }
  .prog .from small, .dbtn small { font-size: 13.5px; }
  .prog .meta, .pat span, .note, .inp span, .addr h3 small, .daysnum small { font-size: 14px; }
  .dbtn { min-height: 56px; }
  .check { min-height: 44px; }
}

/* pass D 2026-10-07: same-screen re-renders don't replay entrance animations (render() sets .still) */
#app.still .reveal > *, #app.still .tok { animation: none; }
#sheet-root.still .overlay, #sheet-root.still .sheet { animation: none; }
/* pass D: on phones the "već od" price sat on top of the calorie line — put it in the flow under the meta */
@media (max-width: 760px) {
  .prog { padding-right: 14px; }
  .prog .from { position: static; text-align: left; margin-top: 4px; }
  .prog .from small { display: inline; margin-right: 6px; text-align: left; }
}
@media (max-width: 760px) { .done-card { margin-left: 14px; margin-right: 14px; } }

/* UX kit part 2 (2026-10-07): resting send buttons; map fallback link */
button[aria-disabled="true"] { opacity: .65; cursor: progress; }
.frame-failed { position: relative; }
.frame-failed iframe { visibility: hidden; }
.frame-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; font-weight: 650; text-decoration: underline; color: inherit; }

/* ---- tells pass 2026-10-07 (millee.md "20 reasons why your app looks vibecoded"): design fixes only ---- */
.site-mode .sitehead { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(245, 248, 241, .98); }
/* #7 contrast: muted grey 3.8:1 → 5.5:1; tab sublabels were dimmed by opacity to 3.5:1 */
:root { --muted: #5a6b7f; }
.tab small { opacity: .9; }
.proto { color: #16281a; }   /* 5.2:1 on the orange (the app's own --ink is a slate that fails) */
.tab[aria-current="page"] small { opacity: .9; }
.prog:not([aria-pressed="true"]) .hx { color: var(--green-dd); }   /* 6.1:1 on mint, was 3.4:1 */

/* ---- fix pass 2026-10-25 (review 2026-10-24) ---- */
/* N1: phones get a back step in the bottom bar; finished step labels are buttons back to that step */
.mbar .btn.back { flex: none; min-width: 46px; padding: 0 12px; }
.steps li .steplink { border: 0; background: none; padding: 0; font: inherit; color: var(--green-dd); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; min-height: 24px;
  display: flex; align-items: flex-start; }   /* text at the top, level with the current step's label */
.steps li .steplink:hover { color: var(--navy); }
/* add-on, privacy and "not you?" notes on step 3 */
.fieldnote { font-size: 13px; color: var(--muted); margin: -6px 0 0; }
.fieldnote a, .fieldnote .linkbtn { color: var(--green-dd); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) { .fieldnote { font-size: 14px; } .steps li .steplink { min-height: 44px; } }
/* #24: white on the brand orange is 3.0:1. As on the home page (tells pass #7), the customer pages' orange buttons
   carry the site's ink instead: 5.2:1; hover lightens the orange so the text keeps its contrast */
.site-mode .btn.primary { color: #16281a; }
.site-mode .btn.primary:hover { background: #ff7a2e; }
/* N8: the phone link on the done screen (shown when the e-mail could not be sent) */
.done-card a:not(.btn) { color: var(--green-dd); font-weight: 600; }
/* S5: "Moj paket" without a personal link */
.nolink p { margin: 10px 0 0; color: var(--ink); }
.nolink a:not(.btn) { color: var(--green-dd); font-weight: 600; }
.nolink .btn { margin-top: 18px; }
