:root {
  --bg: #f5f7f6; --card: #fff; --text: #1f2933; --sub: #5f6b76; --line: #dde3e1;
  --main: #0f766e; --in: #0f766e; --out: #c2410c; --err: #b91c1c;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121614; --card: #1c2220; --text: #e6ece9; --sub: #9aa6a1; --line: #2c3532; --main: #2dd4bf; --in: #14b8a6; --out: #f97316; --err: #f87171; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-break: strict; overflow-wrap: break-word; padding-bottom: env(safe-area-inset-bottom); }
h1, h2, h3 { text-wrap: balance; }
.bar { display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--main); color: #fff; }
.bar h1 { font-size: 18px; margin: 0; flex: 1; }
.bar .link { color: #fff; }
main { max-width: 560px; margin: 0 auto; padding: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.card h2 { font-size: 17px; margin: 0 0 8px; }
.center { text-align: center; }
.lead { color: var(--sub); }
.small { font-size: 13px; color: var(--sub); }
input, select, button { font: inherit; }
input, select { width: 100%; padding: 10px 12px; margin: 6px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
button { padding: 10px 16px; border: 0; border-radius: 8px; background: var(--main); color: #fff; cursor: pointer; white-space: nowrap; }
button:disabled { opacity: .5; }
button.link { background: none; color: var(--main); padding: 4px; }
.big { width: 100%; font-size: 24px; font-weight: 700; padding: 22px; margin: 10px 0; border-radius: 16px; }
.big.in { background: var(--in); } .big.out { background: var(--out); }
.clock { font-size: 48px; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.status { margin: 0 0 8px; color: var(--sub); }
.check { display: flex; gap: 6px; align-items: center; justify-content: center; }
.check input { width: auto; margin: 0; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.list { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.list th, .list td { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.msg { padding: 10px 12px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
.msg.err { color: var(--err); border-color: var(--err); }
.invite { font-size: 14px; word-break: break-all; }
.invite b { font-size: 24px; letter-spacing: 2px; }
.members { list-style: none; padding: 0; margin: 0 0 8px; }
.members li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.inline { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.inline input[type=email], .inline button { grid-column: 1 / -1; }
.field { display: block; font-size: 13px; color: var(--sub); margin-top: 6px; }
.field input { margin-top: 2px; }
#sel-company { margin-bottom: 12px; }
.login { display: block; width: 100%; margin: 10px 0; padding: 14px; font-size: 17px; font-weight: 700; border-radius: 10px; }
.login.google { background: #fff; color: #1f1f1f; border: 1px solid #747775; }
.login.apple { background: #000; color: #fff; }
.danger { color: var(--err) !important; font-size: 13px; }
