/* Lite: big, plain and friendly. A phone first (tabs along the bottom); on a computer the tabs sit in the top bar and
   the week is seven columns across the whole window. */
:root { --bg: #f4f7f2; --card: #ffffff; --ink: #17241b; --muted: #5b6b60; --line: #d7e0d6; --go: #1f6f43; --go-ink: #ffffff; --soft: #e4f1e7; --warn: #fff1cc; --warn-ink: #6a4a00; --late: #fde3df; --late-ink: #8a1f12; --link: #1a5fb4; }
@media (prefers-color-scheme: dark) { :root { --bg: #111713; --card: #1a221c; --ink: #eaf2ec; --muted: #a3b3a8; --line: #2f3b33; --go: #4fb37a; --go-ink: #08130c; --soft: #20322a; --warn: #3b3113; --warn-ink: #f3d27a; --late: #44201b; --late-ink: #ffb4a8; --link: #8ab8ff; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; padding-bottom: 76px; }
a { color: var(--link); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.who strong { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The PathWay mark: small in the top bar, large on the sign-in page */
.logo { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.logo.big { display: block; width: 84px; height: 84px; border-radius: 18px; margin: 0 0 12px; }
.tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--go); white-space: nowrap; }
#tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; background: var(--card); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
#tabs a { flex: 1; text-align: center; padding: 10px 4px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
#tabs a[aria-current="page"] { background: var(--soft); color: var(--go); }
main { max-width: 640px; margin: 0 auto; padding: 14px 16px 24px; }
h2 { font-size: 20px; margin: 4px 0 10px; }
h3 { font-size: 17px; margin: 0 0 6px; }
p { margin: 4px 0; }
.muted { color: var(--muted); font-size: 15px; }
#notice { max-width: 640px; margin: 12px auto 0; padding: 10px 14px; border-radius: 10px; background: var(--soft); color: var(--ink); font-weight: 600; }
#notice.bad { background: var(--late); color: var(--late-ink); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 10px 0; overflow-wrap: anywhere; }
button, .btn { font: inherit; font-weight: 600; min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
button.go, .btn.go { background: var(--go); border-color: var(--go); color: var(--go-ink); }
button.wide { width: 100%; }
button:disabled { opacity: .55; cursor: default; }
button.plain { border: none; background: none; color: var(--link); min-height: 0; padding: 4px 0; font-weight: 600; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
label { display: block; font-size: 15px; font-weight: 600; margin: 10px 0 4px; }
input, select { font: inherit; width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
details > summary { cursor: pointer; font-weight: 600; padding: 8px 0; color: var(--link); }
.pill { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--soft); color: var(--go); white-space: nowrap; }
.pill.warn { background: var(--warn); color: var(--warn-ink); }
.pill.late { background: var(--late); color: var(--late-ink); }
/* the Day | Week switch: one or the other */
.seg { display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.seg button { flex: 1; border: none; border-radius: 0; background: none; color: var(--muted); }
.seg button.on { background: var(--go); color: var(--go-ink); }
.nav { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; }
.nav strong { flex: 1; text-align: center; font-size: 16px; }
.nav button { min-width: 44px; padding: 8px 10px; }
/* a job */
.job { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 8px 0; background: var(--card); }
.job.done { background: var(--soft); }
.job.planned { border-style: dashed; }
.job .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.job .head strong { font-size: 17px; }
/* the week: seven days, stacked on a phone */
.week { display: grid; gap: 10px; margin-top: 8px; }
.day { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; min-width: 0; }
.day.today { border-color: var(--go); border-width: 2px; }
.day > button.dayhead { width: 100%; justify-content: space-between; border: none; background: none; padding: 4px 2px; min-height: 36px; }
.dayhead .num { font-size: 20px; }
.slot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding: 8px 2px; }
.slot div { min-width: 0; }
.slot strong { display: block; font-size: 15px; }
.slot span.sub { font-size: 14px; color: var(--muted); }
.slot.done strong { text-decoration: line-through; color: var(--muted); }
.slot button { min-height: 38px; padding: 6px 10px; font-size: 14px; flex: none; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-top: 1px solid var(--line); padding: 10px 0; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.list li:first-child { border-top: none; }
.list li > div { min-width: 0; }
.bar { height: 14px; border-radius: 7px; background: var(--soft); overflow: hidden; margin: 8px 0 4px; }
.bar i { display: block; height: 100%; background: var(--go); }
.bigmoney { font-size: 34px; font-weight: 800; line-height: 1.1; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* a computer: tabs in the top bar, the week across the whole window */
/* ---- the booking QR code: on screen, and printed on its own page ---- */
.qr-sheet { text-align: center; }
.qr-sheet .qr svg { width: min(78vw, 340px); height: auto; display: block; margin: 8px auto; border-radius: 12px; }
.qr-sheet .qr-name { font-size: 26px; font-weight: 800; margin: 6px 0 2px; }
.qr-sheet .qr-what { font-size: 18px; margin: 0 0 6px; }
.qr-sheet .qr-link { font-size: 13px; color: var(--muted); word-break: break-all; }
.rail-qr svg { width: 150px; height: auto; display: block; margin: 6px auto; border-radius: 10px; }
@media print {
  body { background: #fff !important; color: #000; padding: 0; }
  .top, #tabs, #notice, .dk-rail, .no-print { display: none !important; }
  .dk-shell, main, .card { display: block !important; background: #fff !important; border: 0 !important; box-shadow: none !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
  .qr-sheet { padding-top: 40px; }
  .qr-sheet .qr svg { width: 12cm; }
  .qr-sheet .qr-name { font-size: 34px; color: #000; }
  .qr-sheet .qr-what { font-size: 22px; color: #000; }
  .qr-sheet .qr-link { color: #333; }
}

/* ---- a desktop browser tab only (Soul's web-tools rule, 2026-11-09; TenantShield and ShubhDate are the reference):
   the main screen in a glassy card, rails of live cards on both sides, the tabs as a floating pill dock at the bottom.
   Never the installed app (display-mode + body[data-display]), never a phone (width). ---- */
.dk-shell { display: contents; }
.dk-rail { display: none; }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .top { padding: 12px 28px; }
  #tabs { position: static; border: none; padding: 0; background: none; gap: 6px; }
  #tabs a { flex: none; padding: 8px 16px; }
  main { max-width: 760px; padding: 20px 28px 40px; }
  main.wide { max-width: none; }
  #notice { max-width: 760px; }
  .week { grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: start; }
  .slot { flex-direction: column; align-items: stretch; }
  .slot button { width: 100%; }
  .controls { display: flex; align-items: center; gap: 16px; }
  .controls .seg { width: 220px; flex: none; }
  .controls .nav { flex: 1; margin: 0; }
}
@media (min-width: 720px) and (display-mode: browser) {
  body[data-display="browser"] {
    padding-bottom: 110px;
    background:
      radial-gradient(640px 480px at 6% 8%, rgba(31, 111, 67, 0.16) 0%, transparent 70%),
      radial-gradient(640px 480px at 94% 14%, rgba(176, 122, 34, 0.12) 0%, transparent 70%),
      radial-gradient(760px 560px at 50% 100%, rgba(31, 111, 67, 0.12) 0%, transparent 72%),
      var(--bg);
    background-attachment: fixed;
  }
  /* no backdrop-filter on the top bar: it would make it the box the fixed dock (#tabs, inside it) is placed in */
  body[data-display="browser"] .top { max-width: 1440px; margin: 16px auto 0; border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb, var(--card) 94%, transparent); box-shadow: 0 14px 36px -24px rgba(10, 30, 18, 0.45); }
  body[data-display="browser"] #tabs {
    position: fixed; left: 50%; right: auto; bottom: 18px; transform: translateX(-50%); z-index: 25; width: auto; min-width: 520px;
    gap: 6px; padding: 6px; border-radius: 999px; background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(14px);
    border: 1px solid var(--go); box-shadow: 0 12px 36px rgba(10, 30, 18, 0.22), 0 0 24px rgba(31, 111, 67, 0.22);
  }
  body[data-display="browser"] #tabs a { flex: 1; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: 999px; font-size: 15px; }
  body[data-display="browser"] #tabs a:hover { background: var(--soft); color: var(--go); }
  body[data-display="browser"] #tabs a[aria-current="page"] { background: var(--go); color: var(--go-ink); }
  body[data-display="browser"] main { max-width: 820px; margin: 18px auto 0; padding: 20px 26px 26px; background: color-mix(in srgb, var(--card) 86%, transparent); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 44px -24px rgba(10, 30, 18, 0.45); }
  body[data-display="browser"] main.wide { max-width: 1100px; }
}
@media (min-width: 1180px) and (display-mode: browser) {
  body[data-display="browser"] .dk-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr) 280px; gap: 22px; max-width: 1440px; margin: 0 auto; padding: 18px 20px 0; align-items: start; }
  body[data-display="browser"] .dk-shell main, body[data-display="browser"] .dk-shell main.wide { max-width: none; margin: 0; min-height: calc(100vh - 190px); }
  body[data-display="browser"] #notice { max-width: 1440px; }
  body[data-display="browser"] .dk-rail { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 18px; }
  .dk-card { position: relative; overflow: hidden; background: color-mix(in srgb, var(--card) 90%, transparent); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: 0 12px 30px -22px rgba(10, 30, 18, 0.5); }
  .dk-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--go), #4fb37a, #b07a22); }
  .dk-card.dk-pulse { background: linear-gradient(160deg, var(--soft) 0%, color-mix(in srgb, var(--card) 92%, transparent) 62%); }
  .dk-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--go); margin-bottom: 8px; }
  .dk-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--go); box-shadow: 0 0 8px var(--go); }
  .dk-big { font-size: 38px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.05; }
  .dk-sub { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
  .dk-facts { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; }
  .dk-facts li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
  .dk-facts li b { font-weight: 800; }
  .dk-card .btn, .dk-card button { width: 100%; margin-top: 10px; }
}
