/* Crew rollout. Lime #C5E017 is only a fill behind black text. */

body.signin { background: var(--page); color: var(--text); }
body.signin .fc-polish-controls { display: none; }
body.signin .auth-brand { display: none; }
body.signin .landing { max-width: 430px; padding: 0 0 28px; gap: 0; background: var(--page); }
body.signin #card-signin { background: transparent; border: 0; box-shadow: none; padding: 22px 20px 0; }
body.signin #card-signin .card-title { font-family: Inter, system-ui, sans-serif; text-transform: none; font-size: 34px; letter-spacing: -0.03em; margin: 0 0 8px; }
body.signin #card-signin .hint { color: var(--text-2); font-size: 16px; line-height: 1.35; margin: 0; }
body.signin .auth-card { margin: 16px; }

.rollout-bar {
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding: 16px 16px 14px;
}
.signin-wordmark { height: 28px; width: auto; max-width: 220px; }
.pin-dots.shake { animation: pin-shake .35s linear; }
@keyframes pin-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}
.office-google {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin: 8px 16px 0;
  color: var(--info);
  font-weight: 800;
  text-decoration: none;
}
.how-far { margin: 16px 0; }
.how-far h2 { font-size: 22px; margin: 0 0 8px; }
.how-far-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.how-far-step {
  min-height: 56px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
}
.how-far-step.on { background: #C5E017; color: #000; }
.rollout-bar h1 {
  margin: 0;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: none;
}
.lang-pill {
  min-width: 64px;
  min-height: 48px;
  border: 2px solid #fff;
  border-radius: 16px;
  background: transparent;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}

.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 28px 0 22px; }
.pin-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; background: transparent; display: inline-block; }
.pin-dot.on { background: #fff; }
/* The hidden PIN lives in this slot. Do not anchor it to the viewport: iOS Safari hit-tests that input over the whole screen. */
.pin-slot {
  position: relative;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}
.pin-ghost {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
body.signin #lock-go { margin-top: 16px; }
.pin-ghost-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.pin-pad button {
  background: var(--surface-2);
  color: var(--text);
  border: 0;
  border-radius: 18px;
  min-height: 72px;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  box-shadow: none;
}
.pin-pad .pad-blank { visibility: hidden; }
.new-phone {
  display: block;
  width: calc(100% - 32px);
  margin: 28px 16px 8px;
  min-height: 56px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
  font-size: 16px;
}

body.field-sun .masthead { background: #000; }
body.field-sun .brand-mark { display: none; }
body.field-sun .screen-title h1,
body.field-sun #screen-title {
  font-family: Inter, system-ui, sans-serif;
  text-transform: none;
  letter-spacing: -0.03em;
  font-size: 28px;
  font-weight: 800;
}
body.field-sun .lang-toggle,
body.field-sun .more-toggle,
body.field-sun .notify-toggle {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
  border-radius: 16px;
}
body.field-sun .banner-note { display: none; }
body.field-sun.signed-in .banner-note#status-bar { display: block; background: var(--surface); color: var(--text); text-transform: none; letter-spacing: 0; font-size: 13px; }
body.admin .banner-note { display: none; }
body.admin.signed-in .banner-note { display: block; }

.dock { background: var(--surface); color: var(--text); grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.dock.leads { grid-template-columns: repeat(5, 1fr); }
.pin-extra { margin: 18px 0 0; text-align: center; }
.pin-extra .linkish { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 8px 12px; font-size: 15px; font-weight: 700; border: 0 !important; text-decoration: underline; text-underline-offset: 3px; }
.dock button { color: var(--text-2); text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 700; background: transparent; }
.dock button.on { background: #C5E017; color: #000; border-radius: 12px; }

.person-name { margin: 8px 0 12px; font-family: Inter, system-ui, sans-serif; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; text-transform: none; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 14px; font-weight: 700; border: 2px solid var(--line); background: var(--surface-2); color: var(--text); }
.status-pill.on { background: #C5E017; color: #000; border-color: #C5E017; }
.status-pill .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; display: inline-block; }
.job-card { background: var(--surface); border-radius: 18px; padding: 16px 16px 18px; margin: 16px 0; border: 1px solid var(--line); color: var(--text); }
.job-card .kicker, .week-block .kicker { display: block; color: var(--text-2); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.job-card .job-name { display: block; margin-top: 6px; font-family: Inter, system-ui, sans-serif; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; text-transform: none; }
.job-card .meta { margin: 6px 0 0; color: var(--text-2); }
.loc-ok { color: var(--text); font-weight: 700; }
.loc-ok .dot, .loc-miss { font-weight: 600; }
.loc-miss { color: var(--text-2); }
.week-block .week-label { margin: 0 0 8px; font-weight: 700; }
.week-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0; }
.week-cards article { background: var(--surface); border-radius: 16px; padding: 14px; border: 1px solid var(--line); color: var(--text); }
.week-cards strong { display: block; font-size: 36px; line-height: 1; }
.week-cards span { color: var(--text-2); }
.btn.ink { background: #111; color: #fff; border: 2px solid #111; }
.btn.primary, .btn-primary { background: #C5E017; color: #000; border-color: #C5E017; }
.btn.primary:disabled, .btn-primary:disabled { opacity: 1; background: #d5e56a; color: #000; }

.state-page { max-width: 430px; margin: 0 auto; padding: 24px 16px; }
.state-card { background: var(--surface); border-radius: 18px; padding: 22px 18px; border: 1px solid var(--line); color: var(--text); }
.state-card h2 { margin: 0 0 8px; font-family: Inter, system-ui, sans-serif; text-transform: none; }
.state-card p { margin: 0 0 16px; color: var(--text-2); }
.state-card .btn-primary, .state-card .btn.primary { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; min-height: 48px; padding: 0 16px; border-radius: 12px; font-weight: 800; }

.sheet .panel h2 { font-family: Inter, system-ui, sans-serif; text-transform: none; }
.rain-row, .clock-row { display: flex; gap: 10px; align-items: center; background: var(--surface-2); color: var(--text); border-radius: 14px; padding: 12px; margin: 8px 0; }

.receipt-queue { display: grid; gap: 12px; }
.receipt-filters { display: flex; gap: 8px; margin: 8px 0 12px; flex-wrap: wrap; }
.receipt-filters button { border-radius: 999px; border: 0; background: var(--surface-2); color: var(--text); min-height: 40px; padding: 0 14px; font-weight: 800; }
.receipt-filters button.on { background: #C5E017; color: #000; }
.receipt-card { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin: 0 0 12px; display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: start; }
.receipt-card.on { outline: 2px solid var(--text); }
.receipt-thumb { width: 56px; height: 72px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.receipt-card h3 { margin: 0; font-size: 18px; text-transform: none; font-family: Inter, system-ui, sans-serif; }
.receipt-card .amount { font-weight: 800; font-size: 18px; }
.receipt-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.receipt-actions .btn { flex: 1; }
.job-chip { display: inline-block; background: #C5E017; color: #000; font-weight: 800; border-radius: 8px; padding: 3px 8px; }
.dup-note { grid-column: 1 / -1; background: var(--surface-2); color: var(--danger); border-radius: 10px; padding: 8px 10px; font-weight: 700; }
.return-chip { display: inline-block; background: var(--surface-2); color: var(--text); border-radius: 8px; padding: 3px 8px; font-weight: 700; }
.receipt-fix { grid-column: 1 / -1; display: grid; gap: 8px; }
/* Preserve the office's disclosure/tab/filter state over component grid rules. */
body.admin [hidden] { display: none !important; }
body.admin a.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }
.receipt-detail { background: var(--surface); color: var(--text); border-radius: 16px; padding: 16px; }
.receipt-detail h3 { margin: 0 0 4px; text-transform: none; font-family: Inter, system-ui, sans-serif; }
.receipt-detail .amount { font-size: 36px; font-weight: 800; margin: 8px 0; }
.receipt-detail li { margin: 4px 0; }
.receipt-back { min-height: 48px; margin-bottom: 16px; }
body.admin .receipt-detail:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
body.admin .receipt-thumb { display: grid; place-items: center; color: var(--text-2); font-size: 30px; }
body.admin .receipt-card:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.receipt-original { width: min(920px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); }
.receipt-original::backdrop { background: rgb(0 0 0 / 80%); }
.receipt-original header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.receipt-original h2 { margin: 0; font: 700 20px Inter, sans-serif; text-transform: none; }
.receipt-original img { display: block; max-width: 100%; height: auto; margin: 16px auto 0; }
.receipt-photo-canvas { max-height: 65dvh; overflow: auto; overscroll-behavior: contain; }
.receipt-photo-canvas.actual-size img { max-width: none; margin-left: 0; }
.receipt-photo-canvas:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.receipt-original [data-photo-zoom][aria-pressed="true"] { background: #C5E017; color: #000; }
.receipt-original .btn { min-height: 48px; }
@media (max-width: 480px) {
  body.admin .receipt-card { grid-template-columns: 40px minmax(0, 1fr); }
  body.admin .receipt-thumb { width: 40px; height: 54px; }
  body.admin .receipt-card > .amount { grid-column: 2; overflow-wrap: anywhere; }
}
@media (min-width: 960px) {
  .receipt-queue { grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); align-items: start; }
  body.admin .receipt-detail { position: sticky; top: var(--receipt-detail-top, 96px); }
  body.admin .receipt-back { display: none; }
}

/* Review fixes (PR #24). */
body.signin { overflow-x: hidden; }
body.field-sun .my-day { background: transparent; color: var(--text); padding: 0; }
body.field-sun .my-day h2, body.field-sun .my-day p { color: var(--text); }
.job-card, .week-cards article { color: var(--text); }
/* Lime is a fill only: no lime text, borders or underlines on crew and sign-in screens. */
.dock button.on { background: #C5E017; color: #000 !important; }
body.signin .linkish, body.signin .auth-switch *, body.admin > p.wrap a { text-decoration-color: var(--text) !important; border-bottom-color: var(--text) !important; color: var(--info); }
body.field-sun .masthead { border-bottom-color: #000; }
input.pin-ghost,
input.pin-ghost[type="password"] {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 1px !important;
  max-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  font-size: 16px !important;
  letter-spacing: normal !important;
  line-height: 1 !important;
}

/* Not-scheduled cards stay neutral. Lime is only a fill behind black text. */
.no-board,
.eod-reminder,
body.field-sun .no-board,
body.field-sun .eod-reminder {
  border: 1px solid #e6e6e6;
  border-left-color: #e6e6e6;
  border-left-width: 1px;
}
.rain-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 16px; }
.rain-list .rain-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  background: var(--surface-2);
  color: var(--text);
  border-radius: 16px;
  padding: 16px;
  margin: 0;
  font-weight: 700;
}
.rain-list .rain-row input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  flex: 0 0 22px;
  border: 2px solid var(--text);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text);
  display: grid;
  place-items: center;
}
.rain-list .rain-row input:checked { background: #C5E017; border-color: #C5E017; }
.rain-list .rain-row input:checked::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* Keep the screen title clear of the top-right buttons on narrow phones. */
.masthead .screen-title { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.masthead #screen-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: clamp(17px, 5.2vw, 28px); }
.masthead .masthead-actions { flex: 0 0 auto; }
/* Today title: date on its own line so it always shows at 390px. */
.masthead #screen-title .title-date { display: block; margin-top: 3px; font-size: 13px; line-height: 1.1; font-family: var(--font-body, Inter, system-ui, sans-serif); font-weight: 700; text-transform: none; letter-spacing: 0; color: #fff; opacity: .85; }
.masthead #screen-title { white-space: nowrap; text-overflow: clip; }

/* Clock-in job picker (owner-approved frames). Lime = fill only; orange = temp/office link. */
.pill { display: inline-flex; align-items: center; gap: 6px; background: #C5E017; color: #000; font-weight: 800; border-radius: 22px; padding: 6px 14px; font-size: 14px; }
.pill.g { background: #1c1c1c; color: #fff; border: 1px solid #333; }
.pill.w { background: #ffb547; color: #000; }
.k { color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; margin: 0 0 6px; }
.mut { color: #c7c7c7; font-size: 14px; }
.h.clock-pick-title, .clock-pick-title { font-family: 'Barlow Condensed', Inter, sans-serif; font-weight: 800; font-size: 32px; line-height: 1.05; margin: 4px 0 8px; color: #fff; }
.job-pick-search { width: 100%; background: #121212; border: 1px solid #333; border-radius: 14px; color: #fff; font: 16px Inter, system-ui, sans-serif; padding: 0 14px; min-height: 52px; margin: 8px 0 14px; box-sizing: border-box; }
.chk.job-pick-row, .job-pick-row.chk { display: flex; align-items: center; gap: 12px; background: #121212; border: 1px solid #333; border-radius: 14px; padding: 14px; min-height: 56px; color: #fff; font-size: 16px; cursor: pointer; }
.rows { display: grid; gap: 8px; }
