/* Tiny Tots job board v2. Mail-style working surfaces, Apple pass.
   System font, one accent, hairlines, grey-filled controls, numbers on the page. */

@font-face { font-family: "Plex Sans"; src: url("/assets/fonts/plex-sans-400.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* Dark by design: deep navy surfaces, white text only, the logo's pale blue as
   the accent and its yellow for the single primary call to action. */
:root {
  --bg: #0F1623; --side: #0B1119; --row-sel: rgba(127,205,235,.14); --row-hover: rgba(255,255,255,.035);
  --ink: #F3F6FA; --ink-2: #F3F6FA; --ink-3: #F3F6FA;
  --hair: rgba(255,255,255,.10); --hair-2: rgba(255,255,255,.24);
  --fill: rgba(255,255,255,.08); --fill-h: rgba(255,255,255,.14);
  --accent: #7FCDEB; --accent-h: #9ADAF2; --accent-ink: #9ADAF2; --on-accent: #06202C; --tint: rgba(127,205,235,.16);
  --ok: #5BD39A; --ok-bg: rgba(91,211,154,.14); --warn: #FFD866; --warn-bg: rgba(255,216,102,.14); --bad: #FF8A7E; --bad-bg: rgba(255,138,126,.14);
  --yellow: #FFF878; --on-yellow: #2a2300;
  --r: 5px; --ease: cubic-bezier(.32,.72,0,1);
  --font: "Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --hdr: 52px;
  color-scheme: dark;
}
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; letter-spacing: 0; font-variant-numeric: tabular-nums; }
a { color: var(--accent-ink); }
h1, h2, h3, h4, p, dl, dd, ul { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--tint); }
.sr { position: absolute; left: -9999px; }

/* Header --------------------------------------------------------------- */
.hdr { height: var(--hdr); border-bottom: 1px solid var(--hair); display: flex; align-items: center; gap: 22px; padding: 0 20px; background: var(--bg); position: sticky; top: 0; z-index: 10; }
.hdr .logo img { height: 36px; width: auto; display: block; }
.hdr nav { display: flex; gap: 2px; }
.hdr nav a { text-decoration: none; color: var(--ink-2); font-size: 14px; font-weight: 500; padding: 6px 10px; border-radius: 6px; }
.hdr nav a:hover { background: var(--fill); color: var(--ink); }
.hdr nav a.on { color: var(--ink); font-weight: 600; }
.hdr .sp { flex: 1; }
.hdr .acct { font-size: 13px; color: var(--ink-3); }
.hdr .acct b { color: var(--ink); font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 14px; font-weight: 600; min-height: 32px; padding: 0 13px; border-radius: var(--r); border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; background: var(--fill); color: var(--ink); transition: transform 180ms var(--ease), background .15s; }
.btn:hover { background: var(--fill-h); }
.btn:active { transform: scale(.97); transition-duration: 80ms; }
.btn.pri { background: var(--accent); color: var(--on-accent); }
.btn.pri:hover { background: var(--accent-h); }
.btn.yel { background: var(--yellow); color: var(--on-yellow); }
.btn.lg { min-height: 40px; font-size: 15px; padding: 0 18px; }
.btn.sm { min-height: 26px; font-size: 13px; padding: 0 10px; }
.btn.plain { background: transparent; color: var(--accent-ink); padding: 0 6px; }
.btn.plain:hover { background: var(--fill); }
.btn svg { width: 14px; height: 14px; }

/* Controls ------------------------------------------------------------- */
.field { position: relative; }
.field svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--ink-3); pointer-events: none; }
.in, .sel { width: 100%; background: var(--fill); border: 0; border-radius: var(--r); min-height: 32px; padding: 5px 10px; font-size: 14px; outline: 0; appearance: none; -webkit-appearance: none; transition: background .15s, box-shadow .15s; }
.field .in { padding-left: 29px; }
.in:focus, .sel:focus { background: var(--fill-h); box-shadow: 0 0 0 3px var(--tint); }
.in::placeholder { color: var(--ink); opacity: .55; }
.sel { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5l3 3 3-3' fill='none' stroke='%23F3F6FA' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; padding-right: 26px; }
.sel.auto { width: auto; }
.seg { display: inline-flex; background: var(--fill); border-radius: 8px; padding: 2px; gap: 1px; width: 100%; }
.seg > * { flex: 1; text-align: center; font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 4px 8px; border-radius: 6px; border: 0; background: transparent; cursor: pointer; text-decoration: none; transition: all .18s var(--ease); white-space: nowrap; }
.seg .on { background: rgba(255,255,255,.16); color: var(--ink); font-weight: 600; }
.seg.auto { width: auto; }
.lbl { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: none; margin: 0 0 6px; }
.toggle { flex: none; width: 40px; height: 24px; border-radius: 12px; background: var(--fill-h); position: relative; border: 0; cursor: pointer; transition: background .2s; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #F3F6FA; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .22s var(--ease); }
.toggle.on { background: #34c759; }
.toggle.on::after { transform: translateX(16px); }
.chk { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; padding: 5px 10px; border-radius: 6px; background: var(--fill); cursor: pointer; }
.chk input { width: 14px; height: 14px; margin: 0; accent-color: var(--accent); }
.chk.on { background: var(--tint); color: var(--accent-ink); font-weight: 600; }

/* Mail layout ----------------------------------------------------------- */
.app { display: grid; grid-template-columns: 248px 400px minmax(0, 1fr); height: calc(100vh - var(--hdr)); }
.app.two { grid-template-columns: 248px minmax(0, 1fr); }
.pane { overflow-y: auto; overscroll-behavior: contain; }
.side { background: var(--side); border-right: 1px solid var(--hair); padding: 14px 14px 24px; }
.list { border-right: 1px solid var(--hair); }
.detail { padding: 26px 36px 48px; }
@media (max-width: 1100px) { .app { grid-template-columns: 220px 340px minmax(0,1fr); } }
@media (max-width: 900px) { .app, .app.two { grid-template-columns: 1fr; height: auto; } .side, .detail { display: none; } .list { border-right: 0; } .pane { overflow: visible; } .m-only { display: flex !important; } }
.m-only { display: none; }

/* Sidebar ---------------------------------------------------------------- */
.side .grp { padding: 12px 0 4px; }
.side .grp + .grp { border-top: 1px solid var(--hair); margin-top: 8px; }
.side h3 { font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin: 0 0 6px; letter-spacing: 0; }
.side .stack { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 8px; margin: 0 -8px; border-radius: 6px; font-size: 13.5px; cursor: pointer; color: var(--ink); }
.opt:hover { background: rgba(255,255,255,.05); }
.opt.on { background: var(--tint); color: var(--accent-ink); font-weight: 600; }
.opt .n { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 500; }
.opt .tick { width: 14px; height: 14px; margin-right: 6px; visibility: hidden; color: var(--accent-ink); }
.opt.on .tick { visibility: visible; }
.opt .l { display: flex; align-items: center; flex: 1; }
.side .more { font-size: 12.5px; color: var(--accent-ink); text-decoration: none; display: inline-block; margin-top: 4px; }
.saved { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; margin: 0 -8px; border-radius: 6px; font-size: 13.5px; text-decoration: none; color: var(--ink); }
.saved.on { background: var(--tint); color: var(--accent-ink); font-weight: 600; }
.saved .n { font-size: 12px; color: var(--ink-3); background: var(--fill); border-radius: 9px; padding: 0 7px; }

/* List pane ------------------------------------------------------------- */
.tool { position: sticky; top: 0; background: var(--bg); z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--hair); font-size: 13px; color: var(--ink-3); }
.tool b { color: var(--ink); font-weight: 600; font-size: 14px; }
.tool .sel { min-height: 26px; padding: 2px 24px 2px 8px; font-size: 12.5px; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: block; padding: 11px 16px 11px 16px; border-bottom: 1px solid var(--hair); text-decoration: none; color: inherit; cursor: pointer; position: relative; }
.row:hover { background: var(--row-hover); }
.row.on { background: var(--row-sel); }
.row.on::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.row .t { font-size: 14.5px; font-weight: 600; line-height: 1.3; display: flex; justify-content: space-between; gap: 10px; }
.row .t time { font-size: 12px; color: var(--ink-3); font-weight: 400; white-space: nowrap; flex: none; }
.row .s { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.row .m { font-size: 13px; color: var(--ink-3); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 2px 10px; }
.row .m b { color: var(--ink); font-weight: 600; }
.row .b { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 5px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 5px; background: var(--fill); color: var(--ink); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.acc { background: var(--tint); color: var(--accent-ink); }
.badge svg { width: 11px; height: 11px; }
.match { font-family: var(--mono); font-weight: 500; font-size: 12.5px; color: var(--ok); }
.match.mid { color: var(--warn); }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 12.5px; color: var(--ink-3); }
.pager .seg { width: auto; }

/* Detail pane ------------------------------------------------------------- */
.lt { font-size: 26px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.lt-sub { font-size: 15px; color: var(--ink-2); margin-top: 5px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.lt-sub .dot::before { content: "·"; margin-right: 10px; color: var(--ink-3); }
.acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin: 22px 0 0; }
.strip > div { padding: 12px 14px 12px 0; border-right: 1px solid var(--hair); }
.strip > div + div { padding-left: 14px; }
.strip > div:last-child { border-right: 0; }
.strip .k { font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.strip .v { font-size: 14.5px; font-weight: 600; margin-top: 2px; }
.strip .v small { font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
.sec { padding: 20px 0; border-bottom: 1px solid var(--hair); }
.sec:last-child { border-bottom: 0; }
.sec h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.sec h2 small { font-weight: 400; color: var(--ink-3); font-size: 13px; margin-left: 8px; }
.prose p { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 0 0 12px; max-width: 68ch; }
.prose ul { padding-left: 18px; color: var(--ink-2); line-height: 1.55; margin: 0 0 12px; max-width: 68ch; }
.prose h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 16px 0 6px; }
.fine { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; max-width: 72ch; }

/* Pay compare bar */
.pay { display: grid; gap: 6px; max-width: 520px; }
.pay .bar { position: relative; height: 6px; border-radius: 3px; background: var(--fill); margin: 8px 0 2px; }
.pay .typ { position: absolute; top: 0; height: 6px; border-radius: 3px; background: var(--hair-2); }
.pay .job { position: absolute; top: -3px; height: 12px; border-radius: 3px; background: var(--accent); }
.pay .ax { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pay .leg { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); }
.pay .leg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-right: 5px; }

/* Facts list */
.facts { display: grid; }
.facts > div { display: grid; grid-template-columns: 128px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--ink-3); }
.facts dd { color: var(--ink); font-weight: 500; }

/* Checklist (match) */
.chklist { display: grid; }
.chklist > div { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.chklist > div:last-child { border-bottom: 0; }
.chklist .ic { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.chklist .ic svg { width: 11px; height: 11px; }
.chklist .y .ic { background: var(--ok-bg); color: var(--ok); }
.chklist .p .ic { background: var(--warn-bg); color: var(--warn); }
.chklist .n .ic { background: var(--bad-bg); color: var(--bad); }
.chklist span.r { margin-left: auto; color: var(--ink-3); font-size: 13px; }

/* Numbers on the page */
.nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.nums > div { padding: 16px 16px 16px 0; border-right: 1px solid var(--hair); }
.nums > div + div { padding-left: 16px; }
.nums > div:last-child { border-right: 0; }
.nums .n { font-family: var(--mono); font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.nums .n small { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.nums .k { font-size: 13px; color: var(--ink-2); margin-top: 4px; font-weight: 500; }
.nums .so { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.nums .so.ok { color: var(--ok); } .nums .so.warn { color: var(--warn); }

/* Tables ------------------------------------------------------------------ */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding: 6px 10px 6px 0; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.tbl td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--hair); vertical-align: top; color: var(--ink-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--row-hover); }
.tbl td.k { color: var(--ink); font-weight: 600; }
.tbl .sub { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; margin-top: 1px; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .act { text-align: right; white-space: nowrap; }
.tbl a { text-decoration: none; font-weight: 600; }
.tbl .sel { min-height: 26px; padding: 2px 24px 2px 8px; font-size: 12.5px; width: auto; }
.spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; vertical-align: middle; }
.spark i { width: 4px; background: var(--hair-2); border-radius: 1px; display: block; }
.spark i.hi { background: var(--accent); }
.tbl-wrap { overflow-x: auto; }

/* Page (non-mail) layouts --------------------------------------------------- */
.page { max-width: 1120px; margin: 0 auto; padding: 24px 24px 64px; }
.page.narrow { max-width: 960px; }
.crumbs { font-size: 12.5px; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { text-decoration: none; color: var(--ink-3); }
.crumbs span { margin: 0 6px; }
.scope { display: flex; align-items: center; gap: 14px; margin: 16px 0 0; }
.rail { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 44px; }
@media (max-width: 900px) { .rail { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: calc(var(--hdr) + 16px); }
.plan { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 13px; color: var(--ink-2); padding: 10px 0; border-bottom: 1px solid var(--hair); margin-top: 14px; }
.plan b { color: var(--ink); font-weight: 600; }
.meter { display: inline-flex; gap: 2px; vertical-align: -1px; margin: 0 6px 0 2px; }
.meter i { width: 9px; height: 9px; border-radius: 2px; background: var(--fill-h); }
.meter i.on { background: var(--accent); }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); padding: 10px 0; border-bottom: 1px solid var(--hair); }
.note svg { width: 16px; height: 16px; flex: none; color: var(--accent-ink); margin-top: 2px; }

/* Settings layout (profile) ------------------------------------------------- */
.set { display: grid; }
.set > div { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); align-items: start; }
.set > div:last-child { border-bottom: 0; }
.set .k { font-size: 14px; font-weight: 600; padding-top: 5px; }
.set .k small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; line-height: 1.4; }
.set .v { display: grid; gap: 8px; }
.set .v .in, .set .v .sel { max-width: 420px; }
.set .v.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.upload { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; max-width: 520px; }
.upload .f { display: flex; align-items: center; gap: 10px; }
.upload .f svg { width: 18px; height: 18px; color: var(--ink-3); }
.upload small { display: block; color: var(--ink-3); font-size: 12px; }
.savebar { position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--hair); padding: 10px 0; display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.preview { border-top: 1px solid var(--hair); }
.preview .h { font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding: 10px 0 4px; }

/* Footer -------------------------------------------------------------------- */
.ftr { border-top: 1px solid var(--hair); padding: 14px 20px; font-size: 12px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ftr a { color: var(--ink-3); text-decoration: none; }
.app + .ftr { display: none; }

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

@media (max-width: 700px) { .hdr nav { display: none; } .hdr { gap: 10px; padding: 0 14px; } .hdr .acct { display: none; } }

/* Added in the build ------------------------------------------------------ */
.flash { padding: 10px 20px; font-size: 14px; border-bottom: 1px solid var(--hair); background: var(--tint); }
.flash.bad { background: var(--bad-bg); color: var(--bad); }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.links-grid { columns: 2; column-gap: 28px; font-size: 14.5px; }
@media (min-width: 700px) { .links-grid { columns: 4; } }
.links-grid a { display: block; padding: 4px 0; text-decoration: none; color: var(--ink); }
.links-grid a .n { font-size: 12px; opacity: .7; margin-left: 4px; }
.stack { display: grid; gap: 8px; }
.prose li { margin: 0 0 4px; }
.side form.stack .seg button { font: inherit; }
@media (max-width: 900px) { .side[style*="block"] { display: block; } }
.tbl .sel { width: auto; }
textarea.in { min-height: 80px; resize: vertical; }
.kv { font-size: 13.5px; }
.opt, .saved { text-decoration: none; }

/* Client logos ---------------------------------------------------------- */
.elogo { width: 28px; height: 28px; border-radius: 4px; object-fit: contain; background: #fff; padding: 2px; flex: none; vertical-align: middle; }
.elogo.lg { width: 56px; height: 56px; border-radius: 6px; padding: 4px; }
.row .t .elogo { margin-right: 8px; }
.row .hd { display: flex; align-items: center; gap: 10px; }
.row .hd .t { flex: 1; }
.lt-row { display: flex; align-items: center; gap: 14px; }
.hdr .logo img { filter: none; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); }
.in, .sel { color-scheme: dark; }
