/* FCCP WEX Timekeeping - same colors and layout as the original participant app. */
:root {
  /* FCCP logo colors: navy #1b1464, purple #726a9c, green #6bb43c */
  --ink: #1b1464;
  --ink-hover: #2b2384;
  --green: #5f578f;
  --muted: #5c5a73;
  --line: #dcd9ea;
  --line-soft: #ebe9f3;
  --field: #c9c5de;
  --field-bg: #fcfcfe;
  --page: #f5f5fa;
  --tint: #f3f2f9;
  --chip: #eaf5e1;
  --chip-ink: #3c7a1c;
  --brand-green: #6bb43c;
  --warn-bg: #fff4df;
  --warn-ink: #765517;
  --gold: #e2b85b;
  --red-bg: #f2eeee;
  --red-ink: #6d3838;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
.hidden { display: none !important; }

.env-banner { background: var(--gold); color: #3b2a05; text-align: center; font-size: 13px; font-weight: 700; padding: 4px 8px; letter-spacing: .04em; }

/* layout */
.center-screen { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.loading-text { font-size: 18px; font-weight: 600; }
.card-xl { width: 100%; max-width: 448px; background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: 32px; box-shadow: 0 24px 70px rgba(27,20,100,.12); }
.split { width: 100%; max-width: 1024px; display: grid; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 32px; box-shadow: 0 24px 70px rgba(27,20,100,.12); }
.split-left { background: var(--ink); color: #fff; padding: 32px; }
.split-right { padding: 32px; }
@media (min-width: 768px) { .split { grid-template-columns: .88fr 1.12fr; } .split-left, .split-right { padding: 48px; } .card-xl { padding: 40px; } }
.wrap { max-width: 672px; margin: 0 auto; padding: 20px 16px 40px; }
.section { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 20px; margin-top: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.section:first-child { margin-top: 0; }
@media (min-width: 640px) { .section { padding: 28px; } .wrap { padding: 32px 24px 48px; } }

/* header */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 672px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { height: 48px; width: 48px; flex-shrink: 0; display: grid; place-items: center; }
.brand-mark img { height: 100%; width: 100%; object-fit: contain; }
.brand-mark.no-logo { width: auto; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 800; letter-spacing: .08em; font-size: 14px; }
.brand-mark.big { height: 88px; width: 88px; }
.brand-name { font-weight: 700; letter-spacing: .12em; }
.brand-sub { font-size: 12px; color: var(--green); }

/* type */
h1, h2, h3, p { margin: 0; }
.eyebrow { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--green); }
.title { font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.h2 { font-size: 18px; font-weight: 600; }
.h3 { font-size: 16px; font-weight: 600; }
.muted { color: var(--muted); }
.green { color: var(--green); }
.small { font-size: 14px; }
.xs { font-size: 12px; }
.strong { font-weight: 600; }
.big-num { font-size: 24px; font-weight: 600; margin-top: 4px; }
.mt1 { margin-top: 4px; } .mt2 { margin-top: 8px; } .mt3 { margin-top: 12px; } .mt4 { margin-top: 16px; } .mt5 { margin-top: 20px; } .mt6 { margin-top: 24px; } .mt8 { margin-top: 32px; }

/* forms */
label.field { display: block; font-size: 14px; font-weight: 600; margin-top: 16px; }
.input, .select, .textarea { display: block; width: 100%; margin-top: 8px; min-height: 48px; border: 1px solid var(--field); background: var(--field-bg); border-radius: 12px; padding: 12px 16px; outline: none; font-size: 16px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px #dcd9f0; }
.pin { font-size: 20px; letter-spacing: .35em; }
.time-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.time-row .select { margin-top: 0; padding: 0 10px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; margin-top: 16px; font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--ink); flex-shrink: 0; }

/* buttons */
.btn { display: block; width: 100%; min-height: 48px; border-radius: 12px; padding: 12px 20px; font-weight: 600; border: 1px solid var(--field); background: #fff; color: var(--ink); text-align: center; }
.btn:hover:not(:disabled) { background: var(--tint); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--ink-hover); }
.btn-big { min-height: 64px; font-size: 20px; border-radius: 16px; }
.btn-green { background: #3c7a1c; border-color: #3c7a1c; color: #fff; }
.btn-green:hover:not(:disabled) { background: #2f6315; }
.btn-inline { display: inline-block; width: auto; }
.link { background: none; border: none; padding: 0; color: var(--green); font-weight: 600; font-size: 14px; }
.link:hover:not(:disabled) { color: var(--ink); }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.edit-btn { text-align: left; min-height: 52px; margin-top: 16px; }

/* blocks */
.alert { background: var(--warn-bg); color: var(--warn-ink); border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 500; margin-top: 16px; }
.alert b { font-weight: 700; }
.notice-gold { background: #fff8e7; border: 1px solid var(--gold); color: #5d430f; border-radius: 12px; padding: 14px 16px; font-size: 14px; margin-top: 16px; }
.closed-box { border: 2px solid var(--warn-ink); background: var(--warn-bg); border-radius: 16px; padding: 16px; }
.panel { background: var(--tint); border-radius: 16px; padding: 16px; }
.info-grid { display: grid; gap: 12px; font-size: 14px; }
@media (min-width: 640px) { .info-grid.two { grid-template-columns: 1fr 1fr; } .span2 { grid-column: span 2; } }
.tiles { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fff; }
.tile-label { font-size: 14px; font-weight: 600; color: var(--green); }
.row-between { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.chip { display: inline-flex; border-radius: 999px; background: var(--chip); color: var(--chip-ink); padding: 6px 12px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.chip-sm { padding: 4px 12px; font-size: 12px; }
.chip-warn { background: var(--warn-bg); color: var(--warn-ink); }
.chip-red { background: var(--red-bg); color: var(--red-ink); }
.shift { border: 1px solid var(--line-soft); border-radius: 16px; padding: 16px; margin-top: 12px; }
.shift-held { border-color: var(--gold); background: #fffdf6; }
dl.times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; font-size: 14px; margin: 12px 0 0; }
dl.times dt { color: var(--green); }
dl.times dd { margin: 4px 0 0; font-weight: 600; }
.group-head { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.group-head:first-of-type { border-top: none; padding-top: 0; }
details.past { border: 1px solid var(--line-soft); border-radius: 16px; padding: 16px; margin-top: 12px; }
details.past summary { list-style: none; cursor: pointer; }
details.past summary::-webkit-details-marker { display: none; }
.meal-note { margin-top: 12px; background: #e8f1fa; border-left: 4px solid #6a9bd1; border-radius: 8px; padding: 8px 12px; font-size: 14px; color: #23415f; }
.past-shift { background: var(--tint); border-radius: 12px; padding: 12px; margin-top: 12px; }

/* dialogs */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0,0,0,.4); padding: 24px 16px; }
.dialog { width: 100%; max-width: 448px; max-height: 100%; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.dialog.wide { max-width: 576px; }
@media (min-width: 640px) { .dialog { padding: 28px; } }
.done { padding: 32px 0; text-align: center; }
.done-title { font-size: 24px; font-weight: 600; color: var(--chip-ink); }
canvas.sig { display: block; width: 100%; height: 192px; margin-top: 20px; border: 1px solid #a7a2c6; border-radius: 12px; background: #fff; touch-action: none; }

/* ===== 2026-10-25 redesign: tabs, status card, meaning colors ===== */
/* Meaning colors: green = done/good, amber = needs you, blue = information, red = problem */
:root {
  --ok: #2f7d1e; --ok-bg: #eaf5e1; --ok-line: #b9dca3;
  --act: #a15c07; --act-bg: #fff4df; --act-line: #f1cf8f;
  --info: #22558f; --info-bg: #e8f1fa; --info-line: #b8d2ee;
  --bad: #b42318; --bad-bg: #fdecea; --bad-line: #f3b8b2;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap.with-tabs { padding-bottom: 110px; }

/* bottom tabs */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(27,20,100,.06); }
.tab { position: relative; background: none; border: 0; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; font-size: 12px; font-weight: 600; color: var(--muted); border-radius: 12px; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tab.active { color: var(--ink); background: var(--tint); }
.tab-clock.active { color: var(--ink); } .tab-hours.active { color: var(--ok); } .tab-timecard.active { color: #5f578f; } .tab-more.active { color: var(--info); }
.tab .badge { position: absolute; top: 4px; right: calc(50% - 18px); width: 10px; height: 10px; border-radius: 50%; background: var(--act); border: 2px solid #fff; }
@media (min-width: 700px) { .tabbar { max-width: 672px; margin: 0 auto; border: 1px solid var(--line); border-radius: 20px 20px 0 0; } }

/* next step line */
.next { display: flex; align-items: center; gap: 12px; border-radius: 16px; padding: 14px 16px; margin-bottom: 16px; border: 1px solid; font-weight: 600; font-size: 15px; }
.next p { flex: 1; }
.next.tappable { cursor: pointer; }
.next-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; }
.next-go { font-size: 26px; line-height: 1; }
.next.tone-green { background: var(--ok-bg); border-color: var(--ok-line); color: #1f5413; } .next.tone-green .next-icon { background: var(--ok); }
.next.tone-amber { background: var(--act-bg); border-color: var(--act-line); color: #6e3f05; } .next.tone-amber .next-icon { background: var(--act); }
.next.tone-blue { background: var(--info-bg); border-color: var(--info-line); color: #173d67; } .next.tone-blue .next-icon { background: var(--info); }
.next.tone-red { background: var(--bad-bg); border-color: var(--bad-line); color: #7a1a12; } .next.tone-red .next-icon { background: var(--bad); }

/* status card */
.status-card { border-radius: 24px; padding: 22px 20px; border: 2px solid; }
.status-label { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.status-title { font-size: 26px; font-weight: 700; margin-top: 4px; }
.status-sub { font-size: 15px; margin-top: 4px; }
.status-card.tone-off { background: #fff; border-color: var(--line); } .tone-off .status-label { color: var(--muted); }
.status-card.tone-working { background: var(--ok-bg); border-color: var(--ok-line); } .tone-working .status-label { color: var(--ok); }
.status-card.tone-amber { background: var(--act-bg); border-color: var(--act-line); } .status-card.tone-amber .status-label { color: var(--act); }
.status-card.tone-green { background: var(--ok-bg); border-color: var(--ok-line); }
.status-card.tone-gray { background: #fff; border-color: var(--line); }
.btn-go { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-go:hover:not(:disabled) { background: #256416; }
.btn-red { background: #c2410c; border-color: #c2410c; color: #fff; }
.btn-red:hover:not(:disabled) { background: #a3360a; }
.btn-amber { background: var(--act); border-color: var(--act); color: #fff; }
.btn-amber-outline { background: #fff; border: 2px solid var(--act); color: var(--act); }
.btn-amber-outline:hover:not(:disabled) { background: var(--act-bg); }

/* tinted sections */
.section.tone-blue-soft, .tile.tone-blue-soft { background: var(--info-bg); border-color: var(--info-line); }
.tone-blue-soft .tile-label { color: var(--info); }
.section.tone-amber-soft { background: #fffaf0; border-color: var(--act-line); }
.section.tone-hours { border-top: 5px solid var(--ok); }
.section.tone-card { border-top: 5px solid #5f578f; }
.callout { border-radius: 14px; padding: 14px 16px; border: 1px solid; margin-bottom: 14px; }
.callout.tone-green { background: var(--ok-bg); border-color: var(--ok-line); }
.callout.tone-amber { background: var(--act-bg); border-color: var(--act-line); }
.info-note { margin-top: 12px; background: var(--info-bg); border-left: 4px solid var(--info); border-radius: 8px; padding: 8px 12px; font-size: 14px; color: #173d67; }
.total-row { display: flex; gap: 28px; margin-top: 12px; }

/* pills */
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill-green { background: var(--ok-bg); color: var(--ok); } .pill-amber { background: var(--act-bg); color: var(--act); }
.pill-blue { background: var(--info-bg); color: var(--info); } .pill-red { background: var(--bad-bg); color: var(--bad); }
.legend { margin: 6px 4px 0; line-height: 2; }

/* compact shift rows */
details.srow { border-top: 1px solid var(--line-soft); }
details.srow:first-of-type { border-top: 0; }
details.srow summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "day hrs" "time pill"; gap: 2px 10px; align-items: center; padding: 12px 2px; font-size: 15px; }
details.srow summary::-webkit-details-marker { display: none; }
.srow-day { grid-area: day; font-weight: 700; } .srow-time { grid-area: time; color: var(--muted); font-size: 14px; }
.srow-hrs { grid-area: hrs; font-weight: 700; text-align: right; } details.srow summary .pill { grid-area: pill; justify-self: end; }
.srow-amber summary .srow-day { color: var(--act); }
.srow-body { padding: 0 2px 14px; }

/* steps */
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 14px 0 6px; }
.steps li { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); border: 1px solid var(--line); font-size: 12px; }
.steps li.now { color: var(--ink); } .steps li.now span { background: var(--ink); color: #fff; border-color: var(--ink); }
.steps li.done { color: var(--ok); } .steps li.done span { background: var(--ok); color: #fff; border-color: var(--ok); }

/* toast + guide */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 92px; z-index: 60; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: calc(100% - 32px); text-align: center; }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: 20px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--ink); }
/* 2026-10-25: install-the-app card */
.install-card { margin-top: 20px; background: #eef7e6; border: 1px solid #b9dc9f; border-radius: 14px; padding: 14px 16px; color: #1f3a12; }
.install-card .strong { font-weight: 700; }
.install-steps { margin: 8px 0 0; padding-left: 20px; line-height: 1.6; }
.install-steps li + li { margin-top: 4px; }
.share-ico { width: 18px; height: 18px; vertical-align: -3px; color: #1a6fd1; }

.section > .install-card:first-child { margin-top: 0; }
/* 2026-10-25: phone turned sideways - wider dialog and a taller signing box */
.turn-tip { display: none; }
@media (orientation: portrait) and (pointer: coarse) { .turn-tip { display: block; } }
@media (orientation: landscape) and (max-height: 540px) {
  .overlay { padding: 8px; }
  .dialog { max-width: 760px; padding: 14px 18px; border-radius: 16px; }
  canvas.sig { height: max(140px, calc(100vh - 190px)); margin-top: 12px; }
}

