/* Staff and owner pages: plain, large, one column, made for a phone held in one hand. */
:root {
  --ink: #0f172a; --muted: #64748b; --line: #e2e8f0; --bg: #f8fafc; --card: #ffffff;
  --gold: #b45309; --gold-soft: #fef3c7; --ok: #047857; --primary: #0f172a; --danger: #b91c1c;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.45 'Plus Jakarta Sans', system-ui, sans-serif;
}
header.top {
  position: sticky; top: 0; z-index: 5; background: var(--card); border-bottom: 1px solid var(--line);
  padding: 10px 16px calc(10px) 16px; display: flex; align-items: center; gap: 10px;
}
header.top h1 { font-size: 17px; margin: 0; flex: 1; }
nav.tabs { display: flex; gap: 6px; padding: 8px 16px; background: var(--card); border-bottom: 1px solid var(--line); overflow-x: auto; }
nav.tabs button { flex: none; }
main { max-width: 640px; margin: 0 auto; padding: 12px 16px 96px; }
h2 { font-size: 19px; margin: 0 0 4px; }
h3 { font-size: 15px; margin: 0 0 8px; }
p { margin: 4px 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.ok { color: var(--ok); font-weight: 700; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 0 0 12px; }
.card.sticky { position: sticky; bottom: 8px; box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12); }
label { display: block; font-size: 13px; color: var(--muted); margin: 8px 0; }
label.check { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; min-height: 40px; }
label.check input { width: 22px; height: 22px; accent-color: var(--gold); }
input:not([type=checkbox]):not([type=file]), textarea, select {
  display: block; width: 100%; margin-top: 4px; font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fff; min-height: 44px;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.btn, button.tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: 600 14px/1 'Plus Jakarta Sans', system-ui, sans-serif; text-decoration: none; cursor: pointer; margin: 4px 6px 4px 0;
}
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); width: 100%; }
.btn.ghost { background: transparent; }
.btn.small { min-height: 36px; font-size: 13px; }
.btn.danger { color: var(--danger); }
.btn[disabled] { opacity: 0.6; }
button.tab.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line); background: #fff;
  font: 600 13px/1 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); cursor: pointer; }
.chip.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.hours { display: grid; gap: 6px; margin-top: 6px; }
.hrow { display: grid; grid-template-columns: 84px 1fr 1fr; gap: 8px; align-items: center; }
.hrow input[type=time] { margin: 0; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.photos figure { margin: 0; position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--line); }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos .x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 16px; border: 0;
  background: rgba(15, 23, 42, 0.75); color: #fff; cursor: pointer; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line);
  width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.row:last-child { border-bottom: 0; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 10px; background: var(--line); color: var(--ink); white-space: nowrap; }
.tag.ok { background: #d1fae5; color: var(--ok); }
.tag.warn { background: var(--gold-soft); color: var(--gold); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
td, th { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; transition: 0.2s;
  background: var(--primary); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 20; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
details summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 8px 0; min-height: 40px; }
