:root {
  --brand: #0f6e56;
  --brand-700: #0b5947;
  --brand-50: #e6f2ee;
  --accent: #ba7517;
  --accent-50: #fbf1e0;
  --ink: #1b201e;
  --muted: #5f6b66;
  --bg: #f5f3ed;
  --surface: #ffffff;
  --line: rgba(20, 32, 26, 0.1);
  --line-strong: rgba(20, 32, 26, 0.18);
  --danger: #a32d2d;
  --danger-50: #fbecec;
  --ok: #1d9e75;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 32, 26, 0.06), 0 8px 24px rgba(20, 32, 26, 0.05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }

.hidden { display: none !important; }

/* ---------- brand mark ---------- */
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 14px;
  flex: none;
}
.mark.lg { width: 46px; height: 46px; border-radius: 12px; font-size: 18px; }

/* Brand wordmark logo (build 052) */
.brand-logo { height: 30px; width: auto; display: block; flex: none; }
.brand-logo.lg { height: auto; width: 188px; max-width: 72%; margin: 0 auto 6px; display: block; }
.topbar .brand-logo { height: 28px; }

.brand-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-row .title { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-row .sub { color: var(--muted); font-size: 13px; }
.brand-sub { color: var(--muted); font-size: 13px; font-weight: 600; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; }

/* ---------- centered auth screens ---------- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.auth-card h1 { font-size: 20px; margin: 18px 0 4px; letter-spacing: -0.01em; }
.auth-card .lead { color: var(--muted); font-size: 14px; margin: 0 0 20px; }

/* ---------- forms ---------- */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
}
.field input {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-50);
}
.field .err { color: var(--danger); font-size: 12px; margin-top: 5px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.12s, transform 0.04s;
}
.btn:hover { background: var(--brand-700); border-color: var(--brand-700); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line-strong);
}
.btn.secondary:hover { background: #faf9f6; }
.btn.small { width: auto; padding: 7px 12px; font-size: 13px; }
.btn.danger { color: var(--danger); background: #fff; border-color: var(--line-strong); }
.btn.danger:hover { background: var(--danger-50); border-color: var(--danger); }

.form-error {
  background: var(--danger-50);
  color: var(--danger);
  border: 1px solid rgba(163, 45, 45, 0.25);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}
.muted-foot { color: var(--muted); font-size: 13px; text-align: center; margin-top: 16px; }
.build-tag { color: var(--muted); font-size: 11px; text-align: center; margin-top: 28px; opacity: 0.6; }

/* ---------- app shell ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 243, 237, 0.85);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.who { display: flex; align-items: center; gap: 12px; }
.who .name { font-weight: 600; font-size: 14px; }
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}
.pill.owner { background: var(--brand-50); color: var(--brand-700); }
.pill.admin { background: #eef4fb; color: #185fa5; }
.pill.employee { background: var(--accent-50); color: #854f0b; }
.pill.soon { background: #f0efe9; color: var(--muted); }
.pill.suspended { background: var(--danger-50); color: var(--danger); }
.pill.active { background: var(--brand-50); color: var(--brand-700); }

.container { max-width: 960px; margin: 0 auto; padding: 28px 20px 64px; }
.section-head { margin: 8px 0 16px; }
.section-head h2 { font-size: 15px; margin: 0; letter-spacing: 0.01em; }
.section-head p { color: var(--muted); font-size: 13px; margin: 4px 0 0; }

/* ---------- module grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.module {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.1s, border-color 0.1s;
}
.module.live:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.module.soon { opacity: 0.72; }
.module .icon {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand);
}
.module .icon.accent { background: var(--accent-50); color: var(--accent); }
.module .m-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.module .m-name { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.module .m-desc { color: var(--muted); font-size: 13px; }

/* ---------- team panel ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-top: 28px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.row:first-of-type { border-top: none; }
.row .who-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row .who-cell .n { font-weight: 600; font-size: 14px; }
.row .who-cell .e { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.row .actions { display: flex; align-items: center; gap: 8px; flex: none; }

.invite-box {
  background: var(--accent-50);
  border: 1px solid rgba(186, 117, 23, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.invite-box input {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
}
.invite-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.invite-controls select,
.invite-controls input {
  padding: 9px 11px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}
.invite-controls input { min-width: 180px; flex: 1; }

.empty { color: var(--muted); font-size: 13px; padding: 8px 0; }

.spinner {
  width: 22px; height: 22px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.center-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

.toast {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  text-align: center;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: var(--shadow);
  z-index: 50;
}

/* ---------- mobile & tablet ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 640px) {
  /* Inputs at 16px stop iOS from zooming the page on focus. */
  .field input, .modal-body input, .modal-body textarea, .modal-body select,
  .invite-controls input, .invite-controls select { font-size: 16px; }

  /* Header: brand on top, actions wrap full-width below; don't pin it. */
  .topbar { position: static; }
  .topbar-inner { padding: 12px 14px; gap: 10px; }
  .brand-row { flex: 1 1 100%; }
  .who { flex: 1 1 100%; flex-wrap: wrap; gap: 8px; }
  .who .name { display: none; }
  .who .btn.small { flex: 1 1 auto; }

  .container { padding: 18px 14px 84px; }

  /* Modules: single-column compact rows (icon left, text right). */
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .module { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
  .module .icon { flex: none; }
  .module .m-text { flex: 1; }

  .panel { padding: 16px; margin-top: 20px; }
  .invite-controls { gap: 6px; }
  .invite-controls input, .invite-controls select { flex: 1 1 100%; }
  .invite-box input { font-size: 13px; }

  /* Team rows: let actions wrap under the person instead of overflowing. */
  .row { flex-wrap: wrap; gap: 8px; }
  .row .who-cell { flex: 1 1 100%; }
  .row .actions { flex: 1 1 100%; flex-wrap: wrap; gap: 6px; justify-content: flex-start; }
  .icon-btn { width: 36px; height: 36px; }

  .modal-overlay { padding: 10px; align-items: flex-end; }
  .modal { max-width: 100%; max-height: 92vh; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .modal-body { padding: 16px; }
  .auth-card { padding: 20px; }
}

@media (max-width: 380px) {
  .who .btn.small { font-size: 12px; padding: 7px 8px; }
}

@media (max-width: 520px) {
  .auth-card { padding: 22px; }
  .topbar-inner, .container { padding-left: 16px; padding-right: 16px; }
}

/* ---------- supply module ---------- */
.sup-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}
.sup-bar .spacer { flex: 1; }
.sup-bar select {
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-weight: 600;
  color: var(--ink);
}
.sup-cat-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 18px 0 8px;
}
.sup-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
}
.sup-item.checked { border-color: var(--brand); background: var(--brand-50); }
.sup-check {
  appearance: none;
  -webkit-appearance: none;
  width: 22px; height: 22px;
  flex: none;
  border: 2px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.sup-check:checked { background: var(--brand); border-color: var(--brand); }
.sup-check:checked::after {
  content: '';
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.sup-item-main { flex: 1; min-width: 0; }
.sup-item-name { font-weight: 600; font-size: 14px; }
.sup-item-sub { color: var(--muted); font-size: 12.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sup-item-controls { display: flex; align-items: center; gap: 8px; margin-top: 7px; flex-wrap: wrap; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: #fff; }
.qty-stepper button {
  width: 30px; height: 30px; border: none; background: #fff;
  font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink);
}
.qty-stepper button:active { background: var(--brand-50); }
.qty-stepper .qv { min-width: 30px; text-align: center; font-weight: 700; font-size: 14px; }
.unit-select {
  padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em; background: #fff;
  color: var(--ink); font-family: inherit;
}
.note-chip { color: var(--muted); font-size: 12px; }
.ctrl-gap { width: 2px; }
.sup-select {
  padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 8px;
  font-size: 12px; font-weight: 600; background: #fff; color: var(--ink); font-family: inherit;
  max-width: 160px;
}
.sup-select.unset { color: var(--muted); border-style: dashed; }
.send-to { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.send-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.order-sup {
  padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; background: #fff; font-family: inherit; color: var(--ink);
}
.remember { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.remember input { width: 15px; height: 15px; }
.file-pick {
  display: inline-block; margin-bottom: 12px; padding: 9px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer; background: #fff; color: var(--ink);
}
.file-pick:hover { background: #faf9f6; }

@media (max-width: 560px) {
  .sup-item { gap: 8px; padding: 11px 12px; }
  .sup-item-controls { gap: 6px; }
  .unit-select, .sup-select { font-size: 11px; padding: 5px 6px; max-width: 118px; }
  .qty-stepper button { width: 32px; height: 32px; }
  .sup-bar { gap: 6px; }
  .sup-bar .btn { font-size: 13px; padding: 8px 12px; }
  .sup-item .actions { gap: 4px; }
}
.sup-item .actions { display: flex; gap: 6px; flex: none; }
.icon-btn {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 7px;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
}
.icon-btn:hover { background: #faf9f6; color: var(--ink); }
.icon-btn.danger:hover { background: var(--danger-50); color: var(--danger); border-color: var(--danger); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f0efe9;
  color: var(--muted);
}

.order-bar {
  position: sticky;
  bottom: 0;
  background: rgba(245, 243, 237, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

/* modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 32, 26, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 440px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal.wide { max-width: 560px; }
.modal-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head h2 { margin: 0; font-size: 16px; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
.modal-body textarea {
  width: 100%;
  min-height: 140px;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  resize: vertical;
}
.modal-body select {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
}
.btn.row-wide { width: 100%; margin-bottom: 8px; }
.qty-row { display: flex; gap: 10px; }
.qty-row .field { flex: 1; }
.qty-row input[type="number"] { width: 100%; }

/* assistant */
.chat-log { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.bubble { padding: 10px 13px; border-radius: 12px; font-size: 14px; max-width: 85%; white-space: pre-wrap; }
.bubble.user { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble.ai { background: #f0efe9; color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.order-group { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 10px; }
.order-group h3 { margin: 0 0 4px; font-size: 14px; }
.order-group .items { color: var(--muted); font-size: 13px; margin-bottom: 10px; white-space: pre-line; }
.order-group .channels { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Timecard module ---------- */
.clock-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 20px; box-shadow: var(--shadow); text-align: center; margin-top: 8px;
}
.clock-status {
  font-size: 16px; color: var(--muted); margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.clock-status.on { color: var(--brand); font-weight: 600; }
.clock-status .dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent);
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .45 } }
.clock-big {
  font-size: 22px; padding: 22px; border-radius: var(--radius); width: 100%;
  max-width: 320px; margin: 0 auto; letter-spacing: .02em;
}
.clock-big.out { background: var(--danger); }
.ts-shift {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 8px; background: var(--surface); font-size: 14px;
}
.ts-shift .hrs { font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.ts-shift .live { color: var(--ok); font-weight: 600; }
.icon-btn.danger:hover { color: var(--danger); }

.tcl-tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tcl-tab {
  appearance: none; background: none; border: none; cursor: pointer;
  padding: 12px 14px; font: inherit; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tcl-tab.on { color: var(--brand); border-bottom-color: var(--brand); }

.active-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 8px; background: var(--surface);
}
.active-row .n { font-weight: 600; }
.active-row .e { font-size: 13px; color: var(--muted); }
.active-row .elapsed {
  font-weight: 700; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  padding: 6px 12px; border-radius: 999px; font-size: 14px;
}

.ts-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.ts-controls select, .ts-controls input { padding: 9px 10px; }
.ts-range { font-size: 13px; color: var(--muted); margin: 4px 2px 12px; font-weight: 600; }
.ts-export { display: flex; gap: 8px; margin-bottom: 16px; }

.ts-emp { margin-bottom: 18px; }
.ts-emp-head {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; padding: 8px 2px; border-bottom: 2px solid var(--line-strong); margin-bottom: 8px;
}
.ts-shift .chip {
  font-size: 11px; background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--ink); padding: 1px 7px; border-radius: 999px; margin-left: 4px;
}

.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 6px 0; }
.set-row input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--brand); }
.set-geo-detail { margin-top: 12px; padding: 14px; background: var(--bg); border-radius: var(--radius-sm); }

@media (max-width: 520px) {
  .ts-controls { gap: 6px; }
  .ts-controls select, .ts-controls #ts-custom input { flex: 1 1 auto; min-width: 0; }
  .ts-export .btn { flex: 1; }
}

/* ---------- Timecard: PIN keypad + tips ---------- */
.pin-wrap { text-align: center; }
.pin-sub { color: var(--muted); margin-bottom: 14px; }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 6px 0 20px; }
.pin-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); transition: all .12s; }
.pin-dot.on { background: var(--brand); border-color: var(--brand); transform: scale(1.05); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 300px; margin: 0 auto; }
.key {
  appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 24px; font-weight: 600; padding: 16px 0; border-radius: var(--radius-sm); cursor: pointer;
  font-family: inherit;
}
.key:active { background: var(--bg); transform: scale(.97); }
.key.ghost { font-size: 15px; font-weight: 600; color: var(--muted); }
.pin-note { margin-top: 12px; font-size: 13px; color: var(--muted); }

.muted-inline { color: var(--muted); font-size: 13px; }
.btn.ghost { background: none; border: 1px solid var(--line); color: var(--muted); box-shadow: none; }

.tip-field { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 14px; margin: 8px 0 12px; }
.tip-cur { font-size: 26px; color: var(--muted); }
.tip-field input { border: none; font-size: 30px; font-weight: 700; padding: 8px 0; width: 100%; background: none; }
.tip-field input:focus { outline: none; }
.tip-quick { display: flex; gap: 8px; }
.tip-quick .btn { flex: 1; }

/* ---------- module scope + position + schedule editor (build 044) ---------- */
.chip.warn { background: var(--accent-50); color: #92560a; border-color: #f1d49a; }
.pill.pos { background: var(--brand-50); color: var(--brand-700); border-color: #bfe0d5; text-transform: capitalize; }

.invite-access { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 10px 0 4px; }
.access-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.access-check { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink); cursor: pointer; }
.access-check input { width: 17px; height: 17px; accent-color: var(--brand); }
.access-check.block { display: flex; padding: 9px 0; border-bottom: 1px solid var(--line); }
.access-check.block .muted-inline { margin-left: auto; }
.access-note { font-size: 13px; color: var(--muted); margin: 8px 0 2px; }
.access-tag { display: inline-block; margin-top: 3px; font-size: 12px; color: var(--brand-700); background: var(--brand-50); border: 1px solid #cfe6dd; padding: 1px 8px; border-radius: 999px; }

.win-note { margin-top: 12px; text-align: center; font-size: 14px; color: #92560a; background: var(--accent-50); border: 1px solid #f1d49a; border-radius: var(--radius-sm); padding: 10px 12px; }

.set-h { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.set-h .muted-inline { font-weight: 400; }
.set-note { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.sched-list { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.sched-row { display: grid; gap: 8px; padding: 12px 14px; }
.sched-row + .sched-row { border-top: 1px solid var(--line); }
.sched-lab { font-size: 14px; font-weight: 600; color: var(--ink); }
.sched-times { display: flex; align-items: center; gap: 10px; }
.sched-times input[type=time] { flex: 1 1 0; min-width: 0; width: auto; }
.sched-times .to { color: var(--muted); font-size: 13px; flex: none; }
.sched-times.single input[type=time] { flex: 0 1 200px; }

/* ---------- tips prompt banner (build 045) ---------- */
.tips-prompt { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--accent-50); border: 1px solid #f1d49a; color: #7a4d08;
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.tips-prompt .chip.warn { margin-left: 4px; }

/* ---------- address lookup row (build 046) ---------- */
.addr-row { display: flex; gap: 8px; align-items: stretch; }
.addr-row input { flex: 1 1 auto; }
.addr-row .btn { flex: 0 0 auto; white-space: nowrap; }

/* ---------- live clock + password help (build 047) ---------- */
.now-clock { text-align: center; margin-bottom: 14px; }
.now-time { display: block; font-size: 34px; font-weight: 700; letter-spacing: 0.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.now-date { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

.req-banner { background: var(--brand-50); border: 1px solid #cfe6dd; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; }
.req-banner h3 { margin: 0 0 8px; font-size: 14px; color: var(--brand-700); }
.req-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; }
.req-item + .req-item { border-top: 1px solid #d9ece5; }

.temp-pass { background: var(--accent-50); border: 1px solid #f1d49a; border-radius: var(--radius); padding: 14px; margin-top: 10px; }
.temp-pass .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 22px; font-weight: 700; letter-spacing: 1px; color: #7a4d08; text-align: center; padding: 8px 0; }
.temp-pass .row2 { display: flex; gap: 8px; margin-top: 8px; }
.temp-pass .row2 .btn { flex: 1 1 auto; }

/* ---------- supply search (build 048) ---------- */
.sup-search { margin: 0 0 12px; }
.sup-search input { width: 100%; }

/* ---------- payroll summary + pay pill (build 049) ---------- */
.pill.pay { background: #eef4ff; color: #2c4a7c; border-color: #cdddf5; }
.ts-payroll { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 4px; }
.ts-pr-head { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; }
.pr-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14px; }
.pr-row + .pr-row { border-top: 1px solid var(--line); }
.pr-name { color: var(--ink); }
.pr-fig { color: var(--muted); text-align: right; white-space: nowrap; }
.pr-fig b { color: var(--ink); }
