/* Clockee の配色 (HomePalette.swift): 緑 = 出勤・勤務中、アンバー = 退勤、紫 = 休憩、青 = 再開。
   鮮やかな塗りの上の文字は白ではなく濃い同系色。グラデーションと色の付いた影は使わない。 */
:root {
  --bg: #f4f6f5;
  --card: #ffffff;
  --text: #1c2420;
  --muted: #5f6b65;
  --line: #e2e7e4;
  --brand-fill: #3ddc84;  --on-brand: #00391c;  --brand-text: #009e55;
  --amber-fill: #ffb020;  --on-amber: #4a2c00;
  --purple-fill: #b69cff; --on-purple: #2a1166;
  --blue-fill: #5ab4ff;   --on-blue: #00325c;
  --error: #c62828;       --error-tint: #fdecea;
  --notice-tint: #e6f8ee;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101412;
    --card: #1b211e;
    --text: #eef2f0;
    --muted: #a3aea8;
    --line: #2c3430;
    --brand-text: #3ddc84;
    --error: #ff8a80;       --error-tint: #3a1d1b;
    --notice-tint: #143323;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  line-height: 1.5;
}
main { max-width: 480px; margin: 0 auto; padding: 16px 16px 40px; }
header { margin: 8px 0 16px; }
.company { margin: 0; color: var(--muted); font-size: 0.9rem; }
h1 { margin: 2px 0; font-size: 1.5rem; }
h2 { margin: 0 0 8px; font-size: 1rem; }
.date { margin: 0; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 12px 0; }
.status { text-align: center; padding: 24px 16px; }
.status-label { margin: 0; font-size: 2rem; font-weight: 700; }
.status.working .status-label { color: var(--brand-text); }
.status.onBreak .status-label { color: #7c5cff; }
.since { margin: 4px 0 0; color: var(--muted); }
.actions { display: grid; gap: 12px; margin: 16px 0; }
.button {
  appearance: none; border: 0; border-radius: 14px; padding: 18px 16px; font: inherit; font-size: 1.25rem; font-weight: 700;
  cursor: pointer; width: 100%; touch-action: manipulation;
}
.button:disabled { opacity: 0.45; cursor: default; }
.button.clockIn { background: var(--brand-fill); color: var(--on-brand); }
.button.clockOut { background: var(--amber-fill); color: var(--on-amber); }
.button.breakStart { background: var(--purple-fill); color: var(--on-purple); }
.button.breakEnd { background: var(--blue-fill); color: var(--on-blue); }
.button.secondary { background: var(--line); color: var(--text); font-size: 1rem; }
.row { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; margin-top: 12px; }
.pin {
  width: 100%; font: inherit; font-size: 2rem; letter-spacing: 0.5em; text-align: center; padding: 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text);
}
.hint { margin: 0 0 8px; color: var(--muted); font-size: 0.9rem; }
.notice { background: var(--notice-tint); border-radius: 12px; padding: 12px; margin: 12px 0; }
.error { background: var(--error-tint); color: var(--error); border-radius: 12px; padding: 12px; margin: 12px 0; }
.warning h2 { color: var(--error); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 6px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.time { font-variant-numeric: tabular-nums; font-weight: 700; }
.badge { margin-left: 8px; font-size: 0.75rem; padding: 1px 6px; border-radius: 6px; background: var(--line); color: var(--muted); }
footer { margin-top: 16px; color: var(--muted); font-size: 0.85rem; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
footer p { margin: 0; }
.link { appearance: none; border: 0; background: none; color: var(--brand-text); font: inherit; cursor: pointer; padding: 8px 0; }
.message { margin: 40px 0; text-align: center; color: var(--muted); }
