:root {
  color-scheme: light;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  color: #252c23;
  background: #f7f8f4;
  --text: #252c23;
  --muted: #596356;
  --border: #dde3d9;
  --green: #2c4938;
  --green-light: #e4efe6;
  --rust: #a4402e;
  --amber-light: #fff0d0;
  --radius: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #a4402e; outline-offset: 3px; }
.shell { width: min(1480px, calc(100% - 96px)); margin-inline: auto; }
.top { background: #fff; border-bottom: 1px solid var(--border); }
.masthead { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { flex: none; }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 1.05rem; font-weight: 750; letter-spacing: -.018em; }
.brand span { font-size: .81rem; color: var(--muted); margin-top: 1px; }
.admin-controls { display: flex; gap: 8px; align-items: center; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-block: 37px 27px; }
h1, h2, p { margin: 0; }
h1, .month-heading h2, .day-header h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.04em; }
h1 { font-size: clamp(2.3rem, 4.35vw, 4.35rem); line-height: 1.03; color: #263c2e; }
.intro p { margin-top: 12px; color: var(--muted); line-height: 1.55; }
.button { min-height: 41px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 13px; font-size: .875rem; font-weight: 700; border-radius: 9px; line-height: 1.25; }
.button svg, .icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.admin-link { text-decoration: none; }
.primary { background: var(--rust); color: white; border: 1px solid var(--rust); }
.primary:hover { background: #873525; }
.intro .primary { min-height: 47px; padding-inline: 17px; white-space: nowrap; }
.intro-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.reminder-banner { margin-top: 20px; padding: 12px 15px; background: #fff6df; border: 1px solid #e9d6a8; border-radius: 11px; }
.reminder-banner h2 { color: #6b4612; font-size: .9rem; }
.reminder-list { list-style: none; margin: 0; padding: 0; }
.reminder-list li { padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.reminder-list li + li { margin-top: 7px; border-top: 1px solid #e9d6a8; }
.reminder-message { font-size: .94rem; font-weight: 620; overflow-wrap: anywhere; white-space: pre-wrap; }
.reminder-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; flex-shrink: 0; }
.reminder-actions .button { min-height: 36px; }
#notice .button { margin-left: 8px; }
.outline { color: var(--text); background: #fff; border: 1px solid var(--border); }
.outline:hover, .icon-button:hover { background: #eef2eb; }
.outline.danger { color: #9b301f; }
.outline.danger:hover { background: #fbebe5; }
.plus { font-size: 1.22rem; font-weight: 500; line-height: .75; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--green); background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, 272px); align-items: start; gap: 20px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 3px 9px #21312206; min-width: 0; }
.calendar { overflow: hidden; }
.toolbar, .month-heading, .navigation, .pager { display: flex; align-items: center; }
.toolbar { min-height: 79px; padding: 13px 20px; justify-content: space-between; gap: 10px; }
.month-heading { gap: 10px; }
.month-heading h2 { color: var(--green); font-size: clamp(1.6rem, 3.2vw, 2.15rem); line-height: 1; }
.jump { border-color: transparent; background: #f4f6f1; width: 34px; height: 34px; }
.navigation { gap: 9px; }
.pager .icon-button { height: 41px; }
.pager .icon-button + .icon-button { margin-left: -1px; }
.pager .icon-button:first-child { border-radius: 8px 0 0 8px; }
.pager .icon-button:last-child { border-radius: 0 8px 8px 0; }
.weekdays, .week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.weekdays { color: #526153; background: #f1f4ed; border-block: 1px solid var(--border); text-align: center; font-size: .81rem; font-weight: 760; }
.weekdays span { padding: 10px 2px; }
.week { grid-template-rows: 37px repeat(3, 19px); border-bottom: 1px solid var(--border); padding-bottom: 0; min-height: 102px; }
.week.with-observance { grid-template-rows: 67px repeat(3, 19px); min-height: 126px; }
.date-cell { grid-row: 1 / 5; min-width: 0; text-align: left; align-self: stretch; border: 0; border-right: 1px solid var(--border); background: white; padding: 7px 7px 0; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 1px; color: var(--text); }
.date-line { display: flex; justify-content: space-between; align-items: start; gap: 1px; }
.observance-label { color: var(--muted); padding-inline: 2px; font-size: .71rem; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.date-cell:nth-child(7) { border-right: 0; }
.date-cell:hover { background: #f2f6ef; }
.date-cell:focus-visible { outline-offset: -3px; z-index: 3; }
.date-cell.outside { background: #f9faf7; color: #687265; }
.date-cell.selected { background: #edf4ed; box-shadow: inset 0 0 0 2px #9fb1a2; }
.date-number { width: 26px; height: 26px; display: inline-grid; place-items: center; font-size: .9rem; font-weight: 720; border-radius: 7px; }
.selected .date-number { color: #fff; background: var(--green); }
.date-cell[aria-current="date"]:not(.selected) .date-number { box-shadow: inset 0 0 0 1px var(--green); }
.more { font-size: .73rem; padding-top: 5px; color: var(--green); }
.event { border: 0; border-radius: 4px; z-index: 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; margin: 0 3px 3px; padding: 0 5px; font-size: .72rem; line-height: 16px; font-weight: 720; }
.event:hover { filter: brightness(.95); }
.confirmed { background: var(--green-light); color: #274c34; }
.pending { background: var(--amber-light); color: #714900; }
.canceled { background: #ebeae8; color: #594b49; }
.event.canceled { text-decoration: line-through; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; padding: 14px 19px; color: var(--muted); font-size: .82rem; font-weight: 620; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.confirmed { background: #527b5c; }
.dot.pending { background: #b9862d; }
.dot.canceled { background: #81716f; }
.day { overflow: hidden; }
.day-header { padding: 21px 18px 17px; border-bottom: 1px solid var(--border); background: #f1f5ee; }
.day-caption { color: #48604f; font-size: .82rem; font-weight: 730; }
.day-header h2 { font-size: 1.68rem; color: var(--green); margin: 6px 0; line-height: 1.1; }
.day-header p { color: var(--muted); font-size: .86rem; }
.day-observances { list-style: none; margin: 7px 0; padding: 0; display: grid; gap: 3px; color: var(--green); font-size: .84rem; font-weight: 620; }
.day-activities { padding: 16px 17px; min-height: 112px; display: grid; gap: 9px; align-content: start; }
.empty { color: var(--muted); line-height: 1.5; font-size: .9rem; }
.day-action { padding: 13px 17px 16px; border-top: 1px solid var(--border); }
.day-action button { width: 100%; }
.day-item, .review-item { display: grid; gap: 5px; text-align: left; color: var(--text); padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; width: 100%; overflow-wrap: anywhere; }
.day-item:hover, .review-item:hover { background: #f5f7f2; }
.badge { justify-self: start; padding: 3px 7px; border-radius: 4px; font-size: .75rem; font-weight: 730; }
.footer { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 15px; color: var(--muted); font-size: .83rem; }
#notice { padding: 10px 14px; background: #e5efe6; border: 1px solid #c4d9c6; border-radius: 8px; margin-bottom: 15px; }
#notice.problem { background: #fbebe5; border-color: #ebc3b6; color: #803828; }
dialog { width: min(525px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 20px 100px #14281b49; }
dialog::backdrop { background: #18261b73; }
.dialog-inner { padding: 21px; }
.dialog-header { display: flex; justify-content: space-between; gap: 10px; align-items: start; margin-bottom: 19px; }
.dialog-header h2 { font-size: 1.45rem; line-height: 1.2; overflow-wrap: anywhere; }
.dialog-header .icon-button { width: 34px; height: 34px; flex: none; }
.form, .details, .review-list { display: grid; gap: 13px; }
.form label { display: block; font-size: .9rem; font-weight: 700; min-width: 0; }
.form input, .form textarea, .form select { display: block; width: 100%; min-width: 0; margin-top: 5px; padding: 9px; border: 1px solid #bfc9bf; border-radius: 8px; color: var(--text); background: #fff; font-size: 1rem; font-weight: 500; }
.form input, .form select { min-height: 42px; }
.form textarea { resize: vertical; }
.monthly-positions { margin: 0; padding: 0; border: 0; min-width: 0; }
.monthly-positions legend { padding: 0; margin-bottom: 5px; font-size: .9rem; font-weight: 700; }
.monthly-positions > div { display: flex; gap: 6px; flex-wrap: wrap; }
.monthly-positions label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.monthly-positions input[type="checkbox"] { width: 1.125rem; height: 1.125rem; min-height: 0; margin: 0; padding: 0; accent-color: var(--green); }
.form select { appearance: none; padding-right: 28px; background: linear-gradient(45deg, transparent 50%, #526153 50%) right 13px center / 5px 5px no-repeat, linear-gradient(135deg, #526153 50%, transparent 50%) right 8px center / 5px 5px no-repeat #fff; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.optional { color: var(--muted); font-size: .8rem; font-weight: 500; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.scope-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.error { color: #9b301f; margin-top: 10px; font-weight: 700; font-size: .87rem; }
.details p { line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 1020px) { .shell { width: calc(100% - 48px); } .workspace { grid-template-columns: minmax(0, 1fr) 225px; gap: 13px; } }
@media (max-width: 786px) { .workspace { grid-template-columns: minmax(0, 1fr); } .day-activities { min-height: 68px; } .shell { width: calc(100% - 32px); } }
@media (max-width: 480px) {
  .shell { width: calc(100% - 24px); }
  .masthead { min-height: 64px; }
  .brand strong { font-size: .91rem; }
  .brand span { font-size: .73rem; }
  .brand img { width: 34px; height: 39px; }
  .brand { gap: 7px; }
  .admin-controls { gap: 5px; }
  .admin-controls .button { padding-inline: 7px; font-size: .76rem; }
  .admin-controls svg { display: none; }
  .intro { align-items: start; flex-direction: column; gap: 14px; margin-top: 24px; margin-bottom: 18px; }
  .intro p { margin-top: 7px; }
  .intro-actions { justify-content: flex-start; }
  .reminder-list li { align-items: start; flex-direction: column; }
  .toolbar { min-height: 61px; padding: 9px; }
  .month-heading { gap: 4px; }
  .navigation { gap: 4px; }
  .pager .icon-button { width: 28px; }
  .date-cell { padding-inline: 3px; }
  .event { font-size: .67rem; padding-inline: 3px; }
  .week { min-height: 79px; grid-template-rows: 31px repeat(3, 16px); }
  .week.with-observance { min-height: 119px; grid-template-rows: 70px repeat(3, 16px); }
  .observance-label { padding-inline: 1px; font-size: .65rem; -webkit-line-clamp: 3; }
  .event { line-height: 13px; }
}
.attribution { color: var(--muted); font-size: .82rem; line-height: 1.4; }
