﻿:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-muted: #f1f3ef;
  --ink: #13201c;
  --ink-muted: #5b6864;
  --line: #e5e8e2;
  --brand: #0e8f7a;
  --brand-deep: #0a6a5b;
  --brand-soft: #d6f0e8;
  --accent: #f5a623;
  --danger: #e0533d;
  --danger-soft: #fde4dd;
  --info: #3b6cb8;
  --info-soft: #dce6f6;
  --warning: #c98a14;
  --warning-soft: #fbecc8;
  --shadow-sm: 0 1px 2px rgba(15, 40, 30, .06), 0 1px 1px rgba(15, 40, 30, .04);
  --shadow-md: 0 4px 12px rgba(15, 40, 30, .06), 0 2px 4px rgba(15, 40, 30, .04);
  --shadow-lg: 0 12px 40px rgba(15, 40, 30, .10), 0 4px 12px rgba(15, 40, 30, .06);
  font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; max-width: 100%; overflow-x: hidden; background: var(--bg); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }

.mobile-shell {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.splash {
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #1a2563 0%, #0a1238 60%, #050a22 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.landing-shell {
  min-height: 100vh;
  background: #ffffff;
  display: grid;
  grid-template-columns: minmax(320px, 540px) minmax(360px, 520px);
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: 48px 48px 74px;
  position: relative;
}

.desktop-brand-panel {
  color: var(--ink);
}

.desktop-logo-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.desktop-logo-row .brand-icon-crop {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28), 0 0 34px rgba(37, 212, 255, .16);
}

.desktop-logo-row h1 {
  margin: 0;
  font-size: clamp(38px, 4vw, 58px);
  letter-spacing: -.04em;
}

.desktop-logo-row p {
  margin: 10px 0 0;
  color: var(--ink-muted);
  font-size: 17px;
  line-height: 1.5;
}

.desktop-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 34px;
}

.hero-primary-btn,
.hero-secondary-btn {
  min-height: 54px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  letter-spacing: .04em;
}

.hero-primary-btn {
  border: 0;
  color: white;
  background: #13201c;
  box-shadow: 0 12px 28px rgba(19, 32, 28, .22);
}

.hero-secondary-btn {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  border: 1.5px solid var(--line);
}

.hero-primary-btn:hover,
.hero-secondary-btn:hover {
  transform: translateY(-1px);
}

.landing-footer {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 22px;
  color: var(--ink-muted);
  font-size: 13px;
  text-align: center;
}

.desktop-note {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  color: var(--ink-muted);
  display: grid;
  gap: 4px;
}

.desktop-note strong {
  color: var(--ink);
}

.desktop-photo-panel {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 26px 80px rgba(15, 40, 30, .14);
}

.mobile-landing {
  display: none;
}

.mobile-photo-splash {
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.mobile-hero-image {
  position: relative;
  flex: 1 1 auto;
  min-height: 42vh;
  overflow: hidden;
  background: #ffffff;
}

.mobile-hero-image:after {
  display: none;
}

.mobile-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 58% top;
}

.mobile-photo-splash .bottom-sheet {
  margin-top: 0;
  position: relative;
  z-index: 2;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  box-shadow: none;
}

.mobile-enter-btn {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: #13201c;
  color: white;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 12px 28px rgba(19, 32, 28, .22);
}

.mobile-note {
  margin-top: 16px;
  display: grid;
  gap: 3px;
  color: var(--ink-muted);
  font-size: 13px;
  text-align: center;
}

.mobile-note strong {
  color: var(--ink);
}

@media (max-height: 760px) {
  .mobile-hero-image {
    min-height: 38vh;
  }
  .mobile-photo-splash .bottom-sheet {
    margin-top: 0;
  }
}

.photo-hero {
  min-height: 560px;
  background: #eef2ef;
}

.photo-hero img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.photo-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

.photo-caption span {
  color: var(--ink-muted);
}

.splash-logo {
  position: absolute;
  top: 34%;
  left: 50%;
  width: 112px;
  height: 112px;
  transform: translate(-50%, -50%);
  border-radius: 22%;
  background: #fff;
  color: var(--brand);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 32px rgba(255, 180, 80, .35);
}

.splash-logo svg { width: 46px; height: 46px; }

.brand-icon-crop {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  background: #071147;
}

.brand-icon-crop img {
  position: absolute;
  width: 222%;
  max-width: none;
  left: -61%;
  top: -48%;
  display: block;
  pointer-events: none;
  user-select: none;
}

.splash-logo.brand-icon-crop {
  border-radius: 28px;
}

@media (max-height: 760px) {
  body:not(.desktop-preview) .splash-logo {
    top: 30%;
    width: 104px;
    height: 104px;
  }
}

@media (min-width: 821px) and (max-height: 820px) {
  .phone-preview .splash-logo {
    top: 31%;
    width: 88px;
    height: 88px;
  }
}

.bottom-sheet {
  background: var(--surface);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, .08);
  padding: 28px 24px 32px;
}

.title {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -.5px;
}

.muted {
  color: var(--ink-muted);
  line-height: 1.5;
}

.primary-btn {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #25d4ff 0%, #2a6df5 100%);
  color: white;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 8px 24px rgba(42, 109, 245, .35);
}

.solid-btn {
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  font-weight: 700;
  min-height: 44px;
  padding: 0 18px;
  box-shadow: 0 8px 24px rgba(14, 143, 122, .22);
}

.outline-btn {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-weight: 700;
  min-height: 44px;
  padding: 0 18px;
}

.login-view {
  min-height: 100vh;
  background: #fbfcfa;
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin: 32px 0 18px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: white;
  box-shadow: 0 14px 35px rgba(14, 143, 122, .28);
}

.login-mark.brand-icon-crop img {
  width: 222%;
  left: -61%;
  top: -48%;
}

.pin-dots {
  display: flex;
  gap: 14px;
  margin: 28px 0;
}

.pin-dots span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--line);
  transition: .18s ease;
}

.pin-dots span.filled {
  background: var(--brand);
  transform: scale(1.08);
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 12px;
  justify-content: center;
}

.key {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 0;
  background: white;
  box-shadow: var(--shadow-sm);
  color: #07100d;
  font-size: 26px;
  font-weight: 500;
}

.key:active { transform: scale(.96); }
.key.action { font-size: 14px; font-weight: 800; color: var(--brand-deep); }

.login-foot {
  margin-top: auto;
  font-size: 13px;
}

.gps-view {
  min-height: 100vh;
  padding: 42px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gps-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  position: relative;
  margin: 20px 0 28px;
}

.gps-icon:before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 2px dashed var(--brand);
  border-radius: 58px;
  opacity: .42;
}

.gps-cards {
  width: 100%;
  max-width: 390px;
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.info-card {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.info-card .icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 900;
}

.home {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.map-zone {
  flex: 0 0 58%;
  position: relative;
  background: #dfe7dd;
  overflow: hidden;
}

.map-grid {
  position: absolute;
  inset: 0;
  opacity: .7;
  background:
    linear-gradient(90deg, transparent 0 20%, rgba(255,255,255,.6) 20% 26%, transparent 26% 48%, rgba(255,255,255,.6) 48% 55%, transparent 55% 100%),
    linear-gradient(0deg, transparent 0 34%, rgba(255,255,255,.6) 34% 42%, transparent 42% 62%, rgba(255,255,255,.6) 62% 69%, transparent 69% 100%);
}

.map-header {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.person-pill, .circle-btn {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
}

.person-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  font-weight: 800;
}

.avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.circle-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
}

.geo {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(14, 143, 122, .14);
  border: 1.5px dashed rgba(14, 143, 122, .65);
  display: grid;
  place-items: center;
}

.geo-pin {
  width: 58px;
  height: 58px;
  border: 4px solid white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: white;
  font-weight: 900;
  font-size: 19px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 900;
}

.status-pill.danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(14, 143, 122, .14);
}

.punch-wrap {
  text-align: center;
  margin: 14px 0 10px;
}

.punch-btn {
  width: 130px;
  height: 130px;
  border: 0;
  border-radius: 50%;
  color: white;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .04em;
  box-shadow: 0 12px 32px rgba(14,143,122,.35), inset 0 1px 0 rgba(255,255,255,.3);
}

.punch-btn svg { width: 38px; height: 38px; }
.punch-btn.start { background: linear-gradient(135deg, #25d4ff, #2a6df5); }
.punch-btn.stop { background: linear-gradient(135deg, #ff7a5e, #e0533d); }
.punch-btn.lunch { background: linear-gradient(135deg, #5b8de8, #3b6cb8); }

.action-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.shift-reminder {
  max-width: 320px;
  margin: 10px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(224, 83, 61, .28);
  border-radius: 14px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
  line-height: 1.35;
}

.shift-reminder.lunch {
  border-color: rgba(230, 169, 64, .38);
  background: var(--warning-soft);
  color: #7a4a08;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, .48);
  display: none;
  align-items: flex-end;
}

.modal-backdrop.show { display: flex; }

.lunch-modal {
  width: 100%;
  background: white;
  border-radius: 28px 28px 0 0;
  padding: 20px 18px 24px;
}

.drag {
  width: 36px;
  height: 4px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: var(--line);
}

.option-card {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  text-align: left;
  margin: 9px 0;
}

.option-card.selected {
  border: 1.5px solid var(--brand);
  background: var(--brand-soft);
}

.radio-dot {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
}

.selected .radio-dot {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.manual-times {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}

.manual-times.show { display: grid; }

.input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: white;
}

.admin-layout {
  min-height: 100vh;
  background: var(--bg);
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.admin-topbar {
  height: 68px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand-lockup .brand-icon-crop {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.brand-name strong {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
}

.brand-name .blue { color: #1237c7; }
.brand-name .orange { color: #f59b22; }

.admin-tabs {
  display: flex;
  gap: 6px;
}

.admin-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: transparent;
  color: var(--ink);
}

.admin-tabs button.active {
  background: var(--surface-muted);
  font-weight: 800;
}

.admin-main {
  padding: 26px 28px 44px;
  max-width: 1280px;
  margin: 0 auto;
}

.admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.date-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.date-input {
  width: 152px;
  min-height: 44px;
  padding: 0 12px;
}

.mini-week {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.mini-week button {
  min-width: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  padding: 7px 8px;
}

.mini-week span {
  display: block;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-week strong {
  display: block;
  font-size: 16px;
}

.mini-week button.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 18px;
}

.stat-card, .panel, .alert-band, .alert-detail {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.alert-stack {
  margin: 18px 0;
}

.stat-card { padding: 18px; }
.stat-label {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.stat-value {
  font-size: 30px;
  font-weight: 900;
  margin: 6px 0 2px;
}

.alert-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--danger-soft);
  border-color: rgba(224, 83, 61, .35);
}

.alert-detail {
  margin-top: 8px;
  padding: 14px 16px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px 14px;
  margin: 12px 0;
}

.detail-grid span {
  color: var(--ink-muted);
}

.app-notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 60;
  padding: 14px 16px;
  border-radius: 16px;
  background: #101b18;
  color: white;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .18s ease, transform .18s ease;
  font-weight: 700;
}

.app-notice.show {
  opacity: 1;
  transform: translateY(0);
}

.edit-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(13, 24, 21, .36);
}

.edit-card {
  width: min(720px, 100%);
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .24);
  padding: 18px;
}

.edit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.note-input {
  min-height: 84px;
  padding-top: 10px;
  resize: vertical;
}

.edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.admin-coach {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 35;
  display: grid;
  grid-template-columns: 74px minmax(210px, 280px);
  gap: 10px;
  align-items: end;
  pointer-events: none;
}

.coach-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 1;
  pointer-events: auto;
  box-shadow: var(--shadow-sm);
}

.coach-mascot {
  width: 78px;
  height: auto;
  filter: drop-shadow(0 12px 18px rgba(13, 24, 21, .16));
  pointer-events: auto;
}

.coach-body {
  transform-box: fill-box;
  transform-origin: center;
  animation: coachBreathe 3.8s ease-in-out infinite;
}

.coach-arm-left {
  transform-box: fill-box;
  transform-origin: right center;
  animation: coachWave 2.8s ease-in-out infinite;
}

.coach-bubble {
  position: relative;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 16px 45px rgba(13, 24, 21, .12);
  pointer-events: auto;
}

.coach-bubble::before {
  content: '';
  position: absolute;
  left: -7px;
  bottom: 22px;
  width: 12px;
  height: 12px;
  background: white;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}

.coach-bubble strong,
.coach-bubble span {
  display: block;
}

.coach-bubble strong {
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--brand-deep);
}

.coach-bubble span {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

@keyframes coachBreathe {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(-1px) scaleY(1.03); }
}

@keyframes coachWave {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(9deg); }
}

.panel {
  overflow: hidden;
  margin-top: 18px;
}

.panel-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 13px 16px;
  white-space: nowrap;
}
th {
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #fafbf9;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.pill.work { background: var(--brand-soft); color: var(--brand-deep); }
.pill.lunch { background: var(--warning-soft); color: #7a4a08; }
.pill.closed { background: var(--info-soft); color: var(--info); }
.pill.out { background: var(--surface-muted); color: var(--ink-muted); }
.pill.danger { background: var(--danger-soft); color: var(--danger); }

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.locked-input {
  color: var(--ink-muted);
  background: #edf0eb;
  border-color: #d8ddd4;
  cursor: not-allowed;
}

.range-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbf9;
}

.range-row input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
}

@media (max-width: 820px) {
  .landing-shell {
    display: block;
    padding: 0;
    background: transparent;
  }
  .landing-footer {
    display: none;
  }
  .desktop-brand-panel {
    display: none;
  }
  .desktop-photo-panel {
    display: none;
  }
  .mobile-landing {
    display: block;
  }
  .admin-topbar { height: auto; padding: 14px; flex-wrap: wrap; }
  .admin-tabs { width: 100%; overflow-x: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .date-actions { justify-content: stretch; }
  .date-actions > button, .date-actions .date-input { flex: 1; }
  .mini-week { justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
  .edit-grid { grid-template-columns: 1fr; }
  .edit-actions { flex-direction: column-reverse; }
  .admin-coach {
    left: 14px;
    right: 14px;
    bottom: 14px;
    grid-template-columns: 58px 1fr;
  }
  .coach-mascot { width: 62px; }
  .coach-bubble span { font-size: 12px; }
  .settings-grid { grid-template-columns: 1fr; }
  .range-row { grid-template-columns: 1fr; }
}

@media (max-width: 1120px) and (min-width: 821px) {
  .landing-shell {
    grid-template-columns: minmax(300px, 430px) 360px;
    gap: 34px;
    padding: 34px;
  }
  .desktop-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .keypad { grid-template-columns: repeat(3, 68px); }
  .key { width: 68px; height: 68px; }
  .bottom-sheet { padding-left: 18px; padding-right: 18px; }
}

