:root {
  color-scheme: dark;
  --bg: #000;
  --card: #1c1c1e;
  --text: #fff;
  --muted: #b8b8bd;
  --accent: #ff8a50;
  --border: #454549;
  --ink: #101010;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif; }
a { color: inherit; }
header { width: min(100% - 32px, 420px); margin: 0 auto; padding-top: env(safe-area-inset-top, 0px); }
header:has(.notice[hidden]) { display: none; }
.notice { color: var(--muted); font-size: 12px; line-height: 1.3; text-align: center; margin: 8px 0; }
.landing { flex: 1; width: min(100%, 460px); margin: auto; display: flex; flex-direction: column; justify-content: center; padding: env(safe-area-inset-top, 0px) 0 max(16px, env(safe-area-inset-bottom)); }
.hero { text-align: center; }
.hero { padding: 28px 20px 18px; }
.hero-kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .3em; color: #ffc94d; }
.hero-title { margin: 2px 0 0; font-size: 56px; line-height: 1.1; font-weight: 900; font-style: italic;
  background: linear-gradient(180deg, #fff 35%, #ffc94d); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 110, 30, .75)); }
.hero-title span { font-size: .8em; }
.hero-lead { margin: 6px 0 16px; font-weight: 700; color: var(--text); }
.hero-rule { margin: 10px 0 18px; font-size: 13px; color: var(--muted); }
.day-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.day-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 14px 16px; border-radius: 16px; border: 1.5px solid #ffc94d;
  background: linear-gradient(100deg, #6b050a 0%, #c7140f 55%, #f36c21 100%); box-shadow: 0 8px 24px rgba(243, 108, 33, .3); }
.day-card.is-loading, .day-card.is-empty { justify-content: center; border-color: var(--border); background: var(--card); box-shadow: none; color: var(--muted); font-size: 14px; }
.day-date { flex: none; text-align: center; min-width: 76px; }
.day-date strong { display: block; font-size: 28px; line-height: 1.1; font-weight: 900; }
.day-date span { font-size: 12px; font-weight: 800; color: #ffc94d; }
.day-body { flex: 1; min-width: 0; }
.day-area { font-size: 13px; font-weight: 800; }
.day-free { display: block; font-size: 24px; line-height: 1.25; font-weight: 900; font-style: italic;
  background: linear-gradient(180deg, #fff 30%, #ffc94d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.day-count { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.day-count.is-full { color: #ffc94d; }
.entry { padding: 0 24px; }
.entry-note { font-size: 13px; color: var(--text); margin: 10px 0 6px; text-align: center; }
.consent { margin: 0; color: var(--muted); font-size: 12px; text-align: center; }
.consent a { text-underline-offset: 2px; }
.summary { text-align: center; margin: 0 0 10px; font-weight: 700; color: var(--accent); }
button, .link-button, select { font: inherit; min-height: 48px; border-radius: 12px; }
button, .link-button { cursor: pointer; width: 100%; padding: 13px 14px; font-weight: 700; border: 1px solid transparent; transition: background .15s, color .15s; }
button:disabled { opacity: .55; cursor: default; }
.apple { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #000; }
.apple svg { width: 20px; height: 24px; }
.primary { background: var(--accent); color: var(--ink); }
.secondary { background: transparent; border: 1px solid var(--border); color: var(--text); margin-top: 10px; }
.text-button { background: transparent; color: var(--muted); text-decoration: underline; font-size: 13px; padding: 10px 4px; }
.link-button { display: block; text-align: center; text-decoration: none; }
button:not(:disabled):active, .link-button:active { filter: brightness(.85); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
dialog { width: min(100% - 24px, 430px); max-height: calc(100dvh - 24px); margin: auto; padding: 0; color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: 22px; overscroll-behavior: contain; }
dialog::backdrop { background: rgb(0 0 0 / .78); }
.card { padding: 16px 20px 12px; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h2 { font-size: 22px; margin: 0; }
.close { width: 44px; min-height: 44px; padding: 0; background: transparent; color: var(--muted); font-size: 30px; font-weight: 400; flex-shrink: 0; }
.dialog-date { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.status { font-weight: 700; color: var(--accent); margin: 0 0 14px; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
#event-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
legend, label[for] { font-size: 13px; font-weight: 700; display: block; margin-bottom: 7px; }
.option { display: flex; align-items: center; gap: 8px; padding: 12px 10px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.option:has(input:checked) { border-color: var(--accent); background: #30221d; }
input { accent-color: var(--accent); flex-shrink: 0; width: 18px; height: 18px; margin: 0; }
.option strong { font-size: 15px; }
.option small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.date-note { margin-top: -8px; }
.select-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.select-row > div { min-width: 0; }
select { display: block; width: 100%; padding: 10px 8px; background: var(--bg); color: var(--text); border: 1px solid var(--border); font-size: 16px; }
.small { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 10px 0 14px; }
.legal-filing { text-align: center; font-size: 10px; margin: 18px 0 8px; }
.check { display: flex; gap: 9px; align-items: center; font-size: 13px; min-height: 44px; }
h3 { font-size: 18px; margin: 0 0 8px; }
.next p { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.minor-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.account-switch { font-size: 12px; }
.feedback:empty { display: none; }
.feedback { font-size: 13px; color: var(--muted); margin: 12px 0 0; overflow-wrap: anywhere; }
.feedback[data-error=true] { color: #ffb3ac; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 350px) {
  header { width: calc(100% - 32px); }
  .notice { font-size: 12px; max-width: 150px; }
  .entry { padding: 0 20px; }
  .card { padding: 14px 14px 10px; }
  .option { gap: 6px; padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.muted { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 6px; }
.group-note { margin: 12px 0 4px; }
.details-link { margin: 10px 0 0; text-align: center; }
.check { margin: 4px 0 14px; }
.account-options { margin-top: 14px; color: var(--muted); font-size: 12px; }
.account-options summary { cursor: pointer; text-align: center; }
#group-field select { margin-bottom: 6px; }
.option { min-height: 64px; justify-content: center; }
.card { padding-bottom: 18px; }
