/* Austin's Parties - staff pages (touch friendly: big targets, large text) */
@font-face { font-family: 'AP Lilita'; src: url('LilitaOne.woff2') format('woff2'); }
:root { --head: 'AP Lilita', 'Arial Black', sans-serif; --body: 'Segoe UI', Roboto, Arial, sans-serif;
  --bg: #f3f0f7; --panel: #fff; --ink: #1f1830; --muted: #6b6280; --line: #e2dbea; --brand: #2a0a52; --accent: #6a1fb0; --accentBg: #f1e8fb;
  --clean: #0d7fa6; --cleanBg: #e2f4fa; --ready: #1d9a4b; --readyBg: #e5f6ea; --gold: #f5c518; --red: #c62828; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.45 var(--body); }
a { color: var(--accent); }
header.top { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 10px max(16px, env(safe-area-inset-left)); background: var(--brand); color: #fff; }
header.top .brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--head); font-size: 24px; }
header.top .brand img { height: 32px; }
header.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
header.top nav a { color: #f1e8ff; text-decoration: none; font-weight: 700; padding: 10px 14px; border-radius: 10px; }
header.top nav a.on, header.top nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
header.top .who { margin-left: auto; font-size: 14px; }
header.top .who a, header.top .who .link { color: #ffd6f1; }
main { padding: 20px max(16px, env(safe-area-inset-left)) 40px; max-width: 1400px; margin: 0 auto; }
h1 { font-size: 26px; margin: 0 0 10px; } h2 { font-size: 19px; margin: 18px 0 10px; } h3 { font-size: 16px; margin: 16px 0 8px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; min-width: 0; }
.card.narrow { max-width: 460px; margin: 40px auto; }
.login { text-align: center; } .login form { text-align: left; } .biglogo { width: 220px; }
.cols2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .cols2 { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; margin: 12px 0; }
input, select, textarea { font: inherit; display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); min-height: 48px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
input.num { width: 110px; display: inline-block; margin-left: 8px; }
label.check { display: flex; align-items: center; gap: 10px; } label.check input { width: auto; min-height: 0; margin: 0; }
.btn { font: inherit; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 0; background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--accent); border: 2px solid var(--line); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn.danger { background: var(--red); }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
form.inline { display: inline; } form.inline input { display: inline-block; width: auto; }
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; background: var(--readyBg); color: #135c2e; }
.flash.err { background: #fde7e7; color: #8a1518; }
.hint { color: var(--muted); font-size: 14px; } small.hint { display: block; font-weight: 400; margin-top: 4px; }
.muted { color: var(--muted); }
.pill { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; background: var(--accentBg); color: var(--accent); border-radius: 999px; padding: 3px 10px; vertical-align: middle; }
.count { font-size: 14px; color: var(--muted); font-weight: 700; }
.empty { color: var(--muted); }
/* bookings */
.dayhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.dayhead h1 { margin: 0 0 0 8px; } .daypick input { width: auto; margin: 0; }
.blist { display: grid; gap: 8px; }
.bk { display: grid; grid-template-columns: 100px auto 1fr auto auto; align-items: center; gap: 12px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 14px; }
.bk.sel { border-color: var(--accent); background: var(--accentBg); }
.bk .tm { font-weight: 800; } .bk .tm small { display: block; font-weight: 600; color: var(--muted); }
.bk .nm { font-family: var(--head); font-size: 22px; min-width: 0; overflow-wrap: anywhere; }
.bk .note { display: block; font-family: var(--body); font-size: 13px; color: var(--muted); }
.bk .rm { font-size: 14px; font-weight: 700; color: var(--clean); }
.bk img.lg, label img.lg { height: 36px; max-width: 90px; object-fit: contain; }
.bk:not(:has(img.lg)) { grid-template-columns: 100px 1fr auto auto; }
.age { font-family: var(--head); font-size: 15px; background: var(--gold); color: var(--brand); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.seg { display: flex; gap: 8px; } .seg label { flex: 1; margin: 0; display: flex; align-items: center; gap: 10px; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.seg input { width: auto; min-height: 0; margin: 0; } .seg label:has(input:checked) { border-color: var(--accent); background: var(--accentBg); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .row3 { display: grid; grid-template-columns: 1fr 1fr 160px auto; gap: 12px; align-items: end; }
@media (max-width: 600px) { .row2, .row3 { grid-template-columns: 1fr; } .bk { grid-template-columns: 1fr auto !important; } }
.actions { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
form.delete { margin-top: 18px; padding-top: 14px; border-top: 2px dashed var(--line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } form.delete label { margin: 0; }
.tbl { width: 100%; border-collapse: collapse; } .tbl th, .tbl td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl td input:not([type=checkbox]), .tbl td select { margin: 0; } .tbl tr.off { opacity: .5; }
.log { max-height: 600px; overflow: auto; font-size: 14px; } .log div { padding: 6px 0; border-bottom: 1px solid var(--line); }
.screens .addr { font-family: Consolas, monospace; font-size: 14px; background: var(--accentBg); padding: 8px 12px; border-radius: 10px; display: block; overflow-wrap: anywhere; margin-top: 6px; text-decoration: none; }
.screens .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.screens .grid > div { border: 2px solid var(--line); border-radius: 14px; padding: 14px; }
.screens b { font-size: 17px; }
/* promos */
.inline-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; } .inline-row label { margin: 0; }
.plist { display: grid; gap: 8px; }
.pr { display: grid; grid-template-columns: 128px 1fr auto auto; align-items: center; gap: 12px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 14px; }
.pr.sel { border-color: var(--accent); background: var(--accentBg); }
.pr .nm { font-weight: 700; min-width: 0; overflow-wrap: anywhere; } .pr .nm small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; margin-top: 2px; }
.th { width: 128px; height: 72px; object-fit: cover; border-radius: 8px; background: #120d1a; display: block; }
.th.tx { display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px; font-family: var(--head); font-size: 14px; line-height: 1.1; color: #ffd23f; background: linear-gradient(180deg, #5a1690, #2a0a52); overflow: hidden; }
.th.tx.g { color: #fff; background: linear-gradient(160deg, #1b3f8f, #10204f); }
.st { font-size: 13px; font-weight: 800; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.st.on { background: var(--readyBg); color: #135c2e; } .st.later { background: #fff4d1; color: #7a5300; } .st.off { background: #eee; color: #666; }
.note2 { margin-top: 16px; padding: 12px 14px; border-left: 4px solid var(--gold); background: #fffaf0; border-radius: 0 10px 10px 0; font-size: 14px; }
label.cur { font-weight: 500; } label.cur .th { width: 96px; height: 54px; object-fit: contain; }
@media (max-width: 600px) { .pr { grid-template-columns: 96px 1fr; } .pr .th { width: 96px; height: 54px; } }
