/* Guests' phones: table page and guest page. */
*{box-sizing:border-box}
body{margin:0;font:16px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;color:#1d1d1d;background:#fbf8f2}
header{text-align:center;padding:22px 16px 4px}
header h1{margin:0;font:700 1.7rem Georgia,"Times New Roman",serif;color:#1d3b53}
header p{margin:4px 0 0;color:#555}
main{max-width:560px;margin:0 auto;padding:8px 14px 40px}
h2{font-size:1.15rem;margin:0 0 8px;color:#1d3b53}
h3{font-size:1rem;margin:10px 0 6px}
.card{background:#fff;border:1px solid #e3dccd;border-radius:14px;padding:14px;margin:12px 0}
.card.me{padding:10px 14px}
.muted{color:#666}
.small,small{font-size:.85rem}
.spread{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.btn{display:inline-block;background:#1d3b53;color:#fff;border:0;border-radius:999px;padding:11px 22px;font:700 16px system-ui,sans-serif;text-decoration:none;cursor:pointer;margin:6px 0}
.btn.big{display:block;width:100%;padding:14px;font-size:17px}
.btn.light{background:#fff;color:#1d3b53;border:1px solid #1d3b53}
.btn:disabled{opacity:.6}
.link{background:none;border:0;color:#1d3b53;text-decoration:underline;font:inherit;padding:8px 0;cursor:pointer}
.link.danger{color:#a1291b}
.field{display:grid;gap:4px;margin:10px 0;font-weight:600}
.field small{font-weight:400;color:#666}
.field input,.field select{font:16px system-ui,sans-serif;padding:11px;border:1px solid #c9c2b6;border-radius:10px;background:#fff;color:#1d1d1d;width:100%}
.two{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tick{display:flex;gap:10px;align-items:flex-start;margin:10px 0;font-size:.95rem}
.tick input{width:22px;height:22px;flex:none;margin-top:1px}
.err{background:#fdecea;color:#8a1c12;border:1px solid #e6a49c;border-radius:10px;padding:10px;margin:8px 0}
.okmsg{background:#e8f5ec;color:#185c2e;border:1px solid #a6d4b4;border-radius:10px;padding:10px;margin:8px 0}
.seats{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;margin:10px 0}
.seat{display:grid;gap:2px;padding:16px 10px;border-radius:12px;border:1px solid #1d3b53;background:#fff;color:#1d3b53;font:inherit;cursor:pointer}
.seat.on{background:#1d3b53;color:#fff}
.seat:disabled{opacity:.45;border-style:dashed}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.chips.scroll{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.chip{flex:none;padding:9px 14px;border-radius:999px;border:1px solid #1d3b53;background:#fff;color:#1d3b53;font:600 15px system-ui,sans-serif;cursor:pointer}
.chip.on{background:#1d3b53;color:#fff}
.chip:disabled{opacity:.5}
.items{display:grid;gap:6px}
.item{display:flex;justify-content:space-between;gap:10px;text-align:left;padding:10px 12px;border:1px solid #e3dccd;border-radius:10px;background:#fff;font:inherit;color:inherit;cursor:pointer}
.item small{display:block;color:#666}
.item .allergen{color:#7a4b00}
.item:disabled{opacity:.5}
.price{font-weight:700;white-space:nowrap}
.line{display:flex;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px solid #f0ebe1}
.tag{font-size:.8rem;border-radius:999px;padding:2px 8px;white-space:nowrap;align-self:center}
.tag.wait{background:#fff4d6;color:#7a5400}
.tag.ok{background:#e8f5ec;color:#185c2e}
.reward{background:#fff8e8;border:1px solid #ecd39c;border-radius:12px;padding:10px 12px;margin:10px 0}
.reward p{margin:4px 0}
.progress{display:grid;gap:6px;margin:12px 0}
progress{width:100%;height:14px;-webkit-appearance:none;appearance:none;border:0;border-radius:999px;background:#ece6da;overflow:hidden}
progress::-webkit-progress-bar{background:#ece6da;border-radius:999px}
progress::-webkit-progress-value{background:#c8902e;border-radius:999px}
progress::-moz-progress-bar{background:#c8902e;border-radius:999px}
.cart{border-top:2px solid #1d3b53;margin-top:12px;padding-top:6px}
.post{padding:8px 0;border-bottom:1px solid #f0ebe1}
.post p{margin:4px 0;color:#444}
details.visit{border-bottom:1px solid #f0ebe1;padding:8px 0}
details.visit summary{display:flex;justify-content:space-between;gap:8px;cursor:pointer}
dialog.panel{border:0;border-radius:16px;padding:16px;width:min(520px,94vw);max-height:90vh;overflow:auto}
dialog.panel::backdrop{background:rgba(0,0,0,.4)}
fieldset{border:1px solid #e3dccd;border-radius:10px;margin:10px 0}
.foot{text-align:center;color:#666;margin-top:20px}
.foot a{color:#1d3b53}
.loading{text-align:center;padding:40px;color:#666}
@media (prefers-color-scheme:dark){
  body{background:#1f1e1c;color:#eee}
  .card,.item,.seat,.chip,.btn.light,.field input,.field select{background:#2b2a27;color:#eee;border-color:#4a463e}
  header h1,h2,.link{color:#9fb7d0}
  .seat.on,.chip.on{background:#9fb7d0;color:#1f1e1c}
  .reward{background:#3a3225;border-color:#6b5a35}
  .muted,.item small,.field small,header p{color:#aaa}
  .line,.post,details.visit{border-color:#3a3834}
}
.chips-ticks{display:flex;flex-wrap:wrap;gap:4px 14px}
.chips-ticks .tick{margin:4px 0}
textarea{font:16px system-ui,sans-serif;padding:11px;border:1px solid #c9c2b6;border-radius:10px;width:100%}
.card.job h2{margin:0}
.item{align-items:center}
.item .grow{flex:1}
.thumb{width:56px;height:56px;border-radius:10px;object-fit:cover;flex:none;overflow:hidden}
.thumb.sample{cursor:help}
.thumb.sample img{width:100%;height:100%;object-fit:cover}
.panel-ph{margin:0 0 10px}
.panel-ph img,img.panel-ph{width:100%;max-height:260px;object-fit:cover;border-radius:12px}
.panel-ph.sample{cursor:help}
