:root { color-scheme: light; font: 14px/1.45 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #242424; background: #f4f4f4; --accent: #007aff; --line: #d8d8d8; --muted: #686868; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; border: 1px solid #c9c9c9; border-radius: 6px; padding: 6px 12px; background: linear-gradient(#fff, #f7f7f7); color: #252525; box-shadow: 0 1px 2px #00000009; white-space: nowrap; }
button:hover { background: #e9e9e9; }
button:disabled { opacity: .4; cursor: default; }
button.primary { background: var(--accent); border-color: #0070eb; color: white; }
button.primary:hover { background: #006bde; }
button.danger { color: #b92d26; }
button.active, button.selected { background: #e0ecfc; color: #005bbf; border-color: #94bcf0; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid #007aff90; outline-offset: 3px; }
input, select, textarea { min-width: 0; width: 100%; background: white; color: inherit; border: 1px solid #c7c7c7; border-radius: 5px; padding: 6px 8px; }
textarea { min-height: 90px; resize: vertical; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--accent); flex-shrink: 0; }
input[role=switch] { width: 30px; }
label { display: flex; flex-direction: column; gap: 6px; }
label.check { display: flex; flex-direction: row; align-items: center; gap: 8px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.65px; margin-bottom: 5px; }
h2 { font-size: 21px; line-height: 1.3; margin-bottom: 16px; }
h3 { font-size: 16px; margin-bottom: 8px; }
p { margin-bottom: 12px; }
a { color: #0068d8; }
small, .muted, .help, .version { color: var(--muted); }
small { display: block; font-size: 12px; }
.help, .version { font-size: 12px; }
.icon { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: #f5f5f5; }
.app-heading p { margin: 0; color: var(--muted); }
.header-controls, .actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.account { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-right: 8px; font-size: 12px; }
.account button { padding: 3px 10px; }
.workspace { padding: 20px; margin: 0 auto; max-width: 1600px; }
.page-header, .list-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.page-header h2, .list-heading h2 { margin: 0; }
.month-navigation { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.month-navigation > button:first-child, #next-month { font-size: 25px; line-height: 20px; padding: 4px 12px; }
.month-pickers { display: flex; justify-content: center; gap: 8px; flex: 1; }
.month-pickers select { width: auto; min-width: 100px; font-size: 17px; }
.month-pickers #month { min-width: 145px; }
.closure-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.closure-toolbar > span { display: flex; align-items: center; gap: 6px; }
.closure { background: #fff0d9; padding: 14px 16px; border-radius: 8px; margin-bottom: 16px; }
.closure p { margin: 6px 0 0; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 6px; }
.weekday { color: var(--muted); text-align: center; font-weight: 600; font-size: 17px; padding-bottom: 8px; }
.calendar-day { display: flex; flex-direction: column; gap: 5px; justify-content: flex-start; min-height: 64px; border: 1.5px solid transparent; box-shadow: none; background: transparent; padding: 8px 4px; border-radius: 8px; }
.calendar-day:hover { background: #e8e8e8; }
.calendar-day.today { background: #e7e7e7; }
.calendar-day.selected { background: #cce3ff; border-color: var(--accent); color: inherit; }
.day-number { font-size: 16px; }
.calendar-day.selected .day-number { font-weight: 700; }
.day-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; min-height: 10px; max-width: 66px; }
.booking-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #007aff; flex-shrink: 0; }
.booking-dot.sailing { background: #28a745; }
.booking-dot.funeral.unpaid { background: linear-gradient(90deg,#007aff 50%,#e63f35 50%); }
.booking-dot.sailing.unpaid { background: linear-gradient(90deg,#28a745 50%,#e63f35 50%); }
.day-lock { display: flex; align-items: center; gap: 3px; font-size: 10px; white-space: normal; }
.day-lock .icon { width: 11px; height: 11px; }
.day-lock.funeral { color: #0067d8; }
.day-lock.sailing { color: #1b7832; }
.calendar-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 20px 0; }
.calendar-legend > span { display: flex; align-items: center; gap: 6px; }
.all-reservations { margin-left: auto; }
.search-row { display: flex; align-items: center; gap: 8px; }
.search-row > .icon { color: var(--muted); }
.reservation-list > .help { margin: 6px 0 18px; }
.reservation-card { padding: 16px; border-radius: 12px; background: #eaeaea; margin-bottom: 12px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-heading h3 { margin: 6px 0 4px; }
.deceased-names { display: block; white-space: pre-line; }
.card-heading .muted { margin: 5px 0 8px; }
.badge { display: inline-block; background: #dcdcdc; border-radius: 20px; padding: 3px 9px; font-weight: 600; }
.card-details { display: grid; gap: 7px; }
.card-details > span { display: flex; align-items: center; gap: 7px; overflow-wrap: anywhere; }
.paid { color: #247d32; }
.pending { color: #9c5700; }
.card-notes { color: var(--muted); margin: 10px 0 0; white-space: pre-wrap; }
.empty { padding: 35px 20px; text-align: center; color: var(--muted); }
.empty > .icon { width: 35px; height: 35px; margin-bottom: 10px; }
.empty h3 { font-size: 19px; color: #404040; }
.empty p { margin: 0; }
.settings-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 22px; }
.settings-pane { max-width: 760px; margin: 0 auto; }
.segmented { display: flex; padding: 3px; border-radius: 7px; background: #e3e3e3; margin: 0 0 24px; }
.segmented button { flex: 1; border: 0; box-shadow: none; background: transparent; }
.segmented button.active { background: white; box-shadow: 0 1px 4px #0002; color: inherit; }
.setting-row, .file-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.setting-row:last-child, .file-row:last-child { border-bottom: 0; }
.panel { background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 18px; }
.padded { padding: 24px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 12px 14px; border-bottom: 1px solid #e6e6e6; }
th { color: var(--muted); font-weight: 600; background: #fafafa; }
tr:last-child td { border-bottom: 0; }
.toolbar { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.toolbar select { max-width: 240px; }
dialog { width: min(760px,calc(100vw - 32px)); max-height: calc(100dvh - 40px); border: 1px solid #c8c8c8; border-radius: 12px; padding: 0; box-shadow: 0 20px 80px #0004; background: #f3f3f3; color: inherit; }
dialog::backdrop { background: #0005; }
dialog form > header { position: sticky; top: 0; z-index: 2; background: #f7f7f7; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 14px 20px; }
dialog header h2 { margin: 0; font-size: 18px; }
dialog #editable, dialog form > .fields, dialog form > fieldset, dialog form > h3, dialog form > .help { margin: 20px; }
dialog footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; background: #f7f7f7; padding: 14px 20px; border-top: 1px solid var(--line); z-index: 2; }
fieldset { min-width: 0; border: 1px solid #dedede; border-radius: 8px; padding: 16px; margin: 22px 0; background: #fff; }
legend { font-weight: 600; padding: 0 6px; }
.fields { display: grid; gap: 12px; }
.fields > label:not(.check), .field-row { display: grid; grid-template-columns: 155px minmax(0,1fr); align-items: center; gap: 12px; }
.fields > label:has(textarea) { align-items: start; }
.fields > label.check { padding: 4px 0; }
.activity-heading { text-align: center; background: white; border: 1px solid #ddd; border-radius: 8px; padding: 22px; }
.activity-heading label { max-width: 392px; margin: 0 auto 12px; }
.activity-heading label > span { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.activity-heading select { background: #eee; text-align: center; font-weight: 600; }
.activity-logo { width: min(392px,100%); height: 224px; background: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: auto; }
.activity-logo img { max-width: 92%; max-height: 208px; object-fit: contain; }
.activity-heading h2 { margin: 12px 0 4px; }
.activity-heading p { margin-bottom: 0; }
.boat-picker { display: flex; flex-wrap: wrap; gap: 12px; }
#formula-options { display: grid; gap: 10px; margin-bottom: 16px; }
#formula-options > label:not(.check) { display: grid; grid-template-columns: 155px minmax(0,1fr); align-items: center; gap: 12px; }
#formula-options .help { margin: 0; }
.repeat-row { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.repeat-row fieldset { border: 0; padding: 0; margin: 12px 0; }
.customer-choice { background: #e8eef6; padding: 12px; border-radius: 7px; }
.compact-dialog { max-width: 480px; }
.error { color: #b42318; white-space: pre-wrap; }
dialog .error { margin: 12px 20px; }
.error:empty { display: none; }
.login { width: min(460px,calc(100% - 32px)); margin: 12vh auto; padding: 32px; background: #fafafa; border: 1px solid var(--line); border-radius: 12px; }
.login h1 { margin: 12px 0; }
.login form { display: grid; gap: 16px; }
.login .version { margin-top: 18px; }
.eyebrow { color: var(--muted); }
.notice { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #252525; color: white; padding: 12px 20px; border-radius: 9px; box-shadow: 0 4px 20px #0003; max-width: calc(100% - 32px); z-index: 20; }
@media (min-width:1400px) { .workspace { max-width: 1320px; } }
@media (max-width:1100px) { .app-header { align-items: flex-start; flex-direction: column; } .header-controls { width: 100%; } .account { margin-left: auto; order: 5; } .card-heading { flex-wrap: wrap; } }
@media (max-width:650px) { h1 { font-size: 23px; } .app-header { padding: 16px; } .workspace { padding: 16px 10px; } .header-controls { gap: 6px; } .header-controls button { padding: 6px 8px; font-size: 12px; } .calendar-grid { gap: 2px; } .calendar-day { min-height: 62px; } .calendar-legend { gap: 10px; font-size: 12px; } .all-reservations { margin-left: 0; } .closure-toolbar { flex-wrap: wrap; } .day-lock span { display: none; } .month-navigation { gap: 5px; } .month-pickers { gap: 4px; } .month-pickers select { min-width: 70px; font-size: 14px; } .month-pickers #month { min-width: 100px; } .list-heading { align-items: flex-start; flex-direction: column; } .list-heading h2 { font-size: 19px; } .card-heading .actions { gap: 5px; } .card-heading button { padding: 6px; font-size: 12px; } .fields > label:not(.check), .field-row, #formula-options > label:not(.check) { grid-template-columns: 1fr; gap: 5px; } dialog #editable { margin: 12px; } dialog form > header, dialog footer { padding: 12px; } dialog footer { position: static; } .activity-heading { padding: 12px; } .activity-logo { height: 190px; } .activity-logo img { max-height: 180px; } .toolbar { flex-wrap: wrap; } .segmented { overflow-x: auto; } .padded { padding: 16px; } }
#icloud-settings { max-width: 780px; margin: 0 auto 24px; }
#icloud-settings form { display: grid; gap: 14px; margin: 18px 0; }
#icloud-settings form > button { justify-self: start; }
#icloud-settings .actions { margin: 18px 0; }
#icloud-settings summary { cursor: pointer; font-weight: 600; }
