:root {
    color-scheme: light;
    --green: #176039;
    --green-dark: #10472a;
    --ink: #263d34;
    --muted: #65756e;
    --line: #e0e8e4;
    --blue: #e6f2f8;
    --red: #a42e31;
    font-family: "Trebuchet MS", Verdana, sans-serif;
    color: var(--ink);
    font-size: 16px;
    letter-spacing: 0;
}
* { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(135deg, #dceef6, #f3f9fc 65%, #e1eef4); min-width: 280px; }
button, input, textarea { font: inherit; letter-spacing: 0; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: var(--green); text-underline-offset: 4px; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #b47720; outline-offset: 4px; }
[hidden] { display: none !important; }
.lucide { width: 20px; height: 20px; flex: 0 0 20px; stroke-width: 1.7; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 20; background: white; padding: 12px; }
.skip-link:focus { top: 12px; }
.site-shell { width: min(1120px, calc(100% - 64px)); margin: 30px auto; background: #fff; box-shadow: 0 8px 48px #204a5a0d; }
.site-header { padding: 26px 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 20px; text-decoration: none; min-width: 0; }
.brand img { object-fit: contain; width: 84px; height: 84px; }
.brand-kicker, .eyebrow, .list-heading { font-size: 11px; font-weight: 700; }
.brand-kicker { color: var(--muted); }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; margin: 0; letter-spacing: 0; color: var(--green); overflow-wrap: anywhere; }
h1 { font-size: 32px; margin-top: 6px; }
.back-link { display: flex; align-items: center; gap: 6px; font-size: 12px; text-decoration: none; white-space: nowrap; }
.back-link .lucide { width: 16px; height: 16px; flex-basis: 16px; }
.calendar-nav { background: var(--green); color: white; min-height: 56px; padding: 6px 42px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.nav-title, .nav-actions, .nav-button { display: flex; align-items: center; gap: 10px; }
.nav-title { font-size: 14px; }
.nav-actions { gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.nav-actions form { margin: 0; }
.nav-button { padding: 8px 0; border: 0; background: transparent; color: white; font-size: 12px; min-height: 40px; }
.nav-button:hover { color: #e0efcf; }
.account-name { font-size: 12px; max-width: 130px; overflow-wrap: anywhere; }
main { padding: 42px 62px 0; }
.eyebrow { color: var(--green); margin: 0 0 14px; }
.calendar-heading h2 { font-size: 40px; line-height: 1.2; }
.calendar-heading h2 span { color: #75917e; }
.heading-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 19px 0 34px; }
.heading-bottom p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }
.calendar-count { display: flex; gap: 8px; align-items: center; white-space: nowrap; font-size: 12px; color: var(--muted); }
.status-dot { display: inline-block; flex: 0 0 6px; width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.calendar-list { border-top: 2px solid var(--green); }
.list-heading, .day-row { display: grid; grid-template-columns: 134px minmax(0, 1fr) 100px 22px; column-gap: 16px; align-items: center; }
.list-heading { padding: 15px 18px; color: var(--muted); border-bottom: 1px solid var(--line); }
.list-heading span:nth-child(3) { text-align: right; }
.day-row { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; width: 100%; background: #fff; padding: 13px 18px; text-align: left; min-height: 73px; color: var(--ink); transition: background .15s ease; }
.day-row:hover { background: #f0f7f3; }
.day-row:focus-visible { outline-offset: -3px; }
.date-cell { display: flex; gap: 17px; align-items: center; }
.day-number { font-family: Georgia, "Times New Roman", serif; font-size: 28px; color: var(--green); width: 34px; font-variant-numeric: tabular-nums; }
.weekday { font-size: 12px; color: var(--muted); }
.host-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.host-name { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.is-free .host-name { color: var(--muted); font-style: italic; }
.is-free .status-dot { background: transparent; border: 1px solid #879e90; }
.time-cell { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.is-free .time-cell { color: #a5b1aa; }
.row-arrow { color: #7d9486; width: 17px; height: 17px; }
.calendar-footnote { margin: 26px 0; color: var(--muted); font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; line-height: 1.6; }
.calendar-footnote .lucide { color: var(--green); }
.site-footer { margin-top: 18px; padding: 23px 42px; border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; gap: 16px; font-size: 11px; }
.site-footer a { display: flex; align-items: center; gap: 4px; text-decoration: none; }
.site-footer .lucide { width: 14px; height: 14px; flex-basis: 14px; }
.notice { padding: 12px 14px; border-left: 3px solid var(--green); background: #edf6ef; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; display: flex; align-items: center; gap: 8px; }
.notice.error { background: #fdf0ef; border-color: var(--red); color: #822b2d; }
.admin-status { font-size: 12px; color: var(--green); display: flex; align-items: center; gap: 8px; margin: 0 0 18px; }
.admin-status span { margin-left: auto; overflow-wrap: anywhere; }
dialog { padding: 0; border: 1px solid #d5e0d9; border-radius: 8px; width: min(570px, calc(100% - 32px)); max-height: calc(100dvh - 40px); color: var(--ink); box-shadow: 0 24px 100px #102e3550; overscroll-behavior: contain; }
dialog::backdrop { background: #19382e80; backdrop-filter: blur(3px); }
dialog[open] { animation: dialog-in .18s ease-out; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 22px 10px 28px; border-bottom: 1px solid var(--line); }
.dialog-header .eyebrow { margin: 0; line-height: 1.7; }
.icon-button { border: 0; border-radius: 4px; color: var(--green); background: transparent; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; }
.icon-button:hover { background: #edf5ef; }
.dialog-body { padding: 26px 28px 30px; }
.dialog-body h2 { font-size: 28px; line-height: 1.3; margin-bottom: 24px; }
.prose p { font-size: 14px; line-height: 1.8; margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }
.detail-line { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.6; margin: 16px 0; }
.detail-line .lucide { margin-top: 2px; color: var(--green); }
#detail-address, #detail-note { white-space: pre-wrap; overflow-wrap: anywhere; }
#detail-note { border-top: 1px solid var(--line); padding-top: 18px; margin: 22px 0 0; font-size: 14px; line-height: 1.7; }
.stacked-form { display: flex; flex-direction: column; }
.stacked-form label { font-size: 13px; font-weight: 700; margin: 18px 0 8px; display: block; }
.stacked-form > label:first-of-type { margin-top: 0; }
input:not([type="hidden"]), textarea { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #b9c9bf; border-radius: 4px; background: white; color: var(--ink); font-size: 16px; line-height: 1.4; }
textarea { resize: vertical; }
.password-field { display: flex; align-items: center; position: relative; }
.password-field input { padding-right: 50px; }
.password-field button { position: absolute; right: 2px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 4px; padding: 11px 16px; min-height: 46px; font-size: 14px; line-height: 1.4; }
.primary { color: white; background: var(--green); }
.primary:hover { background: var(--green-dark); }
.secondary { color: var(--green); background: white; border-color: #b9c9bf; }
.secondary:hover { background: #f1f7f3; }
.danger { color: white; background: var(--red); }
.danger-quiet { color: var(--red); background: transparent; }
.danger-quiet:hover { background: #fdf0ef; }
#login-dialog .primary { margin-top: 26px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 26px; }
.form-pair { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.form-pair label { margin-top: 0; }
.optional { font-weight: 400; color: var(--muted); font-size: 12px; }
.delete-question { font-size: 14px; line-height: 1.7; color: var(--red); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 800px) {
    .site-shell { width: calc(100% - 32px); margin: 16px auto; }
    .site-header { padding: 22px 26px; }
    .back-link { display: none; }
    .calendar-nav { padding-inline: 26px; }
    main { padding: 32px 28px 0; }
    .calendar-heading h2 { font-size: 34px; }
    .heading-bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
    .list-heading, .day-row { grid-template-columns: 88px minmax(0, 1fr) 84px 18px; column-gap: 10px; }
    .site-footer { padding-inline: 28px; }
}
@media (max-width: 520px) {
    .site-shell { width: 100%; margin: 0; box-shadow: none; }
    .site-header { padding: 20px; }
    .brand { gap: 12px; }
    .brand img { width: 62px; height: 62px; }
    .brand-kicker { font-size: 9px; }
    h1 { font-size: 25px; line-height: 1.2; }
    .calendar-nav { padding: 7px 20px; gap: 6px; }
    .nav-title { font-size: 12px; gap: 7px; }
    .nav-actions { gap: 10px; }
    .nav-button { gap: 6px; }
    #info-button span, .account-name { display: none; }
    #info-button { width: 40px; justify-content: center; }
    main { padding: 28px 20px 0; }
    .calendar-heading h2 { font-size: 30px; }
    .heading-bottom { margin: 16px 0 24px; }
    .heading-bottom p { font-size: 13px; }
    .list-heading, .day-row { grid-template-columns: 66px minmax(0, 1fr) 18px; column-gap: 9px; }
    .list-heading { padding: 14px 4px; font-size: 10px; }
    .list-heading span:nth-child(3) { display: none; }
    .day-row { padding: 12px 4px; min-height: 72px; }
    .date-cell { gap: 5px; grid-row: 1 / 3; }
    .day-number { font-size: 26px; width: 32px; }
    .weekday { font-size: 11px; }
    .host-cell { gap: 8px; grid-column: 2; }
    .is-free .host-cell { grid-row: 1 / 3; }
    .host-name { font-size: 14px; }
    .time-cell { grid-column: 2; text-align: left; font-size: 11px; padding: 3px 0 0 14px; }
    .is-free .time-cell { display: none; }
    .row-arrow { grid-column: 3; grid-row: 1 / 3; }
    .calendar-footnote { font-size: 11px; justify-content: flex-start; }
    .site-footer { padding: 20px; font-size: 10px; flex-wrap: wrap; }
    .dialog-body { padding: 22px 20px 24px; }
    .dialog-header { padding-left: 20px; padding-right: 12px; }
    .dialog-body h2 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }