.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 40px; display: grid; gap: 14px; }
.phead h1 { font-size: 24px; margin: 8px 0 0; }
.phead p { margin: 0; }
.stack { display: grid; gap: 12px; margin-top: 12px; }
.rowb { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.small { font-size: 13px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: var(--muted); }
.dot.free { background: var(--accent); } .dot.busy { background: var(--busy); } .dot.req { background: #5b8def; } .dot.off { background: var(--line); }

.screens { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.scr { border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; text-align: center; background: var(--panel2); min-height: 64px;
       display: grid; align-content: center; gap: 2px; font: inherit; color: inherit; }
.scr b { font-size: 15px; }
.scr span { font-size: 12px; color: var(--muted); }
.scr.free { border-color: var(--accent); cursor: pointer; }
.scr.free span { color: var(--accent); }
.scr.busy { border-color: var(--busy); }
.scr.requested { border-color: #5b8def; }
.scr.unavailable { opacity: .55; }
.scr.picked { background: var(--accent); color: #07140d; }
.scr.picked span { color: #07140d; }

.tabs { display: flex; gap: 6px; }
.tab { flex: 1; font-size: 14px; }
.tab.on { background: var(--accent); border-color: var(--accent); color: #07140d; font-weight: 600; }
.status { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--panel2); margin: 10px 0; }
.status.ok { border-color: var(--accent); }

.ticketbox { border-top: 1px solid var(--line); padding-top: 12px; }
.ticket { font: 700 22px/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 2px; margin-top: 6px; user-select: all; }

.shoprow { display: grid; grid-template-columns: 52px 1fr auto auto; align-items: center; gap: 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); }
.shoprow.soldout { opacity: .55; }
#shopCard h3 { margin: 12px 0 2px; font-size: 14px; color: var(--muted); }
.pthumb { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--panel2); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); }
.pthumb img { width: 100%; height: 100%; object-fit: cover; }
.linkbtn { background: none; border: none; color: var(--muted); text-decoration: underline; padding: 6px 0; cursor: pointer; font: inherit; }

.shopgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 6px 0 10px; }
.prod { display: flex; flex-direction: column; gap: 3px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); }
.prod .pthumb { width: 100%; height: 96px; border-radius: 8px; font-size: 28px; }
.prod .pname { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.pstate { font-size: 12px; }
.pstate.yes { color: #3fb97a; }
.pstate.no { color: var(--muted); }
.prod.soldout { opacity: .55; }
.shopfilter { display: flex; gap: 8px; margin: 8px 0; }
.shopfilter input { flex: 1; min-width: 0; }

.timealert { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 16px; background: #b45309; color: #fff; font-weight: 700; box-shadow: 0 4px 18px rgba(0,0,0,.45); }
.timealert[hidden] { display: none; }
.timealert button { background: #fff; color: #7c2d12; border: 0; border-radius: 10px; padding: 8px 16px; font-weight: 800; }

body.norequests #reqForm, body.norequests #extraForm { display: none !important; }
