/*
  The look. The one stylesheet. The slice "The dashboard and the look".

  Answered at /the-look.css by app/the_look.py. It holds no data, no hotel's
  name, no person's name, no year and nothing that differs by person. Nothing
  in it is a gate: hiding a thing here is never how a page keeps it from
  someone (the security review of that slice's plan, finding 12). The server
  decides what is drawn.

  From the two concepts of 3 November and the demo of 27 October:
  a dark green menu, white cards, bold serif type for room numbers and
  headings, coloured labels. Narrow, not small: columns and tiles only as
  wide as they need, a little larger all round than the plain pages.
  The type is the machine's own: nothing is loaded.
*/

:root {
  --ink: #1a211d;
  --muted: #5d6b66;
  --faint: #8b97a2;
  --line: #e3e8e5;
  --bg: #f3f5f2;
  --card: #fff;
  --g9: #0a3a30;
  --g8: #0d4f41;
  --g7: #0f6e56;
  --g2: #cfe8de;
  --g1: #e7f4ee;
  --amber: #a86a0f;
  --amber1: #fdf1dc;
  --red: #b43a2a;
  --red1: #fde8e5;
  --blue: #245aa0;
  --blue1: #e5eefa;
  --r: 14px;
  --rs: 9px;
  --sh: 0 1px 2px rgba(16, 40, 32, .06), 0 4px 14px rgba(16, 40, 32, .06);
  --sh2: 0 12px 40px rgba(16, 40, 32, .18);
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}
button, input, select, textarea { font: inherit; color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0 0 8px; color: var(--g8); }
h1 { font-size: 32px; color: var(--ink); }
h2 { font-size: 23px; margin-top: 18px; }
h3 { font-size: 18px; }
a { color: var(--g7); }
p { margin: 6px 0; }

/* ---------- the page and the side menu ---------- */
body:has(> nav) {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}
body > nav {
  background: var(--g8);
  color: #fff;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body > nav .brand {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0 12px 2px;
}
body > nav p { font-size: 13px; color: rgba(255, 255, 255, .62); margin: 0 12px 10px; }
body > nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
body > nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .86);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
}
body > nav a:hover, body > nav a:focus-visible { background: rgba(255, 255, 255, .1); color: #fff; outline: none; }
body > nav .ico { display: inline-block; width: 24px; text-align: center; }
.badge {
  margin-left: auto;
  background: #f5c96a;
  color: #3d2a00;
  border-radius: 999px;
  font-size: 12px;
  padding: 1px 8px;
  font-weight: 700;
}
body > nav form { margin-top: auto; padding: 10px 12px 0; }
body > nav form button {
  background: transparent;
  color: rgba(255, 255, 255, .8);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--rs);
  padding: 6px 12px;
  cursor: pointer;
}

main { padding: 24px 28px 48px; min-width: 0; max-width: 74em; }
main.wide { max-width: none; }
main.alone {
  max-width: 420px;
  margin: 60px auto;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--sh2);
  padding: 28px;
}
main.alone input { width: 100%; }

/* ---------- plain pages, wearing the look ---------- */
main > table, main section > table:not(.team-board), main > form, main > ul:not(.stats):not(.cards):not(.checks) {
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--sh);
}
main > form, main > ul:not(.stats):not(.cards):not(.checks) { padding: 12px 16px; }
main > ul:not(.stats):not(.cards):not(.checks) { padding-left: 34px; }
table { border-collapse: collapse; }
/* A table inside a form straight under the page, as on Room clean times,
   scrolls inside itself too, so no page is wider than a phone: the dashboard's
   brief, item 8, "below one width every page is one column, by the stylesheet
   alone". Added by the wiring chat, 10 November, when the phone test first ran. */
main > table, main > form > table { width: auto; max-width: 100%; display: block; overflow-x: auto; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; }
th { font-size: 14px; color: var(--muted); font-weight: 600; }
input[type="text"], input[type="password"], input:not([type]), select, textarea {
  border: 1.5px solid var(--line);
  border-radius: var(--rs);
  padding: 7px 10px;
  background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--g7); }
/* A box never wider than the space it is in, such as the Rooms page's box of
   room numbers on a phone (added by the wiring chat, 10 November, for the
   dashboard's brief, item 8, as above). */
textarea { max-width: 100%; }
button, .btn {
  display: inline-block;
  border: 1px solid #c6d0cb;
  background: #fff;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: var(--rs);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .btn:hover { border-color: var(--g7); }
button.pri, main.alone button { background: var(--g7); border-color: var(--g7); color: #fff; }
button.pri:hover { background: var(--g8); }
p[role="alert"] {
  background: var(--g1);
  border: 1px solid var(--g2);
  color: var(--g8);
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 600;
}
form { margin: 4px 0; }
form p { margin: 4px 0; }
label { font-weight: 500; }

/* ---------- Today ---------- */
.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.greeting { font-size: 20px; font-weight: 700; margin: 0; }
.today { color: var(--muted); margin: 0; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.actions form, .actions p { margin: 0; }
details.upload { position: relative; }
details.upload > summary { list-style: none; }
details.upload > summary::-webkit-details-marker { display: none; }
details.upload .items {
  position: absolute;
  right: 0;
  z-index: 30;
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--sh2);
  padding: 14px;
  min-width: 300px;
}

.stats { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; padding: 0; margin: 0 0 16px; }
.stats li {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--sh);
  padding: 10px 15px;
  min-width: 132px;
  color: var(--muted);
  font-size: 14px;
}
.stats b { display: block; font-size: 27px; color: var(--ink); line-height: 1.1; }

.changes {
  background: var(--amber1);
  border: 1px solid #f1d7a6;
  border-radius: var(--r);
  padding: 10px 16px;
  margin-bottom: 14px;
  max-width: 760px;
}
.changes h2 { margin-top: 4px; color: #6b4a08; }
.cards { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; max-width: 760px; }
.chg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--sh);
  padding: 12px 14px;
}
.chg .rm { font-family: var(--serif); font-size: 21px; }
.chg .when { margin-left: auto; color: var(--faint); font-size: 14px; }

.pool {
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 8px 14px 10px;
  margin-bottom: 14px;
  outline: 2px dashed transparent;
  outline-offset: -4px;
}
.pool h2 { font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 4px 0; font-weight: 700; }
.chips, .crew { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 6px 0; }
.sc {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 3px 4px 3px 3px;
  font-size: 14px;
  font-weight: 600;
}
.sc[draggable="true"] { cursor: grab; }
.av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--g7);
}
.crew {
  border: 1.5px dashed #cfd8d3;
  border-radius: 10px;
  padding: 6px;
  min-height: 40px;
  background: rgba(255, 255, 255, .65);
}

.board { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.queue {
  width: 392px;
  max-width: 100%;
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 10px 12px;
  outline: 2px dashed transparent;
  outline-offset: -4px;
}
.queue h2, .teams h2 { margin: 0; font-size: 21px; }
.teams { flex: 1 1 0; min-width: 0; }
.teams > h2 { margin: 0 0 8px; }
.colh { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; margin-bottom: 8px; position: relative; }
.team-board { border-collapse: separate; border-spacing: 12px 0; margin-left: -12px; }
.team-board thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.team-board td.col {
  width: 252px;
  min-width: 252px;
  background: #eaeeeb;
  border-radius: var(--r);
  padding: 10px;
  border: 0;
  vertical-align: top;
  outline: 2px dashed transparent;
  outline-offset: -4px;
}
.tname { font-family: var(--serif); font-size: 21px; color: var(--g8); margin: 0; line-height: 1.1; }
.mins { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.over { outline-color: var(--g7) !important; background: var(--g1) !important; }

.qsec { border-radius: 12px; padding: 8px; margin: 10px 0; }
.qsec.held { background: #fdecea; }
.qsec.checkout { background: #fdf1e1; }
.qsec.midstay { background: #e7f0fb; }
.qsec.basic { background: #e3f3ec; }
.qsec.other { background: #eef0ef; }
.qh { display: flex; align-items: center; gap: 7px; font-family: var(--sans); font-weight: 700; font-size: 14px; color: var(--ink); margin: 0 0 8px; }
.qh .d { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--faint); }
.qsec.held .d { background: #d95a4a; }
.qsec.checkout .d { background: #e08a1e; }
.qsec.midstay .d { background: #3a78c9; }
.qsec.basic .d { background: #2a9d72; }
.qh .n { margin-left: auto; background: rgba(255, 255, 255, .9); border-radius: 999px; font-size: 12px; padding: 1px 9px; }
.qgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.hint { font-size: 13px; color: var(--faint); }

.rc {
  position: relative;
  background: #fff;
  border-radius: 11px;
  box-shadow: var(--sh);
  padding: 9px 30px 9px 11px;
  margin-bottom: 8px;
  border-left: 4px solid var(--g7);
}
.qgrid .rc { margin: 0; }
.rc[draggable="true"] { cursor: grab; }
.rc.dragging { opacity: .45; }
.rc.k-held { border-left-color: #d95a4a; }
.rc.k-checkout { border-left-color: #e08a1e; }
.rc.k-midstay { border-left-color: #3a78c9; }
.rc.k-basic { border-left-color: #2a9d72; }
.rc.k-break { border-left-color: #c9a227; background: #fffbea; }
.rc.k-maint { border-left-color: #1f4e8c; }
.rc.k-bc, .rc.k-job { border-left-color: var(--blue); }
.row1 { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; }
.num { font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.row1 input[type="checkbox"] { width: 17px; height: 17px; margin: 0 4px 0 0; vertical-align: middle; }
.jn { font-weight: 700; font-size: 15px; }
.meta { font-size: 13px; color: var(--muted); margin: 3px 0 0; }
.meta .tm { color: var(--ink); }
.kb {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
  background: #eef0ef;
  color: var(--muted);
}
.kb.held { background: #fde3df; color: #b43a2a; }
.kb.checkout, .kb.early { background: #fde9cf; color: #a35a00; }
.kb.midstay, .kb.ext { background: #dceafb; color: #245aa0; }
.kb.basic { background: #d6efe2; color: #146a4c; }
.kb.bc, .kb.job { background: #e6eef9; color: #245aa0; }
.kb.maint { background: #e1e8f3; color: #1f4e8c; }
.kb.break { background: #fff1c2; color: #7a5a00; }
.chips .chip, .rc .chip {
  display: inline-block;
  font-size: 12px;
  border-radius: 999px;
  padding: 2px 9px;
  font-weight: 600;
  margin: 3px 4px 0 0;
  white-space: nowrap;
}
.rc .chips { margin: 4px 0 0; display: block; }
.c-arr { background: var(--blue1); color: var(--blue); }
.c-ns { background: var(--amber1); color: var(--amber); }
.c-pl { background: #f3ead9; color: #7a5a1c; }
.c-ca { background: #eef0ef; color: var(--muted); }
.c-st { background: var(--g1); color: var(--g7); }

/* The three dots: a plain disclosure, which works with no script. */
details.menu { position: absolute; right: 3px; bottom: 3px; }
.colh details.menu, .sc details.menu { position: relative; right: auto; bottom: auto; }
details.menu > summary {
  list-style: none;
  cursor: pointer;
  color: var(--faint);
  font-size: 20px;
  line-height: 1;
  padding: 1px 6px 4px;
  border-radius: 7px;
}
details.menu > summary::-webkit-details-marker { display: none; }
details.menu > summary:hover, details.menu[open] > summary { background: rgba(0, 0, 0, .07); color: var(--ink); }
details.menu .items {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 40;
  min-width: 220px;
  max-width: 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(16, 40, 32, .16);
  padding: 6px;
}
details.menu .items form { margin: 0; }
details.menu .items button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}
details.menu .items button:hover, details.menu .items button:focus { background: var(--g1); outline: none; }
details.menu .items label { display: block; font-size: 13px; padding: 4px 10px 0; }
details.menu .items select, details.menu .items input { margin: 4px 10px; max-width: calc(100% - 20px); }
details.menu .items h3 { font-size: 15px; padding: 4px 10px 0; }

.drop-says {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--g9);
  color: #fff;
  padding: 11px 18px;
  border-radius: 12px;
  box-shadow: var(--sh2);
  z-index: 90;
  max-width: 90vw;
}

/* ---------- the upload's answer ---------- */
.checks { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; max-width: 520px; }
.checks li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--g1);
  border: 1px solid var(--g2);
  color: var(--g8);
  font-weight: 600;
}
.tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--g7);
  color: #fff;
  font-size: 12px;
}

/* ---------- unfinished work: minutes and initials side by side, reason below ---------- */
form.ending { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: flex-end; }
form.ending .side { order: 1; }
form.ending .below { order: 2; flex-basis: 100%; }
form.ending .below textarea { width: 100%; min-height: 54px; }
form.ending .go { order: 3; flex-basis: 100%; }
form.ending .side input { width: 100px; }

/* ---------- coming up and roster ---------- */
main.wide > table { width: 100%; }
td[data-colour] select { background: rgba(255, 255, 255, .85); }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 6px; vertical-align: -2px; background: #eef0ef; }

/* ---------- the daily sheet, on screen ---------- */
body.sheets { display: block; padding: 20px; background: #fff; }
.sheet { margin-bottom: 28px; overflow-x: auto; }
.sheet caption { font-family: var(--serif); font-size: 24px; text-align: left; padding: 4px 0 8px; }
.sheet table { border-collapse: collapse; min-width: 560px; }
.sheet th, .sheet td { border: 1px solid #555; }

/* ---------- the phone: one column, by the stylesheet alone ---------- */
@media (max-width: 760px) {
  body:has(> nav) { display: block; }
  body > nav { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 8px; }
  body > nav p { display: none; }
  body > nav .brand { display: block; width: 100%; margin: 4px 8px; }
  body > nav ul { flex-direction: row; overflow-x: auto; flex-wrap: nowrap; width: 100%; }
  body > nav a { white-space: nowrap; padding: 8px 10px; }
  body > nav form { margin: 0; padding: 4px 8px; }
  main { padding: 14px; }
  main.alone { margin: 16px; }
  .board { display: block; }
  .queue { width: auto; margin-bottom: 14px; }
  .team-board, .team-board tbody, .team-board tr, .team-board td.col { display: block; width: auto; min-width: 0; }
  .team-board { margin: 0; border-spacing: 0; }
  .team-board td.col { margin-bottom: 12px; }
  .qgrid { grid-template-columns: minmax(0, 1fr); }
  .stats li { min-width: 0; flex: 1 1 40%; }
  main > table, main.wide > table { display: block; overflow-x: auto; }
  .chg .when { margin-left: 0; }
  details.upload .items, details.menu .items { min-width: 0; width: min(300px, 86vw); }
}

/*
  ==========================================================================
  STEP 11, PART 3A, 18 NOVEMBER: THE PAGES OF DRAWING 8.
  Carried from the drawing's own <style> block (the step 11 drawing 8 file
  in the phase E dashboards checkpoint folder), adapted to the pages' real
  markup. No four digits stand together in this file, so every screen width
  the drawing wrote in px is written here in em, where 1em is 16px in a
  media query: the same widths, divided by sixteen. Every width and colour the drawing set with an
  inline style= is a fixed class here: the page security setting forbids
  inline styles and is not loosened (the security review of the plan,
  finding 8). Bars take one of twenty-one fixed widths, w-0 to w-100, and
  their numbers are always printed beside them. What opens and closes with no
  script is a radio button or a <details> and the :has() rules below.
  The pages wearing this are main.dash-page; the menu's look is everyone's.
  ==========================================================================
*/

:root { --r: 16px; --rs: 10px; --gap: 20px; --new: #7a4fc2; --new1: #f4eefb;
  --sh: 0 1px 2px rgba(16, 40, 32, .05), 0 6px 18px rgba(16, 40, 32, .06);
  --sh2: 0 18px 50px rgba(16, 40, 32, .16); }
html { font-size: 16px; }
@media (min-width: 112.5em) { html { font-size: 17px; } :root { --gap: 24px; } }
@media (min-width: 143.75em) { html { font-size: 18px; } :root { --gap: 28px; } }

/* the menu, as drawn */
body:has(> nav) { grid-template-columns: 15.5rem minmax(0, 1fr); }
body > nav { padding: 1.4rem .9rem; gap: .25rem; }
body > nav .brand { font-size: 1.55rem; margin: 0 .75rem .1rem; color: #fff; }
body > nav p.who { font-size: .8rem; color: rgba(255, 255, 255, .62); margin: 0 .75rem .8rem; }
body > nav a { padding: .62rem .75rem; font-size: .94rem; gap: .55rem; }
body > nav .ico { width: 1.5rem; }

/* the page */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main.dash-page { max-width: none; padding: 2rem 2.5rem 2.5rem; font-size: 1rem; }
main.dash-page h2 { margin: 0; }
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: calc(var(--gap) + 6px) var(--gap); align-items: start; }
.s12 { grid-column: span 12; } .s8 { grid-column: span 8; } .s6 { grid-column: span 6; }
.s4 { grid-column: span 4; } .s2 { grid-column: span 2; }
.dash > * { min-width: 0; }
.dash .head { margin: 0; align-items: flex-end; gap: 1rem; }
.dash .greeting { font-size: 1.45rem; font-weight: 700; }
.dash .today { color: var(--muted); margin-top: .1rem; }
.dash .actions { gap: .6rem; }
.btn { padding: .55rem 1rem; border-radius: var(--rs); font-size: .94rem; white-space: nowrap; }
.btn.pri, button.btn.pri { background: var(--g7); border-color: var(--g7); color: #fff; }
.btn.sm { padding: .25rem .7rem; font-size: .82rem; }
.btn.on { background: var(--g1); border-color: var(--g7); color: var(--g8); }
form.inline { display: inline-flex; gap: .4rem; align-items: center; margin: 0; flex-wrap: wrap; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 1.25rem 1.4rem; min-width: 0; }
.ch { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ch h2 { font-size: 1.45rem; margin: 0; }
.ch h3 { font-size: 1.15rem; margin: 0; }
.ch a { font-weight: 600; font-size: .92rem; }
.ch .links2 { display: flex; gap: .8rem; flex-wrap: wrap; }
.label { font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin: 0; }
.dash .hint { font-size: .82rem; color: var(--faint); }
.dash .meta { font-size: .82rem; color: var(--muted); }
.dash p[role="alert"] { margin: 0; }

/* the counts across the top */
main.dash-page .stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); margin: 0; }
main.dash-page .stats li { min-width: 0; padding: 1rem 1.2rem; font-size: .88rem; border-radius: 14px; }
main.dash-page .stats b { font-size: 2rem; }
.card .stats li { background: var(--bg); box-shadow: none; }

/* bars, of fixed widths only */
.bar { height: .5rem; border-radius: 999px; background: #dde5e0; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--g7); border-radius: 999px; }
.w-0 { width: 0; } .w-5 { width: 5%; } .w-10 { width: 10%; } .w-15 { width: 15%; } .w-20 { width: 20%; }
.w-25 { width: 25%; } .w-30 { width: 30%; } .w-35 { width: 35%; } .w-40 { width: 40%; } .w-45 { width: 45%; }
.w-50 { width: 50%; } .w-55 { width: 55%; } .w-60 { width: 60%; } .w-65 { width: 65%; } .w-70 { width: 70%; }
.w-75 { width: 75%; } .w-80 { width: 80%; } .w-85 { width: 85%; } .w-90 { width: 90%; } .w-95 { width: 95%; }
.w-100 { width: 100%; }
.prog { margin: .6rem 0 .2rem; }

/* "Do these first", one row that scrolls sideways */
.first { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 1.25rem 1.4rem; border-top: 5px solid var(--red); }
.first h2 { color: var(--red); }
.first.folded .ch, .fd-box.folded .ch { margin-bottom: 0; }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: .8rem; }
.strip.hs { display: flex; overflow-x: auto; gap: .8rem; padding-bottom: .5rem; scroll-snap-type: x proximity; }
.must { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: .3rem 1rem; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; background: #fff; }
.strip.hs > .must { flex: 0 0 min(22rem, 85%); scroll-snap-align: start; }
.must .num { font-size: 1.4rem; }
.must .why { font-size: .88rem; color: var(--muted); }
.must > .btn, .must > form { grid-column: 2; justify-self: start; }
.must.bad { background: var(--red1); border-color: #f3c5bd; }
.err { display: inline-block; background: var(--red1); color: var(--red); font-weight: 700; font-size: .72rem; border-radius: 999px; padding: .08rem .55rem; letter-spacing: .03em; }
.carry { background: var(--amber1); color: var(--amber); font-weight: 700; font-size: .72rem; border-radius: 999px; padding: .08rem .55rem; }
.first > .hint { margin: .6rem 0 0; }

/* the front desk's notice on the Overview */
main.dash-page .changes { max-width: none; margin: 0; padding: 1.1rem 1.3rem; }
main.dash-page .changes h2 { font-size: 1.35rem; }
main.dash-page .changes .ch { margin-bottom: .5rem; }
.changes .sub { margin: .6rem 0 0; color: rgb(91, 71, 24); font-size: .92rem; }

/* Today: three columns across the width */
.boardw { display: grid; grid-template-columns: 19rem minmax(18rem, 26rem) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.rail { display: grid; gap: var(--gap); }
.boardw .queue { width: auto; padding: 1.1rem 1.2rem; }
.teamsw { min-width: 0; }
.teamsw .pool { margin-bottom: var(--gap); }
.putbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .4rem 0 0; padding: .6rem .7rem; background: var(--bg); border-radius: 12px; font-size: .88rem; }
.putbar label { font-weight: 500; }
main.dash-page .teams > h2 { margin: 0 0 .6rem; font-size: 1.45rem; }
main.dash-page .team-board, main.dash-page .team-board tbody { display: block; margin: 0; border-spacing: 0; }
main.dash-page .team-board tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: var(--gap); align-items: start; }
main.dash-page .team-board td.col { display: block; width: auto; min-width: 0; background: #e8ece9; border-radius: var(--r); padding: 1rem; }
.gc { background: #fff; border-radius: 14px; box-shadow: var(--sh); padding: 1rem 1.2rem; }
.gc .big { font-size: 1.5rem; font-weight: 700; margin: .3rem 0 .35rem; }
.gc p { font-size: .9rem; color: var(--muted); }
.gc p.label { font-size: .72rem; color: var(--faint); }
.gc p.big { font-size: 1.5rem; color: var(--ink); }
.fd-box h2 { font-size: 1.35rem; }
.req { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: .2rem .9rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.fd-box .ch + .req { border-top: 0; padding-top: 0; }
.req .num { font-size: 1.5rem; grid-row: span 3; }
.req .what { font-weight: 700; }
.req .nt { font-size: .88rem; color: var(--muted); }
.req .acts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; align-items: flex-start; }
.sel { border: 1px solid #c6d0cb; border-radius: var(--rs); padding: .25rem .6rem; font-size: .82rem; background: #fff; }
details.opens > summary { list-style: none; cursor: pointer; }
details.opens > summary::-webkit-details-marker { display: none; }
details.opens[open] { flex-basis: 100%; }
details.opens[open] > summary { background: var(--g1); border-color: var(--g7); }
details.opens > form { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.notes { list-style: none; margin: 0; padding: 0; }
.notes li { padding: .55rem 0; border-top: 1px solid var(--line); font-size: .92rem; overflow-wrap: anywhere; }
.notes li:first-child { border-top: 0; padding-top: 0; }
.notes .tm { color: var(--faint); font-size: .8rem; }
.from { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; padding: .05rem .5rem; margin-right: .4rem; }
.from.fd { background: var(--blue1); color: var(--blue); }
.from.tb { background: var(--g1); color: var(--g7); }
details.upload .items { width: 22rem; display: grid; gap: .6rem; font-size: .9rem; }
details.upload .items .x { font-size: .78rem; color: var(--g7); font-weight: 700; }

/* the three kinds of job, told apart (the drawing's section 6).
   HK maintenance is a deep navy, deeper than a mid-stay's blue so the two are
   told apart, and no longer brown (step 11 part 3b, 18 November). */
.rc.k-maint { border-left-color: #1f4e8c; }
.rc.k-body { border-left-color: #4a5a6a; }
.rc.k-guest { border-left-color: #7a4fc2; }
.kb.maint { background: #e1e8f3; color: #1f4e8c; }
.kb.body { background: #e3e8ee; color: rgb(52, 70, 90); }
.kb.guest { background: var(--new1); color: var(--new); }
.jk { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .9rem; min-width: 0; overflow-wrap: anywhere; }
.jk i { font-style: normal; font-size: 1.1rem; }

/* the Overview */
.teamrows { display: grid; gap: .1rem; margin-top: 1.1rem; }
.tr { display: grid; grid-template-columns: 6rem minmax(9rem, 14rem) minmax(0, 1fr) 4.5rem; gap: 1rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--line); }
.tr b { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; color: var(--g8); }
.people { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .9rem; min-width: 0; }
.people .av { width: 1.7rem; height: 1.7rem; font-size: .72rem; flex: none; }
.people .av + .av { margin-left: -.55rem; box-shadow: 0 0 0 2px #fff; }
.tr .n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.card > .meta { margin-top: .8rem; }
table.week { width: 100%; border-collapse: collapse; display: table; }
main.dash-page section > table.week { box-shadow: none; border-radius: 0; background: transparent; }
.week th, .week td { padding: .6rem .5rem; border-bottom: 1px solid var(--line); text-align: left; font-size: .9rem; vertical-align: middle; }
.week tr:last-child td { border-bottom: 0; }
.week .n { text-align: right; font-variant-numeric: tabular-nums; }
.short { display: inline-block; background: var(--red1); color: var(--red); font-weight: 700; font-size: .78rem; border-radius: 999px; padding: .08rem .55rem; white-space: nowrap; }
.ok { color: var(--g7); font-weight: 800; }
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.log li:first-child { border-top: 0; padding-top: 0; }
.log .tm { color: var(--faint); font-variant-numeric: tabular-nums; }
.log .by { display: block; color: var(--muted); font-size: .8rem; margin-top: .1rem; }
.log li form.inline { margin-top: .3rem; }
.pager { margin-top: 1rem; }
section.s12.card .log li { grid-template-columns: 9rem minmax(0, 1fr); }

/* the front desk */
.rt { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr)); gap: .5rem; }
.rt span { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .5rem .55rem; display: grid; gap: .1rem; border-top: 4px solid #c9d2cd; min-width: 0; }
.rt span b { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; overflow-wrap: anywhere; }
.rt span em { font-style: normal; font-size: .72rem; color: var(--muted); }
.rt span.arr { border-top-color: var(--blue); } .rt span.dn { border-top-color: var(--g7); } .rt span.go { border-top-color: #e08a1e; }
.drop { position: relative; display: block; border: 2px dashed #b9c6bf; border-radius: 14px; padding: 1.2rem; text-align: center; color: var(--muted); background: var(--bg); font-weight: 400; cursor: pointer; }
.drop b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: .2rem; }
.drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop:focus-within { border-color: var(--g7); }
.field { display: grid; gap: .3rem; margin-bottom: .6rem; }
.field label, .field .flabel { font-weight: 600; font-size: .92rem; }
.field textarea { width: 100%; min-height: 4.2rem; }
.lookup .row { display: flex; gap: .5rem; }
.lookup input[type="text"] { flex: 1; min-width: 0; max-width: 12rem; font-weight: 700; }
.found { margin-top: .8rem; display: grid; gap: .8rem; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.opt { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: .8rem .9rem; display: grid; gap: .15rem; background: #fff; cursor: pointer; font-weight: 400; }
.opt i { font-style: normal; font-size: 1.4rem; }
.opt b { font-size: .98rem; }
.opt span { font-size: .8rem; color: var(--muted); }
.opt input, .pick input, .choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.opt:has(input:checked) { border: 2px solid var(--g7); background: var(--g1); }
.opt:has(input:focus-visible), .pick:has(input:focus-visible), .choice:has(input:focus-visible) { outline: 2px solid var(--g7); outline-offset: 2px; }
.tell-form { display: none; padding-top: 1rem; }
.tell:has(input[value="date"]:checked) .t-date,
.tell:has(input[value="move"]:checked) .t-move,
.tell:has(input[value="request"]:checked) .t-request,
.tell:has(input[value="note"]:checked) .t-note,
.tell:has(input[value="booking"]:checked) .t-booking { display: block; }
.tell-form form { margin: 0 0 .6rem; }
.tell-form .form { display: grid; gap: .6rem; }
.picks { display: flex; flex-wrap: wrap; gap: .5rem; }
.pick { position: relative; border: 1px solid #c6d0cb; border-radius: 999px; padding: .35rem .9rem; font-weight: 600; font-size: .9rem; background: #fff; cursor: pointer; }
.pick:has(input:checked) { background: var(--g7); border-color: var(--g7); color: #fff; }
.ch.sent { margin: 1.2rem 0 .4rem; }

/* Done and unfinished, side by side */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.split > *, .one > * { min-width: 0; }
.explain { margin: -.5rem 0 .8rem; }
.uw { background: #fff; border-radius: var(--r); box-shadow: var(--sh); }
.uwr { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: .3rem 1rem; align-items: center; padding: 1rem 1.3rem; border-top: 1px solid var(--line); }
.uwr:first-child { border-top: 0; }
.uwr .num { font-size: 1.6rem; }
.uwr .acts { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.choice { position: relative; }
.uwr .acts .choice:has(input:checked) { background: var(--g1); border-color: var(--g7); color: var(--g8); }
.uwr .open { grid-column: 1 / -1; background: var(--bg); border-radius: 12px; padding: 1rem 1.1rem; display: none; gap: .8rem; }
.uwr:has(input[value="done"]:checked) .o-done,
.uwr:has(input[value="clear"]:checked) .o-clear { display: grid; }
.uwr .open form.ending { margin: 0; }
.uwr .open > .choice { justify-self: start; }
.dl { list-style: none; margin: 0 0 1rem; padding: 0; }
.dl li { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .65rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.dl li:first-child { border-top: 0; }
.dl .num { font-size: 1.35rem; }
.card > .label { margin-top: 1rem; }
.card > .label:first-child { margin-top: 0; }

/* Settings: a tile for each page */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); gap: var(--gap); }
.tile { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 1.2rem 1.3rem; display: grid; gap: .3rem; color: var(--ink); text-decoration: none; }
.tile:hover, .tile:focus-visible { outline: 2px solid var(--g7); }
.tile .ti { font-size: 1.6rem; }
.tile b { font-size: 1.1rem; }
.tile span { color: var(--muted); font-size: .9rem; }

/* narrower screens, as drawn */
@media (max-width: 93.75em) {
  .s8, .s4, .s6 { grid-column: span 12; }
  .s2 { grid-column: span 4; }
  .boardw { grid-template-columns: 19rem minmax(0, 1fr); }
  .boardw > .teamsw { grid-column: 1 / -1; }
}
@media (max-width: 68.75em) {
  .boardw, .split { grid-template-columns: minmax(0, 1fr); }
  .opts { grid-template-columns: minmax(0, 1fr); }
  main.dash-page .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body > nav p.who { display: none; }
  main.dash-page { padding: 1.4rem 1rem; }
  .s2 { grid-column: span 12; }
  main.dash-page .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr { grid-template-columns: 5rem minmax(0, 1fr) 3.5rem; }
  .tr .people { display: none; }
  .uwr { grid-template-columns: 3.5rem minmax(0, 1fr); padding: 1rem; }
  .uwr .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .dl li { grid-template-columns: 3rem minmax(0, 1fr); }
  .dl li > :last-child { grid-column: 2; justify-self: start; }
  .log li, section.s12.card .log li { grid-template-columns: 4.6rem minmax(0, 1fr); }
  .card .btn { white-space: normal; }
  details.upload .items { width: min(22rem, 86vw); }
}

/*
  ==========================================================================
  STEP 11, PART 3B, 18 NOVEMBER: THE TABLET, AS DRAWING 8'S SECTION 8.
  Its own top bar in place of the side menu; the page a phone's width,
  centred, on any screen; each room or job a tile; the room's own screen.
  What opens with no script is a <details> and the :has() rules below.
  ==========================================================================
*/
body.tablet { display: block; background: var(--bg); }
body.tablet > header.tabtop { background: var(--g8); color: #fff; padding: .8rem 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.tabtop b { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.tabtop .out { display: flex; align-items: center; gap: .7rem; font-size: .8rem; color: rgba(255, 255, 255, .75); flex-wrap: wrap; }
.tabtop .out a { color: #fff; font-weight: 600; }
.tabtop form, .tabtop form p { margin: 0; }
.tabtop button { background: transparent; color: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .3); padding: .25rem .7rem; font-size: .8rem; }
body.tablet > main { max-width: 34rem; margin: 0 auto; padding: 1rem; display: grid; gap: .7rem; }
body.tablet main p { margin: 0; }
body.tablet h1 { font-size: 1.4rem; margin: 0; color: var(--g8); }
body.tablet .part { display: grid; gap: .5rem; margin-top: .3rem; }
body.tablet .meta { font-size: .82rem; color: var(--muted); margin: 0; }
body.tablet .hint { font-size: .8rem; color: var(--faint); }
body.tablet .back { font-size: .92rem; }
.tls { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.tl { background: #fff; border-radius: 14px; box-shadow: var(--sh); padding: .8rem 1rem; border-left: 5px solid var(--g7); display: grid; gap: .25rem; color: var(--ink); text-decoration: none; }
a.tl:hover, a.tl:focus-visible { outline: 2px solid var(--g7); }
.tl.done { opacity: .75; }
.tl.k-held { border-left-color: #d95a4a; } .tl.k-checkout { border-left-color: #e08a1e; }
.tl.k-midstay { border-left-color: #3a78c9; } .tl.k-basic { border-left-color: #2a9d72; }
.tl.k-maint { border-left-color: #1f4e8c; } .tl.k-body { border-left-color: #4a5a6a; }
.tl.k-guest, .tl.k-job { border-left-color: #7a4fc2; } .tl.k-break { border-left-color: #c9a227; background: #fffbea; }
.tl .row1, .row1.title { flex-wrap: wrap; }
.tablet .chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.tablet .chip { display: inline-block; font-size: .74rem; border-radius: 999px; padding: .08rem .55rem; font-weight: 600; }
.tablet .said { color: var(--ink); overflow-wrap: anywhere; }
.open-hint { justify-self: end; font-size: .8rem; font-weight: 700; color: var(--g7); }
.kb.job { background: var(--new1); color: var(--new); }
.bigbtn { display: block; width: 100%; text-align: center; padding: 1.1rem; border-radius: 14px; font-weight: 700; font-size: 1.15rem; background: var(--g7); color: #fff; border: 1px solid var(--g7); text-decoration: none; cursor: pointer; }
.bigbtn.alt { background: #fff; color: var(--ink); border: 1px solid #c6d0cb; }
.tablet form { margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; align-items: start; }
details.asks > summary, details.addnote > summary { list-style: none; }
details.asks > summary::-webkit-details-marker, details.addnote > summary::-webkit-details-marker { display: none; }
details.asks[open] > summary, details.addnote[open] > summary { display: none; }
.two:has(details.asks[open]) { grid-template-columns: minmax(0, 1fr); }
.two:has(details.asks[open]) > form { display: none; }
.timer { background: #fff; border-radius: 16px; box-shadow: var(--sh); padding: 1rem; text-align: center; display: grid; gap: .2rem; }
.timer .t { font-size: 3rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--g8); line-height: 1.1; }
.notesbox, .forgot, .confirm { background: #fff; border-radius: 14px; box-shadow: var(--sh); padding: .9rem 1rem; display: grid; gap: .5rem; }
.forgot { border: 1.5px dashed #c6d0cb; box-shadow: none; background: transparent; }
.confirm { border: 2px solid var(--g7); }
.forgot form, .notesbox form, .confirm form { display: grid; gap: .5rem; }
.forgot .mins { display: flex; gap: .6rem; align-items: center; }
.forgot .mins input { width: 6rem; font-weight: 700; }
.tablet .field input[type="text"], .tablet .field textarea { width: 100%; }
/* STEP 12, PART 1, 22 NOVEMBER: "Who is doing this job?", a button for each
   name, carried from the approved drawing's .names rules. Radio buttons, so
   it works with no script; the form's own button stays grey until a name is
   picked, by :has() alone. */
fieldset.names { border: 0; margin: .5rem 0 .9rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; min-width: 0; }
fieldset.names legend { font-weight: 700; padding: 0; margin-bottom: .5rem; width: 100%; }
fieldset.names input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
fieldset.names label { border: 2px solid var(--line); background: #fff; border-radius: var(--rs); padding: .75rem 1.1rem; font-size: 1.05rem; cursor: pointer; min-width: 6.25rem; text-align: center; overflow-wrap: anywhere; }
fieldset.names input[type="radio"]:checked + label { border-color: var(--g7); background: var(--g1); font-weight: 700; }
fieldset.names input[type="radio"]:focus-visible + label { outline: 2px solid var(--g7); outline-offset: 2px; }
.tablet form:has(fieldset.names):not(:has(fieldset.names input:checked)) button[type="submit"] { background: #c9d2ce; border-color: #c9d2ce; color: #fff; cursor: not-allowed; }
details.addnote > summary { justify-self: start; }
.tablet div[role="status"], .tablet div[role="alert"] { border-radius: 12px; padding: .7rem .9rem; background: var(--g1); border: 1px solid var(--g2); color: var(--g8); }
.tablet div[role="alert"] { background: var(--red1); border-color: #f3c5bd; color: #5a2a22; }
.tablet p[role="alert"] { margin: 0; }
@media (max-width: 760px) {
  body.tablet > main { padding: .8rem; }
  .two { grid-template-columns: minmax(0, 1fr); }
}

/*
  ==========================================================================
  STEP 11, PART 3B, 18 NOVEMBER: SETTINGS, AND COMING UP AND ROSTER, AS
  DRAWING 8'S SECTIONS 5 AND 7. Carried from the drawing's own <style> block,
  as part 3a's section above was, the same way: no inline style, screen widths
  in em, and what opens with no script a <details>.
  ==========================================================================
*/

/* every Settings page: the way back, and a card */
.dash .back { font-size: .9rem; margin: 0 0 .2rem; }
.dash .card form { margin: 0; }
main.dash-page section > table.cu { background: transparent; box-shadow: none; border-radius: 0; }
main.dash-page .lst { list-style: none; margin: 0 0 .8rem; padding: 0; background: #fff; border-radius: var(--r); box-shadow: none; border: 1px solid var(--line); }
main.dash-page .lst li { display: flex; align-items: center; gap: .6rem 1rem; padding: .8rem 1.2rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
main.dash-page .lst li:first-child { border-top: 0; }
main.dash-page .lst li .meta { margin: 0 0 0 auto; }
main.dash-page .lst li form { display: inline-flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0; }
main.dash-page .lst li.offlist b { color: var(--muted); }
details.opens > summary { display: inline-block; }
details.opens.add { margin-top: .4rem; }
.dash .field input[type="number"].short { max-width: 7rem; font-weight: 700; }
.dash input[type="number"] { border: 1.5px solid var(--line); border-radius: var(--rs); padding: 7px 10px; background: #fff; }
.say { background: var(--blue1); color: rgb(29, 63, 110); border-radius: 12px; padding: .8rem 1rem; font-size: .92rem; }
.warn { background: var(--amber1); color: rgb(91, 71, 24); border-radius: 12px; padding: .8rem 1rem; font-size: .92rem; margin: 0; }

/* Today's boxes: a switch that saves when pressed */
.sw { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem 0; border-top: 1px solid var(--line); }
.sw:first-of-type { border-top: 0; }
.sw > div { display: grid; }
.sw form { margin: 0; }
button.toggle-ui { flex: none; width: 2.8rem; height: 1.6rem; border-radius: 999px; background: #c6d0cb; border: 0; padding: 0; position: relative; }
button.toggle-ui::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff; }
button.toggle-ui.on { background: var(--g7); }
button.toggle-ui.on::after { left: 1.4rem; }
button.toggle-ui:focus-visible { outline: 2px solid var(--g8); outline-offset: 2px; }

/* Users: a row per sign-in */
.ulist { display: grid; gap: .5rem; }
.urow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: .8rem; align-items: center; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 12px; }
.urow > div { display: grid; min-width: 0; }
.urow b { overflow-wrap: anywhere; }
.urow.bad { background: var(--red1); border-color: #f3c5bd; }
.urow .acts { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.urow .acts form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0; }
.av { width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff; background: var(--g7); flex: none; }
.av.big { width: 2.3rem; height: 2.3rem; font-size: .9rem; }
.st { display: inline-block; font-size: .74rem; border-radius: 999px; padding: .08rem .55rem; font-weight: 600; white-space: nowrap; background: #eef0ef; color: var(--muted); }
.st.done { background: var(--g1); color: var(--g7); }
.ch details.opens[open] { flex-basis: 100%; }
.ch details.opens form { margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* Rooms: a tile for each room; tapping one opens its switches */
.rt > details, .rt > span { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .5rem .55rem; border-top: 4px solid #c9d2cd; min-width: 0; }
.rt > details > summary { list-style: none; cursor: pointer; display: grid; gap: .1rem; }
.rt > details > summary::-webkit-details-marker { display: none; }
.rt > span { display: grid; gap: .1rem; }
.rt b { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; overflow-wrap: anywhere; }
.rt em { font-style: normal; font-size: .72rem; color: var(--muted); }
.rt > .dn { border-top-color: var(--g7); }
.rt > .go { border-top-color: #e08a1e; }
.rt > .off { border-top-color: #9aa6a0; background: #f1f3f2; color: var(--muted); }
.rt > .ph { border: 1.5px dashed #b9c6bf; border-top: 4px dashed #b9c6bf; background: transparent; }
.rt > details[open] { grid-column: span 3; }
.rt .opened { display: grid; gap: .4rem; margin-top: .4rem; }
.rt .opened form { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }

/* the grids: Coming up, the roster, Room clean times, Permissions */
.cu { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.cu th, .cu td { padding: .55rem .5rem; text-align: center; font-size: .88rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cu th:first-child, .cu td:first-child { text-align: left; color: var(--muted); font-weight: 600; padding-left: 0; }
.cu thead th { font-size: .78rem; color: var(--muted); font-weight: 600; }
.cu thead th b { display: block; font-size: 1.05rem; color: var(--ink); }
.cu thead th a { color: inherit; text-decoration: none; }
.cu .we { background: #f6f8f6; }
.cu .sect td { background: transparent; border-bottom: 0; padding-top: 1rem; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); font-weight: 700; text-align: left; }
.hrs { display: grid; gap: .2rem; justify-items: center; }
.cmp { position: relative; width: 100%; max-width: 4.5rem; height: .7rem; border-radius: 999px; background: #eef1ef; }
.cmp .ro { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 999px; background: var(--g2); }
.cmp .ne { position: absolute; top: .17rem; bottom: .17rem; left: 0; border-radius: 999px; background: var(--g7); }
.cmp .ne.over { background: var(--red); }
.hrs small { font-size: .74rem; color: var(--muted); }
.hrs .short { font-size: .7rem; }
.shift { display: inline-block; font-size: .72rem; font-weight: 700; border-radius: 8px; padding: .15rem .4rem; background: #eef0ef; }
.mini { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.chipl { display: inline-flex; gap: .4rem; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem; font-size: .85rem; background: #fff; }

/* Coming up: the three steps, each opening its panel */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: var(--gap); align-items: start; }
.step { background: #fff; border-radius: 14px; box-shadow: var(--sh); padding: .8rem 1rem; min-width: 0; }
div.step { display: flex; align-items: center; gap: .8rem; }
details.step > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .8rem; }
details.step > summary::-webkit-details-marker { display: none; }
.step > summary > div, div.step > div { display: grid; flex: 1; min-width: 0; }
.step span:not(.sn):not(.btn) { font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.sn { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--g1); color: var(--g7); flex: none; }
.step.done .sn { background: var(--g7); color: #fff; }
.step.now { outline: 2px solid var(--g7); }
details.step[open] { grid-column: 1 / -1; }
details.step .panel { margin-top: .9rem; display: grid; gap: .5rem; }
details.step .panel form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
details.step .panel input { max-width: 100%; }

/* the roster: a square, and on a click its choices */
.cu.roster td { padding: .35rem .3rem; }
details.pickcell { position: relative; display: inline-block; text-align: left; }
details.pickcell > summary { list-style: none; }
details.pickcell > summary::-webkit-details-marker { display: none; }
.sq { display: inline-grid; place-items: center; min-width: 2.4rem; height: 1.9rem; border-radius: 8px; border: 1px dashed #c6d0cb; color: var(--faint); font-weight: 700; font-size: .78rem; cursor: pointer; padding: 0 .3rem; }
.sq.on { border: 0; background: var(--blue1); color: var(--ink); }
details.pickcell[open] > summary.sq { outline: 2px solid var(--ink); }
.picker { position: absolute; top: 2.3rem; left: 0; z-index: 5; background: #fff; border-radius: 12px; box-shadow: var(--sh2); padding: .7rem; display: grid; gap: .35rem; width: 15rem; text-align: left; font-size: .85rem; }
.picker form { display: grid; gap: .35rem; margin: 0; }
.picker form label { display: grid; gap: .2rem; font-size: .8rem; }
button.pk, summary.pk { display: flex; gap: .4rem; align-items: center; width: 100%; padding: .35rem .5rem; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 500; font-size: .85rem; text-align: left; cursor: pointer; }
button.pk.now { background: var(--g1); border-color: var(--g7); }
details.own > summary { list-style: none; }
details.own > summary::-webkit-details-marker { display: none; }
details.own form { margin-top: .4rem; }

/* Room clean times: the allowance beside the real average */
.ct td, .ct th { text-align: left; }
.ct td label { display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; }
input.al { min-width: 2.6rem; width: 3.4rem; text-align: center; border: 1px solid #c6d0cb; border-radius: 8px; padding: .15rem .4rem; font-weight: 700; background: #fff; }
.avg { margin-left: .5rem; color: var(--g7); font-weight: 600; }
.avg.over { color: var(--red); }
.avg.nil { color: var(--faint); font-weight: 400; }
.avg small { color: var(--faint); font-weight: 400; }
.putbar input { width: 3.4rem; }

/* Permissions: roles across, abilities down */
.perm td:not(:first-child), .perm th:not(:first-child) { text-align: center; }
.perm td:first-child { white-space: normal; color: var(--ink); font-weight: 500; }
.perm form { margin: 0; }
button.tickbox { position: relative; background: transparent; border: 0; padding: .1rem .3rem; font-size: 1.1rem; line-height: 1; }
/* A grid that scrolls sideways holds its own hidden words, so none of them
   reaches past the screen. */
.cuwrap { position: relative; }
button.tickbox:hover, button.tickbox:focus-visible { outline: 2px solid var(--g7); border-radius: 6px; }
.perm .warnrow td { text-align: left; background: var(--amber1); color: rgb(91, 71, 24); font-size: .85rem; border-radius: 10px; }
.perm .warnrow p { margin: .2rem 0; }

@media (max-width: 68.75em) {
  .cuwrap { overflow-x: auto; }
  .picker { position: static; width: 13rem; margin-top: .3rem; box-shadow: var(--sh); }
}
@media (max-width: 760px) {
  .urow { grid-template-columns: auto minmax(0, 1fr); }
  .urow > .st, .urow > .err, .urow > .acts { grid-column: 2; justify-self: start; }
  .rt > details[open] { grid-column: 1 / -1; }
}

/*
  ==========================================================================
  STEP 12, PART 3, 22 NOVEMBER: REPORTS, the accountant's page, carried from
  the approved drawing's screen 2 (.quick, .ready, .tag, .said). No script:
  the quick buttons are links the server answers with the dates filled in.
  ==========================================================================
*/
.reports .quick { display: flex; gap: .4rem; flex-wrap: wrap; margin: .4rem 0 .8rem; }
.reports .quick .qb { background: var(--g1); color: var(--g8); border-radius: 99px; padding: .25rem .8rem; font-size: .85rem; text-decoration: none; }
.reports .quick .qb:focus-visible { outline: 2px solid var(--g7); outline-offset: 2px; }
.reports .dates { display: flex; gap: .8rem; flex-wrap: wrap; align-items: end; }
.reports .dates input { padding: .5rem .65rem; border: 1px solid var(--line); border-radius: var(--rs); }
.reports select { padding: .5rem .65rem; border: 1px solid var(--line); border-radius: var(--rs); }
.reports .said { background: var(--g1); color: var(--g8); border-radius: var(--rs); padding: .5rem .75rem; margin-top: .6rem; font-size: .9rem; }
.reports .said.bad { background: var(--red1); color: var(--red); }
.reports table.ready { width: 100%; border-collapse: collapse; }
.reports table.ready td { padding: .6rem .4rem; border-top: 1px solid var(--line); vertical-align: middle; }
.reports table.ready td:last-child { text-align: right; }
.reports table.ready form { margin: 0; }
.reports .tag { display: inline-block; border-radius: 99px; padding: .05rem .55rem; font-size: .75rem; font-weight: 600; }
.reports .tag.auto { background: var(--blue1); color: var(--blue); }
.reports .tag.you { background: var(--amber1); color: var(--amber); overflow-wrap: anywhere; }
.reports .pager { display: flex; gap: .8rem; align-items: center; font-size: .9rem; }

/* ---------- printing ---------- */
@page { margin: 0; }
@media print {
  body, body.sheets { background: #fff; padding: 12mm; display: block; }
  body > nav, .drop-says, details.menu, details.upload, .actions, .hint { display: none !important; }
  main { padding: 0; max-width: none; }
  .sheet { break-after: page; page-break-after: always; margin: 0; }
  .sheet:last-child { break-after: auto; page-break-after: auto; }
  .sheet table { width: 100%; }
  .rc, .queue, .stats li, .chg { box-shadow: none; border: 1px solid #999; }
}

/*
  Step 12b, 23 November: roll-aways and the room check. Carried from the
  approved drawing of the step (the roll-aways drawing), its own classes where
  the site had none, the site's own where they match. Plum marks a roll-away,
  blue a room check, red a roll-away not marked collected or not recorded as
  taken in. No colour here holds four digits in a row.
*/
:root { --plum: #6b3fa0; --plum1: #efe6fa; }
.kb.ra { background: var(--plum1); color: var(--plum); }
.kb.chk { background: var(--blue1); color: var(--blue); }
.kb.arr { background: var(--amber1); color: var(--amber); }
.kb.warn { background: var(--red1); color: var(--red); }
.marks { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.note { border-radius: var(--rs); padding: 12px 14px; margin: 10px 0; font-size: 1rem; }
.note.arr { background: var(--amber1); color: #5e3d07; border-left: 5px solid var(--amber); }
.note.ra { background: var(--plum1); color: #3d2a63; border-left: 5px solid var(--plum); }
.note.warn { background: var(--red1); color: var(--red); border-left: 5px solid var(--red); }
.bigbtn.plum { background: var(--plum); border-color: var(--plum); }
.bigbtn.ticked { background: var(--plum1); color: var(--plum); border-color: var(--plum1); cursor: default; }
.ra-box { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 18px 20px; margin: 14px 0; border-left: 4px solid var(--g7); }
.ra-box.warn { border-left-color: var(--amber); background: #fff; color: var(--ink); }
.ra-box ul { margin: 6px 0 0; padding-left: 18px; }
.ra-box li { margin: 3px 0; }
.small { font-size: 13px; color: var(--muted); }
.hkjobs { margin-bottom: 16px; }
.job { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fff; border-radius: var(--rs); box-shadow: var(--sh); padding: 12px 14px; margin: 0 0 10px; }
.job .left { display: flex; gap: 12px; align-items: center; }
.job .what { font-weight: 700; }
.job .rn { font-family: var(--serif); font-size: 22px; color: var(--g8); min-width: 54px; }
.job .tags { margin: 3px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.job.done { opacity: .6; }
.job form { margin: 0; }
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.list td { padding: 9px 8px; border-top: 1px solid var(--line); }
table.list tr.picked td { background: var(--g1); }
table.list td.n, table.list th.n { text-align: center; font-variant-numeric: tabular-nums; }
.notset { color: var(--faint); font-style: italic; }
.cu tr.newrow td { background: var(--plum1); }
.cu a.hit { font-weight: 700; color: var(--plum); text-decoration: underline dotted; }

/*
  ==========================================================================
  Step 12e, 24 November: Clean Sheets, by Backshed Systems, in words only.
  From the "Clean Sheets by Backshed Systems" half of the branding drawing of
  23 November, without its little picture. The product's name in the site's
  own serif, the maker small under it, the hotel's name as a small label.
  Classes only: no style attribute and no style element anywhere.
  ==========================================================================
*/
/* the side menu: the product's name keeps the size the hotel's name had */
body > nav p.maker { font-size: .68rem; color: var(--g2); letter-spacing: .02em; line-height: 1.25; margin: .15rem .75rem 0; }
body > nav p.hotel { align-self: flex-start; background: rgba(255, 255, 255, .13); color: #fff; font-size: .75rem; padding: 3px 10px; border-radius: 99px; margin: .75rem .75rem .15rem; }
/* the tablet's top bar */
.tabtop .lockup { display: flex; flex-direction: column; line-height: 1.05; }
.tabtop .lockup b { font-size: 1.15rem; }
.tabtop .maker { font-size: .62rem; color: var(--g2); letter-spacing: .02em; margin-top: 3px; }
.tabtop .hotel { background: rgba(255, 255, 255, .13); border-radius: 99px; padding: 2px 9px; color: #fff; font-size: .72rem; }
/* the sign-in card */
main.alone p.product { font-family: var(--serif); font-size: 2.1rem; color: var(--g8); text-align: center; line-height: 1.05; margin: 0; }
main.alone p.maker { font-size: .82rem; color: var(--muted); text-align: center; margin: .2rem 0 0; }
main.alone h1 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--ink); text-align: center; margin: 1.2rem 0 .4rem; }
@media (max-width: 760px) {
  body > nav p.maker { display: block; width: 100%; margin: 0 8px 4px; }
  body > nav p.hotel { display: block; margin: 0 8px 4px; }
}
