/* ============================================================
   AXOROOMS — Porcelain & Ink design system
   Warm ivory/stone neutrals · near-black charcoal · teal as the
   single accent. Channel colours appear as soft tints with a
   coloured dot (Airbnb/Google-Calendar style), never as loud fills.
   Light on :root, dark on [data-theme="dark"].
   ============================================================ */

:root {
  color-scheme: light;
  /* surfaces — warm ivory family */
  --bg: #FAF9F7;
  --bg-sunken: #F3F1ED;
  --surface: #FFFFFF;
  --surface-2: #F6F4F1;
  --line: #E8E5DF;
  --line-soft: #F0EEE9;
  /* ink — warm charcoal, never pure black */
  --ink: #1D1C1A;
  --ink-2: #514F4A;
  --muted: #8B877E;
  /* brand — teal, the single accent */
  --brand: #0F766E;
  --brand-hover: #0C5F59;
  --brand-ink: #FFFFFF;
  --brand-soft: #E9F1EF;
  --brand-mark: #0F766E;
  /* rail — near-black charcoal in BOTH themes */
  --rail-bg: #16181A;
  --rail-ink: #ECEAE5;
  --rail-dim: #9B978F;
  /* status */
  --ok: #177E57;      --ok-soft: #E4F2EB;      --ok-ink: #FFFFFF;
  --warn: #A4650F;    --warn-soft: #F8EFDE;
  --danger: #B8402F;  --danger-soft: #FAE9E5;  --danger-ink: #FFFFFF;
  --coral: #E8685A;   --coral-ink: #2B0F0B;
  /* channel colours — dots & accents; tints are derived via color-mix.
     Platform families beyond the majors share one colour per family (see providers registry). */
  --ota-airbnb: #DE3E5B;
  --ota-booking: #34759C;
  --ota-agoda: #7E5FC0;
  --ota-vrbo: #D86613;       /* Vrbo + Abritel/FeWo-direkt/Homelidays/AlugueTemporada/Bookabach/Stayz */
  --ota-interhome: #0E7C66;  /* Interhome + atraveo + e-domizil */
  --ota-cis: #5B6C8F;        /* Kvartirka / Sutochno / Avito / Yandex / Tvil */
  --ota-asia: #A3498F;       /* Rakuten Oyado / STAY JAPAN */
  --ota-indie: #7A6A1F;      /* Misterb&b / Plum Guide / Your.Rentals / SafariNow */
  --ota-direct: #0F766E;
  --ota-manual: #6B7280;
  --ota-block: #9C968A;
  /* shape & motion */
  --radius: 12px;
  --radius-s: 9px;
  --shadow: 0 1px 2px rgba(28,25,20,.04), 0 6px 20px rgba(28,25,20,.05);
  --shadow-lift: 0 2px 4px rgba(28,25,20,.06), 0 14px 34px rgba(28,25,20,.10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rail-w: 236px;

  /* ---- legacy aliases (older inline styles still reference these) ---- */
  --bg2: var(--bg-sunken);
  --card: var(--surface);
  --accent: var(--brand);
  --accent-deep: var(--brand-hover);
  --accent-ink: var(--brand-ink);
  --accent-soft: var(--brand-soft);
  --accent2: var(--coral);
  --good: var(--ok);
  --good-soft: var(--ok-soft);
  --green: var(--ok);
  --amber: var(--warn);
  --amber-soft: var(--warn-soft);
  --red: var(--danger);
  --red-soft: var(--danger-soft);
  --gray-soft: var(--surface-2);
  --gray-ink: var(--muted);
  --pine: var(--rail-bg);
  --pine-2: #22262A;
  --pine-ink: var(--rail-ink);
  --pine-dim: var(--rail-dim);
  --airbnb: var(--ota-airbnb);
  --booking: var(--ota-booking);
  --agoda: var(--ota-agoda);
  --direct: var(--ota-direct);
  --display: var(--font);
  --labelw: 216px;
}

[data-theme="dark"] {
  color-scheme: dark;
  /* deep warm black family */
  --bg: #0E0F10;
  --bg-sunken: #0A0B0C;
  --surface: #16181A;
  --surface-2: #1D2022;
  --line: #272A2D;
  --line-soft: #1F2224;
  --ink: #ECEAE5;
  --ink-2: #C2BFB8;
  --muted: #8F8C84;
  --brand: #2FA89A;
  --brand-hover: #46BCAE;
  --brand-ink: #071312;
  --brand-soft: rgba(47,168,154,.14);
  --brand-mark: #2FA89A;
  --rail-bg: #0A0B0C;
  --rail-ink: #ECEAE5;
  --rail-dim: #7D7A73;
  --ok: #3BBF8C;      --ok-soft: rgba(59,191,140,.14);   --ok-ink: #07130D;
  --warn: #D9A352;    --warn-soft: rgba(217,163,82,.13);
  --danger: #F08573;  --danger-soft: rgba(240,133,115,.14); --danger-ink: #3A0E07;
  --coral: #E8685A;   --coral-ink: #1F0B08;
  --ota-airbnb: #F17488;
  --ota-booking: #7FA8D9;
  --ota-agoda: #B49CE8;
  --ota-vrbo: #E89B5C;
  --ota-interhome: #4BB39A;
  --ota-cis: #8CA0C4;
  --ota-asia: #D085BE;
  --ota-indie: #C4B05C;
  --ota-direct: #2FA89A;
  --ota-manual: #9AA4AF;
  --ota-block: #7A766E;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 26px rgba(0,0,0,.4);
  --shadow-lift: 0 2px 6px rgba(0,0,0,.45), 0 16px 40px rgba(0,0,0,.5);
  --pine-2: #1D2022;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
::selection { background: rgba(15,118,110,.16); }
[data-theme="dark"] ::selection { background: rgba(47,168,154,.3); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: 22px; }
h2 { font-size: 15px; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
.muted { color: var(--muted); font-size: 12.5px; }
.boot { padding: 48px; color: var(--muted); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* brand assets */
.lockup { height: 34px; width: auto; aspect-ratio: 602 / 104; display: block; }
.glyphsvg { width: 30px; height: 30px; aspect-ratio: 1; display: block; }

/* ---------- shell / rail ---------- */
.shell { display: grid; grid-template-columns: var(--rail-w) 1fr; min-height: 100vh; }
.rail {
  background: var(--rail-bg);
  color: var(--rail-ink);
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 18px 14px 14px;
  overflow-y: auto;
}
.rail .brand { display: flex; align-items: center; padding: 4px 8px 22px; }
.rail .brand .lockup { color: #F2F0EB; --brand-mark: #4FBFB1; height: 28px; max-width: 100%; }
.rail .logo {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: #4FBFB1; color: #10201E;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.rail .brandname { color: #F2F0EB; font-weight: 700; font-size: 16px; letter-spacing: .06em; }
.rail .brandname span { color: #4FBFB1; }
.rail .wsline { font-size: 9.5px; font-weight: 700; letter-spacing: 1.4px; color: var(--rail-dim);
  text-transform: uppercase; padding: 14px 12px 6px; }
.rail .group { font-size: 10px; font-weight: 700; letter-spacing: 1.4px; color: var(--rail-dim);
  padding: 14px 12px 6px; text-transform: uppercase; }
.rail a {
  display: flex; align-items: center; gap: 10px;
  color: var(--rail-ink); font-size: 13.5px; font-weight: 500;
  padding: 9px 12px; border-radius: 9px;
  transition: background .18s ease, color .18s ease;
}
.rail a svg { width: 16px; height: 16px; opacity: .65; flex: none; }
.rail a:hover { background: var(--pine-2); color: #fff; }
.rail a.active { background: rgba(79,191,177,.12); color: #fff; font-weight: 600; }
.rail a.active svg { opacity: 1; color: #4FBFB1; }
.rail .push { margin-top: auto; font-size: 12px; padding: 12px; color: var(--rail-dim);
  border-top: 1px solid rgba(255,255,255,.07); }
.rail .push .who { font-weight: 600; color: var(--rail-ink); margin-bottom: 6px; word-break: break-all; }
.rail .push a { color: var(--rail-dim); padding: 2px 0; display: inline-block; }
.rail .push a:hover { color: #F2F0EB; }
.rail .push button {
  margin-top: 8px; width: 100%; background: transparent; color: var(--rail-ink);
  border: 1px solid rgba(255,255,255,.12); box-shadow: none; font-size: 12px; padding: 7px 10px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.rail .push button svg { width: 14px; height: 14px; flex: none; }
.rail .push button:hover { background: var(--pine-2); border-color: rgba(255,255,255,.28);
  color: #fff; transform: none; box-shadow: none; }
.mobile-only { display: none; }

.mainwrap { display: flex; flex-direction: column; min-width: 0; }
.scrim {
  position: fixed; inset: 0; z-index: 60; background: rgba(10,11,12,.5);
  backdrop-filter: blur(2px); animation: fadeq .2s ease both;
}

/* ---------- command bar ---------- */
.commandbar {
  position: sticky; top: 0; z-index: 30; min-height: 58px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; padding: 8px 26px;
}
.commandbar .crumb { font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
.commandbar .spacer { flex: 1; }
.navtoggle {
  display: none; background: transparent; border: 1px solid var(--line); color: var(--ink);
  box-shadow: none; padding: 7px 9px; line-height: 0;
}
.navtoggle:hover { transform: none; background: var(--surface-2); border-color: var(--line); box-shadow: none; }
.navtoggle svg { width: 18px; height: 18px; }

.chips { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
/* OTA Configuration: platform tabs grouped by family */
.otafam { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 7px 0; }
.otafam + .otafam { border-top: 1px solid var(--line-soft); }
.otafam-l { flex: none; width: 168px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* one-way documentation notice (platform documents only one iCal direction) */
.oneway { border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line));
  background: color-mix(in srgb, var(--warn-soft, var(--warn) 8%) 40%, var(--surface));
  border-radius: var(--radius-s); padding: 10px 12px; margin: 2px 0 10px; font-size: 13px; }
.oneway b { color: var(--warn); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px; cursor: default;
}
.chip i { width: 7px; height: 7px; border-radius: 50%; }
.chip i.ok { background: var(--ok); }
.chip i.bad { background: var(--danger); }
.chip b { font-weight: 700; }

/* ---------- main ---------- */
.main { padding: 24px 30px 70px; max-width: 1280px; width: 100%; }

.topbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.topbar h1 { flex: none; }
.topbar .spacer { flex: 1; }
.topbar .muted { margin-top: 2px; }

/* stat tiles (dashboard) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px;
  display: flex; flex-direction: column; gap: 3px;
}
.stat b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 10.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }

/* legacy KPI row */
.kpis { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.kpi {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 18px; min-width: 130px;
  animation: rise .4s cubic-bezier(.3,1,.5,1) both;
}
.kpi .k { font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.kpi .v { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin-top: 3px; font-variant-numeric: tabular-nums; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px;
}
.card.accent { border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
  background: color-mix(in srgb, var(--brand-soft) 40%, var(--surface)); }
.card.alert { border-color: color-mix(in srgb, var(--danger) 30%, var(--line));
  background: color-mix(in srgb, var(--danger-soft) 40%, var(--surface)); }
.card h2 { margin-bottom: 10px; }

/* ---------- tables ---------- */
.tbl-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .8px; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .16s ease; }
tbody tr:hover { background: var(--surface-2); }
table a { font-weight: 600; }

/* ---------- buttons ---------- */
button, .btn {
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--brand-ink);
  background: var(--brand);
  border: 1px solid transparent; border-radius: var(--radius-s);
  padding: 9px 18px; cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
button:hover:not(:disabled), .btn:hover { background: var(--brand-hover);
  transform: translateY(-1px); box-shadow: 0 4px 14px rgba(15,118,110,.18); }
button:active { transform: translateY(0); box-shadow: none; }
button:disabled { opacity: .55; cursor: not-allowed; }
button.ghost, .btn.ghost {
  background: var(--surface); color: var(--ink); border-color: var(--line);
}
button.ghost:hover, .btn.ghost:hover {
  border-color: var(--brand); color: var(--brand); background: var(--brand-soft); box-shadow: none;
}
button.small, .btn.small { padding: 6px 13px; font-size: 12px; border-radius: 8px; }
button.danger, .btn.danger { background: var(--danger); color: var(--danger-ink); }
button.danger:hover { background: color-mix(in srgb, var(--danger) 88%, #000); box-shadow: 0 4px 14px rgba(184,64,47,.25); }
button.linkish, .linkish {
  background: transparent; border: 0; box-shadow: none; padding: 4px 6px; color: var(--brand);
  font-size: 12px; cursor: pointer;
}
button.linkish:hover { background: var(--brand-soft); box-shadow: none; transform: none; }

/* ---------- inputs ---------- */
input, select, textarea {
  font-family: inherit; font-size: 13.5px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-s); padding: 9px 12px; width: 100%;
  transition: border-color .18s, box-shadow .18s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
input[readonly] { background: var(--surface-2); color: var(--ink-2); }
label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin: 12px 0 5px;
  text-transform: uppercase; letter-spacing: .6px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 0; }
.row .narrow { flex: 0 0 auto; }

/* ---------- pills & source chips (soft tint + dot) ---------- */
.pill { display: inline-block; padding: 2.5px 10px; border-radius: 999px; font-size: 10.5px;
  font-weight: 600; letter-spacing: .2px; white-space: nowrap; }
.pill.green { background: var(--ok-soft); color: var(--ok); }
.pill.amber { background: var(--warn-soft); color: var(--warn); }
.pill.red { background: var(--danger-soft); color: var(--danger); }
.pill.gray { background: var(--surface-2); color: var(--muted); }
.pill.indigo { background: var(--brand-soft); color: var(--brand); }

.src {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; padding: 2.5px 9px; border-radius: 6px;
  white-space: nowrap; color: color-mix(in srgb, var(--src) 78%, var(--ink));
  background: color-mix(in srgb, var(--src) 9%, var(--surface));
}
.src::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--src); flex: none; }
.src.airbnb    { --src: var(--ota-airbnb); }
.src.booking   { --src: var(--ota-booking); }
.src.agoda     { --src: var(--ota-agoda); }
.src.vrbo, .src.abritel, .src.fewodirekt, .src.homelidays,
.src.aluguetemporada, .src.bookabach, .src.stayz            { --src: var(--ota-vrbo); }
.src.interhome, .src.atraveo, .src.edomizil                 { --src: var(--ota-interhome); }
.src.misterbnb, .src.plumguide, .src.yourrentals, .src.safarinow { --src: var(--ota-indie); }
.src.kvartirka, .src.sutochno, .src.avito, .src.yandex, .src.tvil { --src: var(--ota-cis); }
.src.rakuten, .src.stayjapan                                { --src: var(--ota-asia); }
.src.direct    { --src: var(--ota-direct); }
.src.manual    { --src: var(--ota-manual); }

/* ---------- auth / login ---------- */
.auth { max-width: 420px; margin: 9vh auto; padding: 0 16px; }
.auth .card { padding: 34px 30px; }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; }
.auth-logo .lockup { height: 30px; color: var(--ink); --brand-mark: var(--brand); }
.logo-circle {
  width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-weight: 800; font-size: 16px;
}
.auth-brand { font-size: 20px; font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.auth-brand span { color: var(--brand); }
.auth-tag { text-align: center; color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0 0 18px; }
.auth-google-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  font-size: 13.5px; padding: 11px 16px;
}
.auth-google-btn:hover { background: var(--surface-2); border-color: var(--line);
  box-shadow: var(--shadow); transform: none; }

/* ---------- calendar ---------- */
.caltools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cal3-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cal3-title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.cal3-title .yr, .cal3-title .muted { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 8px; }
.mico { font-size: 17px; margin-right: 6px; }
.navbtn {
  height: 34px; min-width: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 14px; cursor: pointer;
  display: inline-grid; place-items: center; font-family: inherit; font-weight: 600;
}
.navbtn:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(15,118,110,.12); }
.navbtn.wide { padding: 0 14px; white-space: nowrap; font-size: 12.5px; }
.navpair { display: inline-flex; gap: 6px; }

.mgrid-wrap {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.mgrid-dow { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line);
  background: var(--surface-2); }
.mgrid-dowl { text-align: center; padding: 8px 0 7px; font-size: 9.5px; font-weight: 600;
  letter-spacing: .9px; color: var(--muted); text-transform: uppercase; }
.mgrid-dowl .dw1 { display: none; }
.mgrid { display: flex; flex-direction: column; }
.mgrid-row {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; padding: 8px;
  border-bottom: 1px solid var(--line-soft);
  content-visibility: auto; contain-intrinsic-size: auto 112px;
}
.mgrid-row:last-child { border-bottom: 0; }
.mcell {
  min-height: 96px; border-radius: 10px; border: 1px solid var(--line-soft);
  background: var(--surface); cursor: pointer; padding: 7px 8px;
  display: flex; flex-direction: column; gap: 4px; overflow: hidden;
  transition: border-color .15s ease, background .15s ease;
  user-select: none;
}
.mcell:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  background: color-mix(in srgb, var(--brand-soft) 30%, var(--surface)); z-index: 2; position: relative; }
.mcell.out { background: transparent; border-color: transparent; opacity: .4; cursor: default; }
.mcell.out:hover { border-color: transparent; background: transparent; }
.mcell.today { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.mnum { font-size: 11.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.mcell.today .mnum { color: var(--brand); }
.mcell.today { background: color-mix(in srgb, var(--brand-soft) 45%, var(--surface)); }
.mchips { display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow: hidden; }

/* soft tinted booking pill: tint bg · channel dot · dark text · letter tag */
.mchip {
  display: flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 600; color: var(--ink-2);
  background: color-mix(in srgb, var(--src) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--src) 22%, transparent);
  border-radius: 7px; padding: 2.5px 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer; flex: none; min-width: 0;
}
.mchip > span:first-of-type { overflow: hidden; text-overflow: ellipsis; }
.mchip::before { content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--src); flex: none; }
.mchip .mtag { margin-left: auto; color: var(--src); font-size: 9px; font-weight: 800;
  letter-spacing: .3px; flex: none; opacity: .85; }
.mchip-a { --src: var(--ota-airbnb); }
.mchip-b { --src: var(--ota-booking); }
.mchip-g { --src: var(--ota-agoda); }
.mchip-v { --src: var(--ota-vrbo); }
.mchip-i { --src: var(--ota-interhome); }
.mchip-c { --src: var(--ota-cis); }
.mchip-j { --src: var(--ota-asia); }
.mchip-n { --src: var(--ota-indie); }
.mchip-d { --src: var(--ota-direct); }
/* closures: no dot — an ✕ in the channel slot; own = solid hairline, OTA = dashed */
.mchip-x, .mchip-o {
  --src: var(--ota-block);
  background: color-mix(in srgb, var(--ota-block) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--ota-block) 30%, transparent);
  color: var(--muted); font-weight: 600;
}
.mchip-x::before, .mchip-o::before { content: "\2715"; width: auto; height: auto;
  background: none; border-radius: 0; font-size: 9px; font-weight: 800; color: var(--ota-block); }
.mchip-o { border-style: dashed; }
.mchip.more { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.mchip.more::before { display: none; }

.cal3-legend { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 12px 2px;
  font-size: 11.5px; color: var(--muted); }
.cal3-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.cal3-legend .mchip { display: inline-flex; width: 30px; padding: 2px 6px; cursor: default;
  font-size: 0; }
.cal3-legend .mchip .mtag { display: none; }

/* mobile dots */
.dots { display: none; flex-wrap: wrap; gap: 3px; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-a { background: var(--ota-airbnb); }
.dot-b { background: var(--ota-booking); }
.dot-g { background: var(--ota-agoda); }
.dot-v { background: var(--ota-vrbo); }
.dot-i { background: var(--ota-interhome); }
.dot-c { background: var(--ota-cis); }
.dot-j { background: var(--ota-asia); }
.dot-n { background: var(--ota-indie); }
.dot-d { background: var(--ota-direct); }
.dot-x { background: var(--ota-block); }
.dot-o { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }

/* ---------- day-modal toggle switch ----------
   Semantics: slide RIGHT = Available (teal-green), slide LEFT = Blocked. */
.trow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.trow:last-child { border-bottom: 0; }
.troom { flex: 1; min-width: 0; font-size: 13px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tsub { font-size: 11.5px; color: var(--muted); font-weight: 500; display: block;
  overflow: hidden; text-overflow: ellipsis; }
.tlab { font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  display: none; }
.toggle {
  position: relative; width: 74px; height: 30px; border-radius: 999px; border: 0; padding: 0;
  background: var(--ok); cursor: pointer; flex: none;
  transition: background .18s ease; box-shadow: none;
}
.toggle .knob {
  position: absolute; top: 3px; left: 47px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: left .18s cubic-bezier(.4,0,.2,1);
}
.toggle .tlab.green {
  display: flex; position: absolute; left: 11px; top: 0; bottom: 0; align-items: center;
  color: var(--ok-ink);
}
.toggle.on { background: var(--danger); }
.toggle.on .knob { left: 3px; }
.toggle.on .tlab.green { display: none; }
.toggle.on .tlab.red {
  display: flex; position: absolute; right: 9px; top: 0; bottom: 0; align-items: center;
  color: var(--danger-ink);
}
.toggle:hover { transform: none; box-shadow: none; filter: brightness(1.05); }
.toggle.disabled { background: var(--line); cursor: default; }
.toggle.disabled .knob { left: 25px; background: var(--surface-2); }
.toggle.disabled .tlab { display: none !important; }
.toggle.disabled::after {
  content: "Booked"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px;
}

/* ---------- modal / drawer / toasts ---------- */
.modal-bg {
  position: fixed; inset: 0; background: rgba(15,14,12,.45); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; z-index: 80;
  animation: fadeq .2s ease both; padding: 16px;
}
.modal {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px;
  width: 460px; max-width: 100%; box-shadow: var(--shadow-lift);
  animation: mup .28s cubic-bezier(.34,1.25,.64,1) both;
  max-height: 88vh; overflow-y: auto;
}
.modal h3 { font-size: 17px; margin-bottom: 12px; }
.drawer-bg { position: fixed; inset: 0; background: rgba(15,14,12,.45); backdrop-filter: blur(2px);
  z-index: 70; animation: fadeq .2s ease both; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 410px; max-width: 94vw; z-index: 71;
  background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  animation: slidein .3s cubic-bezier(.32,.9,.35,1) both; display: flex; flex-direction: column;
  border-radius: 14px 0 0 14px;
}
.drawer .dhead { padding: 20px 22px 14px; border-bottom: 1px solid var(--line-soft); display: flex;
  justify-content: space-between; align-items: flex-start; gap: 10px; }
.drawer .dhead h3 { font-size: 18px; }
.drawer .dbody { padding: 14px 22px; overflow-y: auto; flex: 1; }
.drawer .dfoot { padding: 14px 22px 20px; border-top: 1px solid var(--line-soft); display: flex; gap: 10px; }
.drow { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 13px;
  border-bottom: 1px dashed var(--line-soft); }
.drow:last-child { border-bottom: 0; }
.drow .k { color: var(--muted); font-weight: 500; }
.drow .v { font-weight: 600; text-align: right; }
.xbtn { background: var(--surface-2); color: var(--ink-2); border-radius: 8px; padding: 5px 10px;
  font-size: 12px; border: 0; cursor: pointer; box-shadow: none; }
.xbtn:hover { background: var(--line); transform: none; box-shadow: none; }

#toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column;
  gap: 8px; z-index: 90; max-width: min(380px, calc(100vw - 40px)); }
.toast { background: var(--rail-bg); color: var(--rail-ink); border: 1px solid rgba(255,255,255,.07);
  border-radius: 11px; padding: 12px 16px; font-size: 13px;
  box-shadow: var(--shadow-lift); animation: mup .3s cubic-bezier(.34,1.25,.64,1) both; }
.toast.err { background: var(--danger); color: var(--danger-ink); border-color: transparent; }

/* ---------- wizard ---------- */
.brandrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.brandrow .logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 14px; }
.brandrow .lockup { height: 26px; color: var(--ink); --brand-mark: var(--brand); }
.wizsteps { display: flex; gap: 6px; margin: 4px 0 18px; }
.wizsteps i { height: 4px; flex: 1; border-radius: 2px; background: var(--line); }
.wizsteps i.done { background: var(--brand); }
.wizcard { max-width: 560px; margin: 4vh auto 0; }
.w-rname { flex: 1; }
.w-rprice { max-width: 200px; }

/* ---------- public booking page ---------- */
.bkhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.bkhead .lockup { height: 26px; color: var(--ink); --brand-mark: var(--brand); }
.bkdays { display: flex; flex-wrap: wrap; gap: 6px; }
.bkday {
  width: 52px; height: 52px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center; font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: border-color .15s, background .15s, transform .15s;
  font-variant-numeric: tabular-nums; padding: 0; font-family: inherit; color: var(--ink);
  box-shadow: none;
}
.bkday:hover:not(:disabled) { border-color: var(--brand); transform: translateY(-1px); box-shadow: none; }
.bkday.sel { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.bkday.sel .muted { color: var(--brand-ink); opacity: .75; }
.bkday:disabled { background: var(--danger-soft); border-color: transparent; color: var(--danger);
  cursor: not-allowed; text-decoration: line-through; }
.bksum { position: sticky; top: 74px; }

/* ---------- landing ---------- */
.land { max-width: 1080px; margin: 0 auto; padding: 24px 20px 80px; overflow-x: clip; }
.land-nav { display: flex; align-items: center; gap: 14px; margin-bottom: 6vh; }
.land-nav .lockup { height: 28px; color: var(--ink); --brand-mark: var(--brand); }
.land-nav .spacer { flex: 1; }

.land-hero { text-align: center; padding: 5vh 0 2vh; position: relative; }
/* soft brand washes behind the hero — barely-there, premium */
.land-hero::before, .land-hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
}
.land-hero::before { width: 720px; height: 480px; left: 50%; top: -120px; transform: translateX(-78%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 9%, transparent), transparent); }
.land-hero::after { width: 640px; height: 440px; left: 50%; top: -60px; transform: translateX(-8%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--coral) 7%, transparent), transparent); }
.land-badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600;
  color: var(--brand); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.land-hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.05; letter-spacing: -.03em;
  max-width: 820px; margin: 0 auto 18px; }
.land-hero p { font-size: clamp(15px, 1.9vw, 18px); color: var(--muted); max-width: 640px;
  margin: 0 auto 28px; line-height: 1.6; }
.land-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.land-cta .btn { padding: 15px 34px; font-size: 15.5px; }
.land-cta .btn.ghost { display: inline-flex; align-items: center; }
.land-subnote { font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* channel strip */
.land-channels { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap;
  margin: 42px 0 8px; }
.land-channels .lbl { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--muted); margin-right: 6px; }
.land-channels .src { font-size: 12px; padding: 5px 12px; border-radius: 999px; }
.land-channels .land-all { font-size: 12.5px; font-weight: 700; color: var(--brand); text-decoration: none;
  cursor: pointer; }
.land-channels .land-all:hover { text-decoration: underline; }

/* platform showcase: all 24 providers, grouped by family (mirrors the app's registry) */
.land-fams { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.land-fam { display: flex; gap: 8px 26px; align-items: baseline; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; }
.land-fam-head { min-width: 158px; }
.land-fam-head b { display: block; font-size: 13.5px; letter-spacing: -.01em; }
.land-fam-head span { font-size: 11.5px; color: var(--muted); }
.land-fam .chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.land-fam .src { font-size: 12px; padding: 4px 11px; border-radius: 999px; }
@media (max-width: 640px) {
  .land-fam { flex-direction: column; gap: 8px; }
  .land-fam-head { min-width: 0; }
}

/* product mockup: the calendar as hero art */
.mockwrap { position: relative; max-width: 760px; margin: 34px auto 0; }
.mock-cal {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lift); padding: 16px; text-align: left;
}
.mock-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mock-head b { font-size: 15px; }
.mock-head .spacer { flex: 1; }
.mock-dow, .mock-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.mock-dow span { text-align: center; font-size: 9px; font-weight: 700; letter-spacing: .8px;
  color: var(--muted); text-transform: uppercase; padding: 4px 0; }
.mock-cell { min-height: 52px; border: 1px solid var(--line-soft); border-radius: 8px;
  padding: 4px 5px; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.mock-cell .n { font-size: 9.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.mock-cell.today { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand);
  background: color-mix(in srgb, var(--brand-soft) 45%, var(--surface)); }
.mock-cell.today .n { color: var(--brand); }
.mock-cell.out { opacity: .35; }
.mpill {
  display: flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 600;
  color: var(--ink-2); background: color-mix(in srgb, var(--src) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--src) 22%, transparent);
  border-radius: 5px; padding: 1.5px 5px; white-space: nowrap; overflow: hidden;
}
.mpill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--src); flex: none; }
.mpill.a { --src: var(--ota-airbnb); } .mpill.b { --src: var(--ota-booking); }
.mpill.g { --src: var(--ota-agoda); } .mpill.d { --src: var(--ota-direct); }
.mpill.x { --src: var(--ota-block); border-style: dashed; }
.mpill.x::before { content: "\2715"; width: auto; height: auto; background: none; font-size: 8px; }
/* floating confirmation badges */
.mock-float {
  position: absolute; background: var(--surface); border: 1px solid var(--line);
  border-radius: 11px; box-shadow: var(--shadow-lift); padding: 9px 14px;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  display: flex; align-items: center; gap: 8px; animation: floaty 6s ease-in-out infinite alternate;
}
.mock-float i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.mock-float .ok { background: var(--ok); }
.mock-float .bl { background: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 25%, transparent); }
.mock-float.f1 { top: -16px; right: -14px; }
@keyframes floaty { from { transform: translateY(-3px); } to { transform: translateY(4px); } }

/* numbered steps */
/* steps as a connected journey — no boxes, a dotted path through icon nodes */
.land-journey { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin: 44px 0 8px;
  position: relative; }
.land-journey::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%;
  border-top: 2px dashed color-mix(in srgb, var(--brand) 40%, transparent); z-index: 0; }
.jstep { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.jstep .jdot { width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px;
  background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 8%, transparent); position: relative; }
.jstep .jnum { position: absolute; top: -7px; right: -7px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--brand); color: var(--on-brand, #fff);
  font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.jstep b { display: block; font-size: 15.5px; margin-bottom: 6px; letter-spacing: -.01em; }
.jstep p { margin: 0 auto; color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 250px; }
@media (max-width: 720px) {
  .otafam-l { width: 100%; }
  .land-journey { grid-template-columns: 1fr; gap: 26px; }
  .land-journey::before { top: 8%; bottom: 8%; left: 33px; right: auto;
    border-top: none; border-left: 2px dashed color-mix(in srgb, var(--brand) 40%, transparent); }
  .jstep { display: grid; grid-template-columns: 68px 1fr; column-gap: 16px; text-align: left; }
  .jstep .jdot { margin: 0; grid-row: 1 / span 2; }
  .jstep p { max-width: none; }
}

.land-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 40px 0; }
.land-feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; }
.land-feat b { display: block; font-size: 14.5px; margin-bottom: 6px; }
.land-feat p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.land-sec { margin: 56px 0; }
.land-sec > h2 { font-size: clamp(20px, 3vw, 26px); text-align: center; letter-spacing: -.02em; margin-bottom: 8px; }
.land-sec > .sub { text-align: center; color: var(--muted); margin: 0 auto 26px; max-width: 520px;
  line-height: 1.6; font-size: 14px; }
/* what-works / what-doesn't status table */
.land-wtable { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 13.5px; }
.land-wtable th { text-align: left; padding: 11px 16px; font-size: 11px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.land-wtable td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
  vertical-align: top; line-height: 1.55; color: var(--ink-2); }
.land-wtable tr:last-child td { border-bottom: none; }
.land-wtable td.cap { font-weight: 700; color: var(--ink); width: 27%; }
.land-wtable td:nth-child(2) { width: 92px; white-space: nowrap; }
.land-wtable tbody tr:hover td { background: color-mix(in srgb, var(--brand) 4%, transparent); }
.land-note { margin: 14px 2px 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.land-foot { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line-soft);
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 12.5px; }

/* pricing — single free plan card */
.land-plans { display: grid; grid-template-columns: minmax(0, 460px); gap: 14px;
  max-width: 460px; margin: 30px auto 0; }
.land-plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; text-align: left; position: relative; }
.land-plan .pname { font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase;
  letter-spacing: 1.5px; }
.land-plan .price { font-size: 38px; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 2px; }
.land-plan .price span { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.land-plan .pdesc { color: var(--muted); font-size: 12.5px; margin-bottom: 14px; }
.land-plan ul { list-style: none; margin: 0 0 18px; padding: 0; font-size: 13px; color: var(--ink-2); }
.land-plan li { padding: 4px 0; display: flex; gap: 8px; align-items: baseline; }
.land-plan li::before { content: "\2713"; color: var(--brand); font-weight: 700; flex: none; }
.land-plan .btn { width: 100%; }
.land-plan .fineprint { margin-top: 12px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* scroll-reveal (IntersectionObserver adds .revealed; safe under reduced motion) */
[data-reveal] { opacity: 0; transform: translateY(16px);
  transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* facts strip */
.land-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px;
  max-width: 860px; margin: 8px auto 0; }
.land-stat { text-align: center; padding: 16px 10px; border: 1px solid var(--line);
  border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.land-stat b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.land-stat span { font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
  color: var(--muted); }

/* FAQ accordion */
.land-faq { max-width: 720px; margin: 26px auto 0; }
details.faq { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface);
  margin-bottom: 8px; overflow: hidden; }
details.faq summary {
  list-style: none; cursor: pointer; padding: 14px 18px; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 18px; font-weight: 400; color: var(--muted);
  transition: transform .2s ease; flex: none; }
details.faq[open] summary::after { transform: rotate(45deg); color: var(--brand); }
details.faq p { margin: 0; padding: 0 18px 14px; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* theme toggle (landing nav + login) */
.theme-btn {
  background: transparent; border: 1px solid var(--line); color: var(--ink); box-shadow: none;
  width: 36px; height: 36px; padding: 0; border-radius: 9px; display: inline-grid; place-items: center;
}
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn:hover { background: var(--surface-2); transform: none; box-shadow: none; border-color: var(--line); }

/* view transition (tenant shell re-dispatches) */
.viewin { animation: viewin .26s ease both; }
@keyframes viewin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .viewin { animation: none; } }

/* ---------- transparency page (#/how) ---------- */
.land-navlink { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none;
  padding: 8px 12px; border-radius: 8px; }
.land-navlink:hover { color: var(--ink); background: var(--surface-2); }
.how-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.how-flow { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px; }
.how-flow > b { font-size: 13.5px; }
.how-step { display: flex; gap: 12px; margin-top: 14px; }
.htime { flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 3px 9px;
  height: fit-content; white-space: nowrap; }
.how-step p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.how-note { margin: 14px 2px 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.how-data { margin-top: 14px; }

/* truth summary strip — removed with the standalone transparency page */

/* what-you-get cards: reuse land-feat with a brand check */
.land-feat.ftick::before { content: "✓"; display: inline-block; width: 22px; height: 22px;
  border-radius: 50%; background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand); font-weight: 800; font-size: 13px; text-align: center; line-height: 22px;
  margin-bottom: 10px; }
.land-feat.ftick b { font-size: 15px; }

/* what-you-get table */
.wpill { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .3px;
  padding: 4px 11px; border-radius: 999px; }
.wpill.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.wpill.no { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.dchip { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .2px;
  padding: 3px 10px; border-radius: 999px; color: var(--brand); background: var(--brand-soft);
  white-space: nowrap; }
.land-wtable td:nth-child(3) { white-space: nowrap; }

/* master transparency table (lives on the landing) */
.land-note { margin: 14px 2px 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* two-clocks spectrum bar */
.how-clock { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 18px; margin-bottom: 14px; }
.clock-track { display: flex; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.cseg { display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 1px; padding: 9px 4px; line-height: 1.2; min-width: 0; }
.cseg b { font-size: 12px; font-weight: 800; letter-spacing: .2px; white-space: nowrap; }
.cseg span { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
  opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cseg.ours { background: var(--brand); color: var(--brand-ink); }
.cseg.theirs { background: color-mix(in srgb, var(--ink) 20%, var(--surface-2)); color: var(--ink); }
.cseg.rare { background: color-mix(in srgb, var(--ink) 8%, var(--surface-2)); color: var(--muted); }
.clock-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 12px;
  color: var(--muted); }
.clock-legend span { display: inline-flex; align-items: center; gap: 7px; }
.clock-legend .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.clock-legend .sw.ours { background: var(--brand); }
.clock-legend .sw.theirs { background: color-mix(in srgb, var(--ink) 20%, var(--surface-2)); }
.clock-legend .sw.rare { background: color-mix(in srgb, var(--ink) 8%, var(--surface-2)); }
@media (max-width: 640px) {
  .cseg span { display: none; }
  .cseg b { font-size: 10.5px; }
}

/* closing: pledge + join */
.how-pledge { margin-top: 44px; text-align: center; padding: 32px 26px 26px; position: relative; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line));
  background: color-mix(in srgb, var(--brand) 7%, var(--surface)); border-radius: var(--radius); }
.how-pledge::before { content: "\201C"; position: absolute; top: -14px; left: 16px; font-size: 96px;
  line-height: 1; color: color-mix(in srgb, var(--brand) 28%, transparent); font-family: Georgia, serif; }
.how-pledge b { font-size: 15.5px; position: relative; }
.how-pledge p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; position: relative; }
.how-join { text-align: center; margin-top: 16px; padding: 38px 24px; border-radius: var(--radius);
  background: linear-gradient(140deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #052E2B));
  color: #fff; }
.how-join b { font-size: 21px; letter-spacing: -.01em; color: #fff; }
.how-join p { margin: 9px auto 18px; color: color-mix(in srgb, #fff 82%, transparent); font-size: 13.5px;
  line-height: 1.6; max-width: 480px; }
.how-join .btn { background: #fff; color: var(--brand); border: none; font-weight: 800; }
.how-join .btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.land-more { text-align: center; margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.land-more a { font-weight: 700; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fadeq { from { opacity: 0; } to { opacity: 1; } }
@keyframes mup { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes slidein { from { transform: translateX(50px); opacity: 0; } to { transform: none; opacity: 1; } }
.stat, .kpi { animation: rise .35s ease both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- misc ---------- */
.wrap-anywhere { overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12px; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .rail {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 61;
    width: min(84vw, 300px); height: 100vh;
    transform: translateX(-102%);
    transition: transform .26s cubic-bezier(.32,.9,.35,1);
    box-shadow: var(--shadow-lift);
    padding-top: 14px;
  }
  .rail.open { transform: none; }
  .rail .push { margin-top: auto; }
  .main { padding: 16px 14px 60px; }
  .commandbar { padding: 8px 14px; }
  .navtoggle { display: inline-grid; }
  .mobile-only { display: inline-flex; }
}

@media (max-width: 640px) {
  body { font-size: 13.5px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stat b { font-size: 18px; }
  .kpis { gap: 8px; }
  .kpi { min-width: 0; flex: 1 1 44%; padding: 10px 12px; }
  .topbar h1 { font-size: 18px; }

  /* calendar condenses: chips hide, dots show; tap opens the day sheet */
  .mgrid-row { gap: 4px; padding: 5px; contain-intrinsic-size: auto 52px; }
  .mcell { min-height: 44px; padding: 4px 5px; }
  .mnum { font-size: 10.5px; }
  .mchips { display: none; }
  .dots { display: flex; }
  .mgrid-dowl .dw { display: none; }
  .mgrid-dowl .dw1 { display: inline; }

  /* modals become bottom sheets */
  .modal-bg { align-items: flex-end; padding: 0; }
  .modal {
    width: 100%; max-width: 100%; border-radius: 18px 18px 0 0; border-bottom: 0;
    max-height: 90vh; padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
    animation: sheetup .28s cubic-bezier(.32,.9,.35,1) both;
  }
  #toasts { left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); max-width: none; }
  .drawer { width: 100vw; max-width: 100vw; border-radius: 0; }
  .auth { margin: 5vh auto; }
  .auth .card { padding: 26px 20px; }
  .bkday { width: calc((100% - 36px) / 7); height: 44px; font-size: 12px; }
  .bksum { position: static; }
  .mock-float { display: none; }
  .mock-cell { min-height: 42px; }
  .mpill { font-size: 8px; padding: 1px 4px; }
}

@keyframes sheetup { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- OTA configuration: numbered setup guides ---- */
.steps { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 0 0 12px 34px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(st);
  position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  font-size: 11.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.card code, .modal code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; font-size: 12px; }

/* Phase 1: identity block — Google avatar in the rail's who-box */
.rail .who img.avatar { width: 22px; height: 22px; border-radius: 50%; vertical-align: -6px; margin-right: 6px; }

/* dev-only sandbox quick-login on the login card */
.sandbox-login { margin-top: 16px; padding: 10px 12px 12px; border: 1px dashed var(--line); border-radius: 10px; }
.sandbox-login .sandbox-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.sandbox-login .chips { display: flex; flex-wrap: wrap; gap: 6px; }
