/* The admin portal, in the Momenti look: obsidian, the aurora as the one light, Jost Light,
   the Sempre logo as supplied. The same tokens as the photographer's app. */
:root {
  color-scheme: dark;
  --bg: #0A0B0D;
  --surface: #111317;
  --surface-2: #171A1F;
  --surface-edge: rgb(255 255 255 / 0.06);
  --text: #F3F4F6;
  --text-2: #9AA0A8;
  --text-3: #5F646C;
  --aurora-a: #9AD6FF;
  --aurora-b: #B59CFF;
  --aurora: linear-gradient(135deg, var(--aurora-a), var(--aurora-b));
  --accent: #9AD6FF;
  --accent-glow: rgb(154 214 255 / 0.18);
  --aurora-glow-a: rgb(154 214 255 / 0.16);
  --aurora-glow-b: rgb(181 156 255 / 0.14);
  --primary: #F3F4F6;
  --primary-hover: #FFFFFF;
  --primary-text: #0A0B0D;
  --error: #FF8A80;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.18);
  --edge: rgb(255 255 255 / 0.24);
  --edge-hover: rgb(255 255 255 / 0.5);
  --fill: rgb(255 255 255 / 0.03);
  --fill-hover: rgb(255 255 255 / 0.06);
  --shadow-window: 0 30px 80px rgb(0 0 0 / 0.6);
  --radius: 2px;
  --ease: 200ms cubic-bezier(0.2, 0.6, 0.2, 1);
  --slow: cubic-bezier(0.16, 1, 0.3, 1);
}
/* the light room: pearl, ink words, a black main button, the aurora deeper */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F5F8;
  --surface: #FFFFFF;
  --surface-2: #EEF0F4;
  --surface-edge: rgb(255 255 255 / 0.9);
  --text: #121418;
  --text-2: #6B7079;
  --text-3: #A2A7B0;
  --aurora-a: #3D8BE8;
  --aurora-b: #7B5CE6;
  --accent: #3D8BE8;
  --accent-glow: rgb(61 139 232 / 0.18);
  --aurora-glow-a: rgb(61 139 232 / 0.12);
  --aurora-glow-b: rgb(123 92 230 / 0.10);
  --primary: #121418;
  --primary-hover: #2A2E36;
  --primary-text: #F4F5F8;
  --error: #C4453A;
  --line: rgb(18 20 24 / 0.08);
  --line-strong: rgb(18 20 24 / 0.18);
  --edge: rgb(18 20 24 / 0.24);
  --edge-hover: rgb(18 20 24 / 0.55);
  --fill: rgb(255 255 255 / 0.7);
  --fill-hover: #FFFFFF;
  --shadow-window: 0 40px 120px rgb(18 20 24 / 0.2);
}
:root[data-theme="light"] .on-dark, :root:not([data-theme="light"]) .on-light { display: none !important; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  min-height: 100%;
  background:
    radial-gradient(700px 420px at 15% -10%, var(--aurora-glow-a), transparent 62%) no-repeat,
    radial-gradient(560px 360px at 70% -14%, var(--aurora-glow-b), transparent 60%) no-repeat,
    var(--bg);
}
body { margin: 0; padding: 24px 32px 56px; font: 300 15px/1.5 "Jost", "Helvetica Neue", Arial, sans-serif; letter-spacing: 0.01em; color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

/* the top: the logo, the name, the way around */
.top { display: flex; align-items: center; gap: 28px; margin: 0 auto 36px; max-width: 1040px; }
.brand { display: flex; align-items: center; gap: 18px; }
.brand img { width: 96px; height: auto; }
.brand span { display: flex; flex-direction: column; font-size: 22px; letter-spacing: 0.32em; text-transform: uppercase; line-height: 1.1; }
.brand small { font-size: 11px; letter-spacing: 0.3em; color: var(--text-2); }
nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 13.5px; letter-spacing: 0.04em; color: var(--text-2); }
nav a:hover { color: var(--text); }
nav form { margin: 0; }
/* the round switch between the rooms, as in Momenti */
#theme { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; }
#theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.top .switches { display: flex; align-items: center; gap: 10px; margin-left: auto; }
nav + .switches, .top > .switches:only-child { margin-left: auto; }
nav { margin-left: auto; }
nav ~ .switches { margin-left: 0; }

main { max-width: 760px; margin: 0 auto; }
main.wide { max-width: 1040px; }
h1 { margin: 0 0 22px; font-size: 24px; font-weight: 300; letter-spacing: 0.02em; }
h1 small, h2 small { display: block; margin-top: 4px; font-size: 13px; letter-spacing: 0.02em; color: var(--text-2); }
h2 { margin: 0 0 16px; font-size: 17px; font-weight: 300; letter-spacing: 0.02em; }

/* a card: the surface, a hairline, light on its top edge */
.card { display: block; margin: 0 0 20px; padding: 22px 24px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); box-shadow: inset 0 1px 0 var(--surface-edge); }
.empty { margin: 0; font-size: 14px; color: var(--text-3); }
.error { margin: 10px 0 0; font-size: 13.5px; color: var(--error); }
/* a word after something was done, shown once: a new PIN to pass on */
.note { margin: 0 0 18px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 14px; color: var(--text-2); }
.note b { margin: 0 -0.1em 0 2px; font-weight: 300; font-size: 18px; letter-spacing: 0.14em; color: var(--text); font-variant-numeric: tabular-nums; }

/* words and controls */
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 18px; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--fill); font-size: 13px; letter-spacing: 0.03em; cursor: pointer; transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease; }
button:hover { border-color: var(--edge-hover); background: var(--fill-hover); }
button.primary { border-color: var(--primary); background: var(--primary); color: var(--primary-text); }
button.primary:hover { background: var(--primary-hover); }
button.quiet, a.quiet { border-color: transparent; background: transparent; color: var(--text-2); }
button.quiet:hover, a.quiet:hover { color: var(--text); background: var(--fill-hover); }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; letter-spacing: 0.03em; color: var(--text-2); }
input { padding: 9px 2px; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent; font-size: 15px; color: var(--text); }
input:focus { outline: none; border-bottom-color: var(--accent); }
input::placeholder { color: var(--text-3); }

/* signing in */
.sign-in { max-width: 380px; margin: 60px auto 0; }
.sign-in form { display: grid; gap: 18px; }
.sign-in button { margin-top: 6px; }

/* the search, as one types */
/* Refresh in the nav, with Momenti's icon */
nav a.refresh { display: inline-flex; align-items: center; gap: 7px; }
nav a.refresh svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* the two lines for the laptop's .env, under a restaurant's settings */
.env { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: 13px; color: var(--text-2); white-space: pre-wrap; }
.search { display: block; margin: 0 0 18px; }
.search input { width: 100%; max-width: 420px; padding: 9px 2px; font-size: 15px; }

/* the restaurants */
.restaurants { display: grid; gap: 18px; }
.restaurant { transition: border-color var(--ease), transform 240ms var(--slow); }
.restaurant:hover { border-color: var(--edge-hover); transform: translateY(-1px); }
.restaurant h2 { margin: 0; }
.restaurant { position: relative; padding-right: 56px; }
.restaurant::after { content: "›"; position: absolute; top: 50%; right: 24px; transform: translateY(-50%); font-size: 26px; color: var(--text-3); transition: color var(--ease), transform 240ms var(--slow); }
.restaurant:hover::after { color: var(--text); transform: translate(3px, -50%); }
.back { display: inline-block; margin: 0 0 14px; font-size: 13px; letter-spacing: 0.03em; color: var(--text-2); }
.back:hover { color: var(--text); }

/* a day, as in Momenti's Printed window */
.day { margin-bottom: 10px; }
.day .hint { margin: 12px 0 0; font-size: 13px; color: var(--text-2); }
.day .hint b { font-weight: 300; color: var(--text); }
/* the calendar: a day with prints or clock-ins (and today) is a link in a ring, the chosen
   one filled, the others just numbers; the arrows walk the months that have data */
.calendar { display: inline-block; }
.calendar .month { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 14px; }
.calendar .month b { font-weight: 300; color: var(--text); }
.calendar .month a { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: var(--radius); font-size: 17px; }
.calendar .month a.off { opacity: 0.35; pointer-events: none; }
.calendar .weekdays, .calendar .days { display: grid; grid-template-columns: repeat(7, 36px); gap: 2px; }
.calendar .weekdays span { height: 22px; display: grid; place-items: center; font-size: 11px; letter-spacing: 0.06em; color: var(--text-3); }
.calendar .days span, .calendar .days a { height: 36px; display: grid; place-items: center; border-radius: 50%; font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--text-3); }
.calendar .days span.ahead { opacity: 0.4; }
.calendar .days a.has { color: var(--text); border: 1px solid var(--line-strong); transition: border-color var(--ease), background var(--ease); }
.calendar .days a.has:hover { border-color: var(--edge-hover); background: var(--fill-hover); }
.calendar .days a.today:not(.chosen) { border-color: var(--accent); }
.calendar .days a.chosen { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.rows { margin: 0; padding: 8px 0 4px; list-style: none; }
.rows li { display: grid; grid-template-columns: 1fr auto auto; gap: 6px 18px; align-items: baseline; padding: 12px 0 10px; border-top: 1px solid var(--line); font-size: 14px; }
.rows li:first-child { border-top: 0; }
.rows .what { color: var(--text); }
.rows .count { min-width: 2.5em; font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; }
.rows .share { min-width: 3.4em; font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; color: var(--text-3); }
.rows .bar { grid-column: 1 / -1; height: 2px; background: var(--line); overflow: hidden; }
.rows .bar i { display: block; width: var(--share, 0%); height: 100%; background: var(--aurora); transition: width 700ms var(--slow); }
.total { padding: 6px 0 0; border-top: 1px solid var(--line-strong); font-size: 15px; }
.total .sum { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 10px 0 0; }
.total b { font-weight: 300; font-size: 17px; font-variant-numeric: tabular-nums; }

/* the clock-in reports */
.reports { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.reports th { padding: 0 10px 10px 0; text-align: left; font-weight: 300; font-size: 12px; letter-spacing: 0.04em; color: var(--text-3); white-space: nowrap; }
.reports td { padding: 10px 10px 10px 0; border-top: 1px solid var(--line); white-space: nowrap; }
.reports th:not(:nth-child(-n+3)), .reports td:not(:nth-child(-n+3)) { text-align: right; }
.reports td.act { padding-right: 0; }
.reports td.act form { justify-content: flex-end; }
.reports td.act button { padding: 5px 10px; font-size: 13px; }
/* the quiet way out, under everything: the restaurant and all its data */
.remove { margin: 6px 0 0; }

/* the photographers */
.people { margin: 0; padding: 0; list-style: none; }
/* a row: the name, the PIN behind Show PIN, a new PIN with Generate and Set PIN, Remove */
.people li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px 18px; padding: 12px 0; border-top: 1px solid var(--line); }
.people li:first-child { border-top: 0; padding-top: 0; }
.people li > span:first-child { font-size: 15px; }
.secret { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 150px; }
.secret .digits b { font-weight: 300; font-size: 17px; letter-spacing: 0.14em; color: var(--text); font-variant-numeric: tabular-nums; }
.secret .digits i { font-style: normal; font-size: 13px; color: var(--text-3); }
.secret button { padding: 7px 12px; }
.inline { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.inline input { width: 110px; padding: 6px 2px; font-size: 14px; }
.inline button { padding: 7px 12px; }
/* the PIN field with Generate beside it */
.pin { display: flex; align-items: center; gap: 8px; }
.pin input { flex: 1; min-width: 0; }
.pin button { padding: 7px 12px; }
.add { display: grid; grid-template-columns: 1fr 1fr auto; gap: 18px; align-items: end; }
.add .error { grid-column: 1 / -1; }

.colophon { max-width: 1040px; margin: 60px auto 0; font-size: 12px; letter-spacing: 0.04em; color: var(--text-3); }

@media (max-width: 640px) {
  body { padding: 18px 16px 48px; }
  .top { flex-wrap: wrap; gap: 14px; }
  nav { margin-left: 0; gap: 16px; }
  .add { grid-template-columns: 1fr; }
  .people li { display: flex; flex-wrap: wrap; }
  .people li > span:first-child { flex: 1 1 100%; }
  .reports { display: block; overflow-x: auto; }
}
