:root {
  color-scheme: light;
  --olive: #56673b;
  --olive-dark: #3e4b2b;
  --cream: #faf6ef;
  --paper: #fffdf8;
  --gold: #b8912e;
  --ink: #302b25;
  --muted: #625b52;
  --sage: #f0f3ea;
  --line: rgba(62,75,43,.17);
  --danger: #9b403a;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
body { margin: 0; background: #eeeae2; color: var(--ink); font: 15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; -webkit-font-smoothing: antialiased; }
button,input,select,textarea { font: inherit; }
button,a,input,select,textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .5; }
button { touch-action: manipulation; }
button svg { pointer-events: none; }
a { color: inherit; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1,h2,h3,p { margin: 0; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[hidden] { display: none !important; }
.app-shell { width: min(100%, 520px); min-height: 100svh; margin: auto; background: var(--cream); padding-bottom: calc(106px + var(--safe-bottom)); }
.preview-label { text-align: center; font-size: 10px; letter-spacing: .08em; padding: 7px 12px; background: #ebe8dc; color: #635e50; }
.preview-label span { margin: 0 5px; }
.brand-header { padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--olive); font: 20px Georgia,serif; }
.brand strong { display: block; font-size: 14px; font-weight: 650; }
.brand small { display: block; color: var(--muted); font-size: 11px; }
.avatar-button { width: 44px; height: 44px; padding: 2px; border: 1px solid #c2bda7; border-radius: 50%; background: var(--paper); }
.avatar-button img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: center 30%; }
main { outline: none; }
.hero { position: relative; padding: 27px 25px 25px; color: var(--paper); background: var(--olive); border-radius: 0 0 28px 28px; isolation: isolate; }
.hero:before { content: ""; position: absolute; z-index: -1; right: -0px; top: 0; width: 190px; height: 100%; opacity: .12; background: radial-gradient(ellipse at 100% 0%, #dfd8a5, transparent 70%); border-bottom-right-radius: inherit; }
.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; color: #e0e6d5; margin-bottom: 9px; }
h1 { font: 400 31px/1.13 Georgia,"Times New Roman",serif; letter-spacing: -.03em; }
.hero-lead { margin-top: 10px; font-size: 13px; color: #e9edde; }
.hero-stats { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hero-stat strong { display: block; font: 30px/1.1 Georgia,serif; color: #f1e6bf; }
.hero-stat span { font-size: 11px; color: #e3e8da; }
.hero-progress { margin-top: 16px; }
.progress-track { height: 3px; background: rgba(255,255,255,.18); border-radius: 3px; }
.progress-track span { display: block; height: 3px; background: #d4b86a; border-radius: 3px; }
.progress-text { display: flex; justify-content: space-between; font-size: 10px; color: #e3e8da; margin-top: 7px; }
.page-padding { padding: 21px 18px 0; }
.booking-callout { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; background: #e9eddc; border: 1px solid #d8dec6; border-radius: 22px; padding: 18px 16px; box-shadow: 0 8px 22px rgba(62,75,43,.04); }
.callout-icon { display: grid; place-items: center; height: 42px; width: 42px; border-radius: 14px; background: #dce3c9; color: var(--olive-dark); }
.booking-callout h2 { font-size: 15px; font-weight: 700; line-height: 1.3; }
.booking-callout p { font-size: 11px; color: #596243; margin-top: 5px; }
.small-button { min-height: 44px; padding: 10px 14px; border: 0; border-radius: 13px; background: var(--paper); color: var(--olive-dark); font-size: 12px; font-weight: 700; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 27px 2px 11px; }
.section-title h2,.overline { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .13em; font-weight: 650; }
.section-title a,.text-button { color: var(--olive-dark); font-size: 12px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; background: none; border: 0; text-decoration: none; padding: 0 3px; }
.quick-list { border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.quick-row { width: 100%; display: flex; gap: 13px; align-items: center; padding: 16px; min-height: 78px; background: none; border: 0; text-align: left; }
.quick-row + .quick-row { border-top: 1px solid var(--line); }
.row-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--sage); color: var(--olive); flex-shrink: 0; }
.row-icon.gold { background: #f3ebd5; color: #816415; }
.row-icon.taupe { background: #efeae1; color: #76654c; }
.row-copy { flex: 1; min-width: 0; }
.row-copy strong { display: block; font-size: 14px; font-weight: 600; }
.row-copy small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.chevron { width: 14px; color: #8e9482; }
.count-badge { font-size: 11px; border-radius: 20px; padding: 2px 7px; color: var(--olive-dark); background: var(--sage); }
.meeting-card { border: 1px solid var(--line); background: var(--paper); border-radius: 20px; padding: 17px; margin-bottom: 12px; }
.meeting-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.status { font-size: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 7px; background: var(--sage); color: var(--olive-dark); }
.status.pending { background: #f4ead0; color: #715717; }
.status.closed { background: #eeeae3; color: var(--muted); }
.meeting-kind { font-size: 11px; color: var(--muted); }
.meeting-card h3 { font-size: 15px; margin-bottom: 7px; }
.meeting-date { display: flex; gap: 12px; align-items: center; }
.date-tile { text-align: center; width: 49px; border-radius: 12px; background: var(--sage); padding: 7px 4px; flex-shrink: 0; }
.date-tile strong { font: 24px/1.1 Georgia,serif; color: var(--olive-dark); display: block; }
.date-tile span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.meeting-date b { font-size: 14px; font-weight: 600; display: block; }
.meeting-date small { font-size: 11px; color: var(--muted); display: block; }
.meeting-note { font-size: 11px; color: var(--muted); margin-top: 12px; overflow-wrap: anywhere; }
.card-actions { display: flex; gap: 8px; margin-top: 13px; }
.button { min-height: 46px; padding: 11px 18px; border-radius: 14px; border: 1px solid transparent; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.primary { background: var(--olive); color: var(--paper); }
.primary:hover { background: var(--olive-dark); }
.secondary { background: var(--paper); border-color: var(--line); color: var(--olive-dark); }
.full { width: 100%; }
.small { min-height: 44px; padding: 8px 12px; font-size: 11px; }
.bottom-nav { position: fixed; z-index: 20; bottom: calc(14px + var(--safe-bottom)); left: 50%; transform: translateX(-50%); width: min(calc(100% - 30px), 450px); display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); padding: 7px 6px; gap: 2px; background: rgba(255,253,248,.97); box-shadow: 0 6px 35px rgba(48,43,37,.12); border: 1px solid rgba(62,75,43,.13); border-radius: 28px; }
.nav-item { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; min-height: 53px; border: 0; background: transparent; color: #79786e; border-radius: 21px; font-size: 9px; line-height: 1.1; padding: 5px 0; }
.nav-item.active { color: var(--olive-dark); background: #e9eeda; font-weight: 700; }
.nav-item svg { width: 22px; height: 22px; }
.page-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 2px 18px; }
.page-heading h1 { font-size: 29px; }
.page-heading p { font-size: 12px; color: var(--muted); margin-top: 6px; }
.icon-button { min-width: 44px; height: 44px; display: inline-grid; place-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; font-size: 26px; padding: 5px; }
.calendar-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 14px; }
.month-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; }
.month-nav strong { font-size: 15px; font-weight: 600; }
.month-nav .icon-button { border: 0; background: var(--sage); }
.weekdays,.calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 2px; }
.weekdays { font-size: 10px; color: var(--muted); text-align: center; margin: 4px 0 6px; }
.day { min-width: 0; width: 100%; min-height: 44px; border: 0; border-radius: 12px; background: transparent; font-size: 13px; position: relative; padding: 7px 0 12px; }
.day.outside { color: #979388; }
.day.today { color: var(--olive); box-shadow: inset 0 0 0 1px #ced7bc; }
.day.selected { background: var(--olive); color: var(--paper); box-shadow: none; }
.day:after { content: ""; position: absolute; width: 3px; height: 3px; bottom: 5px; border-radius: 50%; background: var(--gold); left: calc(50% - 2px); opacity: 0; }
.day.has-items:after { opacity: 1; }
.day.selected:after { background: #f1d997; }
.calendar-legend { font-size: 10px; color: var(--muted); margin-top: 10px; display: flex; align-items: center; gap: 6px; }
.dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.task-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.task { display: flex; align-items: flex-start; gap: 10px; padding: 13px 10px 13px 8px; }
.task + .task { border-top: 1px solid var(--line); }
.check-button { flex: 0 0 44px; min-height: 44px; background: none; border: 0; display: grid; place-items: center; padding: 0; }
.check-box { width: 21px; height: 21px; display: grid; place-items: center; border: 1.4px solid #c1c7b4; border-radius: 7px; background: var(--paper); }
.task.completed .check-box { border-color: var(--olive); background: var(--olive); color: var(--paper); }
.check-box svg { width: 14px; height: 14px; }
.task-copy { flex: 1; min-width: 0; padding-top: 8px; }
.task-copy p { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.task.completed .task-copy p { text-decoration: line-through; color: #807d71; }
.task-copy small { color: var(--muted); font-size: 10px; display: block; margin-top: 5px; }
.edit-button { border: 0; background: none; color: #838777; padding: 11px 3px; min-width: 44px; min-height: 44px; }
.edit-button svg { width: 18px; }
.filter-tabs { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 15px; margin-bottom: 15px; gap: 3px; background: #eeece2; }
.filter-tab { flex: 1; border: 0; background: none; min-height: 44px; padding: 7px 4px; color: var(--muted); font-size: 12px; border-radius: 11px; }
.filter-tab.active { background: var(--paper); color: var(--olive-dark); box-shadow: 0 2px 7px rgba(48,43,37,.05); font-weight: 600; }
.search { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 0 13px; margin-bottom: 13px; }
.search svg { width: 18px; color: var(--muted); }
.search input { border: 0; background: transparent; padding: 11px 0; min-height: 44px; width: 100%; color: var(--ink); min-width: 0; }
.notice { padding: 12px 14px; border: 1px solid #ded5bc; background: #f5eedc; border-radius: 13px; color: #645b44; font-size: 11px; line-height: 1.6; margin-bottom: 17px; }
.date-strip { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; margin: 15px 0; }
.booking-day { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 78px; padding: 10px 0; border: 1px solid var(--line); background: var(--paper); color: var(--muted); border-radius: 15px; font-size: 10px; }
.booking-day b { font: 25px/1.15 Georgia,serif; color: var(--ink); }
.booking-day.active { background: var(--olive); color: #e5eadb; border-color: var(--olive); }
.booking-day.active b { color: var(--paper); }
.booking-week { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.booking-week .icon-button { font-size: 21px; }
.slots { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-bottom: 17px; }
.slot { min-height: 50px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--olive-dark); }
.slot:hover { border-color: var(--olive); background: var(--sage); }
.booking-info { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 18px; margin-bottom: 17px; }
.booking-info h2 { font: 24px/1.2 Georgia,serif; letter-spacing: -.02em; margin: 7px 0 10px; }
.booking-info p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.booking-details { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; font-size: 11px; color: var(--olive-dark); }
.booking-details span { display: flex; align-items: center; gap: 5px; }
.booking-details svg { width: 16px; height: 16px; }
.empty { padding: 27px 19px; text-align: center; color: var(--muted); font-size: 12px; background: var(--paper); border-radius: 18px; border: 1px dashed #cfcebe; }
.empty svg { color: #9caa85; width: 29px; height: 29px; margin-bottom: 8px; }
.empty strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.helper { margin: 12px 4px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.profile-card { border: 1px solid var(--line); background: var(--paper); border-radius: 20px; padding: 20px; margin-bottom: 15px; }
.profile-card h2 { font-size: 16px; font-weight: 650; margin-bottom: 9px; }
.profile-card p { font-size: 12px; color: var(--muted); }
.profile-card .button { margin-top: 14px; }
.profile-line { display: flex; align-items: center; justify-content: space-between; gap: 13px; font-size: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.profile-line:first-of-type { margin-top: 15px; }
.profile-line strong { font-weight: 600; text-align: right; }
.mode-select { margin-top: 15px; }
dialog { border: 1px solid var(--line); border-radius: 24px; padding: 24px; width: min(440px,calc(100% - 28px)); max-height: calc(100svh - 40px); color: var(--ink); background: var(--paper); box-shadow: 0 20px 80px rgba(48,43,37,.2); }
dialog::backdrop { background: rgba(48,43,37,.42); backdrop-filter: blur(3px); }
.dialog-top { display: flex; gap: 15px; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.dialog-top h2 { font: 26px/1.15 Georgia,serif; }
.dialog-top .icon-button { background: var(--cream); flex-shrink: 0; }
label { display: block; font-size: 12px; font-weight: 600; margin: 13px 0; }
label input,label select,label textarea { display: block; width: 100%; padding: 12px; margin-top: 7px; border: 1px solid #d4d6c8; border-radius: 12px; background: #fff; color: var(--ink); font-size: 14px; min-height: 46px; }
textarea { resize: vertical; }
.field-help { font-size: 11px; color: var(--muted); margin-top: -7px; }
.form-error { color: var(--danger); font-size: 12px; margin: 10px 0; }
.optional { font-size: 10px; color: var(--muted); font-weight: 400; display: block; margin-top: 2px; }
.booking-summary { padding: 16px; border-radius: 14px; background: var(--sage); font-size: 13px; }
.booking-summary strong { display: block; font-size: 17px; margin-bottom: 4px; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 22px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(98px + var(--safe-bottom)); z-index: 100; max-width: min(440px,calc(100% - 32px)); width: max-content; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 13px; box-shadow: 0 5px 25px rgba(48,43,37,.15); font-size: 12px; }
.noscript { margin: 20px; }
.skip-link { position: fixed; top: 4px; left: 10px; padding: 10px; z-index: 100; background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.calendar-card + .section-title { margin-top: 18px; }
@media (max-width:420px) {
  .calendar-card { margin-inline: -7px; padding-inline: 0; }
  .calendar-grid,.weekdays { gap: 0; }
  .month-nav,.calendar-legend { margin-inline: 12px; }
}
@media (min-width:600px) {
  .app-shell { margin: 24px auto; min-height: calc(100svh - 48px); border-radius: 26px; box-shadow: 0 18px 60px rgba(48,43,37,.09); border: 1px solid #dcd8cc; }
  .preview-label { border-radius: 25px 25px 0 0; }
  .brand-header { padding: 18px 24px; }
  .hero { padding: 30px; }
  .page-padding { padding: 23px 25px 0; }
}
@media (max-width:350px) {
  .brand-header { padding-inline: 13px; }
  .page-padding { padding-inline: 12px; }
  .booking-callout { gap: 9px; padding: 15px 12px; grid-template-columns: 32px minmax(0,1fr) auto; }
  .callout-icon { width: 32px; height: 38px; }
  .small-button { padding-inline: 10px; }
  .booking-callout h2 { font-size: 13px; }
  .day { min-height: 44px; }
}
@media (prefers-reduced-motion:reduce) { *,*:before,*:after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
