/* Twin Mask Photos: the look shared by every page (photo pages, Photographer Tools, People, and the shift scheduler).
   This is the original site's design, brought over to the rebuilt site on 2026-11-25.
   Colours, fonts, the header, buttons, fields, panels, page title row and dialogs live here.
   photos.css and scheduler.css only add what is special to their own pages; nothing here is repeated there. */
:root {
  --bg: #f5f6f8; --surface: #ffffff; --text: #1f2328; --muted: #59636e; --line: #d8dce1; --field: #c5cad1;
  --accent: #0f6cbd; --accent-text: #ffffff; --accent-soft: #dbe9f7; --chip: #eef1f4; --cover: #e1e4e8;
  --ok-bg: #d6f0dc; --ok-text: #1f6b36; --warn-bg: #fff1d6; --warn-text: #7a4b00;
  --err-bg: #fde8e8; --err-text: #9b1c1c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a; --surface: #1c2024; --text: #e6e8ea; --muted: #9aa3ab; --line: #2f353b; --field: #454c54;
    --accent: #4a9be0; --accent-text: #0b1620; --accent-soft: #1d3550; --chip: #2a2e33; --cover: #2a2e33;
    --ok-bg: #1d3d28; --ok-text: #8fd3a2; --warn-bg: #3d3015; --warn-text: #f0c978;
    --err-bg: #3b1d1d; --err-text: #f2a3a3;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
.foot { max-width: 1200px; margin: 0 auto; padding: 0 24px 24px; font-size: 12px; color: var(--muted); }
.foot a { color: inherit; }
.note { color: var(--muted); }
.grow { flex: 1 1 0; }
.ico { display: inline-flex; }

/* character counter under long text boxes ("12 / 500") */
.counter { font-size: 12px; font-weight: 400; text-align: right; }
.scroll-x { overflow-x: auto; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 17px; }
.logo { width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: var(--accent-text); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.mainnav { display: flex; gap: 4px; }
.mainnav a { padding: 10px 12px; font-weight: 500; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; }
.mainnav a.on { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.who { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.3; }
.who small { color: var(--muted); font-size: 12px; display: block; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 600; }

/* buttons. .btn is the standard size, .btn.sm the compact one.
   A page whose <body> has class="plain" (the scheduler) gets the compact look on every plain <button>, <input>,
   <select>, <textarea> and <table>, so its code does not need a class on each one. :where() keeps those
   plain-tag rules weaker than any class, so a class always wins. */
.btn, :where(body.plain) button { font-weight: 500; border: 1px solid var(--field); border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; }
.btn { font-size: 15px; min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn.sm, :where(body.plain) button { font-size: 14px; min-height: 36px; padding: 0 12px; }
.btn:hover:not(:disabled), :where(body.plain) button:hover:not(:disabled) { border-color: var(--accent); }
.btn.primary, :where(body.plain) button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.btn.danger, :where(body.plain) button.danger { color: var(--err-text); }
.btn:disabled, :where(body.plain) button:disabled { opacity: .5; cursor: default; }
button.linkbtn { background: none; border: 0; padding: 0; min-height: 0; color: var(--accent); text-decoration: underline; cursor: pointer; text-align: left; font-weight: 500; }

/* fields: a label (.fld) and an input (.in) */
.fld, :where(body.plain) form.stack label, :where(body.plain) form.inline label, :where(body.plain) dialog form > label:not(.radio) { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; color: var(--muted); }
.in, :where(body.plain) input:not([type=checkbox]):not([type=radio]), :where(body.plain) select, :where(body.plain) textarea { font-size: 15px; font-weight: 400; color: var(--text); padding: 0 10px; border: 1px solid var(--field); border-radius: 6px; background: var(--surface); }
.in { min-height: 44px; width: 100%; }
/* Every dropdown is exactly as tall as the text boxes and buttons beside it. Some browsers (Safari especially) draw
   their own shorter native dropdown and ignore min-height, which left the library filters at different heights;
   "appearance: none" plus a fixed height and our own arrow makes them identical everywhere. */
select.in { height: 44px; padding-right: 34px; -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b6470' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px; }
input.in[type=search] { height: 44px; -webkit-appearance: none; appearance: none; }
:where(body.plain) input:not([type=checkbox]):not([type=radio]), :where(body.plain) select, :where(body.plain) textarea { min-height: 36px; }
textarea.in, :where(body.plain) textarea { width: 100%; min-height: 88px; padding: 10px; resize: vertical; }

/* segmented toggle: Group by on the library page, the tabs on the scheduler */
.seg { display: flex; }
.seg button { font-size: 14px; font-weight: 500; padding: 0 14px; height: 44px; border: 1px solid var(--field); border-radius: 0; background: var(--surface); color: var(--text); cursor: pointer; }
.seg button:first-child { border-radius: 6px 0 0 6px; }
.seg button:last-child { border-radius: 0 6px 6px 0; }
.seg button + button { border-left: 0; }
.seg button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

/* tables: table.t on the photo pages, a plain <table> on plain pages. Each keeps its own cell padding. */
table.t, :where(body.plain) table { border-collapse: collapse; width: 100%; font-size: 14px; }
table.t th, :where(body.plain) th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line); }
table.t td, :where(body.plain) td { border-bottom: 1px solid var(--line); }
table.t tr:last-child td, :where(body.plain) tr:last-child td { border-bottom: 0; }
button.sorth { background: none; border: 0; padding: 0; min-height: 0; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; cursor: pointer; }
button.sorth:hover { color: var(--text); }

/* layout */
.page { max-width: 1200px; margin: 0 auto; padding: 28px 24px 56px; }
.title { margin: 0 0 24px; font-size: 30px; line-height: 1.2; font-weight: 700; }
.back { display: inline-block; font-size: 14px; text-decoration: none; margin-bottom: 8px; }
/* a box on the page; the scheduler calls it .card */
.panel, .card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.err { background: var(--err-bg); color: var(--err-text); padding: 8px 12px; border-radius: 6px; margin: 8px 0; }
.okmsg { background: var(--ok-bg); color: var(--ok-text); padding: 8px 12px; border-radius: 6px; margin: 8px 0; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--chip); color: var(--muted); }
.chip.ok { background: var(--ok-bg); color: var(--ok-text); }
.chip.warn { background: var(--warn-bg); color: var(--warn-text); }

/* page title row (title on the left, buttons on the right) */
.head-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin: 0 0 24px; }
.head-row h1 { margin: 0; font-size: 30px; line-height: 1.2; }
.head-row .btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* dialogs */
dialog { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); padding: 18px; width: min(440px, 92vw); }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
