:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #232b20;
  background: #f8f6ee;
  font-synthesis: none;
  --ink: #232b20;
  --muted: #50594d;
  --green: #2e4833;
  --soft: #eef1e7;
  --border: #dcded3;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button, input { min-height: 44px; border-radius: 10px; }
:focus-visible { outline: 3px solid #587350; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
p { color: var(--muted); }
svg { display: block; width: 24px; height: 24px; }

.page { width: min(100%, 760px); margin-inline: auto; padding: 28px 16px 32px; }
.hero { padding-inline: 4px; margin-bottom: 20px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--green); font-size: .69rem; font-weight: 750; letter-spacing: .14em; }
.house-mark, .empty-mark { display: grid; place-items: center; background: var(--soft); border-radius: 12px; color: var(--green); }
.house-mark { width: 33px; height: 33px; }
.house-mark svg { width: 20px; height: 20px; }
h1, h2 { font-family: Georgia, serif; }
h1 { margin-block: 8px 5px; font-size: clamp(2.55rem, 10vw, 4rem); font-weight: 600; line-height: 1.05; letter-spacing: -.045em; }
.hero p { font-size: .94rem; line-height: 1.45; }
h2 { font-size: 1.45rem; line-height: 1.15; letter-spacing: -.025em; }
.card { background: #fffefa; border: 1px solid var(--border); border-radius: 19px; box-shadow: 0 3px 12px #2e483308; }
.schedule { margin-bottom: 14px; overflow: hidden; }
.schedule-top { padding: 13px 14px; background: var(--soft); text-align: center; }
.week-nav { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 6px; align-items: center; }
.arrow { display: grid; place-items: center; padding: 0; border: 1px solid #d5dccd; background: #fffefa; color: var(--green); }
.week-heading p { margin-top: 3px; font-size: .84rem; }
.text-button { padding: 0 8px; margin-block: 4px -8px; border: 0; background: transparent; color: var(--green); font-size: .85rem; text-decoration: underline; }
.empty { padding: 18px 16px 21px; text-align: center; }
.empty-mark { width: 43px; height: 43px; margin: 0 auto 8px; }
.empty-mark svg { width: 28px; height: 28px; }
.empty h3 { font-size: 1rem; }
.empty p, .section-intro, .sharing p { margin-top: 4px; font-size: .86rem; line-height: 1.5; }
.chart { padding: 4px 14px 6px; }
table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; overflow-wrap: anywhere; }
th, td { padding: 8px 7px; }
thead th { padding-top: 9px; color: var(--muted); font-size: .71rem; letter-spacing: .06em; text-transform: uppercase; }
thead th:first-child { width: 55%; }
tbody tr { border-top: 1px solid var(--border); }
tbody th { font-size: .94rem; font-weight: 600; }
.assignee { display: inline-block; max-width: 100%; padding: 4px 9px; background: var(--soft); color: var(--green); border-radius: 9px; font-size: .84rem; font-weight: 650; }

.setup { padding: 15px; }
.setup-grid { display: grid; gap: 11px; margin-top: 11px; }
.editor { min-width: 0; }
label { display: block; margin-bottom: 4px; font-size: .87rem; font-weight: 700; }
.input-row { display: flex; gap: 8px; }
input { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #bfc5b8; background: #fffefa; color: var(--ink); }
input::placeholder { color: #666c62; }
.input-row button, .secondary { padding-inline: 14px; border: 1px solid #cdd5c8; background: var(--soft); color: var(--green); font-weight: 650; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 5px 0 0; padding: 0; list-style: none; }
.chips:empty { display: none; }
.chips li { display: flex; align-items: center; max-width: 100%; padding-left: 10px; border: 1px solid var(--border); border-radius: 14px; background: #f9faf6; font-size: .82rem; overflow-wrap: anywhere; }
.chips button { flex: 0 0 44px; border: 0; padding: 0; background: transparent; color: var(--green); font-size: 1.2rem; }

.sharing { display: grid; gap: 8px; margin: 15px 4px 0; }
.sharing h2 { font-size: 1.3rem; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.primary { padding-inline: 16px; border: 1px solid var(--green); background: var(--green); color: #fffefa; font-weight: 650; }
.share-status:empty { display: none; }
.notice { padding: 10px 14px; margin-bottom: 12px; border: 1px solid #e1cba4; border-radius: 10px; background: #fff4dc; font-size: .88rem; }

@media (min-width: 620px) {
  .page { padding: 44px 24px; }
  .setup-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .sharing { grid-template-columns: minmax(0, 1fr) auto; }
}
