:root {
  --bg: #f7f7f5;
  --card: #ffffff;
  --text: #1c1c1e;
  --muted: #6b6b70;
  --line: #e2e2e5;
  --accent: #2f6fde;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111113; --card: #1c1c1f; --text: #f2f2f4; --muted: #a0a0a8; --line: #2c2c31; --accent: #6ea0ff; }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 ui-rounded, -apple-system, "Hiragino Maru Gothic ProN", system-ui, sans-serif;
}
main { max-width: 560px; margin: 0 auto; padding: 16px 16px 48px; }
h1 { font-size: 1.4rem; margin: 8px 0 0; }
h2 { font-size: 1.05rem; margin: 24px 0 8px; }
h3 { font-size: .95rem; margin: 0 0 4px; color: var(--muted); font-weight: 600; }
ul { list-style: none; margin: 0; padding: 0; }
.updated, .empty, .message, .me { color: var(--muted); font-size: .9rem; }
.message { margin-top: 32px; text-align: center; }
.days > li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; }
.shifts li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 2px 0; }
.shifts .time { font-variant-numeric: tabular-nums; font-weight: 600; }
.shifts .break { color: var(--muted); font-size: .85rem; }
.shifts .off .time { color: var(--muted); }
.who { display: inline-flex; align-items: center; gap: 6px; min-width: 7em; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.names li { margin-bottom: 8px; }
.names button {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; cursor: pointer;
}
button.link { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; }

/* Requests (F-59) */
.lead { font-weight: 600; margin: 4px 0 0; }
.deadline { color: var(--muted); font-size: .9rem; margin: 2px 0; }
.deadline.past { color: #c2410c; }
.howto { color: var(--muted); font-size: .9rem; }
.days > li.muted { opacity: .55; }
.fixed { margin: 0; color: var(--muted); font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: inherit; font-size: .9rem; color: inherit; background: var(--bg);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer;
  display: inline-flex; flex-direction: column; align-items: flex-start;
}
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip:disabled { opacity: .45; cursor: default; }
.chip .note { font-size: .75rem; }
.submit { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: var(--bg); }
button.primary {
  width: 100%; font: inherit; font-weight: 600; color: #fff; background: var(--accent);
  border: 0; border-radius: 12px; padding: 14px; cursor: pointer;
}
button.primary:disabled { opacity: .5; cursor: default; }
.status { text-align: center; color: var(--muted); font-size: .9rem; margin: 8px 0 0; }

/* Schedule: list / week tabs, week grid, calendar export (F-58) */
.tabs { display: flex; gap: 4px; background: var(--line); border-radius: 10px; padding: 3px; margin: 12px 0 4px; }
.tabs button { flex: 1; font: inherit; font-size: .9rem; color: inherit; background: none; border: 0; border-radius: 8px; padding: 6px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--card); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.weeknav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 8px; font-size: .9rem; }
.weeknav button:disabled { color: var(--muted); opacity: .5; cursor: default; }
.grid { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.grid table { border-collapse: collapse; font-size: .8rem; min-width: 100%; }
.grid th, .grid td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: center; white-space: pre; vertical-align: top; }
.grid thead th { font-weight: 600; color: var(--muted); }
.grid thead th.today { color: var(--accent); }
.grid tbody th { text-align: left; white-space: nowrap; position: sticky; left: 0; background: var(--card); font-weight: 500; }
.grid tbody th .dot { margin-right: 6px; }
.grid tr.me th, .grid tr.me td { background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.grid td { font-variant-numeric: tabular-nums; }
.grid td.off { color: var(--muted); }
.calendar { margin-top: 8px; }
button.secondary {
  width: 100%; font: inherit; font-weight: 600; color: var(--accent); background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer;
}
.hint { color: var(--muted); font-size: .8rem; margin: 6px 0 0; }
