:root {
  --ink: #0F2438;
  --sub: #55677A;
  --ground: #F4F7FA;
  --line: #D9E1EA;
  --sea-dark: #0B6670;
  --sea-tint: #E1F2F3;
  --error: #A32020;
}
* { box-sizing: border-box; }
html { background: var(--ink); }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--ink);
  font-family: -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  line-height: 1.6;
}
.hero {
  position: relative;
  min-height: 400px;
  background:
    linear-gradient(180deg, #0F2438 0, #0F2438 24%, rgba(15,36,56,0.6) 42%, rgba(15,36,56,0.12) 62%, rgba(15,36,56,0) 76%),
    url("/hero.jpg") center 70% / cover no-repeat,
    var(--ink);
  padding: calc(env(safe-area-inset-top) + 56px) 24px 56px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero .eyebrow { font-size: 12px; font-weight: 500; color: #9FB3C8; }
.hero h1 { margin: 0; font-size: 30px; line-height: 1.3; color: #fff; }
.hero .sub { font-size: 14px; color: #C5D3E0; }
.hero svg { position: absolute; left: 0; bottom: -1px; width: 100%; height: 40px; }
.sheet { flex: 1; background: var(--ground); }
main { max-width: 480px; margin: 0 auto; padding: 0 20px 40px; display: flex; flex-direction: column; gap: 16px; }
.card { background: #fff; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 13px;
  background: var(--sea-tint);
  color: var(--sea-dark);
  font-size: 12px;
  font-weight: 700;
}
.card h2 { margin: 0; font-size: 22px; line-height: 1.4; }
.who { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sub); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.card p { margin: 0; font-size: 14px; color: #3F5266; }
button {
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  height: 52px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}
button.secondary { background: #fff; color: var(--ink); border-color: var(--line); height: 48px; font-size: 15px; }
button:disabled { opacity: 0.6; cursor: default; }
.msg { min-height: 1.4em; margin: 0; font-size: 14px; color: var(--error); }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--sub); }
input, select { font: inherit; font-size: 16px; height: 48px; padding: 0 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
input[type="color"] { width: 80px; padding: 4px; }
button.small { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.member { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.actions { display: flex; gap: 8px; }
.pill.muted { background: var(--line); color: var(--sub); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 2px 10px; border-radius: 14px; background: var(--ground); color: var(--ink); }
.chip.pick { font-size: 15px; padding: 6px 12px; }
.chip.pick input { height: auto; width: auto; }
.people { display: flex; flex-direction: column; gap: 10px; }
.daybar { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0; }
.daybar button { flex: none; }
.event { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.event p { margin: 0; }
.when { font-size: 13px; color: var(--sub); font-weight: 700; }
.tag { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 12px; background: var(--sea-tint); color: var(--sea-dark); }
button.danger { color: var(--error); border-color: var(--error); }
a.button.small { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 12px; font-size: 14px; text-decoration: none; }
a.button.secondary { background: #fff; color: var(--ink); border: 2px solid var(--line); }
