/* Shared by the admin board (index.html) and the cleaner's list (cleaner.html). */
:root {
  --paper: #edf1f0; --card: #fff; --ink: #15211e; --muted: #5b6965; --line: #d3dcd9; --chip: #e5ebe9;
  --green: #17694f; --green-soft: #d9eee5; --on-green: #fff;
  --amber: #8f4405; --amber-soft: #fdebd0;
  --yellow: #f4c430;  /* the "maybe arriving" dot; too light to stand alone, so it is drawn with a rim (see index.html) */
  --red: #a4262c; --red-soft: #fbe3e3;
  --shadow: 0 1px 2px rgb(21 33 30 / .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101614; --card: #19211f; --ink: #e7edeb; --muted: #93a29d; --line: #2b3734; --chip: #252f2c;
    --green: #6fd0ae; --green-soft: #1b382f; --on-green: #0c1a16;
    --amber: #f3b76e; --amber-soft: #3a2913;
    --yellow: #f2d25c;
    --red: #ff9f9f; --red-soft: #3d1e1e;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--green); }
[hidden] { display: none !important; }

button, input, select, textarea { font: inherit; color: inherit; }
button, .button, input, select, textarea { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; }
button, .button { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; color: var(--ink); }
button:hover, .button:hover { border-color: var(--muted); }
button:disabled { opacity: .5; cursor: default; }
button.primary { background: var(--green); border-color: var(--green); color: var(--on-green); font-weight: 600; }
button.danger { color: var(--red); }
button.primary.danger { background: var(--red); border-color: var(--red); color: var(--on-green); }
button.plain { border: 0; background: none; padding: 0; color: var(--green); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
textarea { width: 100%; min-height: 64px; resize: vertical; }

.muted { color: var(--muted); }
.tag { display: inline-block; border-radius: 99px; padding: 1px 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag.arriving { background: var(--amber-soft); color: var(--amber); }
.tag.required { background: var(--chip); color: var(--ink); }
.tag.warn { background: var(--red-soft); color: var(--red); }

.bar { height: 10px; border-radius: 99px; background: var(--chip); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width .3s; }

.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { position: relative; }
.thumb img { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--chip); }
.thumb button { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; padding: 0; border-radius: 50%; line-height: 1; }

#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: calc(100vw - 32px); z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; box-shadow: 0 4px 16px rgb(0 0 0 / .25); }
#toast[popover] { inset: auto auto 20px 50%; margin: 0; border: 0; }

dialog { border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); padding: 20px;
  width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; }
dialog::backdrop { background: rgb(10 16 14 / .5); }
dialog h2 { font-size: 19px; margin-bottom: 4px; }
dialog h3 { font-size: 14px; margin: 18px 0 6px; }
dialog label.field { display: block; margin-top: 12px; font-weight: 600; font-size: 13px; }
dialog label.field > input, dialog label.field > select, dialog label.field > textarea { display: block; width: 100%; margin-top: 4px; font-weight: 400; font-size: 15px; }
dialog label.check { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
dialog .actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 20px; }
dialog .actions .left { margin-right: auto; }
dialog.ask { width: min(420px, calc(100vw - 24px)); }
dialog.ask h2 { margin-bottom: 8px; }
dialog .error { color: var(--red); font-size: 13px; font-weight: 600; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
