 :root {
  --ink: #39352f;
  --muted: #91887d;
  --cream: #f7f3ed;
  --paper: #fffdfa;
  --line: #e9e1d7;
  --gold: #b69a73;
  --gold-dark: #92754f;
  --sage: #758575;
  --rose: #b9877e;
  --shadow: 0 18px 55px rgba(70, 54, 37, .08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(circle at 50% 0%, #fffdf9 0, var(--cream) 58%, #f1ebe2 100%);
  font-family: "Noto Sans JP", sans-serif;
}
button, select { font: inherit; }
.page-shell { width: min(100% - 32px, 560px); margin: 0 auto; padding: 34px 0 26px; }
.brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 auto 25px; }
.brand-mark {
  width: 43px; height: 43px; display: grid; place-items: center;
  border: 1px solid #cdbb9f; border-radius: 50%; color: var(--gold-dark);
  font: 600 27px "Playfair Display", serif;
}
.brand-name { margin: 0; letter-spacing: .22em; font: 600 15px "Playfair Display", serif; }
.brand-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 9px; letter-spacing: .18em; }
.hero-card, .info-card {
  background: rgba(255,253,250,.94); border: 1px solid rgba(220,207,190,.75);
  border-radius: 22px; box-shadow: var(--shadow);
}
.hero-card { padding: 34px 38px 30px; text-align: center; }
.eyebrow { margin: 0 0 8px; color: var(--gold-dark); font-size: 10px; font-weight: 600; letter-spacing: .2em; }
h1 { margin: 0; font-size: 27px; font-weight: 500; letter-spacing: .12em; }
.intro { margin: 9px 0 25px; color: var(--muted); font-size: 12px; }
.clock-panel { padding: 19px 12px 17px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.today-date { margin: 0 0 4px; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.current-time { display: block; color: #514638; font: 500 clamp(42px, 9vw, 54px) "Playfair Display", serif; letter-spacing: .045em; font-variant-numeric: tabular-nums; }
.clock-caption { margin: 1px 0 0; color: #aaa094; font-size: 10px; letter-spacing: .16em; }
.form-section { margin-top: 25px; text-align: left; }
.field-label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 600; }
.staff-select {
  width: 100%; height: 51px; padding: 0 15px; color: var(--ink);
  border: 1px solid #ded3c5; border-radius: 10px; background: #fff;
  outline: none; cursor: pointer;
}
.staff-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(182,154,115,.14); }
.field-help { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.punch-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 24px; }
.punch-button {
  min-height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 0; border-radius: 13px; color: white; cursor: pointer;
  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}
.punch-button:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.04); }
.punch-button:active:not(:disabled) { transform: translateY(0); }
.punch-button:disabled { cursor: not-allowed; opacity: .38; filter: grayscale(.25); }
.punch-in { background: linear-gradient(135deg, #9b9b83, #74816f); }
.punch-out { background: linear-gradient(135deg, #c6a58c, #a98270); }
.button-icon { font-size: 21px; line-height: 1; }
.button-title { margin-top: 7px; font-size: 19px; font-weight: 600; letter-spacing: .12em; }
.button-caption { margin-top: 3px; font-size: 9px; letter-spacing: .2em; opacity: .8; }
.notice { min-height: 40px; display: grid; place-items: center; margin-top: 16px; padding: 9px 12px; border-radius: 9px; background: #f7f3ed; color: #81786d; font-size: 11px; line-height: 1.6; }
.notice.success { color: #536b54; background: #eef3eb; }
.notice.error { color: #9a5c52; background: #f8eeeb; }
.info-card { margin-top: 16px; padding: 23px 28px 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.section-heading .eyebrow { margin-bottom: 5px; }
h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: .06em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #b5a58e; box-shadow: 0 0 0 4px #f3eee7; }
.record-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--line); font-size: 12px; }
.record-row span { color: var(--muted); }
.record-row strong { font: 500 17px "Playfair Display", serif; font-variant-numeric: tabular-nums; }
.privacy-note { margin: 10px 0 0; color: #a49a8e; font-size: 10px; line-height: 1.7; }
.footer { display: flex; justify-content: space-between; padding: 18px 4px 0; color: #a79d91; font-size: 9px; letter-spacing: .08em; }
.busy-overlay { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; background: rgba(48,42,35,.38); color: white; font-size: 13px; }
.busy-overlay[hidden] { display: none; }
.spinner { width: 32px; height: 32px; border: 3px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
  .page-shell { width: min(100% - 22px, 560px); padding-top: 23px; }
  .hero-card { padding: 28px 20px 23px; border-radius: 18px; }
  .info-card { padding: 21px 21px 18px; }
  .punch-actions { gap: 10px; }
  .punch-button { min-height: 105px; }
}
@media (min-width: 900px) {
  .page-shell { padding-top: 48px; }
  .hero-card { padding-top: 39px; }
}
