/* Canefrost Bold, the same tokens and pieces as the POS (/pos/index.html): deep green, cream, paper, one yellow accent.
   CAPS for labels/buttons/one-line headings only. The panel adds a side nav; everything else matches the POS. */
:root { --green:#0C4A33; --green2:#0a3d2a; --cream:#F5E7CF; --paper:#FBF4E6; --yellow:#F5E866; --ink:#1d1a16; --muted:#5f584d; --line:#e3d4b8;
        --red:#a3261b; --amber:#8a5a00; --ok:#1f6b3a; --r:18px; --quick:180ms; --ease:cubic-bezier(.2,.8,.2,1); }
* { box-sizing:border-box; }
html, body { margin:0; background:var(--cream); color:var(--ink); font:15px/1.45 Outfit, system-ui, sans-serif; }
button, input, select, textarea { font:inherit; color:inherit; }
.caps { text-transform:uppercase; letter-spacing:.06em; font-weight:900; }
h1 { font:400 30px/1.1 "DM Serif Display", serif; color:var(--green); margin:0 0 4px; }
h2 { font-size:13px; text-transform:uppercase; letter-spacing:.08em; font-weight:900; color:var(--green); margin:0 0 10px; }
p.sub { margin:0 0 16px; color:var(--muted); max-width:70ch; }
header { background:var(--green); color:var(--cream); display:flex; align-items:center; gap:14px; padding:8px 16px; position:sticky; top:0; z-index:10; }
header img { height:22px; filter:brightness(0) invert(93%) sepia(12%) saturate(500%) hue-rotate(330deg); }
header .where { font-size:12px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; color:var(--yellow); }
.sp { flex:1; }
.shop { display:flex; align-items:center; gap:8px; font-size:12px; font-weight:900; letter-spacing:.07em; text-transform:uppercase; }
.shop button { border-radius:99px; padding:6px 12px; border:2px solid var(--cream); background:none; color:var(--cream); cursor:pointer; font-weight:900; min-height:36px; }
.shop button.on { background:var(--yellow); border-color:var(--yellow); color:var(--green); }
.shell { display:grid; grid-template-columns:220px 1fr; gap:0; max-width:1400px; margin:0 auto; align-items:start; }
nav { position:sticky; top:56px; padding:16px 10px; display:flex; flex-direction:column; gap:2px; }
nav button { background:none; border:0; color:var(--green); text-align:left; padding:10px 12px; border-radius:12px; cursor:pointer; min-height:44px; font-weight:900; font-size:13px; letter-spacing:.07em; text-transform:uppercase; transition:background var(--quick) var(--ease); }
nav button:hover { background:rgba(12,74,51,.08); }
nav button[aria-selected="true"] { background:var(--green); color:var(--yellow); }
nav .group { font-size:11px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); padding:14px 12px 4px; }
main { padding:20px 20px 60px; min-width:0; }
nav.hidden + main { grid-column:1 / -1; } /* signed out: no side nav, the sign-in card takes the whole width */
.card { background:var(--paper); border-radius:var(--r); padding:16px; margin-bottom:16px; box-shadow:0 1px 0 var(--line); }
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin-bottom:16px; }
.stat { background:var(--green); color:var(--cream); border-radius:var(--r); padding:14px 16px; }
.stat b { display:block; font:400 28px/1.1 "DM Serif Display", serif; color:var(--yellow); }
.stat span { font-size:12px; font-weight:900; letter-spacing:.07em; text-transform:uppercase; }
table { width:100%; border-collapse:collapse; } th, td { text-align:left; padding:9px 8px; border-bottom:1px solid var(--line); vertical-align:top; }
th { font-size:12px; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); font-weight:900; }
.scroll { overflow-x:auto; }
input, select, textarea { padding:9px 11px; border:2px solid var(--line); border-radius:12px; background:#fff; min-height:42px; max-width:100%; }
textarea { width:100%; resize:vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline:3px solid var(--yellow); outline-offset:2px; }
input[type=number] { width:110px; } input[type=checkbox] { width:22px; height:22px; accent-color:var(--green); min-height:0; }
label { display:block; font-size:12px; font-weight:900; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); margin-bottom:4px; }
.hint { font-size:12px; color:var(--muted); margin-top:3px; }
.row { display:flex; gap:12px; flex-wrap:wrap; align-items:flex-end; }
.btn { background:var(--green); color:var(--cream); border:0; border-radius:14px; padding:10px 16px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; font-size:13px; cursor:pointer; min-height:44px; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; }
.btn.y { background:var(--yellow); color:var(--green); }
.btn.ghost { background:none; color:var(--green); border:2px solid var(--green); }
.btn.danger { background:none; color:var(--red); border:2px solid var(--red); }
.btn.sm { min-height:36px; padding:6px 10px; font-size:12px; border-radius:10px; }
.btn:disabled { opacity:.45; cursor:not-allowed; }
.pill { display:inline-block; padding:2px 10px; border-radius:99px; font-size:11px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; background:var(--cream); color:var(--green); white-space:nowrap; }
.pill.warn { background:#fbe7a6; color:var(--amber); } .pill.bad { background:#f7d6d2; color:var(--red); } .pill.ok { background:#d4ecd9; color:var(--ok); } .pill.g { background:var(--green); color:var(--yellow); }
.muted { color:var(--muted); } .hidden { display:none !important; } .num { font-variant-numeric:tabular-nums; }
#toast { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); background:var(--green); color:var(--cream); padding:12px 18px; border-radius:14px; max-width:90vw; z-index:30; font-weight:600; }
#toast.err { background:var(--red); color:#fff; }
.ask { position:fixed; inset:0; z-index:40; background:rgba(0,0,0,.45); display:grid; place-items:center; padding:16px; }
.ask .card { max-width:420px; width:100%; margin:0; } .ask p { font-size:17px; margin:0 0 16px; }
#login { max-width:400px; margin:12vh auto; }
.cats { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:12px; }
.cats button { border:2px solid var(--green); background:none; color:var(--green); border-radius:99px; padding:6px 12px; font-weight:900; font-size:12px; letter-spacing:.06em; text-transform:uppercase; cursor:pointer; min-height:36px; }
.cats button[aria-pressed="true"] { background:var(--green); color:var(--yellow); }
.bars { display:flex; align-items:flex-end; gap:4px; height:140px; padding-top:10px; }
.bars div { flex:1; background:var(--green); border-radius:6px 6px 0 0; min-height:2px; position:relative; }
.bars div:hover::after { content:attr(data-t); position:absolute; bottom:100%; left:50%; transform:translateX(-50%); background:var(--ink); color:#fff; font-size:12px; padding:3px 6px; border-radius:6px; white-space:nowrap; }
.switch { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.switch:last-child { border-bottom:0; } .switch div { flex:1; }
.switch b { display:block; }
/* a phone-sized preview of the app's announcement card */
.preview { background:var(--green); color:var(--cream); border-radius:16px; padding:14px 16px; max-width:360px; }
.preview b { display:block; color:var(--yellow); font-size:16px; } .preview small { display:block; margin-top:4px; opacity:.85; }
.lvl td input[type=number] { width:90px; }
@media (max-width:900px) {
  .shell { grid-template-columns:1fr; }
  nav { position:sticky; top:48px; z-index:9; background:var(--green); flex-direction:row; flex-wrap:nowrap; overflow-x:auto; padding:6px 8px; gap:4px; scrollbar-width:none; }
  nav::-webkit-scrollbar { display:none; }
  nav .group { display:none; }
  nav button { color:var(--cream); flex:0 0 auto; white-space:nowrap; padding:8px 12px; min-height:40px; }
  nav button[aria-selected="true"] { background:var(--yellow); color:var(--green); }
  main { padding:14px 12px 40px; }
  h1 { font-size:26px; }
  header { gap:8px; padding:6px 10px; } header img { height:16px; }
}

/* the drink's photo in the Menu table, and the story cards */
td.photo { width:96px; text-align:center; } td.photo img { width:72px; height:90px; object-fit:cover; border-radius:10px; display:block; margin:0 auto 6px; } td.photo .nophoto { display:block; width:72px; height:90px; margin:0 auto 6px; border-radius:10px; background:var(--cream); font-size:11px; color:var(--muted); line-height:90px; }
.story textarea { width:100%; } .story details { margin-top:8px; } .story summary { cursor:pointer; padding:6px 0; }
code { background:var(--cream); border-radius:6px; padding:1px 6px; font-size:12px; }
