/* The employee screens — gate, form, ticket, find my ticket.
   These are read on a phone held one-handed in a corridor, with the company's QR poster
   still on the wall behind. Everything here starts at 375 px and only widens: one column,
   one decision per screen, and the orange is spent on exactly one button per screen.
   Tokens and primitives come from base.css; this sheet is only what the employee adds. */

/* ── Masthead ─────────────────────────────────────────── */

.masthead {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.masthead-in {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0 var(--pad);
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: -0.01em;
  padding-top: 0.1em;
}
.masthead .tag {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--orange-soft);
  background: var(--orange-tint);
  border-radius: 3px;
  padding: 0.22rem 0.4rem;
  white-space: nowrap;
}
.masthead .spacer {
  flex: 1;
}
.masthead .who {
  font-size: 0.78rem;
  color: var(--ink-mute);
  text-align: right;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ── Shell ────────────────────────────────────────────── */

.shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.4rem var(--pad) 3.5rem;
}
.busy {
  color: var(--ink-faint);
  font-size: 0.9rem;
  padding: 2rem 0;
}
.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.88rem;
  color: var(--ink-mute);
  text-decoration: none;
  margin: 0 0 0.2rem;
}
.back:hover {
  color: var(--ink);
}

/* A short Filipino line under an English one, where the English alone is easy to skim
   past. Deliberately quieter than the label above it — it is a nudge, not a second UI. */
.tl {
  font-size: 0.85rem;
  color: var(--ink-faint);
  font-style: italic;
  margin: 0.15rem 0 0;
}

.head {
  margin: 0 0 1.2rem;
}
.head .lede {
  margin-bottom: 0;
}

/* ── Forms ────────────────────────────────────────────── */

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 0.8rem;
}
@media (min-width: 460px) {
  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid.two .span {
    grid-column: 1 / -1;
  }
}
.field.req > .label::after {
  content: ' *';
  color: var(--orange);
}
.field-error {
  display: block;
  font-size: 0.8rem;
  color: var(--danger);
  margin: 0.3rem 0 0;
  line-height: 1.4;
}

/* Segmented control — two taps wide, both of them 46 px tall. */
.seg {
  display: flex;
  gap: 0.5rem;
}
.seg label {
  flex: 1;
  position: relative;
}
.seg input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 0.95rem;
  font-weight: 500;
}
.seg input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.seg input:focus-visible + span {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ── Hour picker ──────────────────────────────────────── */

.hours-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 1.5rem 0 0.15rem;
}
.hours-head h2 {
  margin: 0;
}
.hours-head .left {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  white-space: nowrap;
}
.hours {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.7rem 0 0;
}
@media (min-width: 560px) {
  .hours {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.hour {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15rem;
  min-height: 62px;
  padding: 0.55rem 0.6rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  text-align: left;
}
.hour .win {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.hour .left {
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--ink-mute);
}
.hour.on {
  border-color: var(--orange);
  background: var(--orange-tint);
}
.hour.on .left {
  color: var(--orange);
  font-weight: 500;
}
.hour[disabled] {
  background: var(--paper-3);
  border-style: dashed;
  border-color: var(--line-soft);
  color: var(--ink-faint);
  cursor: not-allowed;
}
.hour[disabled] .left {
  color: var(--ink-faint);
  font-weight: 500;
}

/* ── Consent ──────────────────────────────────────────── */

.consent {
  margin: 1.6rem 0 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: 0.9rem 1rem;
}
.consent p {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-mute);
  margin: 0 0 0.7rem;
}
.consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-height: 44px;
  cursor: pointer;
}
.consent input {
  width: 22px;
  height: 22px;
  margin: 0.55rem 0 0;
  flex: none;
  accent-color: var(--orange);
}
.consent label span {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  padding-top: 0.5rem;
}

.submit-row {
  margin: 1.2rem 0 0;
}
.submit-row .btn {
  width: 100%;
}
.after-submit {
  margin: 0.7rem 0 0;
  text-align: center;
}
/* These read as part of a sentence, but they are still the only way off the screen for
   someone who already signed up — so they carry the 44 px tap floor like any control. */
.after-submit a,
.shot-hint a {
  display: inline-block;
  padding: 0.75rem 0.3rem;
}

/* ── Drive picker ─────────────────────────────────────── */

.drive-pick {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 0;
}
.drive-pick button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  min-height: 66px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  background: var(--paper-2);
  text-align: left;
}
.drive-pick .when {
  font-size: 1rem;
  font-weight: 600;
}
.drive-pick .where {
  font-size: 0.85rem;
  color: var(--ink-mute);
}

/* ── Ticket ───────────────────────────────────────────── */

.ticket {
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: 1.3rem var(--pad) 1.4rem;
}
.ticket .cap {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}
.batch-big {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4rem, 26vw, 6.5rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  margin: 0.25rem 0 0.3rem;
}
.batch-win {
  font-family: var(--mono);
  font-size: clamp(1.25rem, 6.4vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.15rem;
}
.batch-date {
  font-size: 1rem;
  color: var(--ink-mute);
  margin: 0;
}
.ticket .facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem 0.9rem;
  margin: 1.3rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.92rem;
}
.ticket .facts dt {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 0.35em;
}
.ticket .facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.ticket-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.ticket-top .grow {
  flex: 1;
  min-width: 0;
}
.ticket-top .pill {
  flex: none;
  margin-top: 0.15rem;
}

.qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.4rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line-soft);
}
.qr-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem;
  width: max-content;
  max-width: 100%;
}
.qr-box svg {
  display: block;
  width: min(176px, 52vw);
  height: auto;
}
.qr-cap {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0.5rem 0 0;
  text-align: center;
}
.ticket-code {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0.35rem 0 0;
  text-align: center;
}

.ticket-actions {
  display: grid;
  gap: 0.6rem;
  margin: 1.2rem 0 0;
}
@media (min-width: 460px) {
  .ticket-actions {
    grid-template-columns: 1fr 1fr;
  }
}
.bring {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 1.2rem 0 0;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  background: var(--teal-tint);
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  line-height: 1.5;
}
.bring b {
  font-weight: 600;
}
.shot-hint {
  margin: 0.9rem 0 0;
  text-align: center;
}

/* ── Find ─────────────────────────────────────────────── */

.found {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 0;
}
.found a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 62px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  background: var(--paper-2);
  text-decoration: none;
}
.found .no {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  flex: none;
}
.found .meta {
  min-width: 0;
}
.found .meta .win {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.9rem;
}
.found .meta .sub {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-mute);
}
