/* Meadows housekeeping staff page – staff phones. Same tokens as the feedback page (web/feedback/css): light beige and white,
   forest green, big tap cards, minimal text, no animation beyond a tap. Light only. */
:root {
  --green: #24492f; --green-2: #2f5d3a; --green-soft: #e3ecdf; --cream: #fdfaf4; --cream-2: #f7f0e1;
  --amber: #c8893b; --amber-soft: #fbefd9; --amber-text: #6b4210; --text: #23271f; --muted: #555c51; --border: #e4dccb;
  --danger: #a1301f; --danger-soft: #f8e1dd; --ring: 0 0 0 3px rgba(47, 93, 58, .35);
  --serif: "Fraunces", Georgia, serif; --sans: "Plus Jakarta Sans", "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--cream); color: var(--text); font: 400 1.0625rem/1.45 var(--sans); }
:lang(ta) body, body.ta { font-family: "Noto Sans Tamil", var(--sans); }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; }
body.ta h1, body.ta h2, body.ta h3 { font-family: "Noto Sans Tamil", var(--sans); font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 12px; }
.hk { max-width: 760px; margin: 0 auto; padding: 12px 16px calc(110px + env(safe-area-inset-bottom)); display: grid; gap: 16px; }
.center { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; }
.logo { width: 96px; height: 96px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(35, 39, 31, .12); }

/* header + language switch */
.head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.head img { width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(35, 39, 31, .12); flex: none; }
.head .t { flex: 1; min-width: 120px; }
.head b { display: block; font-family: var(--serif); font-size: 1.2rem; }
.head span { color: var(--muted); font-size: .9rem; }
.lang { display: flex; border: 2px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; }
.lang button { min-height: 44px; padding: 0 12px; border: 0; background: none; font-weight: 700; font-size: .95rem; cursor: pointer; }
.lang button + button { border-left: 2px solid var(--border); }
.lang button[aria-pressed="true"] { background: var(--green); color: #fff; }
.demo { justify-self: start; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--amber-soft); color: var(--amber-text); }

/* steps */
.step { display: grid; gap: 10px; }
.step h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.num { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; display: inline-grid; place-items: center; font: 700 .95rem var(--sans); flex: none; }
.picks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pick { min-height: 64px; border: 2px solid var(--border); border-radius: 18px; background: #fff; padding: 10px 14px; text-align: left; cursor: pointer; display: grid; gap: 2px; align-content: center; font-weight: 700; font-size: 1.05rem; }
.pick small { font-weight: 600; color: var(--muted); font-size: .9rem; }
.pick[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); }
.pick[aria-pressed="true"] small { color: var(--green); }
.datein { min-height: 56px; width: 100%; padding: 10px 14px; border: 2px solid var(--border); border-radius: 18px; background: #fff; font-size: 1.05rem; }

/* checklist */
.sec { display: grid; gap: 12px; }
.sec-h { display: grid; gap: 2px; padding: 10px 14px; border-radius: 14px; background: var(--cream-2); }
.sec-h h2 { font-size: 1.1rem; }
.sec.pend .sec-h { background: var(--amber-soft); color: var(--amber-text); }
.sec.pend .sec-h p { font-size: .9rem; }
.grp { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 12px; display: grid; gap: 10px; }
.grp-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 0 2px; }
.grp-h b { font-size: 1.1rem; }
.grp-h .cnt { font-size: .9rem; font-weight: 600; color: var(--muted); }
.grp.complete { border-color: var(--green-2); background: var(--green-soft); }
.grp.complete .cnt { color: var(--green); }
.grp-h .ok { display: none; }
.grp.complete .grp-h .ok { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; align-items: center; justify-content: center; vertical-align: -5px; margin-right: 6px; }
.tasks { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.task { position: relative; min-height: 76px; border: 2px solid var(--border); border-radius: 16px; background: #fff; padding: 10px 12px 10px 12px; text-align: left; cursor: pointer;
  display: grid; align-content: space-between; gap: 6px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.task .tn { font-weight: 700; font-size: 1rem; line-height: 1.3; padding-right: 26px; overflow-wrap: anywhere; }
.task .ts { font-size: .85rem; font-weight: 700; color: var(--muted); }
.task .since { display: block; font-size: .8rem; font-weight: 600; color: var(--amber-text); }
.task .tick { position: absolute; top: 9px; right: 9px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; color: transparent; }
.task[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.task[aria-pressed="true"] .ts, .task[aria-pressed="true"] .since { color: #e3ecdf; }
.task[aria-pressed="true"] .tick { background: #fff; border-color: #fff; color: var(--green); }
.task:active { transform: scale(.985); }
.task[disabled] { cursor: default; opacity: .8; }
.hint { color: var(--muted); font-size: .9rem; }
.note { border-radius: 14px; padding: 12px 14px; background: var(--green-soft); color: var(--green); font-weight: 600; }
.note.bad { background: var(--danger-soft); color: var(--danger); }
.note.warn { background: var(--amber-soft); color: var(--amber-text); }

/* sign-in */
.card { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 18px; display: grid; gap: 14px; box-shadow: 0 6px 24px rgba(35, 39, 31, .06); }
.fld { display: grid; gap: 6px; font-weight: 700; }
.fld input { width: 100%; min-height: 56px; padding: 12px 14px; border: 2px solid var(--border); border-radius: 14px; background: #fff; font-size: 1.15rem; }
.fld input:focus { border-color: var(--green); box-shadow: var(--ring); outline: none; }
.btn { min-height: 58px; padding: 0 22px; border-radius: 18px; border: 0; font-weight: 700; font-size: 1.1rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn-primary { background: var(--green); color: #fff; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; padding: 0 4px; cursor: pointer; justify-self: center; }

/* sticky submit bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: rgba(253, 250, 244, .97); border-top: 1px solid var(--border); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.bar-in { max-width: 760px; margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.bar .prog { flex: none; min-width: 72px; display: grid; }
.bar .prog b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.bar .prog small { color: var(--muted); font-size: .8rem; font-weight: 600; }
.bar .btn { flex: 1; }
.meter { height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; margin-top: 4px; }
.meter i { display: block; height: 100%; background: var(--green); }
.skeleton { height: 76px; border-radius: 16px; background: var(--cream-2); }
@media (min-width: 640px) { .tasks { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
