:root {
  --bg: #f5f6fa;
  --card: #ffffff;
  --ink: #141b2d;
  --ink-2: #48526a;
  --ink-3: #7a8499;
  --line: #e2e6ee;
  --line-2: #eef1f6;
  --accent: #0e7c86;
  --accent-ink: #ffffff;
  --accent-soft: #e2f4f3;
  --coral: #f59e3b;
  --warn-bg: #fff7e6;
  --warn-line: #f3d79b;
  --warn-ink: #7a4d00;
  --danger: #c2343b;
  --danger-soft: #fdecec;
  --ok: #18794e;
  --weekend: #f8f9fb;
  --today: #0e7c86;
  --airbnb: #e0565b;
  --vrbo: #2f7dd1;
  --booking: #283a7a;
  --other: #7a8691;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 27, 45, .04), 0 4px 14px rgba(20, 27, 45, .05);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 24px; font-weight: 750; letter-spacing: -.015em; }
h2 { font-size: 17px; font-weight: 700; letter-spacing: -.005em; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }

button, input, select { font: inherit; color: inherit; }
button {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  padding: 8px 15px;
  cursor: pointer;
  font-weight: 600;
  transition: background .12s, border-color .12s, box-shadow .12s;
}
button:hover { border-color: #c5cddb; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(14, 124, 134, .28); outline-offset: 1px; border-color: var(--accent); }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 1px 2px rgba(14, 124, 134, .25); }
button.primary:hover { background: #0b6670; border-color: #0b6670; }
button.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
button.ghost:hover { background: var(--line-2); }
button.danger { color: var(--danger); }
button.danger:hover { background: var(--danger-soft); border-color: #f2c4c6; }
button:disabled { opacity: .55; cursor: default; }
input[type=text], input[type=password], input[type=email], input[type=url], input[type=number], input[type=time], input[type=date], select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  background: var(--card);
  min-width: 0;
}
label { display: block; font-size: 13px; color: var(--ink-2); font-weight: 550; margin-bottom: 4px; }

/* layout */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo-img { width: 32px; height: 32px; flex: none; display: block; }
.wordmark { font-size: 21px; font-weight: 750; letter-spacing: -.035em; color: var(--ink); line-height: 1; }
.brand.light .wordmark { color: #fff; }
.tabs { display: flex; gap: 4px; }
.tabs button { border: none; background: transparent; color: var(--ink-2); padding: 7px 12px; }
.tabs button[aria-current=page] { background: var(--accent-soft); color: var(--accent); }
.spacer { flex: 1; }
.who { color: var(--ink-3); font-size: 13px; }
main { max-width: 1200px; margin: 0 auto; padding: 20px 16px 48px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }

.notice {
  border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--warn-ink);
  border-radius: 10px; padding: 9px 12px; font-size: 14px;
}
.notice.danger { border-color: #f2c4c6; background: var(--danger-soft); color: #8a1f25; }
.notice.info { border-color: #b7e3e0; background: var(--accent-soft); color: #0b4f57; }
.notices > * + * { margin-top: 8px; }
.error { color: var(--danger); font-size: 14px; min-height: 1.5em; }
.stack > .error:empty, .card > .error:empty { display: none; }

/* sign in: photo and pitch on the left, form on the right */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, 1fr); background: var(--card); }
.auth-hero { position: relative; background-size: cover; background-position: center; color: #fff; }
.auth-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 18, 40, .55) 0%, rgba(10, 18, 40, .15) 40%, rgba(10, 18, 40, .78) 100%);
}
.auth-hero-inner { position: relative; height: 100%; display: flex; flex-direction: column; padding: 36px 44px; }
.auth-pitch { margin-top: auto; max-width: 520px; }
.auth-pitch h1 { font-size: 40px; line-height: 1.12; letter-spacing: -.03em; font-weight: 750; }
.auth-pitch p { margin-top: 14px; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .88); }
.auth-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: 15px; }
.auth-points li { display: flex; align-items: center; gap: 10px; }
.tick { width: 22px; height: 22px; border-radius: 50%; background: var(--coral); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; flex: none; }
.credits-link { border: none; background: none; padding: 0; font: inherit; font-size: 12px; font-weight: 500; color: inherit; opacity: .75; text-decoration: underline; cursor: pointer; }
.auth-hero .credits-link { margin-top: 28px; align-self: flex-start; }
.credits-link:hover { opacity: 1; border: none; }
.auth-panel { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h2 { font-size: 28px; letter-spacing: -.02em; }
.auth-card > .muted { margin-top: 4px; }
.auth-mobile-brand { display: none; margin-bottom: 28px; }
.auth form { margin-top: 18px; }
.auth form > * + * { margin-top: 14px; }
.auth input { width: 100%; padding: 11px 13px; }
.auth button.primary { width: 100%; padding: 11px; font-size: 16px; }
.seg { display: flex; background: var(--line-2); border-radius: 11px; padding: 4px; margin: 22px 0 0; }
.seg button { flex: 1; border: none; background: transparent; color: var(--ink-2); padding: 8px; }
.seg button[aria-pressed=true] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { min-height: 260px; }
  .auth-hero-inner { padding: 22px 20px; }
  .auth-hero .brand { display: none; }
  .auth-pitch h1 { font-size: 26px; }
  .auth-pitch p, .auth-points { display: none; }
  .auth-hero .credits-link { margin-top: 10px; }
  .auth-mobile-brand { display: block; }
  .auth-panel { place-items: start center; padding: 28px 16px 40px; }
}

/* photos */
.onboard-photo, .partners-photo, .prop-cover, .panel-cover { background-size: cover; background-position: center; }
.onboard-photo { height: 190px; margin: -18px -18px 4px; border-radius: var(--radius) var(--radius) 0 0; }
.prop-card { padding-top: 0; overflow: hidden; }
.prop-cover { position: relative; height: 150px; margin: 0 -18px 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 12px 16px; }
.prop-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 40, 0) 35%, rgba(10, 18, 40, .7)); }
.prop-cover-name { position: relative; color: #fff; font-size: 20px; font-weight: 750; letter-spacing: -.02em; text-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.prop-cover-chips { position: absolute; top: 12px; right: 12px; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.prop-cover-chips .chip { background: rgba(255, 255, 255, .92); }
.panel-cover { position: relative; height: 120px; margin: -18px -18px 16px; border-radius: var(--radius) var(--radius) 0 0; display: flex; align-items: flex-end; padding: 12px 16px; }
.panel-cover::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(10, 18, 40, 0) 30%, rgba(10, 18, 40, .72)); }
.panel-cover span { position: relative; color: #fff; font-weight: 750; font-size: 18px; letter-spacing: -.01em; }
.partners { overflow: hidden; display: grid; grid-template-columns: 300px minmax(0, 1fr); column-gap: 24px; padding-left: 0; }
.partners > * { grid-column: 2; }
.partners-photo { grid-column: 1; grid-row: 1 / span 20; margin: -18px 0 -18px 0; min-height: 100%; background-position: 40% center; }
@media (max-width: 760px) {
  .partners { display: block; padding-left: 18px; }
  .partners-photo { height: 200px; margin: -18px -18px 16px; min-height: 0; }
}
.auth .error:empty { display: none; }
.app-footer { max-width: 1200px; margin: 0 auto; padding: 0 16px 28px; display: flex; gap: 8px; color: var(--ink-3); font-size: 12px; }
.credits { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; max-height: 55vh; overflow-y: auto; }
.credits li { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.credits img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; }
.credits a { color: var(--accent); }

/* onboarding */
.onboard { max-width: 560px; margin: 24px auto; overflow: hidden; }
.onboard .count { display: flex; gap: 10px; align-items: end; }
.onboard .count input { width: 90px; }
.names > * + * { margin-top: 8px; }
.names input { width: 100%; }

/* schedule toolbar */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar .range button[aria-pressed=true] { background: var(--accent-soft); color: var(--accent); border-color: #b7e3e0; }
.range { display: inline-flex; gap: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.swatch.likely { background: repeating-linear-gradient(135deg, var(--booking) 0 4px, #4d5f9e 4px 7px); }
.swatch.blocked { background: repeating-linear-gradient(135deg, #c9ced6 0 3px, #e6e9ee 3px 6px); }

/* timeline */
.timeline { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.tl { display: grid; min-width: max-content; }
.tl-corner, .tl-name {
  position: sticky; left: 0; z-index: 3; background: var(--card);
  border-right: 1px solid var(--line); padding: 0 12px;
  width: 170px; display: flex; align-items: center;
}
.tl-corner { z-index: 4; font-size: 12px; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.tl-name { font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--line-2); overflow: hidden; }
.tl-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-head { display: flex; border-bottom: 1px solid var(--line); }
.tl-day {
  flex: none; text-align: center; font-size: 12px; color: var(--ink-3); padding: 8px 0 7px; line-height: 1.3;
  border: none; border-radius: 0; background: transparent; font-weight: 500; cursor: pointer;
}
.tl-day:hover { background: var(--accent-soft); }
.tl-day b { display: block; font-size: 15px; color: var(--ink); font-weight: 650; }
.tl-day.weekend { background: var(--weekend); }
.tl-day.weekend:hover { background: var(--accent-soft); }
.tl-day.today b { background: var(--today); color: #fff; border-radius: 7px; width: 28px; margin: 0 auto; }
.tl-day .mon { color: var(--accent); font-weight: 650; }
.tl-row { position: relative; height: 68px; border-bottom: 1px solid var(--line-2); }
.tl-cells { position: absolute; inset: 0; display: flex; }
.tl-cells div { flex: none; height: 100%; border-right: 1px solid var(--line-2); cursor: pointer; }
.tl-cells div:hover { background: #effaf9; }
.tl-cells div.weekend { background: var(--weekend); }
.tl-cells div.weekend:hover { background: #effaf9; }
.tl-todayline { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--today); opacity: .35; z-index: 1; pointer-events: none; }
.tl-name { font-size: 15px; }
.bar {
  position: absolute; top: 14px; height: 40px; border-radius: 9px; z-index: 2; border: none;
  color: #fff; font: inherit; font-size: 13px; font-weight: 650; padding: 0 10px; text-align: left;
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 40px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12); cursor: pointer; transition: transform .08s, box-shadow .08s;
}
.bar:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(16, 24, 40, .18); border-color: transparent; }
.bar:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.bar.clip-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.bar.clip-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.bar.airbnb { background: var(--airbnb); }
.bar.vrbo { background: var(--vrbo); }
.bar.booking { background: var(--booking); }
.bar.other { background: var(--other); }
.bar.likely { background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(255, 255, 255, .13) 8px 14px); }
.bar.blocked {
  background: repeating-linear-gradient(135deg, #d5d9e0 0 5px, #e9ecf0 5px 10px);
  color: var(--ink-2); box-shadow: none; font-weight: 550;
}
.empty-row { position: absolute; left: 12px; top: 13px; font-size: 13px; color: var(--ink-3); z-index: 2; }

/* agenda */
.agenda > * + * { margin-top: 18px; }
.day-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.day-head .rel { font-size: 12px; font-weight: 650; color: var(--accent); background: var(--accent-soft); padding: 1px 8px; border-radius: 99px; }
.jobs { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.job {
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; background: var(--card);
  border-left-width: 4px;
}
.job.clean { border-left-color: var(--ok); }
.job.urgent { border-left-color: var(--danger); }
.job.arrive { border-left-color: var(--accent); }
.job-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.job-kind { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ok); }
.job.urgent .job-kind { color: var(--danger); }
.job.arrive .job-kind { color: var(--accent); }
.job-prop { font-weight: 650; margin-top: 2px; }
.job-lines { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.job-lines div { display: flex; gap: 6px; align-items: baseline; }
.job-lines .k { color: var(--ink-3); min-width: 34px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chip.red { background: var(--danger-soft); color: var(--danger); }
.empty { text-align: center; padding: 28px 12px; color: var(--ink-3); }

/* properties */
.props { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.prop-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.prop-fields .name-field { grid-column: 1 / -1; }
.prop-fields input { width: 100%; }
.files { margin-top: 14px; border-top: 1px solid var(--line-2); }
.file { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.file .meta { flex: 1; min-width: 0; }
.file .fname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload { margin-top: 12px; display: grid; grid-template-columns: 130px 1fr; gap: 8px; }
.upload input[type=file] { font-size: 13px; min-width: 0; }
.upload input[type=url] { width: 100%; }
.upload .actions { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.upload .or { grid-column: 1 / -1; margin-top: 4px; }
input[type=url] { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: var(--card); min-width: 0; }
details.help { font-size: 14px; color: var(--ink-2); }
details.help summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details.help ul { margin: 8px 0 0; padding-left: 18px; }
details.help li + li { margin-top: 4px; }
.add-prop { display: flex; gap: 8px; }
.add-prop input { flex: 1; }

/* timeline clean markers (host view) */
.tl-clean {
  position: absolute; top: 4px; z-index: 3; width: 16px; height: 16px; border-radius: 50%; padding: 0;
  border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); cursor: pointer;
}
.tl-clean:hover { transform: scale(1.15); border-color: #fff; }
.tl-clean.green { background: var(--ok); }
.tl-clean.red { background: var(--danger); width: 20px; height: 20px; top: 2px; }

/* month view (admin) */
.month-title { font-size: 34px; font-weight: 750; letter-spacing: -.02em; margin-right: 10px; }
.month-title span { font-weight: 400; color: var(--ink-3); margin-left: 10px; font-size: 24px; }
.toolbar .range button[aria-pressed=true] { background: var(--accent-soft); color: var(--accent); border-color: #b7e3e0; }
.prop-picker { display: flex; gap: 6px; flex-wrap: wrap; }
.prop-picker button { border-radius: 99px; padding: 7px 16px; }
.prop-picker button[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.month-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.month-card { padding: 14px; }
.mhead { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; font-size: 14px; color: var(--ink-3); padding: 4px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.mweek { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.mcell {
  aspect-ratio: 1 / 1; min-height: 64px; border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  padding: 10px 12px; position: relative; cursor: pointer; transition: border-color .1s, box-shadow .1s;
}
.mcell:hover { border-color: var(--ink-2); box-shadow: 0 2px 8px rgba(16, 24, 40, .08); }
.mcell:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mnum { font-size: 17px; font-weight: 650; }
.mcell.out { background: transparent; border-color: var(--line-2); }
.mcell.out .mnum { color: #b9c0ca; }
.mcell.past { background: var(--line-2); border-color: var(--line-2); }
.mcell.past .mnum { color: var(--ink-3); text-decoration: line-through; }
.mcell.blocked { background: repeating-linear-gradient(135deg, #eef0f3 0 6px, #e4e7ec 6px 12px); border-color: #e4e7ec; }
.mcell.blocked .mnum { text-decoration: line-through; color: var(--ink-3); }
.mcell.today { border: 2px solid var(--ink); }
.mclean {
  position: absolute; left: 8px; right: 8px; bottom: 8px; font-size: 11px; font-weight: 700; text-align: center;
  border-radius: 6px; padding: 3px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.legend .mclean { position: static; display: inline-block; padding: 2px 8px; }
.mclean.green { background: #dcf3e6; color: #0f5c39; }
.mclean.red { background: var(--danger); color: #fff; }
.mpill {
  position: absolute; z-index: 2; top: calc(46% / 1 - 18px + var(--lane) * 40px);
  height: 36px; border-radius: 18px; border: none; color: #fff; font: inherit; font-size: 14px; font-weight: 650;
  display: flex; align-items: center; gap: 8px; padding: 0 12px 0 4px; text-align: left; cursor: pointer;
  box-shadow: 0 2px 6px rgba(16, 24, 40, .2); white-space: nowrap; overflow: hidden;
}
.mweek .mpill { top: calc(54% - 18px + var(--lane) * 40px); }
.mpill span { overflow: hidden; text-overflow: ellipsis; }
.mpill:hover { filter: brightness(1.08); border-color: transparent; }
.mpill.airbnb { background: #222; }
.mpill.vrbo { background: var(--vrbo); }
.mpill.booking { background: var(--booking); }
.mpill.other { background: var(--other); }
.mpill.likely { background-image: repeating-linear-gradient(135deg, transparent 0 9px, rgba(255, 255, 255, .14) 9px 16px); }
.mpill.clip-l { border-top-left-radius: 0; border-bottom-left-radius: 0; padding-left: 12px; }
.mpill.clip-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.mpill-dot {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  font-size: 13px; font-weight: 750; background: rgba(255, 255, 255, .92); color: #222;
}
.mpill.airbnb .mpill-dot { background: var(--airbnb); color: #fff; }
.clean-panel { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; }
.clean-panel h2 { font-size: 20px; }
.next-mini { border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid; }
.next-mini.is-green { background: #eefaf3; border-color: #9fd8bb; }
.next-mini.is-red { background: var(--danger-soft); border-color: #f0a5a9; }
.nm-date { font-size: 24px; font-weight: 750; margin: 2px 0; }
.clean-list li.clickable { cursor: pointer; border-radius: 10px; padding-left: 6px; padding-right: 6px; margin: 0 -6px; }
.clean-list li.clickable:hover { background: var(--line-2); }
@media (max-width: 960px) {
  .month-layout { grid-template-columns: 1fr; }
  .clean-panel { position: static; max-height: none; }
}
@media (max-width: 640px) {
  .month-title { font-size: 26px; }
  .month-title span { font-size: 18px; }
  .mweek { gap: 3px; margin-bottom: 3px; }
  .mcell { border-radius: 9px; padding: 4px 5px; aspect-ratio: auto; height: 62px; min-height: 0; }
  .mnum { font-size: 13px; }
  /* on a phone the clean label becomes a dot in the corner, so it never collides with a booking */
  .mcell .mclean { left: auto; right: 4px; top: 5px; bottom: auto; width: 10px; height: 10px; padding: 0; border-radius: 50%; font-size: 0; }
  .mcell .mclean.green { background: var(--ok); }
  .mweek .mpill { height: 20px; border-radius: 10px; font-size: 10.5px; padding: 0 6px 0 2px; gap: 3px; top: calc(100% - 23px - var(--lane) * 22px); }
  .legend .mclean.green { background: #dcf3e6; }
  .mpill-dot { width: 16px; height: 16px; font-size: 9px; }
  .month-card { padding: 8px; }
}

/* property partners */
:root { --guests: #4c5bd4; }
.mpill.guests { background: var(--guests); }
.mpill.guests .mpill-dot { color: var(--guests); }
.partner-logo { background: var(--guests); }
.partners .people { border-top: 1px solid var(--line-2); }
@media (max-width: 960px) {
  .month-layout.partner .clean-panel { order: -1; } /* on a phone, partners see the cleaning list first */
}
@media (max-width: 640px) {
  .brand-sub { display: none; }
}

label.check { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0 0; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
label.check input { margin-top: 2px; accent-color: var(--accent); }

/* sync table on phones: one small card per calendar instead of a wide table */
@media (max-width: 640px) {
  .sync-table thead { display: none; }
  .sync-table, .sync-table tbody { display: block; }
  .sync-table tr {
    display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center;
    padding: 12px 0; border-bottom: 1px solid var(--line-2);
  }
  .sync-table tr:last-child { border-bottom: none; }
  .sync-table td { padding: 0; border: none; }
  .sync-table td:nth-child(1) { grid-column: 1; }
  .sync-table td:nth-child(2) { grid-column: 2; grid-row: 1; justify-self: end; }
  .sync-table td:nth-child(3) { grid-column: 1 / -1; }
  .sync-table td:nth-child(4) { grid-column: 1 / -1; font-size: 13px; color: var(--ink-3); }
  .sync-table td:nth-child(4)::before { content: "Last good update: "; }
  .sync-table td:nth-child(5), .sync-table td:nth-child(6) { display: none; }
}

/* partners across hosts */
.tick-props { display: flex; flex-wrap: wrap; gap: 6px; }
.tick-prop {
  display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 11px; border: 1px solid var(--line);
  border-radius: 99px; font-size: 13px; font-weight: 550; color: var(--ink-2); cursor: pointer; background: var(--card);
}
.tick-prop:has(input:checked) { border-color: #b7e3e0; background: var(--accent-soft); color: var(--accent); }
.tick-prop input { margin: 0; accent-color: var(--accent); flex: none; }
[hidden] { display: none !important; } /* layout classes like .row must not override the hidden attribute */
.prop-picker .owner { display: block; font-size: 11px; font-weight: 500; opacity: .7; }
.panel-cover small { display: block; font-size: 12px; font-weight: 500; opacity: .9; }
.who-btn { font-size: 13px; color: var(--ink-2); padding: 6px 10px; display: inline-flex; align-items: center; gap: 7px; }
.who-icon {
  width: 24px; height: 24px; border-radius: 50%; flex: none; background: var(--accent-soft) center / 14px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7c86' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E");
}
.pw-nag { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pw-nag .row { flex-wrap: nowrap; }
@media (max-width: 420px) {
  .who-name { display: none; } /* the person icon alone opens the account; its label names the user */
  .who-btn { padding: 6px; }
}

/* renaming a property */
.rename-btn {
  position: relative; margin-left: 8px; width: 36px; height: 36px; padding: 0; border-radius: 50%;
  border: none; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 16px; line-height: 36px;
  vertical-align: middle; text-shadow: none;
}
.rename-btn:hover { background: #fff; border: none; }
.panel-cover { justify-content: space-between; }
dialog.popup input[type=text], dialog.popup input[type=password] { width: 100%; }

/* cleans marked done */
.tag.done { background: var(--ok); color: #fff; }
.tag.late { background: #fdebc8; color: #8a5300; }
.mclean.done { background: var(--ok); color: #fff; }
.mclean.late { background: #fdebc8; color: #8a5300; }
.clean-list li.is-done .datebox { background: #e7f3ec; color: #4b7a62; }
.clean-list li.is-done .datebox small { color: #6c947f; }
.clean-list li.is-late .datebox { background: #fdebc8; color: #8a5300; }
.clean-list li.is-late .datebox small { color: #a8701c; }
.li-action { flex: none; align-self: center; }
.clean-list .li-top { flex-wrap: wrap; row-gap: 2px; }
.clean-list .li-top .muted { white-space: nowrap; }
.small-btn { padding: 6px 12px; font-size: 13px; border-radius: 8px; white-space: nowrap; }
.done-line { font-size: 13px; color: #1f6b47; margin-top: 2px; }
.done-tick { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 10px; font-weight: 800; margin-right: 6px; vertical-align: 1px; }
.done-note { color: var(--ink-2); font-style: italic; margin-top: 2px; }
.late-box { border: 1px solid #f3d79b; background: #fffaf0; border-radius: 12px; padding: 10px 12px 2px; margin-bottom: 12px; }
.late-box .next-label { color: #8a5300; }
textarea { width: 100%; font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; resize: vertical; }
textarea:focus-visible { outline: 3px solid rgba(14, 124, 134, .28); border-color: var(--accent); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
@media (max-width: 640px) {
  .mcell .mclean.done { background: var(--ok); }
  .mcell .mclean.late { background: #f0a43a; }
}

/* details dialogs (admin) */
dialog.popup.wide { width: min(500px, calc(100vw - 32px)); border-top-color: var(--accent); }
dialog.popup.wide.is-red { border-top-color: var(--danger); }
dialog.popup.wide.is-green { border-top-color: var(--ok); }
.dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 14px 0; font-size: 15px; }
.dl dt { color: var(--ink-3); }
.dl dd { margin: 0; }
.btn-link {
  display: block; text-align: center; margin-top: 10px; padding: 10px; border-radius: 8px;
  border: 1px solid var(--line); color: var(--accent); font-weight: 600; text-decoration: none;
}
.btn-link:hover { background: var(--accent-soft); }
.day-prop + .day-prop { margin-top: 16px; }
.day-prop h3 { margin-bottom: 8px; }
.day-prop > * + * { margin-top: 8px; }
.stay-line {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-weight: 400;
}
.stay-line:hover { background: var(--line-2); }
.sl-what { font-weight: 650; min-width: 70px; }
.sl-sub { flex: 1; color: var(--ink-2); font-size: 14px; min-width: 0; }
.stay-line .chev { font-size: 22px; }
.swatch.dot { width: 10px; height: 10px; border-radius: 50%; }

/* cleaners and sync (admin) */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two-col input { width: 100%; }
.people > * + * { border-top: 1px solid var(--line-2); }
.person { padding: 10px 0; }
.person > .row + .row { margin-top: 10px; }
.person input[type=text] { flex: 1 1 200px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #dcf3e6; color: #0f5c39; display: grid; place-items: center; font-weight: 700; flex: none; }
.tab-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 6px; vertical-align: 1px; }
.tab-dot.ok { background: var(--ok); }
.tab-dot.bad { background: var(--danger); }
.tab-dot.warn { background: #d99a1e; }
.sync-banner { border-radius: 12px; padding: 14px 16px; border: 1px solid; font-size: 15px; }
.sync-banner.ok { background: #eefaf3; border-color: #9fd8bb; color: #0f5c39; }
.sync-banner.bad { background: var(--danger-soft); border-color: #f2c4c6; color: #8a1f25; }
.sync-banner.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 600; padding: 0 12px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
tr:last-child td { border-bottom: none; }
.num-cell { text-align: right; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.status i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.status.ok { color: var(--ok); }
.status.ok i { background: var(--ok); }
.status.bad { color: var(--danger); }
.status.bad i { background: var(--danger); }
.status.warn { color: var(--warn-ink); }
.status.warn i { background: #d99a1e; }

/* cleaner: property list */
.brand-sub { font-weight: 500; color: var(--ink-3); }
.brand-sub::before { content: "·"; margin: 0 6px 0 0; }
.prop-list { display: grid; gap: 10px; }
.prop-tile {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow); color: inherit; text-decoration: none; border-left: 5px solid var(--ok);
}
.prop-tile:hover { border-color: #c9d0da; border-left-color: var(--ok); }
.prop-tile.is-red, .prop-tile.is-red:hover { border-left-color: var(--danger); }
.tile-main { flex: 1; min-width: 0; }
.tile-name { font-size: 18px; font-weight: 700; }
.tile-next { margin: 4px 0 2px; font-size: 15px; }
.tile-next .tag { margin-right: 4px; vertical-align: 1px; }
.chev { font-size: 28px; color: var(--ink-3); line-height: 1; }
.back { display: inline-block; color: var(--accent); text-decoration: none; font-weight: 600; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- cleaner's page ---------- */
.clean-main { max-width: 640px; }
.clean-logo { background: var(--ok); }
.cleaner .topbar .who { max-width: 50%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.next { border-width: 2px; padding: 22px; }
.next.is-green { border-color: #9fd8bb; background: linear-gradient(180deg, #eefaf3, #fff 70%); }
.next.is-red { border-color: #f0a5a9; background: linear-gradient(180deg, #fdeeee, #fff 70%); }
.next-label { font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--ok); }
.is-red .next-label, .is-red > .next-label { color: var(--danger); }
.is-blue .next-label { color: var(--accent); }
.next-date { font-size: 40px; font-weight: 750; line-height: 1.1; margin-top: 4px; letter-spacing: -.01em; }
.next-date span { font-size: 16px; font-weight: 500; color: var(--ink-3); margin-left: 10px; letter-spacing: 0; }
.next-sub { font-size: 17px; color: var(--ink-2); margin-top: 2px; }
.next-prop { font-weight: 650; margin-top: 8px; font-size: 16px; }
.facts { margin-top: 12px; }
.fact { font-size: 16px; line-height: 1.45; }
.fact + .fact { margin-top: 6px; }
.fact.red { color: #8a1f25; background: var(--danger-soft); border-radius: 10px; padding: 10px 12px; }

dialog.popup {
  border: none; border-radius: 18px; padding: 24px; width: min(420px, calc(100vw - 32px));
  box-shadow: 0 20px 50px rgba(16, 24, 40, .25); border-top: 8px solid var(--ok);
}
dialog.popup.is-red { border-top-color: var(--danger); }
dialog.popup::backdrop { background: rgba(16, 24, 40, .45); }
dialog.popup form { margin-top: 18px; }
dialog.popup form button { width: 100%; padding: 11px; font-size: 16px; }
.pop-date { font-size: 34px; font-weight: 750; line-height: 1.15; margin-top: 4px; }
.pop-date.small-date { font-size: 22px; margin: 0 0 10px; }
.daybox { border-radius: 12px; padding: 12px 14px; border: 1px solid var(--line); border-left-width: 5px; }
.daybox + .daybox { margin-top: 10px; }
.daybox.is-green { border-left-color: var(--ok); }
.daybox.is-red { border-left-color: var(--danger); }
.daybox.is-blue { border-left-color: var(--accent); }
.daybox .facts { margin-top: 6px; }
.daybox .fact { font-size: 15px; }

.key { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.key span { display: flex; align-items: center; gap: 8px; }
.key .tag { flex: none; font-style: normal; }
.swatch-stay { width: 30px; height: 16px; border-radius: 4px; background: #e9f0fd; border: 1px solid #d3e0fa; display: inline-block; flex: none; }

.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; line-height: 1.3; white-space: nowrap; }
.tag.green { background: #dcf3e6; color: #0f5c39; }
.tag.red { background: var(--danger); color: #fff; }
.tag.blue { background: var(--accent-soft); color: #0b6670; }

.month h3 { font-size: 16px; margin-bottom: 8px; }
.grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.grid.head div { text-align: center; font-size: 12px; color: var(--ink-3); font-weight: 600; padding-bottom: 2px; }
.cell {
  min-height: 76px; border: 1px solid var(--line-2); border-radius: 9px; padding: 4px; background: var(--card);
  display: flex; flex-direction: column; gap: 3px; align-items: stretch; text-align: left; font: inherit; font-weight: 400;
}
button.cell { cursor: pointer; }
button.cell:hover { border-color: #c9d0da; }
.cell .num { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cell .tag { font-size: 10.5px; padding: 2px 3px; text-align: center; white-space: normal; line-height: 1.15; overflow-wrap: anywhere; }
.cell.out { background: transparent; border-color: transparent; }
.cell.out .num { color: #c3c9d2; }
.cell.past { opacity: .5; }
.cell.staying { background: #eef3fd; border-color: #dbe5fb; }
.cell.green { border-color: #9fd8bb; }
.cell.red { background: #fde8e9; border: 2px solid var(--danger); }
.cell.today .num { background: var(--ink); color: #fff; border-radius: 6px; width: 22px; text-align: center; }

.clean-list { list-style: none; margin: 0; padding: 0; }
.clean-list li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.clean-list li:last-child { border-bottom: none; }
.clean-list li.is-red .datebox { background: var(--danger); color: #fff; }
.clean-list li.is-red .datebox small { color: #ffe1e3; }
.datebox { flex: none; width: 56px; border-radius: 10px; background: #dcf3e6; color: #0f5c39; text-align: center; padding: 5px 0; line-height: 1.15; }
.datebox b { display: block; font-size: 22px; }
.datebox small { display: block; font-size: 11px; font-weight: 650; text-transform: uppercase; color: #2d7a54; }
.li-top { display: flex; gap: 8px; align-items: center; }
.li-prop { font-weight: 650; margin-top: 2px; }

@media (max-width: 640px) {
  .next-date { font-size: 34px; }
  .cell { min-height: 62px; padding: 3px; border-radius: 7px; }
  .grid { gap: 3px; }
  .cell .tag { font-size: 9.5px; padding: 2px 2px; }
}

@media (max-width: 640px) {
  .topbar-inner { flex-wrap: wrap; gap: 8px 12px; }
  .tabs { order: 3; width: 100%; }
  .tl-corner, .tl-name { width: 116px; padding: 0 8px; }
  .props { grid-template-columns: 1fr; }
  .jobs { grid-template-columns: 1fr; }
  .card { padding: 14px; }
}

/* cleaning teams: who does each clean */
.who-line { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; }
.who-k { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.who-select { padding: 4px 28px 4px 8px; min-height: 32px; font-size: 13px; width: auto; max-width: 180px; }
.who-line.nobody .who-select { border-color: #f0a5a9; background-color: var(--danger-soft); color: #8a1f25; }
.tag.nobody { background: var(--danger-soft); color: #8a1f25; }
.usual-row { padding: 10px 0; }
.usual-row select { width: auto; min-width: 150px; }

/* account: alerts and the calendar link */
dialog.popup.account { max-height: 90vh; overflow-y: auto; }
.acct-box { border-top: 1px solid var(--line-2); padding-top: 14px; margin-top: 14px; }
.acct-h { margin: 0 0 8px; font-size: 15px; }
dialog.popup input[type=email] { width: 100%; }
.cal-btns { margin-top: 8px; }
.cal-btns .btn-link { margin: 0; flex: 1 1 180px; }
.linkish { border: none; background: none; padding: 0; color: var(--accent); text-decoration: underline; font-size: inherit; cursor: pointer; }

/* access notes, checklist and problems */
.info-editor { border-top: 1px solid var(--line-2); margin-top: 14px; padding-top: 12px; }
.info-editor h3 { margin: 0 0 8px; }
.info-box { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0 0 14px; background: var(--card); }
.info-box summary { cursor: pointer; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.info-notes { white-space: pre-wrap; font-size: 14px; margin-top: 10px; overflow-wrap: anywhere; }
.info-list { margin: 10px 0 2px 20px; padding: 0; font-size: 14px; }
.info-list li + li { margin-top: 3px; }
.info-empty { margin: 0 0 12px; }
.issues { margin: 0 0 14px; }
.issue-box { border: 1px solid #f0a5a9; background: var(--danger-soft); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.issue-box .next-label { color: #8a1f25; }
.issue-box ul { list-style: none; margin: 6px 0 0; padding: 0; }
.issue-box li { padding: 8px 0; border-top: 1px solid #f5c9cb; overflow-wrap: anywhere; }
.issue-box li:first-child { border-top: none; }
.issue-box li .small-btn { margin-top: 6px; }
.fixed-line { margin-bottom: 6px; overflow-wrap: anywhere; }
.issue-dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; vertical-align: 1px; }
.tick-head { margin-top: 14px; font-weight: 650; font-size: 14px; }
.tick-list { margin-top: 4px; }
.tick-item { font-size: 15px; padding: 6px 0; margin: 0; }
.tick-item input { width: 20px; height: 20px; }
.done-missed { font-size: 13px; color: #8a5300; margin-top: 2px; }

/* the notes and checklist: a preview on the card, a large editor in a pop-up */
.info-preview {
  display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; min-height: 96px; text-align: left;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-weight: 400; cursor: pointer;
}
.info-preview:hover { border-color: var(--accent); background: var(--accent-soft); }
.info-preview.empty { border-style: dashed; }
.ip-label { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.ip-edit { color: var(--accent); }
.ip-text { white-space: pre-wrap; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.ip-empty { font-size: 14px; color: var(--ink-3); }
.ip-list { margin: 0 0 0 18px; padding: 0; font-size: 14px; color: var(--ink); }
.ip-more { list-style: none; margin-left: -18px; color: var(--ink-3); }
dialog.popup.wide.big { width: min(720px, calc(100vw - 32px)); max-height: 92vh; overflow-y: auto; }
dialog.popup.big textarea { min-height: 180px; font-size: 15px; line-height: 1.5; }

/* Access and Checklist on each clean */
.clean-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.clean-link {
  padding: 4px 10px; min-height: 30px; border-radius: 99px; border: 1px solid #b7e3e0; background: var(--accent-soft);
  color: var(--accent); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.clean-link:hover { background: #d3efed; border-color: var(--accent); }
.clean-link.all { border-color: #bfe3cd; background: #e7f3ec; color: #2f6d4c; }
.access-text { white-space: pre-wrap; font-size: 17px; line-height: 1.55; margin: 14px 0 4px; overflow-wrap: anywhere; }
.tick-progress { margin-top: 10px; font-size: 13px; font-weight: 650; color: var(--ink-3); }
