/* Sealife OS in the Sealife Stays brand: navy, warm ivory, champagne gold.
   Loaded after app.css on every app page and on the sign-in page (not on the public website). */
:root {
  --navy: #142e40; --navy-2: #1b3a50; --ivory: #f5f4ef; --paper: #fffdf8;
  --gold: #dfc184; --gold-hi: #e9d29e; --gold-line: #b49a65; --gold-ink: #7a6542;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  /* re-point the app's own tokens */
  --ink: #142e40; --muted: #5a6a76; --faint: #a9b1b6;
  --soft: #f7f5ef; --soft2: #efece4; --line: #e6e2d8; --line2: #d5d0c4;
  --sea: #1f4a66; --sea-deep: #142e40; --sea-soft: #eaf0f3; --sand: #b49a65;
}
body { background: var(--paper); }
a { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold-line); outline-offset: 2px; }

/* page titles in the brand serif */
.page h1 { font: 400 2.2rem/1.1 var(--display); letter-spacing: -.02em; }
.page h2 { letter-spacing: -.01em; }

/* top bar: navy, logo left, gold underline on the current section */
.topbar { background: var(--navy); border-bottom: 0; color: #fff; height: 76px; }
.topbar .brand { color: #fff; }
.navtoggle { display: none; }
.mainnav a { color: rgba(255,255,255,.72); border-radius: 0; }
.mainnav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.mainnav a[aria-current] { color: #fff; }
.mainnav a[aria-current]::after { background: var(--gold); bottom: -16px; height: 3px; border-radius: 0; }
.who { color: rgba(255,255,255,.7); }
.who a { color: #fff; }
.navbadge { background: var(--gold) !important; color: var(--navy) !important; }

/* logo (same as the website) */
.sx-logo { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.sx-emblem { width: 40px; height: 40px; flex: none; }
.sx-word { display: grid; gap: 6px; }
.sx-word-main { font: 600 25px/0.9 "Cormorant Garamond", Georgia, serif; letter-spacing: .24em; text-transform: uppercase; margin-right: -.24em; }
.sx-word-sub { font: 600 7.5px/1 var(--font); letter-spacing: .38em; text-transform: uppercase; opacity: .85; }

/* buttons and controls */
.btn { border-radius: 4px; }
.btn:hover { border-color: var(--navy); }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
input, select, textarea { border-radius: 4px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-line); outline-offset: -1px; border-color: var(--navy); }
.seg a[aria-current] { color: var(--navy); }
.flash { background: #f3efe3; border-color: #e4dcc6; border-left: 3px solid var(--gold-line); border-radius: 4px; }
.note { background: var(--soft); }

/* sign-in page */
.lg { display: grid; grid-template-columns: 55fr 45fr; min-height: 100vh; background: var(--ivory); }
.lg-photo { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; padding: 36px 44px; color: #fff; background: var(--navy); }
.lg-photo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.lg-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13,35,51,.45), rgba(13,35,51,.1) 40%, rgba(13,35,51,.55)); }
.lg-brand { color: #fff; text-decoration: none; align-self: flex-start; }
.lg-brand .sx-emblem { width: 46px; height: 46px; }
.lg-brand .sx-word-main { font-size: 31px; }
.lg-brand .sx-word-sub { font-size: 8.5px; letter-spacing: .42em; }
.lg-tag { margin: 0; max-width: 26em; font: 400 1.35rem/1.35 var(--display); }
.lg-side { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 24px; padding: 48px 32px; }
.lg-form { width: min(400px, 100%); display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: 36px 36px 30px; }
.lg-form h1 { margin: 0; font: 400 2.3rem/1.05 var(--display); letter-spacing: -.02em; color: var(--navy); }
.lg-sub { margin: -6px 0 6px; color: var(--muted); }
.lg-form label { color: var(--navy); font-weight: 600; font-size: .85rem; }
.lg-form input { min-height: 48px; font-size: 1rem; }
.lg-btn { min-height: 50px; margin-top: 6px; border: 0; background: var(--gold); color: var(--navy); font: 600 1rem var(--font); cursor: pointer; }
.lg-btn:hover { background: var(--gold-hi); }
.lg-error { margin: 0; padding: 10px 12px; background: var(--terra-soft); color: var(--terra); border-left: 3px solid var(--terra); font-weight: 500; }
.lg-help { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
.lg-back { color: var(--muted); font-size: .9rem; }

@media (max-width: 860px) {
  .lg { grid-template-columns: 1fr; }
  .lg-photo { min-height: 240px; padding: 22px 24px; }
  .lg-brand .sx-emblem { width: 38px; height: 38px; }
  .lg-brand .sx-word-main { font-size: 25px; }
  .lg-tag { font-size: 1.1rem; }
  .lg-side { justify-content: flex-start; padding: 28px 20px 40px; }
  .lg-form { padding: 26px 22px 22px; }
}
@media (max-width: 720px) {
  .topbar { height: 64px; }
  /* Phones: the menu opens from a Menu button instead of running off the screen. */
  .topbar { position: sticky; }
  .navtoggle { display: inline-grid; gap: 4px; align-content: center; justify-items: center; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; background: none; cursor: pointer; order: 3; }
  .navtoggle span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; }
  .mainnav { display: none; }
  .topbar.nav-open .mainnav { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; padding: 8px 12px 12px; background: var(--navy); box-shadow: 0 10px 24px rgba(0,0,0,.18); z-index: 30; }
  .topbar.nav-open .mainnav a { padding: 12px 10px; min-height: 44px; }
  .topbar.nav-open .mainnav a[aria-current]::after { display: none; }
  .topbar.nav-open .mainnav a[aria-current] { box-shadow: inset 3px 0 0 var(--gold, #dfc184); }
  .who { order: 2; margin-left: auto; }
  /* app.css hides every span in .brand on phones, which also hid the Sealife logo. */
  .topbar .brand .sx-logo { display: inline-flex; }
  .topbar .brand .sx-word { display: grid; }
  .topbar .brand .sx-word-main, .topbar .brand .sx-word-sub { display: block; }
  .topbar .brand .sx-word-main { font-size: 20px; }
  .topbar .brand .sx-emblem { width: 32px; height: 32px; }
  .sx-emblem { width: 34px; height: 34px; }
  .sx-word-main { font-size: 21px; }
  .sx-word-sub { font-size: 6.5px; }
  .mainnav a[aria-current]::after { bottom: -10px; }
}

/* ---------- Cleaning: plain words, big colours, one row per clean ---------- */
.cx-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.cx-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 10px; color: #fff; }
.cx-n { font: 400 2.4rem/1 var(--display); }
.cx-l { font-size: .92rem; font-weight: 500; line-height: 1.3; }
.cx-tile--navy { background: var(--navy); }
.cx-tile--blue { background: #2d6cb5; }
.cx-tile--red { background: #c0392b; }
.cx-tile--green { background: #3f7d4e; }
.cx-tile--sand { background: #efe7d3; color: #5b4a24; }

.cx-problems { margin-bottom: 28px; padding: 18px 20px; border-radius: 10px; background: #fdecea; border: 2px solid #e8a79c; }
.cx-problems h2 { margin: 0 0 10px; color: #8c1d0f; }
.cx-problem { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid #f1c6be; }
.cx-problem:first-of-type { border-top: 0; }
.cx-warn { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #c0392b; color: #fff; font-weight: 700; font-size: 1.1rem; }
.cx-problem-text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.cx-problem-text b { font-size: 1.02rem; }
.cx-fixed { background: #3f7d4e; border-color: #3f7d4e; color: #fff; }
.cx-fixed:hover { background: #356a42; border-color: #356a42; }
.cx-quiet { color: var(--muted); font-size: .88rem; }
.cx-red { color: #c0392b; }

.cx-day { margin-bottom: 26px; }
.cx-dayhead { display: flex; align-items: baseline; gap: 12px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--navy); }
.cx-dayname { font: 400 1.7rem/1 var(--display); color: var(--navy); }
.cx-daydate { font-size: 1rem; font-weight: 600; color: var(--muted); }
.cx-daycount { margin-left: auto; font-size: .9rem; font-weight: 600; color: var(--navy); background: var(--soft2); padding: 4px 10px; border-radius: 999px; }
.cx-day.is-today .cx-dayhead { border-bottom-color: var(--gold-line); }
.cx-day.is-today .cx-dayname::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 10px; border-radius: 50%; background: var(--gold); vertical-align: middle; }

.cx-job { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: 20px; align-items: center;
  margin-bottom: 10px; padding: 16px 18px 16px 22px; background: #fff; border: 1px solid var(--line); border-left: 8px solid var(--flat, var(--navy)); border-radius: 10px; color: var(--ink); text-decoration: none; }
.cx-flat h3 { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.2; }
.cx-flat h3 a { text-decoration: none; color: var(--navy); }
.cx-flat h3 a:hover { text-decoration: underline; }
.cx-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.cx-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.st-todo .cx-status { background: #e5eef7; color: #1f4f80; }
.st-started .cx-status { background: #fcefd3; color: #8a5a00; }
.st-done .cx-status { background: #e1f1e4; color: #2f6b3d; }
.st-checked .cx-status { background: #2f6b3d; color: #fff; }
.st-late .cx-status { background: #c0392b; color: #fff; }
.cx-job.st-late { border-color: #e8a79c; border-left-color: #c0392b; background: #fff7f5; }
.cx-job.st-done, .cx-job.st-checked { background: #f8fbf8; }
.cx-times p { margin: 0 0 4px; }
.cx-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: var(--soft2); color: var(--navy); font-weight: 700; font-size: .85rem; }
.cx-ico--out { background: #fde4dc; color: #a2401f; }
.cx-ico--in { background: #dcefe2; color: #2f6b3d; }
.cx-rush { display: inline-block; margin: 4px 0 0 !important; padding: 4px 10px; border-radius: 6px; background: #fcefd3; color: #8a5a00; font-weight: 700; font-size: .85rem; }
.cx-bar { height: 12px; border-radius: 999px; background: var(--soft2); overflow: hidden; }
.cx-bar span { display: block; height: 100%; border-radius: 999px; background: #e0a43a; }
.st-done .cx-bar span, .st-checked .cx-bar span { background: #3f7d4e; }
.cx-progress p { margin: 6px 0 0; font-size: .9rem; color: var(--muted); }
.cx-progress p b { color: var(--navy); }
.cx-who { display: grid; grid-template-columns: auto 1fr 1fr; gap: 10px; align-items: end; }
.cx-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 2px; }
.cx-avatar.is-empty { background: #fdecea; color: #c0392b; border: 2px dashed #c0392b; }
.cx-field { font-size: .78rem; font-weight: 600; color: var(--muted); }
.cx-field select { margin-top: 4px; padding: 8px 10px; }
.cx-empty { padding: 36px; text-align: center; background: var(--soft); border-radius: 10px; }

/* cleaner's phone list */
.cx-list { display: grid; gap: 12px; margin-bottom: 24px; }
.cx-job--phone { grid-template-columns: 1fr; gap: 12px; }
.cx-job--phone .cx-flat { display: grid; gap: 4px; justify-items: start; }
.cx-job--phone .cx-flat h3 { margin: 0 0 4px; font-size: 1.35rem; color: var(--navy); }
.cx-when { margin: 0; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.cx-open { display: block; padding: 12px; border-radius: 8px; background: var(--navy); color: #fff; text-align: center; font-weight: 700; }
.cx-subtitle { margin: 8px 0 2px; }

@media (max-width: 1100px) {
  .cx-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cx-job { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .cx-who { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .cx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cx-tile { padding: 14px; }
  .cx-n { font-size: 2rem; }
  .cx-job { grid-template-columns: 1fr; gap: 12px; }
  .cx-who { grid-template-columns: auto 1fr; }
  .cx-who .cx-field:last-child { grid-column: 1 / -1; }
  .cx-problem { flex-wrap: wrap; }
}
.topbar .who a.who-name { color: rgba(255,255,255,.85); }

/* ---------- Owner dashboard: a calm, printed-statement feel ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ow-empty { padding: 48px; background: var(--ivory); text-align: center; }
.ow-empty h1 { font: 400 2.4rem/1.1 var(--display); }
.ow-label { margin: 0 0 6px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.ow-label--gold { color: var(--gold); }
.ow-faint { color: var(--muted); font-size: .92rem; margin: 0 0 12px; }
.ow-warn { margin: 0 0 12px; color: #a2311f; font-weight: 600; }

/* hero: the flat itself */
.ow-hero { position: relative; isolation: isolate; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  min-height: 300px; margin: -8px 0 0; padding: 40px 44px 36px; color: #fff; background: var(--navy); overflow: hidden; }
.ow-hero:not(.has-photo)::before { content: ""; position: absolute; z-index: -1; right: -60px; top: -40px; width: 380px; height: 380px; opacity: .07; background: url("emblem-white.svg") center / contain no-repeat; }
.ow-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.ow-hero.has-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13,35,51,.82), rgba(13,35,51,.35) 60%, rgba(13,35,51,.15)), linear-gradient(0deg, rgba(13,35,51,.55), transparent 55%); }
.ow-hello { display: flex; gap: 14px; align-items: baseline; margin: 0 0 14px; font-weight: 600; color: var(--gold); }
.ow-hello span { color: rgba(255,255,255,.7); font-weight: 400; font-size: .9rem; }
.page .ow-hero h1 { margin: 0 0 6px; color: #fff; font: 400 clamp(2.4rem, 4.4vw, 3.6rem)/1 var(--display); letter-spacing: -.025em; }
.ow-meta { margin: 0 0 18px; color: rgba(255,255,255,.82); font-size: 1.02rem; }
.ow-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ow-chips li { padding: 6px 12px; border: 1px solid rgba(255,255,255,.35); font-size: .82rem; font-weight: 600; letter-spacing: .02em; backdrop-filter: blur(2px); }
.ow-chips li.is-ok::before { content: "✓"; margin-right: 6px; color: var(--gold); }
.ow-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ow-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 1.5px solid var(--gold); background: var(--gold); color: var(--navy); font: 600 .95rem var(--font); text-decoration: none; cursor: pointer; border-radius: 0; }
.ow-btn:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: var(--navy); }
.ow-btn--line { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.ow-btn--line:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.ow-btn--navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.ow-btn--navy:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }

/* getting ready */
.ow-ready { padding: 28px 44px 22px; background: var(--ivory); border-bottom: 1px solid var(--line); }
.ow-ready-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.ow-ready h2 { margin: 0 0 4px; font: 400 1.7rem/1.15 var(--display); color: var(--navy); }
.ow-ready-top p { margin: 0; color: var(--muted); }
.ow-pct { font: 400 3.2rem/1 var(--display); color: var(--navy); }
.ow-pct small { font-size: .5em; margin-left: 2px; }
.ow-track { display: flex; gap: 4px; margin: 20px 0 22px; padding: 0; list-style: none; }
.ow-track li { flex: 1; height: 8px; background: #e3ddcf; }
.ow-track li.is-done { background: var(--navy); }
.ow-track li.is-now { background: var(--gold); box-shadow: 0 0 0 3px rgba(223,193,132,.35); }
.ow-ready-cols { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 28px; align-items: start; }
.ow-step { margin: 0 0 8px; font-weight: 600; color: var(--navy); font-size: 1.02rem; line-height: 1.35; }
.ow-step--quiet { font-weight: 500; color: var(--muted); }
.ow-yours { padding: 14px 16px; background: #fbf1d8; border-left: 3px solid var(--gold-line); }
.ow-yours.is-clear { background: #fff; border-left-color: var(--line2); }
.ow-yours ul { margin: 0; padding: 0 0 0 18px; }
.ow-yours li { margin: 4px 0; font-weight: 600; color: var(--navy); }
.ow-yours li span { font-weight: 400; color: var(--muted); font-size: .88rem; }
.ow-who { display: inline-block; padding: 2px 8px; font-size: .72rem; font-weight: 700; white-space: nowrap; background: var(--soft2); color: var(--muted); }
.ow-who--owner { background: #fbf0d6; color: #7a5a10; }
.ow-who--us { background: #e5eef7; color: #1f4f80; }
.ow-who--both { background: #ece6f6; color: #5a4790; }
.ow-who--mta { background: #e8efe9; color: #2f6b3d; }
.ow-allsteps { margin-top: 18px; }
.ow-allsteps summary { cursor: pointer; font-weight: 600; color: var(--navy); font-size: .9rem; }
.ow-allsteps ol { margin: 10px 0 0; padding-left: 22px; columns: 2; column-gap: 36px; }
.ow-allsteps li { break-inside: avoid; display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: .9rem; border-bottom: 1px solid var(--line); }
.ow-allsteps li.is-done span:first-child { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }

/* money band */
.ow-money { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 40px; align-items: stretch; padding: 32px 44px; background: var(--navy); color: #fff; margin-bottom: 28px; }
.ow-big { margin: 0; font: 400 clamp(3rem, 5vw, 4.2rem)/1 var(--display); color: #fff; letter-spacing: -.02em; }
.ow-money .ow-faint { color: rgba(255,255,255,.6); margin-top: 8px; }
.ow-figs { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 28px; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.ow-figs dt { font-size: .78rem; color: rgba(255,255,255,.6); }
.ow-figs dd { margin: 2px 0 0; font: 400 1.35rem/1.2 var(--display); color: #fff; }
.ow-chart { margin: 0; display: flex; flex-direction: column; }
.ow-bars { flex: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; min-height: 190px; }
.ow-col { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; }
.ow-val { font-size: .66rem; color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden; height: 1.2em; }
.ow-barwrap { position: relative; display: flex; align-items: flex-end; border-bottom: 1px solid rgba(255,255,255,.25); }
.ow-bar { display: block; width: 100%; background: rgba(223,193,132,.55); }
.ow-col.is-now .ow-bar { background: var(--gold); }
.ow-col.is-future .ow-bar { background: rgba(255,255,255,.12); }
.ow-mon { margin-top: 6px; font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.65); }
.ow-col.is-now .ow-mon { color: var(--gold); }
.ow-chart figcaption { margin-top: 10px; font-size: .78rem; color: rgba(255,255,255,.55); }

/* panels */
.ow-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; margin-bottom: 28px; }
.ow-panel { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: 22px 26px; }
.ow-panel + .ow-panel, .ow-cols + .ow-panel { margin-bottom: 28px; }
.ow-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.ow-panel h2 { margin: 0; font: 400 1.6rem/1.15 var(--display); color: var(--navy); }
.ow-panel-head p { margin: 0; color: var(--muted); }
.ow-panel-head p b { color: var(--navy); }

.ow-ribbon { display: grid; grid-template-columns: repeat(42, minmax(0, 1fr)); gap: 2px; margin: 18px 0 8px; }
.ow-day { position: relative; height: 26px; background: var(--soft2); }
.ow-day.is-weekend { background: #e8e3d7; }
.ow-day em { position: absolute; bottom: 100%; left: 0; margin-bottom: 3px; font-style: normal; font-size: .68rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.ow-day.is-block { background: repeating-linear-gradient(135deg, #e6e2d6 0 4px, #d6d0c1 4px 8px); }
.ow-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 14px; font-size: .76rem; color: var(--muted); }
.ow-key span { display: inline-block; width: 10px; height: 10px; margin-right: 4px; vertical-align: -1px; }
.ow-key span.is-block { background: repeating-linear-gradient(135deg, #e6e2d6 0 3px, #d6d0c1 3px 6px); }
.ow-stays { list-style: none; margin: 0; padding: 0; }
.ow-stays li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.ow-date { display: grid; place-items: center; width: 50px; height: 50px; background: var(--ivory); color: var(--navy); font-size: .7rem; font-weight: 700; text-transform: uppercase; line-height: 1.05; }
.ow-date b { font: 400 1.45rem/1 var(--display); text-transform: none; }
.ow-stays .is-owner .ow-date { background: #fbf0d6; }
.ow-stays .is-block .ow-date { background: var(--soft2); color: var(--muted); }
.ow-stay { display: grid; gap: 1px; min-width: 0; }
.ow-stay b { color: var(--navy); }
.ow-stay span { color: var(--muted); font-size: .88rem; }
.ow-src { padding: 4px 10px; color: #fff; font-size: .74rem; font-weight: 700; }
.ow-src.src-block { color: var(--muted); }

.ow-ledger { list-style: none; margin: 0; padding: 0; }
.ow-ledger a { display: grid; grid-template-columns: 1fr auto auto 22px; gap: 16px; align-items: baseline; padding: 14px 4px; border-top: 1px solid var(--line); color: var(--navy); text-decoration: none; }
.ow-ledger li:first-child a { border-top: 0; }
.ow-ledger a:hover { background: var(--ivory); }
.ow-ledger-month { font: 400 1.25rem/1.2 var(--display); }
.ow-ledger-month small { font-family: var(--font); font-size: .8rem; color: var(--muted); }
.ow-ledger-stays { font-size: .85rem; color: var(--muted); }
.ow-ledger-amt { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 70px; text-align: right; }
.ow-ledger-go { color: var(--gold-line); font-weight: 700; }

/* licence and safety, editable */
.ow-count { padding: 4px 10px; font-size: .8rem; font-weight: 700; background: #fdecea; color: #a2311f; }
.ow-count.is-ok { background: #e1f1e4; color: #2f6b3d; }
.ow-safety-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
.ow-field { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--navy); }
.ow-field span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; border: 2px solid #e0a43a; vertical-align: 0; }
.ow-field.is-ok span::before { background: #3f7d4e; border-color: #3f7d4e; }
.ow-field input { margin: 0; min-height: 44px; }
.ow-switch { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--ivory); cursor: pointer; font-size: .92rem; font-weight: 500; color: var(--navy); }
.ow-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ow-knob { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: #d6d0c3; transition: background .15s; }
.ow-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.ow-switch input:checked + .ow-knob { background: #3f7d4e; }
.ow-switch input:checked + .ow-knob::after { transform: translateX(18px); }
.ow-switch input:focus-visible + .ow-knob { outline: 3px solid var(--gold-line); outline-offset: 2px; }
.ow-safety-save { grid-column: 1 / -1; }

.ow-ask { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: start; background: var(--ivory); border-top-color: var(--gold-line); }
.ow-ask h2 { margin-bottom: 8px; }
.ow-askform { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.ow-askform label { color: var(--navy); font-weight: 600; font-size: .85rem; }
.ow-wide { grid-column: 1 / -1; }

@media (prefers-reduced-motion: reduce) { .ow-knob, .ow-knob::after { transition: none; } }
@media (max-width: 1000px) {
  .ow-money, .ow-cols, .ow-ask { grid-template-columns: 1fr; }
  .ow-ready-cols { grid-template-columns: 1fr 1fr; }
  .ow-yours { grid-column: 1 / -1; }
  .ow-safety-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ow-hero { min-height: 260px; padding: 26px 20px 22px; margin: -8px -16px 0; }
  .ow-hero-actions { width: 100%; }
  .ow-hero-actions .ow-btn { flex: 1; }
  .ow-ready, .ow-money { padding: 22px 20px; margin-left: -16px; margin-right: -16px; }
  .ow-ready-cols, .ow-safety-form, .ow-askform { grid-template-columns: 1fr; }
  .ow-allsteps ol { columns: 1; }
  .ow-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
  .ow-val { visibility: hidden; height: 0; }
  .ow-bars { gap: 4px; min-height: 140px; }
  .ow-panel { padding: 18px 16px; }
  .ow-ribbon { gap: 1px; }
  .ow-ledger a { grid-template-columns: 1fr auto 18px; }
  .ow-ledger-stays { display: none; }
}

/* monthly statement in the brand */
.statement { border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 0; background: #fff; }
.st-head { border-bottom: 2px solid var(--navy); }
.st-brand { color: var(--navy); }
.st-brand .sx-emblem { width: 48px; height: 48px; }
.st-brand .sx-word-main { font-size: 30px; }
.st-brand .sx-word-sub { font-size: 8.5px; letter-spacing: .42em; }
.st-meta h1 { font: 400 1.9rem/1.1 var(--display); color: var(--navy); }
.st-kpis div { border-radius: 0; background: var(--ivory); border-color: var(--line); }
.st-kpis span { font: 400 1.6rem/1.2 var(--display); color: var(--navy); }
.st-kpis .st-owner { background: var(--navy); border-color: var(--navy); color: rgba(255,255,255,.75); }
.st-kpis .st-owner span { color: var(--gold); }
.st-sum .st-total td { border-top-color: var(--navy); font-family: var(--display); font-size: 1.4rem; font-weight: 400; }
@media print {
  .statement { border: 0; }
  .st-kpis .st-owner { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.ow-day.src-airbnb { background: #d6476a; }
.ow-day.src-booking { background: #1f5fa8; }
.ow-day.src-direct { background: #3f7d4e; }
.ow-day.src-owner { background: #9a7330; }
.ow-day.src-other { background: #5b5f7a; }
.ow-bar { background: #b49a65; }
.ow-col.is-future .ow-bar { background: rgba(255,255,255,.12); }
.ow-cols { align-items: start; }
.ow-bars { flex: none; height: 210px; min-height: 0; }
.ow-col { height: 100%; min-height: 0; }
.ow-barwrap { height: 100%; min-height: 0; }
@media (max-width: 640px) {
  .ow-bars { height: 150px; }
  .ow-figs dd { font-size: 1.1rem; }
}
.ow-bars { align-items: stretch; grid-template-rows: 100%; }

/* ---------- guests: arrival guides ---------- */
.gx-lead { max-width: 760px; margin: 6px 0 0; }
.gx-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gx-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 18px 22px; align-items: center; padding: 16px 18px 16px 20px; margin-bottom: 10px;
  background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--flat, var(--navy)); border-radius: 10px; }
.gx-who h3 { margin: 0 0 4px; font-size: 1.15rem; color: var(--navy); }
.gx-who p { margin: 0 0 8px; color: var(--muted); }
.gx-who p b { color: var(--ink); }
.gx-src { display: inline-block; padding: 3px 10px; border-radius: 999px; color: #fff; font-size: .78rem; font-weight: 700; }
.gx-state { display: grid; gap: 4px; justify-items: start; }
.gx-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; font-size: .86rem; font-weight: 700; background: #e5eef7; color: #1f4f80; }
.gx-pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.gx-due .gx-pill { background: #c0392b; color: #fff; }
.gx-due { border-color: #e8a79c; background: #fff7f5; }
.gx-sent .gx-pill { background: #e1f1e4; color: #2f6b3d; }
.gx-auto .gx-pill { background: #e5eef7; color: #1f4f80; }
.gx-later .gx-pill { background: var(--soft2); color: var(--muted); }
.gx-blocked .gx-pill { background: #fcefd3; color: #8a5a00; }
.gx-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.gx-actions form { margin: 0; }
.gx-more { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 10px; }
.gx-more summary { cursor: pointer; font-weight: 600; color: var(--navy); font-size: .9rem; }
.gx-more textarea { width: 100%; margin: 10px 0; font: .92rem/1.5 var(--font); background: var(--paper); }
.gx-email { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.gx-email label { flex: 1 1 260px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.gx-email input { margin-top: 4px; width: 100%; }
@media (max-width: 900px) {
  .gx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gx-row { grid-template-columns: 1fr; }
  .gx-actions { justify-content: flex-start; }
}

/* flat page: arrival guide form */
.guide-card { margin-top: 24px; }
.guide-need { padding: 10px 14px; border-radius: 8px; background: #fcefd3; color: #6b4a00; }
.guide-secret input { background: #fbf8ee; border-color: var(--gold-line); }
.guide-card .tag { margin-left: 6px; background: var(--navy); color: #fff; }

/* owner dashboard: photos after each clean */
.ow-clean-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ow-clean { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fff; }
.ow-clean-date { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 10px; }
.ow-clean-date b { color: var(--navy); font: 500 1.15rem var(--display); }
.ow-clean-date span { font-size: .82rem; color: var(--muted); }
.ow-clean-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ow-clean-photos a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--soft2); }
.ow-clean-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ow-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20,46,64,.6); color: #fff; font-weight: 700; font-size: 1.2rem; }

/* statement: licence line */
.st-licence { font-size: .8rem; color: var(--muted); }

/* ---------- cleaning, simple: a red "Needs cleaning" banner, where, when, who, Done ---------- */
.ck-head { margin-bottom: 18px; }
.ck-head h1 { margin: 2px 0 4px; }
.ck-sum { margin: 0; font-size: 1.1rem; color: var(--navy); }
.ck-subtitle { margin: 28px 0 4px; font: 400 1.5rem var(--display); color: var(--navy); }
.ck-list { display: grid; gap: 16px; }
.ck-card { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--flat, var(--navy)); border-radius: 12px; overflow: hidden; }
.ck-banner { display: flex; align-items: center; gap: 10px; padding: 11px 18px; background: #c0392b; color: #fff; font-weight: 700; font-size: 1.05rem; }
.ck-banner span { font-size: .9rem; }
.ck-banner--late { background: #7d1d12; }
.ck-banner--done { background: #3f7d4e; }
.ck-body { padding: 16px 18px 18px; display: grid; gap: 10px; }
.ck-when { margin: 0; color: var(--muted); }
.ck-when b { color: var(--navy); font-size: 1.05rem; }
.ck-card h2, .ck-card h1 { margin: 0; font: 400 1.75rem/1.15 var(--display); color: var(--navy); }
.ck-addr { display: inline-flex; gap: 8px; align-items: baseline; color: var(--navy); font-weight: 600; text-decoration: none; }
.ck-addr:hover { text-decoration: underline; }
.ck-addr small { font-weight: 600; color: #2d6cb5; margin-left: 4px; }
.ck-addr--missing { color: #8a5a00; font-weight: 500; }
.ck-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 2px 0 0; }
.ck-facts div { background: var(--soft); border-radius: 8px; padding: 10px 12px; }
.ck-facts dt { font-size: .78rem; font-weight: 700; color: var(--muted); }
.ck-facts dd { margin: 2px 0 0; font-size: 1.08rem; font-weight: 700; color: var(--navy); }
.ck-next { margin: 0; color: var(--muted); }
.ck-next.is-rush { color: #8c1d0f; }
.ck-go { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.ck-card.ck-done .ck-go { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.ck-card.ck-done { opacity: .92; }

/* job page */
.ck-back { margin: 0 0 10px; }
.ck-card--page { margin-bottom: 18px; border-left-width: 1px; }
.ck-card--page .ck-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ck-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ck-finish h2 { margin-bottom: 12px; }
.ck-photo { display: grid; gap: 6px; cursor: pointer; }
.ck-photo input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ck-photo-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; border: 2px dashed var(--gold-line); border-radius: 12px; background: #fbf8ee; color: var(--navy); font-weight: 700; font-size: 1.05rem; text-align: center; padding: 0 14px; }
.ck-photo.has-files .ck-photo-btn { border-style: solid; border-color: #3f7d4e; background: #e1f1e4; color: #2f6b3d; }
.ck-photo input:focus-visible + .ck-photo-btn { outline: 3px solid var(--gold-line); outline-offset: 2px; }
.ck-note { margin: 12px 0; }
.ck-note summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.ck-note textarea { width: 100%; margin-top: 8px; }
.ck-finishbtn { width: 100%; min-height: 60px; border: 0; border-radius: 12px; background: #3f7d4e; color: #fff; font: 700 1.25rem var(--font); cursor: pointer; }
.ck-finishbtn:hover { background: #356a42; }
.ck-problem summary { display: flex; align-items: baseline; gap: 12px; cursor: pointer; list-style: none; }
.ck-problem summary::-webkit-details-marker { display: none; }
.ck-problem summary h2 { margin: 0; }
.ck-problem[open] summary { margin-bottom: 12px; }

/* admin board rows */
.ck-row { margin-bottom: 12px; }
.ck-row .ck-banner { padding: 8px 18px; font-size: .95rem; }
.ck-rowbody { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 18px; }
.ck-place h3 { margin: 0 0 4px; font-size: 1.2rem; }
.ck-place h3 a { color: var(--navy); text-decoration: none; }
.ck-place p { margin: 4px 0 0; }
.ck-assign { display: flex; gap: 10px; align-items: end; }
.ck-donebtn { background: #3f7d4e; border-color: #3f7d4e; color: #fff; }
.ck-donebtn:hover { background: #356a42; border-color: #356a42; }
.ck-rowact form { margin: 0; }

@media (max-width: 900px) {
  .ck-rowbody { grid-template-columns: 1fr; }
  .ck-cols { grid-template-columns: 1fr; }
  .ck-card--page .ck-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- inbox ---------- */
.ib-check { display: grid; justify-items: end; gap: 6px; }
.ib-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
.ib-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.ib-tabs a[aria-current] { color: var(--navy); border-bottom-color: var(--gold-line); }
.ib-count { font-size: .78rem; padding: 2px 8px; border-radius: 999px; background: var(--soft2); color: var(--muted); }
.ib-count.is-hot { background: #c0392b; color: #fff; }
.ib-threads { display: grid; gap: 10px; margin-bottom: 28px; }
.ib-thread { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ib-thread.is-unread { border-color: var(--gold-line); box-shadow: inset 4px 0 0 var(--gold-line); }
.ib-thead { display: grid; grid-template-columns: 44px minmax(0, 1.1fr) auto minmax(0, 2fr) auto; gap: 14px; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none; }
.ib-thead::-webkit-details-marker { display: none; }
.ib-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; font-weight: 700; }
.ib-who { display: grid; gap: 2px; min-width: 0; }
.ib-who b { font-size: 1.08rem; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-meta { font-size: .85rem; color: var(--muted); }
.ib-chip { justify-self: start; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; background: var(--soft2); color: var(--muted); }
.ib-chip--soon { background: #e5eef7; color: #1f4f80; }
.ib-chip--now { background: #e1f1e4; color: #2f6b3d; }
.ib-chip--enquiry { background: #fcefd3; color: #8a5a00; }
.ib-preview { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ib-thread.is-unread .ib-preview { color: var(--ink); font-weight: 600; }
.ib-when { display: grid; justify-items: end; gap: 3px; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.ib-new { padding: 2px 8px; border-radius: 999px; background: #c0392b; color: #fff; font-size: .75rem; font-weight: 700; }
.ib-chat { display: grid; gap: 10px; padding: 4px 18px 18px 76px; border-top: 1px solid var(--line); background: var(--soft); }
.ib-bubble { position: relative; max-width: 720px; margin-top: 10px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; }
.ib-bubble.is-new { border-color: var(--gold-line); }
.ib-bubble-head { display: flex; gap: 10px; align-items: baseline; margin: 0 0 4px; font-size: .88rem; }
.ib-bubble-head span:last-child { margin-left: auto; color: var(--muted); }
.ib-bubble-text { line-height: 1.55; overflow-wrap: anywhere; }
.ib-src { position: absolute; right: 10px; bottom: 6px; font-size: .72rem; color: var(--faint); }
.ib-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ib-actions form { margin: 0; }
.ib-rows { display: grid; gap: 8px; margin-bottom: 28px; }
.ib-row { display: grid; grid-template-columns: auto 150px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.ib-row .gx-src { margin-top: 2px; }
.ib-kind { font-size: .82rem; font-weight: 700; color: var(--navy); padding-top: 3px; }
.ib-kind--cancellation { color: #c0392b; }
.ib-kind--booking { color: #2f6b3d; }
.ib-rowmain { display: grid; gap: 3px; min-width: 0; }
.ib-more summary { cursor: pointer; font-size: .85rem; color: #2d6cb5; }
.ib-more { position: relative; }
.ib-more p { margin: 6px 0 0; font-size: .92rem; background: var(--soft); padding: 8px 12px 18px; border-radius: 8px; }
.ib-settings summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; cursor: pointer; list-style: none; }
.ib-settings summary::-webkit-details-marker { display: none; }
.ib-settings summary h2 { margin: 0; }
.ib-settings[open] summary { margin-bottom: 10px; }
.ib-reread { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .ib-thead { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .ib-chip { grid-column: 2; }
  .ib-preview { grid-column: 1 / -1; white-space: normal; }
  .ib-when { grid-column: 3; grid-row: 1; }
  .ib-chat { padding-left: 18px; }
  .ib-row { grid-template-columns: auto minmax(0, 1fr); }
  .ib-row .ib-when { grid-column: 2; justify-items: start; }
}
.ck-early { padding: 8px 18px; background: #fcefd3; color: #6b4a00; border-bottom: 1px solid #f1d9a6; font-size: .95rem; }
.ck-early b { color: #8a5a00; }

/* ---------- inbox: three panes, like the platforms' own inboxes ---------- */
.mx { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) minmax(260px, 320px); height: calc(100vh - 120px); min-height: 560px;
  margin: -8px 0 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mx-list, .mx-conv, .mx-side { min-height: 0; }
.mx-list { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.mx-listhead { display: flex; align-items: center; gap: 8px; padding: 18px 18px 8px; }
.mx-listhead h1 { margin: 0 auto 0 0; font-size: 1.7rem; }
.mx-listhead form { margin: 0; }
.mx-iconbtn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--soft2); color: var(--navy); font-size: 1.1rem; text-decoration: none; cursor: pointer; }
.mx-iconbtn:hover { background: var(--line); }
.mx-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 18px 12px; }
.mx-chips a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .88rem; }
.mx-chips a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.mx-items { list-style: none; margin: 0; padding: 0 8px 12px; overflow-y: auto; }
.mx-empty { padding: 20px; color: var(--muted); }
.mx-item { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 12px 24px 12px 10px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.mx-item:hover { background: var(--soft); }
.mx-item.is-current { background: var(--soft2); }
.mx-itext { display: grid; gap: 1px; min-width: 0; }
.mx-row1 { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; color: var(--muted); }
.mx-row1 span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-itext b { font-size: 1rem; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-flat { font-weight: 400; color: var(--muted); font-size: .88rem; }
.mx-prev { color: var(--muted); font-size: .9rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mx-item.is-unread b, .mx-item.is-unread .mx-prev { color: var(--ink); font-weight: 700; }
.mx-dot { position: absolute; right: 9px; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: #c0392b; }

.mx-av { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font-weight: 700; font-size: 1.05rem; background: #fdeee6; color: #8a4a2a; }
.mx-av--booking { background: #e6eef8; color: #1f4f80; }
.mx-av--airbnb { background: #fde8ee; color: #a8304f; }
.mx-av--sm { width: 34px; height: 34px; font-size: .82rem; }
.mx-plat { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; font: 800 .62rem/1 var(--font); font-style: normal; color: #fff; }
.mx-plat--airbnb { background: #ff385c; }
.mx-plat--booking { background: #003b95; }

.mx-conv { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.mx-convhead { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.mx-convhead h2 { margin: 0; font-size: 1.35rem; color: var(--navy); }
.mx-convhead p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.mx-thread { flex: 1; overflow-y: auto; padding: 8px 22px 18px; }
.mx-day { margin: 18px 0 10px; text-align: center; font-size: .82rem; font-weight: 700; color: var(--muted); }
.mx-msg { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; margin: 0 0 14px; max-width: 720px; }
.mx-msghead { margin: 0 0 4px; font-size: .85rem; color: var(--muted); }
.mx-msghead b { color: var(--ink); }
.mx-bubble { padding: 12px 16px; background: var(--soft); border-radius: 4px 16px 16px 16px; line-height: 1.55; overflow-wrap: anywhere; }
.mx-orig { display: inline-block; margin-top: 4px; font-size: .72rem; color: var(--faint); }
.mx-note { max-width: 560px; margin: 0 auto 14px; padding: 10px 14px; border-radius: 10px; background: #f4f6f8; text-align: center; font-size: .9rem; }
.mx-note p { margin: 0; }
.mx-note span { color: var(--muted); margin-left: 6px; }
.mx-note-sub { color: var(--muted); font-size: .85rem; }
.mx-note details { margin-top: 6px; text-align: left; }
.mx-note summary { cursor: pointer; text-align: center; font-size: .82rem; color: #2d6cb5; }
.mx-note--booking { background: #e8f4ea; }
.mx-note--cancellation { background: #fdecea; }
.mx-reply { padding: 14px 22px 18px; border-top: 1px solid var(--line); background: #fff; }
.mx-reply p { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
.mx-reply > div { display: flex; flex-wrap: wrap; gap: 8px; }
.mx-reply form { margin: 0; }
.mx-blank { display: grid; place-items: center; flex: 1; color: var(--muted); }

.mx-side { padding: 18px 20px; overflow-y: auto; }
.mx-side h2 { margin: 0 0 14px; font-size: 1.35rem; }
.mx-side h3 { margin: 14px 0 2px; font: 400 1.6rem/1.15 var(--display); color: var(--navy); }
.mx-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; }
.mx-dates { display: grid; grid-template-columns: 1fr 1fr; margin: 14px 0; background: var(--soft); border-radius: 12px; }
.mx-dates div { display: grid; gap: 2px; padding: 12px 14px; }
.mx-dates div + div { border-left: 1px solid var(--line2); text-align: right; }
.mx-dates span { font-weight: 700; font-size: .85rem; }
.mx-dates b { font-weight: 500; }
.mx-dates small { color: var(--muted); }
.mx-facts { display: grid; gap: 0; margin: 0 0 14px; }
.mx-facts div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); }
.mx-facts dt { color: var(--muted); }
.mx-facts dd { margin: 0; font-weight: 600; }
.mx-links { display: grid; gap: 8px; }
.mx-links a { color: #2d6cb5; font-weight: 600; text-decoration: none; }
.mx-links a:hover { text-decoration: underline; }
@media (max-width: 1100px) {
  .mx { grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); }
  .mx-side { display: none; }
}
@media (max-width: 760px) {
  .mx { grid-template-columns: 1fr; height: auto; }
  .mx-list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 50vh; }
  .mx-conv { border-right: 0; min-height: 60vh; }
}

/* Early check-in requests (board, job page, Inbox stay panel). */
.ck-early--ask { background: #fff8ea; border-bottom-style: dashed; }
.ec-box { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line, #e5e5e5); border-radius: 8px; background: #fff; }
.ec-box p { margin: 0 0 6px; }
.ec-requested { background: #fff5e5; border-color: #f1d9a6; }
.ec-agreed { background: #f1f7f2; border-color: #cfe3d4; }
.ec-title { font-weight: 600; }
.ec-requested .ec-title { color: #805218; }
.ec-agreed .ec-title { color: #39784d; }
.ec-warn { color: #8a3b12; font-weight: 500; }
.ec-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.ec-form { display: flex; gap: 6px; align-items: center; margin: 0; }
.ec-form input[type=time] { width: auto; padding: 7px 8px; }
.ec-add summary { cursor: pointer; font-weight: 600; }
.ec-box.ec-none, .ec-box.ec-dismissed { padding: 10px 14px; }
