/* The riders' lesson site (070). Phone first: one column, big targets, the
   farm's green and cream as in its emails. */
:root {
  --green: #2f4a3a; --green-deep: #22382b; --cream: #f6f4ef; --card: #fff;
  --ink: #222; --soft: #6f6f6a; --line: #e4e0d6; --sun: #F2D06E; --bad: #b3261e; --warn: #9a6700;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink);
       font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
.top { background: var(--green); color: #fff; display: flex; align-items: center; gap: 12px;
       padding: calc(12px + env(safe-area-inset-top)) 16px 12px; }
.top div { display: flex; flex-direction: column; line-height: 1.2; }
.top span { font-size: 13px; opacity: .8; }
main { max-width: 560px; margin: 0 auto; padding: 16px 14px calc(40px + env(safe-area-inset-bottom)); }
h2 { font-size: 17px; margin: 22px 2px 10px; }
h2:first-child { margin-top: 4px; }
.card { background: var(--card); border-radius: 12px; padding: 16px; margin-bottom: 12px;
        box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.muted { color: var(--soft); font-size: 14px; }
.center { text-align: center; }
.warn { color: var(--bad); font-weight: 600; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--soft); margin-bottom: 12px; }
input[type=email], input[type=text], input[inputmode], textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 12px; font-size: 17px; background: #fff; width: 100%; }
input.code { letter-spacing: .35em; text-align: center; font-size: 26px; font-variant-numeric: tabular-nums; }
.check { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; }
.check input { width: 22px; height: 22px; }
button { cursor: pointer; border-radius: 10px; border: 1px solid transparent; padding: 13px 16px; font-weight: 600; }
button.primary { background: var(--green); color: #fff; width: 100%; }
button.primary:active { background: var(--green-deep); }
button.quiet { background: #fff; border-color: var(--line); color: var(--ink); width: 100%; }
button.danger { background: #fff; border-color: #e6c7c4; color: var(--bad); width: 100%; }
button.link { background: none; border: 0; padding: 6px 2px; color: var(--green); font-weight: 600; text-decoration: underline; }
button:disabled { opacity: .5; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; background: #fff; border: 1px solid var(--line); border-radius: 999px;
        padding: 9px 16px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.lesson { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card);
          border: 0; border-left: 5px solid var(--green); border-radius: 12px; padding: 14px;
          margin-bottom: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.05); font-weight: 400; }
.lesson.waiting { border-left-color: var(--warn); }
.lesson .when { font-weight: 700; font-size: 16px; }
.lesson .grow { flex: 1; min-width: 0; }
.lesson .chev { color: var(--soft); font-size: 20px; }
.badge { display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 700; }
.badge.ok { background: #e4f1e8; color: var(--green); }
.badge.wait { background: #fbf1d8; color: var(--warn); }
.badge.fee { background: #fbe9e7; color: var(--bad); }
.day { margin-bottom: 14px; }
.day h3 { font-size: 15px; margin: 0 2px 8px; display: flex; justify-content: space-between; align-items: baseline; }
.day h3 span { font-weight: 400; color: var(--soft); font-size: 13px; }
.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.time { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 0;
        font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.time:active { background: var(--green); color: #fff; }
.time.late { border-style: dashed; border-color: var(--warn); color: var(--warn); }
.none { color: var(--soft); font-size: 14px; padding: 4px 2px; }
.banner { position: sticky; top: 0; z-index: 5; background: var(--sun); color: #3a2f08; border-radius: 12px;
          padding: 12px 14px; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.banner button { padding: 8px 12px; background: rgba(255,255,255,.7); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #e9e5da; border-radius: 10px; padding: 3px; margin-bottom: 12px; }
.seg button { background: none; padding: 9px; font-size: 14px; border-radius: 8px; color: var(--soft); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.sheet { position: fixed; inset: 0; background: rgba(20,28,22,.45); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet-card { background: #fff; width: 100%; max-width: 560px; border-radius: 18px 18px 0 0; max-height: 92vh; overflow: auto;
              padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
.sheet-card h2 { margin: 0 0 6px; font-size: 19px; }
.sheet-card p { margin: 6px 0 12px; }
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%);
         background: var(--green-deep); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px;
         z-index: 40; max-width: 92vw; text-align: center; }
.toast.bad { background: var(--bad); }
.foot { text-align: center; margin-top: 26px; }
@media (min-width: 600px) { .sheet { align-items: center; } .sheet-card { border-radius: 18px; } .times { grid-template-columns: repeat(5, 1fr); } }
