:root {
  --top-accent: 4px;
  --ink: #161600;
  --muted: #5a5848;
  --line: #e4dfd4;
  --paper: #f7f3ec;
  --card: #ffffff;
  --accent: #37b66a;
  --accent-ink: #fff;
  --pink: #f04f70;
  --lime: #b7bb3e;
  --danger: #8a2b2b;
  --ok: #37b66a;
  --side: 232px;
  --side-collapsed: 72px;
  --brand-size: 50px;
  --brand-clear: calc(var(--brand-size) * 1.37 + 2.4rem);
  --font: "Albert Sans", "Segoe UI", sans-serif;
  --serif: Adamina, Georgia, serif;
  --scrollbar: 5px;
  --scrollbar-thumb: rgba(90, 88, 72, 0.2);
  --scrollbar-thumb-hover: rgba(90, 88, 72, 0.38);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

/* Low-profile scrollbars (Firefox + Chromium) */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}
*::-webkit-scrollbar {
  width: var(--scrollbar);
  height: var(--scrollbar);
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}
*::-webkit-scrollbar-corner {
  background: transparent;
}

a { color: var(--accent); }

body.app::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--top-accent);
  background: var(--accent);
  z-index: 1000;
  pointer-events: none;
}
.app {
  display: flex;
  min-height: 100vh;
}
.side {
  width: var(--side-collapsed);
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 0 0 1.1rem;
  overflow: visible;
  position: fixed;
  left: 0;
  top: var(--top-accent);
  height: calc(100vh - var(--top-accent));
  z-index: 100;
  transition: width 0.22s ease, box-shadow 0.22s ease;
}
.side:hover,
body.side-locked .side {
  width: var(--side);
}
.side:hover {
  box-shadow: 4px 0 24px rgba(22, 22, 0, 0.12);
}
body.side-locked .side { box-shadow: none; }
.app > main {
  margin-left: var(--side-collapsed);
  transition: margin-left 0.22s ease;
}
body.side-locked > main { margin-left: var(--side); }
.app-brand {
  position: fixed;
  top: var(--top-accent);
  right: 0;
  z-index: 300;
  line-height: 0;
  display: block;
  padding: 0 0.85rem 0.15rem 0.85rem;
  background: var(--paper);
  pointer-events: auto;
}
.app-brand img {
  height: var(--brand-size);
  width: auto;
  display: block;
  object-fit: contain;
  object-position: right top;
  vertical-align: top;
}
.app > main::before {
  content: "";
  float: right;
  width: var(--brand-clear);
  height: calc(var(--brand-size) + 0.35rem);
  margin: -2rem -1.6rem 0.35rem 0.75rem;
  pointer-events: none;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  padding: 1.35rem 0.45rem 0;
}
.side:hover .side-nav,
body.side-locked .side-nav {
  padding-top: 1.35rem;
  padding-left: 0.85rem;
  padding-right: calc(0.85rem + 0.15rem);
}
.side-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.side-nav-divider {
  border: 0;
  height: 0;
  border-top: 1px solid var(--line);
  margin: 0.45rem 0.15rem;
  flex-shrink: 0;
}
.side:hover .side-nav-divider,
body.side-locked .side-nav-divider {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}
.side-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.62rem 0.5rem;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.side:hover .side-link,
body.side-locked .side-link {
  justify-content: flex-start;
  padding: 0.62rem 0.75rem;
}
.side-link span {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.18s ease, max-width 0.22s ease;
}
.side:hover .side-link span,
body.side-locked .side-link span {
  opacity: 1;
  max-width: 12rem;
}
.side-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.side-link .nav-badge {
  opacity: 1;
  max-width: none;
  overflow: visible;
  position: absolute;
  top: 0.22rem;
  right: 0.28rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.15rem;
  text-align: center;
}
.side:hover .side-link .nav-badge,
body.side-locked .side-link .nav-badge {
  position: static;
  margin-left: auto;
}
.side-link:hover { background: #f3f7f1; color: var(--ink); }
.side-link.active { background: #e7f6ec; color: #1f8a4c; }
.side-foot {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 0.75rem 0.45rem 0;
  margin-top: 0.6rem;
  flex-shrink: 0;
}
.side:hover .side-foot,
body.side-locked .side-foot {
  padding-left: 0.7rem;
  padding-right: 0.7rem;
}
.profile-btn {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.35rem;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-radius: 10px;
  text-align: left;
}
.side:hover .profile-btn,
body.side-locked .profile-btn {
  justify-content: flex-start;
  padding: 0.35rem 0.4rem;
}
.profile-btn:hover,
.profile-btn[aria-expanded="true"] { background: #f3f7f1; filter: none; }
.profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e7f6ec;
  color: #1f8a4c;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.profile-meta {
  min-width: 0;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.18s ease, max-width 0.22s ease;
}
.side:hover .profile-meta,
body.side-locked .profile-meta {
  opacity: 1;
  max-width: 11rem;
}
.profile-name { display: block; font-weight: 600; font-size: 0.92rem; line-height: 1.2; }
.profile-meta small,
.profile-menu-head small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.profile-menu {
  position: absolute;
  z-index: 420;
  left: calc(100% + 0.55rem);
  bottom: 0;
  width: min(320px, calc(100vw - var(--side) - 1.4rem));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(22, 22, 0, 0.16);
  padding: 0.4rem;
}
.profile-menu-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.7rem 0.85rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--line);
}
.profile-menu-head strong { display: block; font-size: 1rem; font-weight: 600; }
.profile-menu form { margin: 0; }
.profile-menu-item {
  width: 100%;
  margin: 0.15rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 0.75rem;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.profile-menu-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.profile-menu-item:hover { background: #f3f7f1; filter: none; color: var(--ink); }
.profile-menu-item[aria-pressed="true"] { background: #e7f6ec; color: #1f8a4c; }

main { flex: 1; min-width: 0; max-width: 1120px; padding: 2rem 1.6rem 3rem; }
.admin-shell {
  display: flex;
  gap: 0;
  margin: -0.5rem -0.2rem 0;
  min-height: calc(100vh - 4rem);
}
.admin-sub {
  width: 196px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  padding: 0.2rem 0.85rem 1rem 0;
  margin-right: 1.35rem;
}
.admin-sub-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin: 0 0 0.75rem 0.35rem;
  color: var(--muted);
}
.admin-sub nav { display: flex; flex-direction: column; gap: 0.2rem; }
.admin-sub-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.58rem 0.7rem;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
}
.admin-sub-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-sub-link:hover { background: #f3f7f1; color: var(--ink); }
.admin-sub-link.active { background: #e7f6ec; color: #1f8a4c; }
.admin-sub-btn {
  display: block;
  width: calc(100% - 0.35rem);
  margin: 0.85rem 0.35rem 0;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.admin-sub-btn:hover { filter: brightness(0.95); }
a.admin-sub-btn,
button.admin-sub-btn {
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}
.admin-sub-btn.active {
  filter: brightness(0.92);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.admin-sub-btn-first {
  margin-top: 0.35rem;
  margin-bottom: 0.65rem;
}
.guest-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.guest-crm-toolbar {
  margin: 0 0 1rem;
  max-width: 100%;
}
.guest-search {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(22, 22, 0, 0.04);
  color: var(--ink);
}
.guest-search::placeholder { color: var(--muted); opacity: 0.85; }
.guest-search:focus {
  outline: 2px solid #cfeedb;
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(22, 22, 0, 0.04);
}
.guest-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 4px 14px rgba(22, 22, 0, 0.04);
  overflow: hidden;
}
.guest-card[open] {
  overflow: visible;
  position: relative;
  z-index: 25;
}
.guest-card-sum {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 1rem;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
}
.guest-card-sum::-webkit-details-marker { display: none; }
.guest-card-name {
  font-weight: 600;
  font-size: 1.02rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.guest-card-phone {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.guest-card-chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.guest-card[open] .guest-card-chevron { transform: rotate(225deg); }
.guest-card-body {
  padding: 0.75rem 1rem 0.95rem;
  border-top: 1px solid var(--line);
}
.staff-card-edit-btn {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
}
.guest-card-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.15rem;
}
.guest-card-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  min-width: 0;
}
.guest-card-menu-wrap,
.prop-row-menu-wrap {
  position: relative;
  flex-shrink: 0;
}
.guest-card-menu-btn,
.prop-row-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.guest-card-menu-btn svg,
.prop-row-menu-btn svg { width: 1.15rem; height: 1.15rem; }
.guest-card-menu-btn:hover,
.guest-card-menu-btn[aria-expanded="true"],
.prop-row-menu-btn:hover,
.prop-row-menu-btn[aria-expanded="true"] {
  background: #f3f7f1;
  border-color: var(--line);
  color: var(--ink);
}
.guest-card-menu,
.prop-row-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 0.25rem);
  right: 0;
  min-width: 11.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(22, 22, 0, 0.12);
  padding: 0.35rem;
}
.guest-card-menu-form { margin: 0; }
.guest-card-menu-item,
.prop-row-menu-item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.guest-card-menu-item:hover,
.prop-row-menu-item:hover {
  background: #f3f7f1;
  filter: none;
  color: var(--ink);
}
.guest-card-menu-danger { color: #9b1c31; }
.guest-card-menu-danger:hover { background: #fde8ec; color: #9b1c31; }
.guest-market {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #e7f6ec;
  color: #1f8a4c;
}
.guest-card-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 0.7rem 1.25rem;
  margin: 0.8rem 0 0;
}
.guest-card-address { grid-column: 1 / -1; }
.guest-card-meta dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.guest-card-meta dd {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.guest-postcode {
  display: block;
  margin-top: 0.1rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}
.guest-notes {
  margin: 0.75rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  white-space: pre-wrap;
}
.guest-card .guest-stars {
  display: inline-block;
  margin: 0;
  letter-spacing: 0.05em;
  color: #c99700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.guest-marketing-opt { margin: 0.35rem 0 0; }
.guest-marketing-opt span { font-size: 0.92rem; }
dialog.guest-add {
  width: min(480px, calc(100% - 1.5rem));
}
dialog.guest-add .modal-inner { padding: 0.9rem 1rem 0.85rem; }
dialog.guest-add .modal-head { margin-bottom: 0; }
dialog.guest-add .modal-head h2 { font-size: 1.25rem; }
dialog.guest-add label { margin: 0.35rem 0 0.12rem; font-size: 0.78rem; }
dialog.guest-add input,
dialog.guest-add select,
dialog.guest-add textarea { padding: 0.38rem 0.55rem; }
dialog.guest-add textarea { min-height: 0; }
dialog.guest-add .form-grid { gap: 0 0.6rem; }
dialog.guest-add .guest-marketing-opt { margin: 0.4rem 0 0; align-items: center; }
dialog.guest-add .btn-row button { margin-top: 0.45rem; }
dialog.staff-form-modal {
  width: min(540px, calc(100% - 1.5rem));
  max-height: 92vh;
  overflow: auto;
}
dialog.staff-form-modal .lede { margin-bottom: 0.5rem; font-size: 0.88rem; }
dialog.staff-form-modal .actor-kind-compact {
  margin: 0 0 0.55rem;
  padding: 0.45rem 0.65rem;
}
dialog.staff-form-modal .actor-kind-compact legend { font-size: 0.75rem; }
dialog.staff-form-modal .actor-kind-compact .check { margin-top: 0.2rem; margin-right: 0.75rem; }
dialog.staff-form-modal .staff-edit-kind { margin: 0 0 0.35rem; font-size: 0.82rem; }
dialog.staff-form-modal .btn-row { margin-top: 0.35rem; gap: 0.4rem; }
dialog.staff-form-modal .btn-row button { margin-top: 0.25rem; padding: 0.45rem 0.85rem; font-size: 0.9rem; }
dialog.staff-form-modal .staff-delete-btn { font-size: 0.85rem; }
.connections-section { margin-top: 1.25rem; }
.connections-section:first-of-type { margin-top: 0.35rem; }
.connections-section-title { margin: 0 0 0.35rem; font-size: 1.05rem; font-weight: 600; }
.activity-toolbar { margin-bottom: 0.75rem; }
.activity-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.activity-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.activity-table th,
.activity-table td { padding: 0.45rem 0.65rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.activity-table th { font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: var(--bg); position: sticky; top: 0; }
.activity-table tbody tr:last-child td { border-bottom: none; }
.activity-when { white-space: nowrap; font-variant-numeric: tabular-nums; }
.activity-detail { word-break: break-word; max-width: 28rem; }
.activity-meta { white-space: nowrap; font-variant-numeric: tabular-nums; }
.staff-tag-human { background: #e8f4ec; color: #1b4332; }
.staff-tag-bot { background: #ede8f4; color: #3d2c6b; }
.admin-main { flex: 1; min-width: 0; }
h1 { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; margin: 0 0 0.4rem; line-height: 1.2; }
.lede { color: var(--muted); margin-bottom: 1.5rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
}
label { display: block; font-size: 0.85rem; color: var(--muted); margin: 0.7rem 0 0.25rem; }
input[type=email], input[type=password], input[type=url], input[type=text], input[type=tel], input[type=search], input[type=date], input[type=time], input[type=number], select, input:not([type]) {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  background: #fff;
}
input[type=search] {
  appearance: none;
  -webkit-appearance: none;
}
input[type=search]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 1rem;
  width: 1rem;
  margin-left: 0.35rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a5848' d='M2 2l8 8M10 2L2 10' stroke='%235a5848' stroke-width='1.2'/%3E%3C/svg%3E") center/contain no-repeat;
  cursor: pointer;
}
input:focus { outline: 2px solid #cfeedb; border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.85rem;
  background: #fff;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
button, .btn {
  display: inline-block;
  margin-top: 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 6px;
  padding: 0.55rem 1.15rem;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .btn:hover { filter: brightness(0.95); }
.err { color: var(--danger); margin: 0.5rem 0; }
.ok { color: var(--ok); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.8rem; }
.stat { font-size: 1.8rem; font-family: var(--serif); font-weight: 400; }
.stat-link { color: inherit; text-decoration: none; display: block; }
.stat-link:hover { border-color: var(--accent); }
.dash-empty { margin: 0; }
.dash-booking {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.dash-booking:first-child { padding-top: 0; }
.dash-booking:last-child { border-bottom: 0; padding-bottom: 0; }
.dash-booking strong { font-weight: 600; }
.dash-when { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

main:has(.dash-page) {
  max-width: none;
  padding: 0.85rem 1.15rem 2.5rem 1rem;
}
main:has(.dash-page)::before { display: none; }
.app:has(.dash-page) .app-brand {
  background: transparent;
  padding: 0 0.85rem 0 0;
}

.dash-page { position: relative; padding-bottom: 4rem; }
.dash-hero {
  border-radius: 18px;
  padding: 1.35rem 1.5rem 1.45rem;
  margin-bottom: 1.1rem;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(22, 22, 0, 0.62), rgba(30, 90, 55, 0.78)),
    url("/static/brand/hero-door.jpeg") center/cover no-repeat,
    linear-gradient(125deg, #1a3d2e, #2d6a4f);
}
.dash-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}
.dash-hero-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.dash-hero-copy h1 {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  color: #fff;
}
.dash-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.88rem;
}
.dash-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}
.dash-clock {
  text-align: right;
  line-height: 1.25;
}
.dash-clock strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.dash-clock span { font-size: 0.88rem; opacity: 0.9; }
.dash-hero-actions { display: flex; gap: 0.45rem; }
.dash-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  text-decoration: none;
}
.dash-icon-btn svg { width: 18px; height: 18px; }
.dash-icon-btn:hover { background: rgba(255, 255, 255, 0.26); filter: none; }

.dash-body { display: flex; flex-direction: column; gap: 1rem; }
.dash-widgets-top,
.dash-widgets-bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.dash-widget {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.2rem;
  box-shadow: 0 8px 22px rgba(22, 22, 0, 0.04);
}
.dash-widget h2 {
  margin: 0 0 0.25rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
}
.dash-widget-lede {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.dash-comms { display: flex; flex-direction: column; gap: 0.55rem; }
.dash-comm {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}
.dash-comm:hover { border-color: var(--accent); }
.dash-comm strong { display: block; font-size: 0.95rem; }
.dash-comm small { color: var(--muted); font-size: 0.8rem; }
.dash-comm-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  flex-shrink: 0;
}
.dash-comm-icon svg { width: 20px; height: 20px; }
.dash-comm-enq { background: #e7f6ec; color: #1f8a4c; }
.dash-comm-msg { background: #eef4ff; color: #2b4c9a; }
.dash-comm-live { background: #fde8ec; color: var(--pink); }

.dash-quick {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.dash-quick a {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}
.dash-quick a:hover { background: #f3f7f1; color: var(--accent); }

.dash-kpi-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(90deg, #dbeafe, #d4edda);
  border: 1px solid #c5dcc8;
}
.dash-kpi {
  flex: 1 1 8rem;
  padding: 0.95rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.55);
}
.dash-kpi:last-child { border-right: 0; }
.dash-kpi-val {
  font-size: 1.75rem;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
}
.dash-kpi-label {
  margin-top: 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.dash-schedule {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.dash-schedule li {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf8f3;
  display: grid;
  gap: 0.15rem;
}
.dash-schedule time {
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.dash-task-list li { gap: 0.35rem; }
.dash-task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
}
.dash-task-head strong { flex: 1; min-width: 0; }
.dash-stat-inline {
  margin: 0 0 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}
.dash-stat-inline strong { font-size: 2rem; font-family: var(--serif); font-weight: 400; }
.dash-widget .btn { margin-top: 0; }

.dash-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(240, 79, 112, 0.35);
  text-decoration: none;
  z-index: 50;
}
.dash-fab svg { width: 22px; height: 22px; }
.dash-fab:hover { filter: brightness(0.95); }

@media (max-width: 900px) {
  .dash-widgets-top,
  .dash-widgets-bottom { grid-template-columns: 1fr; }
  .dash-hero-meta { align-items: flex-start; }
}

@media (max-width: 860px) {
  .dash-hero,
  .dash-kpi-bar { display: none; }
}

.web-page { display: flex; flex-direction: column; min-height: calc(100vh - 8rem); }
.web-thread {
  flex: 1;
  min-height: 16rem;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.web-msg { max-width: min(42rem, 100%); padding: 0.75rem 0.9rem; border-radius: 14px; }
.web-msg p { margin: 0; white-space: pre-wrap; }
.web-msg small { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 0.75rem; }
.web-msg.user { margin-left: auto; background: #e7f6ec; }
.web-msg.assistant { background: #fff; border: 1px solid var(--line); }
.web-composer textarea { margin-top: 0.7rem; }
.web-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem 1rem;
  margin-top: 0.5rem;
}
.web-listing-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(22, 22, 0, 0.06);
  display: flex;
  flex-direction: column;
}
.web-listing-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f0ede6;
  overflow: hidden;
}
.web-listing-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.web-listing-photo-empty {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #ebe6dc 0%, #f5f2eb 55%, #e8e4db 100%);
}
.web-listing-live-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #1f8a4c;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.web-listing-body {
  padding: 0.85rem 0.95rem 0.9rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}
.web-listing-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
}
.web-listing-loc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.web-listing-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  font-size: 0.82rem;
  color: var(--ink);
}
.web-listing-meta span::after { content: " · "; color: var(--muted); }
.web-listing-meta span:last-child::after { content: ""; }
.web-listing-price {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
}
.web-listing-summary {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.web-listing-foot {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  border-top: 1px solid var(--line);
}
.web-live-form { margin: 0; flex: 1; min-width: 9rem; }
.web-live-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
}
.web-live-toggle input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #1f8a4c;
}
.web-live-hint {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.2rem;
}
.web-listing-edit {
  margin: 0;
  padding: 0.35rem 0.85rem;
  font-size: 0.88rem;
}
.web-setup-title { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; margin: 0 0 0.35rem; }
.accounts-page {
  max-width: 960px;
  padding-bottom: 1rem;
}
.accounts-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}
.accounts-head h1 {
  margin-bottom: 0.2rem;
  font-family: var(--serif);
  font-weight: 400;
}
.accounts-sub { margin: 0; max-width: 30rem; color: var(--muted); }
.accounts-period {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 1rem 0.85rem;
  box-shadow: 0 6px 18px rgba(22, 22, 0, 0.04);
}
.accounts-period label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.accounts-period-inputs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.accounts-period input[type="date"] {
  width: auto;
  margin: 0;
  font-size: 0.88rem;
  background: var(--paper);
  border-color: var(--line);
}
.accounts-period-sep { color: var(--muted); font-weight: 500; }
.accounts-period-apply {
  margin: 0;
  padding: 0.48rem 0.9rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.accounts-period-apply:hover { filter: brightness(0.95); }
.accounts-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 1.15rem;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(22, 22, 0, 0.05);
}
.accounts-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  background: linear-gradient(
    135deg,
    rgba(55, 182, 106, 0.1) 0%,
    var(--paper) 45%,
    rgba(183, 187, 62, 0.08) 100%
  );
  border-bottom: 1px solid var(--line);
}
.accounts-panel-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--ink);
}
.accounts-panel-range {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
}
.accounts-kpi-row {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #e7f6ec 0%, #eef4e6 42%, #faf8f3 100%);
}
.accounts-kpi {
  flex: 1 1 8rem;
  padding: 1.05rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(22, 22, 0, 0.07);
}
.accounts-kpi:last-child { border-right: 0; }
.accounts-kpi-val {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}
.accounts-kpi-val.money {
  font-size: 1.6rem;
  color: #1a5c38;
}
.accounts-kpi-label {
  margin-top: 0.35rem;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.accounts-measures,
.accounts-reports {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.accounts-measures th,
.accounts-reports th {
  text-align: left;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.6rem 1.15rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.accounts-measures th:last-child,
.accounts-reports th:last-child { text-align: right; }
.accounts-measures td,
.accounts-reports td {
  padding: 0.7rem 1.15rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.accounts-measures tbody tr:last-child td,
.accounts-reports tbody tr:last-child td { border-bottom: 0; }
.accounts-measures tbody tr:nth-child(even),
.accounts-reports tbody tr:nth-child(even) {
  background: rgba(247, 243, 236, 0.55);
}
.accounts-measure-val {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.accounts-reports td strong { font-weight: 600; }
.accounts-report-desc {
  color: var(--muted);
  max-width: 24rem;
  font-size: 0.88rem;
  line-height: 1.45;
}
.accounts-format {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: #e7f6ec;
  color: #1f8a4c;
  border: 0;
}
.accounts-report-dl { text-align: right; white-space: nowrap; }
.accounts-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.accounts-dl-btn:hover {
  background: #e7f6ec;
  border-color: rgba(55, 182, 106, 0.45);
  color: #1f8a4c;
}
.accounts-dl-btn::after {
  content: "↓";
  font-size: 0.8rem;
  opacity: 0.75;
}
@media (max-width: 860px) {
  .accounts-kpi { flex: 1 1 45%; border-bottom: 1px solid rgba(22, 22, 0, 0.07); }
  .accounts-kpi:nth-last-child(-n+2) { border-bottom: 0; }
  .accounts-panel-head { flex-direction: column; align-items: flex-start; }
  .accounts-period { width: 100%; }
}
.people-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.people-head h1 { margin-top: 0; }
.people-head .lede { margin-bottom: 0; }
.prop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(252px, 32vw);
  gap: 1.25rem 1.5rem;
  align-items: start;
}
.prop-main { min-width: 0; }
.prop-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: none;
}
.prop-controls {
  position: sticky;
  top: 1.25rem;
  z-index: 10;
  padding: 1rem 1.05rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 4px 14px rgba(22, 22, 0, 0.04);
}
.prop-controls-h {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.prop-controls .prop-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  margin: 0;
}
.prop-controls .prop-toolbar label {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}
.prop-controls .prop-toolbar label:first-of-type { margin-top: 0; }
.prop-controls .prop-toolbar select {
  width: 100%;
  min-width: 0;
  margin: 0;
}
.prop-add-btn {
  width: 100%;
  margin: 0.85rem 0 0;
}
.prop-listing-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 0.65rem;
}
.prop-listing-crumb a { color: var(--muted); text-decoration: none; }
.prop-listing-crumb a:hover { color: var(--accent); }
.prop-listing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.prop-listing-head h1 { margin: 0 0 0.2rem; }
.prop-listing-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.prop-listing-stats li {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: #e7f6ec;
  color: #1f8a4c;
}
.prop-listing-form textarea { min-height: 4rem; }
.prop-listing-preview .prop-listing-headline {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.65rem;
}
.prop-listing-summary {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: var(--muted);
}
.prop-listing-body {
  white-space: pre-wrap;
  line-height: 1.55;
  margin-bottom: 0.85rem;
}
.prop-listing-highlights {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.5;
}
.prop-listing-gallery img {
  width: 200px;
  height: 140px;
}
@media (max-width: 900px) {
  .prop-layout { grid-template-columns: 1fr; }
  .prop-controls {
    position: static;
    order: -1;
  }
}
.prop-row {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 4px 14px rgba(22, 22, 0, 0.04);
  overflow: hidden;
}
.prop-row[open] {
  overflow: visible;
  position: relative;
  z-index: 25;
}
.prop-row-head {
  display: grid;
  grid-template-columns: 12.5rem 1fr 2.5rem;
  align-items: center;
  gap: 0;
  padding: 0;
  list-style: none;
  cursor: pointer;
  height: 7.25rem;
  max-height: 7.25rem;
  overflow: hidden;
}
.prop-row-head::-webkit-details-marker { display: none; }
.prop-row-photo {
  margin: 0;
  align-self: stretch;
  width: 12.5rem;
  max-width: 12.5rem;
  height: 100%;
  max-height: 7.25rem;
  min-height: 0;
  border-radius: 16px 0 0 16px;
  overflow: hidden;
  background: var(--paper);
  flex-shrink: 0;
}
.prop-row[open] .prop-row-head .prop-row-photo {
  border-radius: 16px 0 0 0;
}
.prop-row-photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.prop-row-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.65rem 0.85rem;
  min-width: 0;
}
.prop-row-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}
.prop-row-addr {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.35;
}
.prop-row-status {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1f8a4c;
}
.prop-row-status.setup { color: #b45309; }
.prop-row-status.inactive { color: var(--muted); }
.prop-row-chevron {
  align-self: center;
  margin-right: 0.85rem;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.prop-row[open] .prop-row-chevron {
  transform: rotate(-135deg);
  margin-top: 0.35rem;
}
.prop-row-body {
  padding: 0 1.1rem 1rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #faf8f3 0%, #fff 2.5rem);
}
.prop-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 0.85rem 0 0.75rem;
  padding: 0;
}
.prop-detail-grid div { min-width: 0; }
.prop-detail-grid dt {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.prop-detail-grid dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
}
.prop-row-channels-h {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.prop-row-channels { margin-bottom: 0.85rem; }
.prop-row-channels-empty { margin: 0 0 0.85rem; font-size: 0.88rem; }
.prop-row-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.65rem;
  margin-top: 0.15rem;
  border-top: 1px solid var(--line);
}
@media (max-width: 640px) {
  .prop-row { border-radius: 16px; }
  .prop-row-head {
    grid-template-columns: 7.5rem 1fr 1.75rem;
    height: 6rem;
    max-height: 6rem;
  }
  .prop-row-photo {
    width: 7.5rem;
    max-width: 7.5rem;
    max-height: 6rem;
    border-radius: 16px 0 0 16px;
  }
}
.task-assign {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.85rem 0.75rem;
  margin: 0.85rem 0 0.2rem;
}
.task-assign legend {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 0.25rem;
}
.task-subh {
  margin: 1.35rem 0 0.65rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
}
.task-recurring-list { margin-top: 0; }
.task-pri-inline {
  display: inline-block;
  margin-left: 0.45rem;
  vertical-align: middle;
  font-size: 0.72rem;
}
.task-recurring-actions form { margin: 0; }
.task-del-btn {
  padding: 0.3rem 0.65rem;
  font-size: 0.82rem;
  color: var(--danger);
  border-color: #e8c4c4;
}
.task-del-btn:hover { background: #fdf2f2; }
.task-assign-wrap { margin: 0.85rem 0 0.35rem; }
.task-assign-open {
  margin: 0;
  padding: 0.45rem 0.65rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gcal, #1a73e8);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
}
.task-assign-open:hover { background: #f7fbf8; }
.task-assign-panel {
  margin-top: 0.55rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.task-assign-tabs {
  display: inline-flex;
  gap: 0.25rem;
  margin-bottom: 0.65rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: var(--paper);
}
.task-assign-tab {
  margin: 0;
  padding: 0.35rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.task-assign-tab.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 3px rgba(22, 22, 0, 0.08);
}
.task-assign-empty { margin: 0.25rem 0 0; font-size: 0.85rem; }
.task-recurring-toggle { margin: 0.85rem 0 0.55rem; }
.task-schedule-panel { margin-bottom: 0.35rem; }
.task-due-hint { margin: -0.35rem 0 0.65rem; font-size: 0.82rem; }
.task-assign-lede { margin: 0 0 0.55rem; font-size: 0.85rem; }
.task-assign-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 12rem;
  overflow: auto;
}
.task-assign-list .check { margin: 0; }
.task-toolbar { margin-bottom: 1rem; align-items: end; }
.oversight-layout {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 1rem;
  align-items: start;
}
.oversight-users { padding: 0.85rem 0.75rem; margin: 0; }
.oversight-users-h {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.oversight-users ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.oversight-users a {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
}
.oversight-users a:hover { background: #f3f7f1; }
.oversight-users a.active { background: #e7f6ec; color: #1f8a4c; }
.oversight-heading {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
}
@media (max-width: 860px) {
  .oversight-layout { grid-template-columns: 1fr; }
  .oversight-users ul { flex-direction: row; flex-wrap: wrap; }
}
.task-toolbar label { margin-top: 0; }
.task-toolbar select { margin-top: 0; width: auto; min-width: 10rem; }
.task-pri {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.pri-urgent { background: #fde8ec; color: #9b1c31; }
.pri-high { background: #fff3e0; color: #9a5b00; }
.pri-normal { background: #eef6f0; color: #1f6a3a; }
.pri-low { background: #f3f3f0; color: var(--muted); }
.task-board {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.task-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem 0.95rem;
  box-shadow: 0 4px 14px rgba(22, 22, 0, 0.04);
  overflow: hidden;
  max-height: 28rem;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.task-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.task-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  min-width: 0;
}
.task-card-title h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}
.task-card-desc {
  margin: 0.55rem 0 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.task-card-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem 0.85rem;
  margin: 0.85rem 0 0;
}
.task-card-meta div { min-width: 0; }
.task-card-meta dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.task-card-meta dd {
  margin: 0.12rem 0 0;
  font-size: 0.88rem;
}
.task-card-actions { margin-top: 0.9rem; }
.task-recur-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.task-recur-actions form { margin: 0; }
.task-edit-btn { margin: 0; }
.task-recur-actions .task-del-btn { margin: 0; }
.task-done-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.42rem 0.85rem 0.42rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(55, 182, 106, 0.45);
  background: #f3fbf6;
  color: #1f8a4c;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.25s ease, color 0.25s ease;
}
.task-done-btn:hover { background: #e7f6ec; }
.task-done-btn:disabled { cursor: default; }
.task-done-check {
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
}
.task-done-check svg { width: 100%; height: 100%; }
.task-done-check circle,
.task-done-check path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.task-done-check path {
  stroke-dasharray: 18;
  stroke-dashoffset: 18;
}
.task-card.is-done {
  background: #e9f8ef;
  border-color: rgba(55, 182, 106, 0.55);
  box-shadow: 0 8px 22px rgba(55, 182, 106, 0.16);
}
.task-card.is-done .task-card-title h3 {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
.task-card.is-done .task-done-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.03);
}
.task-card.is-done .task-done-check circle {
  fill: #fff;
  stroke: #fff;
}
.task-card.is-done .task-done-check path {
  stroke: var(--accent);
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.38s 0.12s ease;
}
.task-card.is-leaving {
  pointer-events: none;
  animation: task-card-leave 0.48s ease forwards;
}
@keyframes task-card-leave {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  40% { opacity: 1; transform: translateY(-4px) scale(1.01); }
  100% {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    max-height: 0;
    margin-top: -0.75rem;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
  }
}
.task-board-empty { margin: 0; }
@media (max-width: 720px) {
  .task-card-meta { grid-template-columns: 1fr 1fr; }
}
td .chip { margin-left: 0.35rem; font-size: 0.72rem; padding: 0.1rem 0.4rem; vertical-align: middle; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
th { color: var(--muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
code { font-size: 0.85em; }

.section-head { margin: 1.6rem 0 0.7rem; }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; margin: 0 0 0.25rem; }
.plat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}
.plat-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 0.95rem 0.95rem;
  text-decoration: none;
  color: var(--ink);
  min-height: 178px;
  margin-top: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.plat-card:hover { border-color: var(--accent); color: var(--ink); filter: none; }
.plat-logo {
  height: 44px;
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}
.plat-logo img { max-height: 40px; max-width: 100%; width: auto; display: block; }
.plat-card strong { font-size: 0.98rem; }
.plat-card p { margin: 0.3rem 0 0.7rem; color: var(--muted); font-size: 0.8rem; line-height: 1.35; flex: 1; }
.plat-status {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.plat-status.on { color: var(--ok); }
.wiz-logo { height: 48px; width: auto; display: block; margin: 0 0 0.85rem; }
.steps { display: flex; gap: 0.55rem; margin: 0 0 1.2rem; flex-wrap: wrap; }
.step {
  flex: 1;
  min-width: 140px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font-size: 0.86rem;
  color: var(--muted);
  background: #fff;
}
.step b {
  display: block;
  color: var(--ink);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}
.check { display: flex; align-items: flex-start; gap: 0.55rem; margin: 0.9rem 0 0.4rem; }
.check input { margin-top: 0.2rem; width: auto; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.btn-row button, .btn-row .btn { margin-top: 0.4rem; }

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.login-stage {
  display: grid;
  grid-template-columns: minmax(280px, 460px) minmax(320px, 400px);
  gap: 2.4rem;
  align-items: center;
  width: min(980px, 100%);
}
.strips {
  display: grid;
  grid-template-columns: 0.72fr 0.95fr 1.2fr;
  gap: 0.55rem;
  height: 460px;
}
.strips img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.login-window {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 1.85rem 1.9rem;
  box-shadow: 0 22px 50px rgba(22, 22, 0, 0.12);
  overflow: hidden;
}
.login-logo {
  height: 70px;
  width: auto;
  display: block;
  margin: 0 0 1rem;
}
.login-window h1 { font-size: 2rem; }
.login-window h1 span {
  display: block;
  border-bottom: 3px solid var(--lime);
  width: 4.5rem;
  margin: 0.2rem 0 0.4rem;
}
.login-window .lede { margin-bottom: 1rem; }
.login-btn { width: 100%; margin-top: 1.25rem; padding: 0.8rem 1rem; font-weight: 500; font-size: 1rem; }
.dev-quick-login { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.dev-quick-login-btn {
  width: 100%;
  padding: 0.65rem 1rem;
  font: inherit;
  font-size: 0.92rem;
  border: 1px dashed #94a3b8;
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
}
.dev-quick-login-btn:hover { background: #f1f5f9; color: var(--ink); }
.dev-quick-login-note { margin: 0.45rem 0 0; font-size: 0.78rem; color: var(--muted); text-align: center; }

.staff-card-inactive { opacity: 0.88; }
.staff-card-inactive .guest-card-name { color: var(--muted); }
.guest-card-badges .staff-tag {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #f3f7f1;
  color: #475569;
}
.staff-tag-role.role-admin { background: #eff6ff; color: #1e4d8c; }
.staff-tag-role.role-system { background: #f5f3ff; color: #5b21b6; }
.staff-tag-role.role-operations { background: #ecfdf5; color: #0f766e; }
.staff-tag-role.role-sales { background: #fffbeb; color: #b45309; }
.staff-tag-role.role-turnover { background: #fff7ed; color: #9a3412; }
.staff-tag-mcp { background: #f5f3ff; color: #6d28d9; }
.staff-tag-human { background: #f8fafc; color: #475569; }
.staff-tag-off { background: #f1f5f9; color: #64748b; }

.staff-edit-kind { margin: 0 0 0.65rem; font-size: 0.88rem; }
.staff-delete-btn { color: var(--danger); margin-left: auto; }
.staff-delete-btn:hover { color: var(--danger); filter: none; background: rgba(138, 43, 43, 0.08); }
dialog.modal {
  border: 0;
  border-radius: 16px;
  padding: 0;
  width: min(560px, calc(100% - 1.5rem));
  background: #fff;
  color: var(--ink);
  box-shadow: 0 22px 50px rgba(22, 22, 0, 0.18);
}
dialog.modal-wide {
  width: min(640px, calc(100% - 1.5rem));
  max-height: 90vh;
  overflow: auto;
}
.wizard-inner .wiz-logo { margin-bottom: 0.45rem; }
.wizard-inner .lede { margin-bottom: 0.85rem; }
.wizard-inner .btn { margin-top: 0.35rem; }
.actor-kind {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  margin: 0 0 0.85rem;
}
.actor-kind legend { font-size: 0.85rem; color: var(--muted); padding: 0 0.25rem; }
.actor-kind .check { display: inline-flex; margin-right: 1rem; margin-top: 0.35rem; }
textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  background: #fff;
}
.mcp-reveal input[readonly], .mcp-reveal textarea { background: #faf8f3; }
dialog.modal::backdrop { background: rgba(22, 22, 0, 0.45); }
.modal-inner { padding: 1.35rem 1.45rem 1.4rem; }
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.2rem;
}
.modal-head h2 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; margin: 0; }
.modal-close { margin-top: 0; padding: 0.35rem 0.7rem; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.85rem;
}
.form-grid .span-2 { grid-column: 1 / -1; }

.app:has(.cal-page) {
  --cal-gutter-left: 0.55rem;
  --cal-gutter-right: 0.85rem; /* right edge aligns with Joy Oliver logo */
}
main:has(.cal-page) {
  max-width: none;
  width: 100%;
  height: 100vh;
  padding: calc(var(--top-accent) + var(--cal-bar-height, calc(var(--brand-size) + 0.35rem)))
    var(--cal-gutter-right)
    0.75rem
    var(--cal-gutter-left);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: var(--paper);
}
main:has(.cal-page)::before { display: none; }
.app:has(.cal-page) .side {
  z-index: 280;
}
.app:has(.cal-page) .app-brand {
  background: var(--paper);
  display: flex;
  align-items: center;
  height: var(--cal-bar-height, calc(var(--brand-size) + 0.35rem));
  padding: 0 var(--cal-gutter-right, 0.85rem);
  box-sizing: border-box;
  z-index: 290;
}
.cal-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  padding: 0 0 0.65rem;
  background: var(--paper);
  --cal-bar-height: calc(var(--brand-size) + 0.35rem);
  --gcal: #1a73e8;
  --gcal-ink: #3c4043;
  --gcal-muted: #70757a;
  --gcal-line: #dadce0;
  --gcal-hover: #f1f3f4;
  --cal-grid: #e8eaed;
  --cal-surface: #fff;
}
.cal-top {
  display: flex;
  align-items: center;
  margin: 0;
  flex-shrink: 0;
  position: fixed;
  top: var(--top-accent);
  left: var(--side-collapsed);
  right: 0;
  z-index: 120;
  height: var(--cal-bar-height, calc(var(--brand-size) + 0.35rem));
  padding: 0 var(--cal-gutter-right, 0.85rem) 0 var(--cal-gutter-left, 0.55rem);
  padding-right: var(--brand-clear);
  box-sizing: border-box;
  background: var(--paper);
  border: 0;
  box-shadow: none;
  transition: left 0.22s ease;
}
body.side-locked > main:has(.cal-page) .cal-top {
  left: var(--side);
}
.cal-top-bar {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}
.app:has(.cal-page) .cal-top-bar {
  background: var(--cal-surface);
  border: 1px solid var(--gcal-line);
  border-radius: 14px;
  padding: 0.12rem 0.2rem 0.12rem 0.12rem;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.06);
}
.cal-top-bar-start,
.cal-top-bar-end {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  flex-shrink: 0;
}
.cal-top-bar-end {
  margin-left: auto;
  padding-left: 0.35rem;
  border-left: 1px solid var(--gcal-line);
}
.cal-top-bar-start {
  padding-right: 0.15rem;
}
.app:has(.cal-page) .cal-menu-btn {
  background: transparent;
  border-radius: 999px;
}
.app:has(.cal-page) .cal-nav-group {
  border: 0;
  border-radius: 0;
  background: transparent;
  border-left: 1px solid var(--gcal-line);
  border-right: 1px solid var(--gcal-line);
}
.app:has(.cal-page) .cal-nav-group .cal-nav + .cal-nav {
  border-left: 1px solid var(--gcal-line);
}
.app:has(.cal-page) .cal-today-btn {
  border: 0;
  background: transparent;
}
.app:has(.cal-page) .cal-view-select {
  border: 0;
  background-color: transparent;
  min-width: 6.25rem;
}
.app:has(.cal-page) .cal-top-bar .cal-menu-btn {
  width: 2rem;
  height: 2rem;
}
.app:has(.cal-page) .cal-top-bar .cal-nav-group .cal-nav {
  min-width: 2rem;
  height: 1.85rem;
  font-size: 1.05rem;
}
.app:has(.cal-page) .cal-top-bar .cal-today-btn {
  height: 1.85rem;
  padding: 0 0.65rem;
  font-size: 0.8125rem;
}
.app:has(.cal-page) .cal-top-bar .cal-view-select {
  height: 1.85rem;
  font-size: 0.8125rem;
  padding-right: 1.5rem;
}
.app:has(.cal-page) .cal-today-btn:hover,
.app:has(.cal-page) .cal-view-select:hover,
.app:has(.cal-page) .cal-nav-group .cal-nav:hover,
.app:has(.cal-page) .cal-menu-btn:hover {
  background: var(--gcal-hover);
}
.app:has(.cal-page) .cal-mega {
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(22, 22, 0, 0.1);
}
.cal-mega-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 200;
  min-height: 0;
}
.cal-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  color: var(--gcal-ink);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.cal-menu-btn svg { width: 20px; height: 20px; }
.cal-menu-btn:hover { background: var(--gcal-hover); }
.cal-nav-group {
  display: inline-flex;
  border: 1px solid var(--gcal-line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--cal-surface);
}
.cal-nav-group .cal-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  min-width: 2.5rem;
  height: 2.15rem;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--gcal-ink);
  background: transparent;
  cursor: pointer;
  box-shadow: none;
}
.cal-nav-group .cal-nav:hover { background: var(--gcal-hover); }
.cal-nav-group .cal-nav + .cal-nav {
  border-left: 1px solid var(--gcal-line);
}
.cal-today-btn {
  height: 2.15rem;
  margin: 0;
  padding: 0 1rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gcal-ink);
  background: var(--cal-surface);
  border: 1px solid var(--gcal-line);
  border-radius: 999px;
  cursor: pointer;
}
.cal-today-btn:hover { background: var(--gcal-hover); }
.cal-view-select {
  height: 2.15rem;
  margin: 0;
  padding: 0 1.75rem 0 0.85rem;
  font: inherit;
  font-size: 0.875rem;
  color: var(--gcal-ink);
  background: var(--cal-surface);
  border: 1px solid var(--gcal-line);
  border-radius: 999px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%235f6368' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  cursor: pointer;
}
.cal-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 200;
  max-height: min(70vh, 520px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--gcal-line);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(22, 22, 0, 0.12);
  padding: 1rem 1.1rem 1.15rem;
}
.cal-mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem 1.5rem;
}
.cal-mega-h {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gcal-ink);
}
.cal-mega-lede {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: var(--gcal-muted);
  line-height: 1.45;
}
.cal-mega-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}
.cal-mega-actions .btn { margin-top: 0; font-size: 0.82rem; padding: 0.4rem 0.75rem; }
.cal-mega-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--gcal-ink);
}
.cal-mega-list li { padding: 0.25rem 0; }
.cal-mega-note { margin: 0; font-size: 0.82rem; }
.cal-mega-layers .cal-menu-item { padding-left: 0.35rem; padding-right: 0.35rem; }
.cal-mega-field {
  display: block;
  margin: 0.55rem 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gcal-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cal-mega-select { width: 100%; height: 2rem; font-size: 0.82rem; }
.cal-mega-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.65rem 0 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
}
.cal-mega-check input { width: auto; margin: 0; }
.cal-mega-reset { width: 100%; margin-top: 0.35rem; font-size: 0.82rem; padding: 0.4rem 0.65rem; }
.cal-mega-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gcal);
  text-decoration: none;
}
.cal-mega-link:hover { text-decoration: underline; }
.cal-sync-flash { margin: 0 0 0.5rem; }
.cal-sync-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.cal-sync-h { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 600; }
.cal-sync-links { list-style: none; margin: 0; padding: 0; }
.cal-sync-links li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.5rem;
}
.cal-sync-links .btn-row { margin-top: 0.45rem; }
.cal-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 0.45rem;
  text-align: center;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gcal-ink);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-ctrl {
  height: 26px;
  margin: 0;
  padding: 0 0.55rem;
  font: inherit;
  font-size: 0.75rem;
  line-height: 1;
  color: var(--gcal-ink);
  background: var(--paper);
  border: 1px solid var(--gcal-line);
  border-radius: 4px;
  box-shadow: none;
  cursor: pointer;
}
select.cal-ctrl {
  width: auto;
  min-width: 4.6rem;
  padding-right: 1.15rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%235f6368' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.35rem center;
}
button.cal-ctrl { min-width: 1.6rem; }
.cal-ctrl:hover { background-color: var(--gcal-hover); }
.cal-dropdown { position: relative; }
.cal-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 140;
  min-width: 12.5rem;
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
  padding: 0.35rem 0;
}
.cal-menu-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  color: var(--gcal-ink);
  cursor: pointer;
  margin: 0;
}
.cal-menu-item:hover { background: var(--gcal-hover); }
.cal-menu-item input { width: auto; margin: 0; accent-color: var(--gcal); }
.cal-layer span::before {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  background: var(--layer-color, var(--gcal));
}
.cal-shell {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background: var(--cal-surface);
  border: 1px solid var(--gcal-line);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
}
.cal-shell .fc {
  height: 100%;
  --fc-border-color: var(--cal-grid);
  --fc-page-bg-color: var(--cal-surface);
  --fc-neutral-bg-color: var(--cal-surface);
  --fc-today-bg-color: rgba(26, 115, 232, 0.06);
  --fc-highlight-color: rgba(26, 115, 232, 0.08);
  --fc-now-indicator-color: #ea4335;
  --fc-event-border-color: transparent;
  font-family: var(--font);
  color: var(--gcal-ink);
}
/* Portal globals (green links, uppercase th) must not leak into FullCalendar */
.cal-shell th {
  color: inherit;
  font-weight: inherit;
  font-size: inherit;
  text-transform: none;
  letter-spacing: normal;
}
.cal-shell a {
  color: inherit;
  text-decoration: none;
}
.cal-shell a:hover { color: inherit; }
.cal-shell .fc-scrollgrid {
  border: 0;
  border-radius: 12px;
}
.cal-shell .fc-theme-standard td,
.cal-shell .fc-theme-standard th {
  border-color: var(--cal-grid);
}
.cal-shell .fc .fc-scrollgrid-section > * {
  border-color: var(--cal-grid);
}
.cal-shell .fc-timegrid-slot {
  height: 3rem;
  border-color: #f1f3f4;
}
.cal-shell .fc .fc-timegrid-divider {
  padding: 0;
  border-color: var(--gcal-line);
}
.cal-shell .fc .fc-timegrid-slot-label-frame {
  text-align: right;
}
.cal-shell .fc-timegrid-slot-minor {
  border-top-style: dotted;
  border-color: #f1f3f4;
}
.cal-shell .fc-timegrid-slot-label {
  vertical-align: top;
  border-color: var(--cal-grid);
}
.cal-shell .fc-dayGridMonth-view .fc-daygrid-day-frame {
  min-height: 6.75rem;
}
/* Compact all-day strip in week/day time grid */
.cal-shell .fc-timeGridWeek-view .fc-daygrid-day-frame,
.cal-shell .fc-timeGridDay-view .fc-daygrid-day-frame {
  min-height: 0;
}
.cal-shell .fc-timegrid .fc-daygrid-body {
  min-height: 0 !important;
}
.cal-shell .fc-timegrid .fc-daygrid-day-events {
  min-height: 1.15rem;
  margin: 0;
}
.cal-shell .fc-timegrid .fc-daygrid-day-top {
  display: none;
}
.cal-shell .fc .fc-timegrid-axis-frame {
  min-height: 0;
  height: auto;
  padding: 0.15rem 0.2rem;
  line-height: 1.1;
  font-size: 0.625rem;
  color: var(--gcal-muted);
}
.cal-shell .fc .fc-timegrid-axis-cushion {
  font-size: 0.625rem;
  padding: 0;
  text-transform: lowercase;
  color: var(--gcal-muted);
}
.cal-shell .fc-header-toolbar { display: none; }
.cal-shell .fc .fc-col-header-cell {
  border-color: var(--gcal-line);
  background: var(--cal-surface);
  padding: 0.5rem 0 0.65rem;
  vertical-align: bottom;
}
.cal-shell .fc .fc-col-header-cell-cushion {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  text-decoration: none;
  color: var(--gcal-ink);
  font-weight: 400;
}
.cal-shell .fc .cal-dow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gcal-muted);
  line-height: 1;
}
.cal-shell .fc .cal-day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--gcal-ink);
  border-radius: 999px;
  line-height: 1;
}
.cal-shell .fc .cal-day-today {
  background: var(--gcal);
  color: #fff;
  font-weight: 500;
}
.cal-shell .fc .fc-col-header-cell.fc-day-today {
  background: var(--cal-surface);
}
.cal-shell .fc .fc-timegrid-slot-label-cushion {
  color: var(--gcal-muted);
  font-size: 0.72rem;
  font-weight: 500;
  text-decoration: none;
}
.cal-shell .fc .fc-timegrid-col.fc-day-today {
  background: rgba(26, 115, 232, 0.03);
}
.cal-shell .fc .fc-timegrid-event,
.cal-shell .fc .fc-daygrid-event {
  border-radius: 8px;
  border: 0;
  box-shadow: none;
  margin-right: 1px;
}
.cal-shell .fc .fc-timegrid-event.cal-ev,
.cal-shell .fc .fc-daygrid-event.cal-ev {
  background: color-mix(in srgb, var(--ev-color, #1a73e8) 18%, #fff);
  border-left: 4px solid var(--ev-color, #1a73e8);
  padding: 2px 6px 2px 4px;
}
.cal-shell .fc .fc-event-main {
  color: var(--gcal-ink);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
}
.cal-shell .fc .fc-event-time {
  font-weight: 400;
  font-size: 0.68rem;
  opacity: 0.85;
}
.cal-shell .fc .fc-daygrid-block-event .fc-event-time {
  font-weight: 500;
}
.cal-shell .fc .fc-all-day .fc-event-main {
  font-size: 0.72rem;
}
.cal-shell .fc .fc-highlight {
  background: rgba(26, 115, 232, 0.06) !important;
  border: 2px solid rgba(26, 115, 232, 0.45);
  border-radius: 0;
  opacity: 1;
  box-sizing: border-box;
}
.cal-shell .fc .fc-event-mirror {
  opacity: 1;
  background: rgba(26, 115, 232, 0.06) !important;
  border: 2px dashed rgba(26, 115, 232, 0.55) !important;
  border-radius: 0;
  box-shadow: none;
}
.cal-shell .fc .fc-event-mirror .fc-event-main {
  color: transparent;
}
.cal-shell .fc .fc-event-selected {
  outline: 2px solid rgba(26, 115, 232, 0.55);
  outline-offset: 1px;
}
.gcal-pop {
  position: fixed;
  z-index: 180;
  width: 280px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12);
  padding: 0.85rem 1rem 1rem 1.15rem;
  color: #3c4043;
}
.gcal-pop-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-radius: 8px 0 0 8px;
}
.gcal-pop h2 {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 1.5rem 0.35rem 0;
}
.gcal-pop p { margin: 0; color: #70757a; font-size: 0.875rem; }
.gcal-pop-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  margin: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5f6368;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.gcal-pop-close:hover { background: #f1f3f4; }
.cal-ctx {
  position: fixed;
  z-index: 200;
  min-width: 11rem;
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
  padding: 0.35rem 0;
}
.cal-ctx-item {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  background: transparent;
  color: #3c4043;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
.cal-ctx-item:hover { background: #f1f3f4; }
.cal-ctx-item[hidden] { display: none; }
.cal-select-menu {
  position: fixed;
  z-index: 210;
  min-width: 12.5rem;
  max-width: 18rem;
  background: var(--card);
  border: 1px solid var(--gcal-line);
  border-radius: 8px;
  box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.12), 0 3px 14px 2px rgba(0, 0, 0, 0.1);
  padding: 0.35rem 0 0.4rem;
}
.cal-select-menu-range {
  margin: 0;
  padding: 0.55rem 1rem 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--gcal-muted);
  border-bottom: 1px solid var(--line);
}
.cal-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.group-dot {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}
.muted { color: var(--muted); font-size: 0.9rem; }
.form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0.75rem 0 1rem;
}
.form-inline select { flex: 1; min-width: 200px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 860px) {
  .login-page { padding: 1rem; align-items: flex-start; padding-top: 1.75rem; }
  .login-stage { grid-template-columns: 1fr; gap: 0; width: min(400px, 100%); }
  .strips { display: none; }
  .side { width: var(--side-collapsed); padding-bottom: 0.8rem; }
  .side:hover,
  body.side-locked .side { width: min(var(--side), 88vw); }
  body.side-locked > main { margin-left: min(var(--side), 88vw); }
  :root { --brand-size: 42px; }
  .form-grid { grid-template-columns: 1fr; }
  .people-head { flex-direction: column; }
  .admin-shell { flex-direction: column; }
  .admin-sub {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    margin-right: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }
  .admin-sub nav { flex-direction: row; flex-wrap: wrap; }
  .cal-shell { min-height: 0; }
  .cal-top {
    height: auto;
    min-height: var(--cal-bar-height, calc(var(--brand-size) + 0.35rem));
    padding-right: min(var(--brand-clear), 42vw);
  }
  .app:has(.cal-page) .cal-top-bar {
    flex-wrap: wrap;
    row-gap: 0.25rem;
    padding: 0.35rem 0.45rem;
  }
  .cal-top-bar-start,
  .cal-top-bar-end {
    border: 0;
    padding: 0;
    margin: 0;
  }
  .cal-top-bar-end { margin-left: 0; }
  .cal-title {
    flex: 1 0 100%;
    order: -1;
    text-align: left;
    font-size: 0.9rem;
    padding: 0 0.15rem 0.1rem;
  }
  main:has(.cal-page) {
    padding-top: calc(var(--top-accent) + var(--cal-bar-height, calc(var(--brand-size) + 0.35rem)) + 2.75rem);
  }
}

dialog.modal-property {
  width: min(920px, calc(100% - 1.5rem));
  max-height: 92vh;
  overflow: auto;
}
.wiz-nav { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.2rem 0 1rem; }
.wiz-nav button {
  margin-top: 0;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
}
.wiz-nav button[aria-current="step"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.wiz-sub { font-size: 1rem; margin: 1.1rem 0 0.2rem; }
.wiz-panel .lede { margin-top: 0; }
.ghost-btn {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.repeat-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.2rem 0.85rem 0.85rem;
  margin: 0.75rem 0;
}
.row-actions { display: flex; justify-content: flex-end; }
.row-actions button { margin-top: 0.45rem; padding: 0.3rem 0.65rem; font-size: 0.82rem; }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem 1.2rem; margin: 0; }
.detail-list div { min-width: 0; }
.detail-list dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.detail-list dd { margin: 0.15rem 0 0; white-space: pre-wrap; }
.photo-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.photo-grid figure { margin: 0; width: 180px; }
.photo-grid img { width: 180px; height: 130px; object-fit: cover; border-radius: 8px; display: block; background: var(--paper); }
.photo-grid figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.doc-list span { color: var(--muted); font-size: 0.85rem; }
.hosted-upload-card { padding: 0.85rem; }
.hosted-upload-form { margin: 0; position: relative; }
.hosted-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hosted-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 2rem 1.25rem;
  margin: 0;
  border: 2px dashed var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #faf8f3 0%, #fff 100%);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.hosted-drop:hover,
.hosted-drop.is-dragover {
  border-color: var(--accent);
  background: #f3faf6;
}
.hosted-drop.is-uploading {
  pointer-events: none;
  opacity: 0.75;
}
.hosted-drop-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: #e7f6ec;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.hosted-drop-icon svg { width: 1.5rem; height: 1.5rem; }
.hosted-drop-title { font-size: 1.05rem; font-weight: 600; }
.hosted-drop-sub { color: var(--muted); font-size: 0.92rem; }
.hosted-drop-hint { color: var(--muted); font-size: 0.78rem; margin-top: 0.15rem; }
.hosted-drop-status {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}
.hosted-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.hosted-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.hosted-card img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--paper);
}
.hosted-meta { padding: 0.65rem 0.75rem 0.75rem; display: flex; flex-direction: column; gap: 0.35rem; }
.hosted-meta strong { font-size: 0.9rem; word-break: break-all; }
.hosted-meta small { color: var(--muted); font-size: 0.78rem; }
.hosted-url {
  width: 100%;
  font-size: 0.75rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: ui-monospace, monospace;
}
.mcp-copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.mcp-copy-row input { flex: 1 1 12rem; min-width: 0; margin-bottom: 0; }
.mcp-copy-row .ghost { flex: 0 0 auto; padding: 0.35rem 0.65rem; font-size: 0.85rem; }

.hosted-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin-top: 0.15rem; }
.hosted-actions form { margin: 0; }
.hosted-actions .ghost { padding: 0.3rem 0.55rem; font-size: 0.82rem; }
@media (max-width: 860px) {
  .detail-list { grid-template-columns: 1fr; }
}
