:root {
  --teal: #0f766e;
  --teal-dark: #0b5750;
  --green: #16a34a;
  --red: #dc2626;
  --bg: #f1f5f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 8px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal-dark); }
.store-name { font-size: 14px; font-weight: 600; color: var(--teal); }

.view { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-top: 12px; }
.view h2 { margin: 0 0 12px; font-size: 20px; }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.5; }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.input {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.input:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }

.btn {
  width: 100%;
  padding: 16px;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform .05s ease, opacity .2s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); font-weight: 600; margin-top: 16px; }

.greeting { font-size: 18px; font-weight: 700; margin-top: 8px; }
.clock { font-size: 44px; font-weight: 800; text-align: center; letter-spacing: 2px; color: var(--teal-dark); margin: 12px 0 20px; font-variant-numeric: tabular-nums; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-in { background: var(--green); color: #fff; padding: 22px 12px; }
.btn-out { background: var(--red); color: #fff; padding: 22px 12px; }

.msg { margin-top: 16px; padding: 14px; border-radius: 12px; font-size: 15px; line-height: 1.45; }
.msg-ok { background: #dcfce7; color: #14532d; }
.msg-err { background: #fee2e2; color: #7f1d1d; }
.msg-info { background: #e0f2fe; color: #075985; }
.msg-warn { background: #fef9c3; color: #713f12; }

.foot { text-align: center; padding: 16px 0; margin-top: auto; font-size: 12px; }
