:root {
  /* Rare Cuisine: clean white screens, burnt-orange brand, deep charcoal-green for dark buttons */
  --red: #ea580c;
  --red-dark: #c2410c;
  --red-soft: rgba(234, 88, 12, .12);
  --ink: #1f2a24;
  --ink-2: #f6f7f8;
  --ink-3: #f1f2f4;
  --line-dark: #e3e5e8;
  --cream: #f6f7f8;  /* soft grey for chips, bars and pills; page backgrounds are pure white */
  --paper: #ffffff;
  --text: #1b1f1d;
  --muted: #6b7280;
  --line: #e7e8eb;
  --green: #1f9d55;
  --amber: #e59b13;
  --blue: #2f6fdf;
  --gold: #f2b705;
  --gold-soft: #fff4d1;
  --radius: 16px;
  --shadow: 0 6px 22px rgba(17, 24, 39, .07);
  --serif: "Poppins", "Inter", system-ui, sans-serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--text); background: var(--cream); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.serif { font-family: var(--serif); font-weight: 700; letter-spacing: .01em; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hidden { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .08s, background .15s, box-shadow .15s;
}
.btn:active { transform: scale(.98); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(168, 34, 27, .3); }
.btn-red:hover { background: var(--red-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; border-color: var(--line); color: var(--text); }
.btn-light:hover { border-color: #cfc8bf; }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-green { background: var(--green); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { min-height: 64px; font-size: 19px; border-radius: 16px; }
.btn svg { width: 22px; height: 22px; flex: none; }

.toast-wrap { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 999; display: grid; gap: 10px; }
.toast { background: var(--ink); color: #fff; padding: 16px 24px; border-radius: 14px; font-weight: 600; font-size: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.25); animation: drop .25s ease; display: flex; gap: 12px; align-items: center; }
.toast.err { background: var(--red); }
.toast.ok::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }

.field { display: grid; gap: 7px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.input {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.input { padding: 12px 16px; min-height: 80px; resize: vertical; }
.input:focus { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }

/* ---------- offline bar (assets/js/offline.js) ---------- */
.off-pill { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 990; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  padding: 12px 20px; border-radius: 99px; border: 0; font: 600 15px var(--sans); color: #fff; background: #374151; box-shadow: 0 14px 40px rgba(0,0,0,.25); }
.off-pill i { width: 10px; height: 10px; border-radius: 50%; background: #fff; flex: none; }
.off-pill.is-off { background: #1f2a24; } .off-pill.is-off i { background: #f59e0b; animation: offblink 1.2s ease infinite; }
.off-pill.is-sync { background: var(--blue); } .off-pill.is-bad { background: var(--red); }
.off-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes offblink { 50% { opacity: .3; } }
.off-back { position: fixed; inset: 0; z-index: 995; background: rgba(15,18,20,.5); display: grid; place-items: center; padding: 16px; }
.off-box { width: min(520px, 100%); max-height: 86vh; display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.off-h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.off-h b { font-size: 19px; } .off-h small { display: block; color: var(--muted); margin-top: 3px; }
.off-h button { border: 0; background: var(--ink-3); width: 38px; height: 38px; border-radius: 10px; font-size: 16px; }
.off-list { overflow-y: auto; padding: 8px 14px; }
.off-it { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.off-it small { display: block; color: var(--muted); margin-top: 2px; } .off-it.bad em { color: var(--red); font-style: normal; font-weight: 700; }
.off-act { display: flex; gap: 6px; } .off-act button { height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; }
.off-act .del { color: var(--red); }
.off-empty { text-align: center; color: var(--muted); padding: 26px; }
.off-f { padding: 14px 20px; border-top: 1px solid var(--line); } .off-f button { width: 100%; height: 50px; border: 0; border-radius: 14px; background: var(--red); color: #fff; font-weight: 800; font-size: 16px; }
.off-f button:disabled { opacity: .45; }
.off-note { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 14px; }
body { background: #fff; }
