/* Plus Jakarta Sans, self-hosted (SIL Open Font License, see /assets/fonts/OFL-LICENSE.txt) */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2'); }

:root {
  --accent: #2450E8;
  --ink: #1A1F36;
  --muted: #424A6B;
  --soft: #5B6385;
  --tint: #EEF2FF;
  --panel: #F7F8FC;
  --line: #ECEEF5;
  --red-bg: #FDECEA; --red-ink: #5C2B26; --red: #B42318;
  --amber-bg: #FEF3E2; --amber-ink: #5A3A0C; --amber: #F6B64A; --amber-text: #3B2606;
  --green-bg: #E7F5EE; --green-ink: #1F4A39; --green: #17784F;
  --radius-lg: 28px;
  --radius: 22px;
  --pad-x: 6%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--ink);
  background: #FFFFFF;
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--ink); }
a:hover { color: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 22px;
  border: 2px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { color: #FFFFFF; filter: brightness(1.08); }
.btn-white { background: #FFFFFF; color: var(--ink); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-lg { padding: 17px 28px; font-size: 17px; font-weight: 700; }
.btn-block { display: block; width: 100%; }

/* Header and footer */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px var(--pad-x); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { font-weight: 800; font-size: 22px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; font-weight: 500; }
.site-nav a { text-decoration: none; }
.site-nav .btn-primary { color: #FFFFFF; }
.site-footer {
  padding: 32px var(--pad-x) 40px; display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 16px; font-size: 14px; color: var(--soft); border-top: 1px solid var(--line);
}

/* Sections */
.section { padding: 88px var(--pad-x) 72px; display: flex; flex-direction: column; gap: 36px; }
.band { margin: 0 var(--pad-x); padding: 64px var(--pad-x); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 28px; }
.band-tint { background: var(--tint); }
.band-dark { background: var(--ink); color: #FFFFFF; }
.section h2, .band h2 { font-size: clamp(30px, 4vw, 40px); }
.lead { font-size: 18px; color: var(--muted); }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.pill {
  align-self: flex-start; font-size: 14px; font-weight: 700; color: var(--accent);
  background: #FFFFFF; padding: 6px 12px; border-radius: 999px;
}

/* Hero */
.hero {
  margin: 24px var(--pad-x) 0; padding: 72px var(--pad-x); border-radius: var(--radius-lg);
  background: var(--tint); display: grid; gap: 56px; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-copy .eyebrow {
  align-self: flex-start; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); background: #FFFFFF; padding: 8px 14px; border-radius: 999px;
}
.hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.06; letter-spacing: -0.02em; }
.hero-copy > p { font-size: 20px; line-height: 1.6; color: var(--muted); }
.hero-copy .small { font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { display: flex; flex-direction: column; gap: 18px; }
.card {
  background: #FFFFFF; border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: 0 20px 50px rgba(36,80,232,0.14);
}
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-head span { font-size: 14px; color: var(--soft); }
.status-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; }
.status-row div { display: flex; flex-direction: column; gap: 2px; }
.status-row span { font-size: 14px; }
.badge { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.is-red { background: var(--red-bg); } .is-red span { color: var(--red-ink); } .is-red .badge { background: var(--red); color: #FFFFFF; }
.is-amber { background: var(--amber-bg); } .is-amber span { color: var(--amber-ink); } .is-amber .badge { background: var(--amber); color: var(--amber-text); }
.is-green { background: var(--green-bg); } .is-green span { color: var(--green-ink); } .is-green .badge { background: var(--green); color: #FFFFFF; }
.email-card { margin-left: 48px; gap: 8px; padding: 22px 24px; }
.email-card .from { font-size: 13px; color: var(--soft); }
.email-card p { font-size: 15px; color: var(--muted); }
.email-card .btn { align-self: flex-start; border-radius: 10px; padding: 10px 16px; font-size: 14px; }

/* Steps */
.step { display: flex; flex-direction: column; gap: 10px; }
.step-num {
  width: 44px; height: 44px; border-radius: 999px; background: var(--tint); color: var(--accent);
  font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center;
}
.step strong { font-size: 20px; }
.step p { color: var(--muted); line-height: 1.6; }

/* Changes strip */
.band-dark .band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.band-dark .band-head span { font-size: 15px; color: #C9CEE6; }
.change { padding: 24px; border-radius: 18px; background: rgba(255,255,255,0.07); display: flex; flex-direction: column; gap: 8px; }
.change strong { font-size: 18px; color: #A9BBFF; }
.change p { line-height: 1.6; }

/* Examples */
.example { background: var(--panel); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.example strong { font-size: 21px; }
.example p { color: var(--muted); line-height: 1.6; }

/* Pricing */
#pricing { margin-bottom: 80px; }
.price-card { background: #FFFFFF; border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.price-card .tier-name { font-size: 22px; }
.price-card .limit { color: var(--muted); }
.price-card .amount { font-weight: 800; font-size: 44px; }
.price-card .per { color: var(--muted); }
.price-card ul { margin: 0; padding-left: 20px; line-height: 1.9; }
.price-card .btn { margin-top: auto; }
.price-card.featured { background: var(--accent); color: #FFFFFF; }
.price-card.featured .limit, .price-card.featured .per { color: #FFFFFF; }
.price-card.featured .btn { background: #FFFFFF; color: var(--accent); }
.price-card .tag { font-size: 13px; font-weight: 700; background: #FFFFFF; color: var(--accent); padding: 5px 12px; border-radius: 999px; }
.price-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* Forms */
.auth-wrap { padding: 64px var(--pad-x); background: var(--tint); min-height: calc(100vh - 160px); }
.auth-card { background: #FFFFFF; border-radius: var(--radius); padding: 36px; margin: 0 auto; width: min(520px, 100%); display: flex; flex-direction: column; gap: 20px; box-shadow: 0 20px 50px rgba(36,80,232,0.10); }
.auth-card h1 { font-size: 30px; }
.auth-card .lead { font-size: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input[type=text], .field input[type=email], .field input[type=password] {
  font: inherit; padding: 13px 14px; border: 1px solid #CBD1E6; border-radius: 12px; width: 100%;
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field .hint { font-size: 14px; color: var(--soft); }
.choice-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice > span {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid #CBD1E6;
  border-radius: 12px; cursor: pointer; font-size: 14px;
}
.choice > span strong { font-size: 16px; }
.choice input:checked + span { border: 2px solid var(--accent); background: var(--tint); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { margin-top: 4px; }
.form-foot { font-size: 15px; color: var(--muted); }
.errors { background: var(--red-bg); color: var(--red-ink); border-radius: 12px; padding: 12px 16px; }
.errors ul { margin: 0; padding-left: 18px; }
.flash { margin: 16px var(--pad-x) 0; padding: 12px 16px; border-radius: 12px; }
.flash-success { background: var(--green-bg); color: var(--green-ink); }
.flash-error { background: var(--red-bg); color: var(--red-ink); }
.flash-info { background: var(--tint); color: var(--ink); }

@media (max-width: 640px) {
  .site-nav { gap: 16px; }
  .hero, .band { padding: 44px 6%; }
  .email-card { margin-left: 0; }
  .section { padding: 64px var(--pad-x) 48px; }
}

/* Portal */
body.portal { background: var(--panel); }
.portal-wrap { display: flex; flex-wrap: wrap; min-height: 100vh; }
.portal-side {
  flex: 0 0 250px; background: #FFFFFF; border-right: 1px solid var(--line); padding: 26px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.portal-side .brand { padding: 0 10px 26px; }
.portal-side .brand span { font-size: 19px; }
.portal-side nav { display: flex; flex-direction: column; gap: 6px; }
.portal-side nav a { text-decoration: none; padding: 12px 14px; border-radius: 12px; font-weight: 500; }
.portal-side nav a.active { background: var(--tint); color: var(--accent); font-weight: 700; }
.plan-box { margin-top: auto; padding: 16px 14px; border-radius: 16px; background: var(--tint); display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.plan-box span { color: var(--muted); }
.plan-box .meter { height: 6px; border-radius: 999px; background: #FFFFFF; display: flex; overflow: hidden; }
.plan-box .meter span { background: var(--accent); }
.portal-main { flex: 1 1 600px; padding: 36px 4%; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.portal-main .flash { margin: 0; }
.portal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.portal-head > div { display: flex; flex-direction: column; gap: 4px; }
.portal-head h1 { font-size: 32px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.strong { font-weight: 700; }
.right { text-align: right; }
.sr { position: absolute; left: -9999px; }
.notice { background: var(--amber-bg); color: var(--amber-ink); border-radius: 14px; padding: 14px 18px; }

.prop-card {
  background: #FFFFFF; border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px;
  text-decoration: none; border: 2px solid transparent;
}
.prop-card:hover { border-color: var(--tint); color: var(--ink); }
.prop-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.prop-top strong { font-size: 18px; }
.bar { height: 8px; border-radius: 999px; background: #EEF0F6; display: flex; overflow: hidden; }
.seg-green { background: var(--green); } .seg-amber { background: var(--amber); }
.seg-red { background: var(--red); } .seg-grey { background: #C3C8DA; }
.badge.is-red { background: var(--red); color: #FFFFFF; }
.badge.is-amber { background: var(--amber); color: var(--amber-text); }
.badge.is-green { background: var(--green); color: #FFFFFF; }
.badge.is-grey { background: #E3E6F0; color: var(--ink); }

.panel { background: #FFFFFF; border-radius: var(--radius); }
.panel-head { padding: 22px 26px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 22px; }
.panel-body { padding: 26px; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 680px; }
table.data th { text-align: left; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; padding: 14px 26px; font-weight: 700; }
table.data td { padding: 16px 26px; border-top: 1px solid var(--line); }
.btn-small { padding: 8px 14px; font-size: 14px; font-weight: 700; }
.btn-outline-soft { background: #FFFFFF; border-color: #D5DAEA; color: var(--ink); }
.btn-link { background: none; border: 0; color: var(--soft); text-decoration: underline; padding: 8px 4px; }

.items { display: flex; flex-direction: column; }
.item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding: 20px 26px; border-top: 1px solid var(--line); }
.items .item:first-child { border-top: 0; }
.item:target { background: var(--tint); }
.item-main { flex: 1 1 360px; display: flex; flex-direction: column; gap: 6px; }
.item-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.item-actions { flex: 0 1 300px; display: flex; flex-direction: column; gap: 8px; }
.inline-form { display: flex; flex-direction: column; gap: 4px; }
.inline-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-row input[type=date] { font: inherit; padding: 8px 10px; border: 1px solid #CBD1E6; border-radius: 10px; }
.tag-soft { display: inline-block; font-size: 12px; font-weight: 700; background: var(--panel); color: var(--soft); padding: 3px 8px; border-radius: 999px; margin-right: 6px; }

.form-stack { display: flex; flex-direction: column; gap: 20px; }
.form-title { font-size: 22px; margin-top: 8px; }
.field-row { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.questions { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.question { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.question legend { float: left; display: flex; flex-direction: column; gap: 2px; padding: 0; }
.yesno { display: flex; gap: 6px; flex-shrink: 0; }
.yesno label { position: relative; }
.yesno input { position: absolute; opacity: 0; }
.yesno span { display: block; padding: 8px 16px; border: 1px solid #CBD1E6; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; }
.yesno input:checked + span { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.yesno input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.archive-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }

@media (max-width: 800px) {
  .portal-side { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--line); padding: 18px; }
  .portal-side .brand { padding: 0 0 12px; }
  .portal-side nav { flex-direction: row; flex-wrap: wrap; }
  .plan-box { margin-top: 10px; }
  .portal-main { padding: 24px 5%; }
}

/* Choice box sub-lines */
.choice span .choice-sub { color: var(--soft); font-size: 13px; }
.choice input:checked + span .choice-sub { color: var(--muted); }

/* Wizard */
.wizard-bar { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wizard-bar li { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: #FFFFFF; color: var(--soft); font-weight: 600; font-size: 14px; }
.wizard-bar li span { width: 26px; height: 26px; border-radius: 999px; background: var(--panel); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.wizard-bar li a { text-decoration: none; color: inherit; }
.wizard-bar li.done span { background: var(--green); color: #FFFFFF; }
.wizard-bar li.current { background: var(--accent); color: #FFFFFF; }
.wizard-bar li.current span { background: #FFFFFF; color: var(--accent); }
.answer-row { border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.answer-row legend { float: left; width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 0; }
.answer-row .yesno { flex-wrap: wrap; }
.answer-row.is-na { opacity: 0.6; }
.answer-fields { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.answer-fields input[type=date], .field select, .inline-row select {
  font: inherit; padding: 12px 14px; border: 1px solid #CBD1E6; border-radius: 12px; background: #FFFFFF;
}
.field input[type=date] { font: inherit; padding: 12px 14px; border: 1px solid #CBD1E6; border-radius: 12px; }
.item.is-na { opacity: 0.6; }
.form-title .hint { font-weight: 500; font-size: 15px; }

/* Questions: options drop below the text when there isn't room */
.question { flex-wrap: wrap; }
.question legend { flex: 1 1 260px; }
.question .yesno { flex-wrap: wrap; }

/* Dashboard card: name with rename pencil */
.prop-card { text-decoration: none; }
.prop-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.prop-name a { text-decoration: none; font-size: 18px; }
.prop-body { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.prop-body:hover { color: var(--ink); }
.icon-btn { background: none; border: 0; padding: 4px; border-radius: 8px; color: var(--soft); cursor: pointer; display: inline-flex; }
.icon-btn:hover { background: var(--tint); color: var(--accent); }
.rename-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rename-form input[type=text] { font: inherit; padding: 6px 10px; border: 1px solid #CBD1E6; border-radius: 10px; }
.tag-let { background: var(--green-bg); color: var(--green-ink); margin-left: 6px; }
[hidden] { display: none !important; }

/* Rent review inflation guide */
.guide-box { margin-top: 6px; background: var(--tint); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.snooze { gap: 6px; }
.snooze select { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid #CBD1E6; border-radius: 10px; background: #FFFFFF; }
.btn-danger { background: var(--red); color: #FFFFFF; }
.btn-danger:hover { color: #FFFFFF; filter: brightness(1.1); }
.confirm-input { font: inherit; padding: 8px 10px; border: 1px solid #CBD1E6; border-radius: 10px; max-width: 320px; }

/* Email on/off switch */
.switch { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0; cursor: pointer; font: inherit; color: var(--muted); }
.switch .knob { width: 34px; height: 20px; border-radius: 999px; background: #CBD1E6; position: relative; flex-shrink: 0; transition: background 0.15s; }
.switch .knob::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #FFFFFF; transition: left 0.15s; }
.switch.on .knob { background: var(--green); }
.switch.on .knob::after { left: 16px; }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* ---------- Mobile first: phones ---------- */
@media (max-width: 720px) {
  /* Coming up: each row becomes a card */
  .table-scroll { overflow: visible; }
  table.data { min-width: 0; }
  table.data thead { display: none; }
  table.data, table.data tbody { display: block; }
  table.data tr {
    display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center;
    padding: 16px 20px; border-top: 1px solid var(--line);
    grid-template-areas: "item due" "prop prop" "date act";
  }
  table.data td { padding: 0; border: 0; }
  table.data .c-item { grid-area: item; font-weight: 700; }
  table.data .c-due { grid-area: due; justify-self: end; }
  table.data .c-prop { grid-area: prop; color: var(--muted); font-size: 14px; }
  table.data .c-date { grid-area: date; font-weight: 500; font-size: 14px; color: var(--muted); }
  table.data .c-date::before { content: 'Due '; }
  table.data .c-act { grid-area: act; justify-self: end; }
  .badge { white-space: nowrap; }

  /* Portal menu: one compact row */
  .portal-side { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
  .portal-side .brand { padding: 0; margin-right: auto; }
  .portal-side .brand span { font-size: 17px; }
  .portal-side nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 4px; width: 100%; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .portal-side nav::-webkit-scrollbar { display: none; }
  .portal-side nav a { white-space: nowrap; padding: 8px 12px; font-size: 14px; }
  .plan-box { display: none; }
  .portal-main { padding: 20px 16px 40px; gap: 20px; }
  .portal-head h1 { font-size: 26px; }
  .portal-head .btn-lg { padding: 12px 20px; font-size: 15px; }

  /* Panels and items */
  .panel-head { padding: 16px 20px; }
  .panel-head h2 { font-size: 19px; }
  .panel-body { padding: 20px; }
  .item { padding: 16px 20px; gap: 12px; }
  .item-main, .item-actions { flex: 1 1 100%; }
  .prop-card { padding: 20px; }

  /* Forms */
  .question { padding: 14px; }
  .answer-row { padding: 14px; }
  .wizard-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .wizard-bar li { white-space: nowrap; }
  .actions .btn-lg { flex: 1 1 auto; }
}
@media (max-width: 720px) {
  .portal-side, .portal-main { min-width: 0; max-width: 100%; }
  .portal-side nav { min-width: 0; flex: 1 1 100%; }
  .portal-main { flex: 1 1 100%; }
}
@media (max-width: 720px) {
  .question legend { flex: 1 1 100%; }
  .yesno { flex-wrap: wrap; flex-shrink: 1; max-width: 100%; }
}
/* Reminder rows: text on the left, an Update button top right, and the controls in a strip underneath when opened */
.items .item-rem { position: relative; display: block; padding: 18px 26px; }
.items .item-rem .item-main { padding-right: 110px; }
.item-edit > summary { position: absolute; top: 16px; right: 26px; list-style: none; cursor: pointer; }
.item-edit > summary::-webkit-details-marker { display: none; }
.item-edit[open] > summary { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.item-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin-top: 14px; padding: 14px 16px; background: var(--panel); border-radius: 12px; }
.item-controls > * { margin: 0; }
.item-controls .inline-form { gap: 6px; }
.item-controls .inline-row { gap: 8px; }
.item-controls input[type=date], .item-controls select { height: 38px; font-size: 14px; padding: 0 10px; border: 1px solid #CBD1E6; border-radius: 10px; background: #FFFFFF; }
.item-controls .btn-small { height: 38px; display: inline-flex; align-items: center; }
.item-controls .btn-link { height: auto; }
.item-controls > .inline-row:last-child { margin-left: auto; }
/* Rows without an Update control (Doesn't apply list): button sits on the right */
.panel-head:last-child { border-bottom: 0; }
@media (max-width: 720px) {
  .items .item-rem { padding: 16px 20px; }
  .items .item-rem .item-main { padding-right: 0; }
  .item-edit > summary { position: static; display: inline-block; margin-top: 12px; }
  .item-controls { flex-direction: column; align-items: stretch; }
  .item-controls > .inline-row:last-child { margin-left: 0; }
}

/* ---------- Menus: button on phones ---------- */
.menu-toggle { display: none; }
.portal-menu { display: flex; flex-direction: column; gap: 6px; flex: 1; }
@media (min-width: 721px) {
  .portal-side { position: sticky; top: 0; height: 100vh; }
}
@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.15s, opacity 0.15s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Public header */
  .site-header { flex-wrap: wrap; padding: 14px 16px; position: sticky; top: 0; background: #FFFFFF; z-index: 10; }
  .site-header .brand span { font-size: 19px; }
  .site-nav { display: none; flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 2px; padding-top: 10px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-nav a.btn { margin-top: 10px; border-bottom: 0; text-align: center; padding: 14px; }

  /* Account area: replaces the sideways-scroll row */
  .portal-side { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0; padding: 12px 16px; }
  .portal-side .brand { margin-right: 0; }
  .portal-menu { display: none; flex: 1 1 100%; padding-top: 10px; }
  .portal-menu.open { display: flex; }
  .portal-side nav { flex-direction: column; flex-wrap: nowrap; overflow: visible; width: 100%; gap: 2px; }
  .portal-side nav a { padding: 12px 12px; font-size: 16px; }
  .portal-menu .plan-box { display: flex; margin-top: 8px; }
}

/* Admin */
.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.stat { background: #FFFFFF; border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.stat strong { font-size: 28px; font-weight: 800; }
table.kv { width: 100%; border-collapse: collapse; font-size: 15px; }
table.kv td { padding: 12px 26px; border-top: 1px solid var(--line); }
table.kv td:last-child { text-align: right; font-weight: 600; }
.week-bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; align-items: end; height: 200px; }
.week { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.bar-v { display: block; width: 100%; max-width: 48px; min-height: 2px; background: var(--accent); border-radius: 6px 6px 0 0; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-filters input[type=search], .admin-filters select { font: inherit; padding: 10px 12px; border: 1px solid #CBD1E6; border-radius: 10px; background: #FFFFFF; }
.admin-filters input[type=search] { flex: 1 1 220px; }
.money-input { font: inherit; padding: 8px 10px; border: 1px solid #CBD1E6; border-radius: 10px; width: 110px; }
@media (max-width: 720px) {
  table.admin-table tr { grid-template-columns: 1fr; grid-template-areas: none; }
  table.admin-table td { display: block; }
  table.kv td { padding: 10px 20px; }
}
/* Contact form */
.field textarea { font: inherit; padding: 13px 14px; border: 1px solid #CBD1E6; border-radius: 12px; width: 100%; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--soft); }
.meter-line { display: block; height: 6px; border-radius: 999px; background: var(--panel); overflow: hidden; }
.meter-line span { display: block; height: 100%; background: var(--accent); }
.days14 { grid-template-columns: repeat(14, 1fr); }
.ref-link { font: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid #CBD1E6; border-radius: 10px; flex: 1 1 260px; min-width: 0; background: var(--panel); }

/* Terms and privacy */
.legal { padding: 48px var(--pad-x) 72px; display: flex; flex-direction: column; gap: 14px; line-height: 1.65; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); }
.legal h2 { font-size: 21px; margin-top: 18px; }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal .legal-table td { padding: 10px 0; }
.legal .legal-table td:last-child { text-align: right; }
@media (max-width: 720px) { .legal { padding: 28px 18px 48px; } }

/* HMO property page: room jump links and per-room panels */
.room-jump { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 20px; }
.room-chip { display: inline-flex; align-items: center; gap: 10px; min-width: 0; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px 8px 14px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.room-chip:hover { border-color: var(--accent); }
.room-chip .badge { font-size: 12px; padding: 4px 9px; }
.room-panel { border-left: 4px solid var(--accent); }
.room-kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 0 0 2px; }
.panel-head > div { min-width: 0; }
.panel-head p { margin: 4px 0 0; }
.panel { scroll-margin-top: 90px; }
@media (max-width: 720px) {
  .room-jump { gap: 8px; }
  .room-jump { flex-direction: column; align-items: stretch; }
  .room-chip { font-size: 15px; justify-content: space-between; padding: 10px 12px 10px 14px; }
  .room-jump .btn { text-align: center; }
}

/* "What's this?" buttons and pop-up */
.help-tip { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 4px; padding: 0; border: 1px solid #C9CEDD; border-radius: 50%; background: transparent; color: #8A91A8; font: 600 11px/1 inherit; font-family: inherit; vertical-align: 1px; cursor: pointer; flex: none; }
.help-tip:hover, .help-tip:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.help-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 24px 60px rgba(20, 30, 70, .25); color: var(--ink); }
.help-dialog::backdrop { background: rgba(16, 22, 48, .45); }
.help-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 8px; }
.help-dialog-head h2 { font-size: 21px; margin: 0; }
.help-close { border: 0; background: var(--panel); width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); flex: none; }
.help-dialog-body { padding: 0 24px; }
.help-dialog-body p { margin: 0 0 12px; line-height: 1.55; }
.help-dialog-foot { margin: 4px 0 0; padding: 14px 24px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--soft); }
@media (max-width: 720px) {
  .help-dialog { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 18px 18px 0 0; max-height: 85vh; }
  .help-tip { width: 20px; height: 20px; }
}

/* Question cards: fieldsets don't shrink by default, which let long answer rows spill out of narrow cards */
.question, .answer-row { min-width: 0; }
.question .yesno, .answer-row .yesno { flex: 0 1 auto; min-width: 0; max-width: 100%; flex-wrap: wrap; }

/* HMO room step: progress, prompts, collapsed room rows and the open room form */
.rooms-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 4px 0 14px; }
.rooms-head h2 { font-size: 22px; margin: 0; }
.rooms-progress { flex: 1 1 100%; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.rooms-progress span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.room-prompt { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; background: #FFFFFF; border: 1px solid var(--accent); border-radius: 16px; padding: 18px 20px; margin-bottom: 14px; }
.room-prompt p { margin: 4px 0 0; }
.room-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.room-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.room-row-main { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.room-row-actions { display: flex; align-items: center; gap: 6px; }
.room-row-actions form { margin: 0; }
.room-row.is-empty { background: var(--panel); border-style: dashed; }
.room-block.is-open { border: 2px solid var(--accent); border-radius: 18px; background: #FFFFFF; overflow: hidden; }
.room-block-head { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px 0; }
.room-block-head strong { font-size: 20px; }
.room-block .panel { border: 0; box-shadow: none; margin: 0; border-radius: 0; }
.room-block .panel + .panel { border-top: 1px solid var(--line); }
@media (max-width: 720px) {
  .room-row { padding: 12px 14px; }
  .room-row-actions { flex: 1 1 100%; justify-content: flex-start; }
  .room-prompt .inline-row { flex: 1 1 100%; }
  .room-prompt .btn { flex: 1 1 auto; text-align: center; }
}

/* Whole property card is a link; the rename pencil and form sit above it */
.prop-card { position: relative; cursor: pointer; }
.prop-card .card-link { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.prop-card .card-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.prop-card .icon-btn, .prop-card .rename-form { position: relative; z-index: 2; }
.prop-card strong[data-name] { font-size: 18px; }

/* Dashboard: coming up filters */
.coming-filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 26px; border-bottom: 1px solid var(--line); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { position: relative; }
.filter-chip input { position: absolute; opacity: 0; }
.filter-chip span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid #CBD1E6; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; background: #FFFFFF; }
.filter-chip em { font-style: normal; color: var(--soft); font-weight: 500; }
.filter-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.filter-chip input:checked + span em { color: #C9CEDD; }
.filter-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-red { background: var(--red); } .dot-amber { background: var(--amber); } .dot-green { background: var(--green); }
.coming-filters select, .list-tools select { font: inherit; font-size: 14px; padding: 8px 12px; border: 1px solid #CBD1E6; border-radius: 10px; background: #FFFFFF; }
.panel-head p { margin: 4px 0 0; }

/* Property page: order and collapse controls, other properties */
.list-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.list-tools [data-collapse-items] { margin-left: auto; }
.other-props { margin-top: 36px; }
.other-props h2 { font-size: 22px; margin: 0 0 14px; }
@media (max-width: 720px) {
  .coming-filters { padding: 14px 20px; }
  .coming-filters select { flex: 1 1 100%; }
}

.portal-head .actions { align-items: center; }

/* Plain item rows (billing, Doesn't apply list): keep the button to the right, not stretched */
.item > .item-actions { flex: 0 0 auto; align-items: flex-end; justify-content: center; }
@media (max-width: 720px) { .item > .item-actions { flex: 1 1 100%; align-items: flex-start; } }
.flash.has-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }

/* Property page summary and filters */
.prop-summary { padding: 20px 26px; display: flex; flex-direction: column; gap: 12px; }
.prop-summary-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.prop-summary-top strong { font-size: 18px; }
.dot-grey { background: #C3C8DA; }
.item-rem[hidden] { display: none !important; }
@media (max-width: 720px) { .prop-summary { padding: 16px 20px; } }
.prop-summary-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.prop-summary .list-tools { margin: 0; }
.plain-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

/* Email reminders page */
.email-settings { display: flex; flex-direction: column; gap: 20px; }
.email-settings .setting { display: flex; flex-direction: column; gap: 10px; }
.email-settings .setting + .setting { padding-top: 18px; border-top: 1px solid var(--line); }
.email-settings h3 { font-size: 16px; margin: 0; }
.choice-row.cards-2 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.choice-row.cards-3 { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.choice-row.cards-4 { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.inline-field { flex-direction: row; align-items: center; gap: 10px; }
.inline-field select { font: inherit; font-size: 15px; height: 42px; padding: 0 12px; border: 1px solid #CBD1E6; border-radius: 10px; background: #FFFFFF; min-width: 200px; }
.pause-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.pause-box p { margin: 4px 0 0; }
.pause-box select { font: inherit; font-size: 14px; height: 40px; padding: 0 10px; border: 1px solid #CBD1E6; border-radius: 10px; background: #FFFFFF; }
.notice-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.item > .item-actions select { font: inherit; font-size: 14px; height: 38px; padding: 0 10px; border: 1px solid #CBD1E6; border-radius: 10px; background: #FFFFFF; }
@media (max-width: 720px) {
  .pause-box form { flex: 1 1 100%; }
}

/* Homepage: photo at the top of each "Built for landlords like you" card, running to the card edges */
.example { overflow: hidden; }
.example-img { display: block; width: calc(100% + 60px); max-width: none; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin: -30px -30px 8px; }
.example .pill { align-self: flex-start; }

/* Email reminders: property on/off chips */
.prop-switches { display: flex; flex-wrap: wrap; gap: 8px; }
.prop-switch { position: relative; }
.prop-switch input { position: absolute; opacity: 0; }
.prop-switch span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 12px; border: 1px solid #CBD1E6; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; background: #FFFFFF; color: var(--soft); }
.prop-switch span::before { content: ''; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #CBD1E6; background: #FFFFFF; flex: none; }
.prop-switch input:checked + span { border-color: var(--accent); color: var(--ink); background: var(--tint); }
.prop-switch input:checked + span::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--accent); }
.prop-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Bot protection: honeypot field kept off screen; Turnstile widget spacing */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }
.auth-card .field .small { align-self: flex-end; margin-top: 4px; }
.hero-sub { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; color: var(--accent); margin: -8px 0 0; }

/* Email reminders (v48) */
.setting-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.setting-row[hidden], .email-settings [hidden] { display: none; }
.email-settings .select { font: inherit; font-size: 15px; height: 42px; padding: 0 12px; border: 1px solid #CBD1E6; border-radius: 10px; background: #FFFFFF; min-width: 200px; color: var(--ink); }
.email-settings .form-title { margin: 0 0 2px; }
.check-line { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.check-line input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--accent); }
.check-line input:disabled + * , .check-line:has(input:disabled) { opacity: 0.55; cursor: default; }
.next-email { background: var(--tint); border-color: #D6DEFF; }
.next-email #next-note { display: block; margin-top: 4px; }
.next-email #next-note[hidden] { display: none; }

/* Bookings and tasks (v50) */
.tag-inhand { background: #E6EDFF; color: #1F3FB8; }
.booking-line { margin-top: 6px; padding: 8px 12px; border-radius: 10px; background: #EEF2FF; color: #1F3FB8; }
.booking-line.is-passed { background: var(--amber-bg); color: var(--amber-ink); }
.booking-ok { color: #1F3FB8; font-weight: 600; }
.booking-passed { color: var(--amber-ink); font-weight: 600; }
.booking-form input[type=time], .booking-form input[type=text] { font: inherit; height: 38px; font-size: 14px; padding: 0 10px; border: 1px solid #CBD1E6; border-radius: 10px; background: #FFFFFF; }
.booking-form input[type=text] { min-width: 220px; flex: 1; }
.task-add { position: relative; }
.task-add[open] { flex-basis: 100%; }
.panel-head:has(.task-add[open]) { flex-wrap: wrap; }
.task-form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; padding: 16px; background: var(--panel); border-radius: 12px; }
.task-fields { display: grid; gap: 12px; grid-template-columns: 2fr 1fr 1fr; }
.task-form .field { display: flex; flex-direction: column; gap: 4px; }
.task-form input[type=text], .task-form input[type=date], .task-form select { font: inherit; font-size: 15px; height: 42px; padding: 0 12px; border: 1px solid #CBD1E6; border-radius: 10px; background: #FFFFFF; width: 100%; box-sizing: border-box; }
.task-row .item-actions { display: flex; gap: 6px; align-items: center; }
.task-note { color: var(--ink); margin-top: 4px; }
.task-row.is-done strong { text-decoration: line-through; color: var(--soft); }
.done-list { padding: 4px 20px 16px; }
.done-list > summary { cursor: pointer; color: var(--soft); font-weight: 600; padding: 8px 0; }
@media (max-width: 720px) { .task-fields { grid-template-columns: 1fr; } }
.task-row .item-actions { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }

/* Update panel: date first, in hand behind a link, footer (v51) */
.item-controls.ctl { flex-direction: column; align-items: stretch; gap: 14px; }
.ctl-main { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; }
.ctl-hint { margin: 2px 0 0; }
.ctl-more { border-top: 1px solid #E3E6F0; padding-top: 12px; }
.ctl-more > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--accent); list-style: none; }
.ctl-more > summary::-webkit-details-marker { display: none; }
.ctl-more > summary::before { content: '+ '; }
.ctl-more[open] > summary::before { content: '\2212 '; }
.ctl-more > summary .muted { font-weight: 400; margin-left: 6px; }
.ctl-inhand { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.ctl-inhand .inline-row { align-items: flex-end; }
.ctl-f { display: flex; flex-direction: column; gap: 4px; }
.ctl-grow { flex: 1; min-width: 220px; }
.ctl-f input { font: inherit; height: 38px; font-size: 14px; padding: 0 10px; border: 1px solid #CBD1E6; border-radius: 10px; background: #FFFFFF; }
.ctl-pause { align-items: flex-start; font-size: 14px; }
.ctl-pause input { margin-top: 2px; }
.ctl-pause > span { display: flex; flex-direction: column; gap: 2px; }
.ctl-pause .muted { font-weight: 400; }
.ctl-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; border-top: 1px solid #E3E6F0; padding-top: 10px; }
@media (max-width: 720px) { .ctl-grow { min-width: 100%; } }

/* Update and In hand buttons (v51) */
.items .item-rem .item-main { padding-right: 240px; }
.item-btns { position: absolute; top: 16px; right: 26px; display: flex; gap: 8px; }
.item-btns .btn-toggle.is-open { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.btn-inhand { background: #FFFFFF; border: 1px solid #B9C6F5; color: #1F3FB8; }
.btn-inhand.is-on { background: #E6EDFF; border-color: #E6EDFF; }
.item-btns .btn-inhand.is-open { background: #1F3FB8; border-color: #1F3FB8; color: #FFFFFF; }
.ctl-inhand-panel { background: #EEF2FF; }
.ctl-ph { font-size: 15px; }
.ctl-inhand-panel .ctl-hint { margin: 2px 0 0; }
.ctl-inhand { margin-top: 0; }
.did-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.did-box form { margin: 0; }
.did-box input[type=date] { font: inherit; height: 36px; font-size: 14px; padding: 0 10px; border: 1px solid #CBD1E6; border-radius: 10px; background: #FFFFFF; }
@media (max-width: 720px) {
  .items .item-rem .item-main { padding-right: 0; }
  .item-btns { position: static; margin-top: 12px; }
  .item-btns .btn { flex: 1; justify-content: center; }
}

/* Option 1: one Update button coloured by urgency, In hand as a strip in the item (v53) */
.items .item-rem .item-main { padding-right: 130px; }
.item-btns .btn-toggle { min-width: 96px; justify-content: center; }
.item-btns .btn-urgent-red { background: var(--red); border-color: var(--red); color: #FFFFFF; }
.item-btns .btn-urgent-amber { background: var(--amber); border-color: var(--amber); color: var(--amber-text); }
.item-btns .btn-toggle.is-open { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.inhand-strip { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-top: 8px; padding: 8px 12px; border: 1px dashed #B9C6F5; border-radius: 10px; font-size: 14px; color: var(--soft); max-width: 680px; }
.inhand-strip.is-on { border: 1px solid #E6EDFF; background: #EEF2FF; color: #1F3FB8; }
.inhand-strip.is-did { border: 1px solid var(--amber-bg); background: var(--amber-bg); color: var(--amber-ink); }
.inhand-strip form { margin: 0; }
.inhand-strip input[type=date] { font: inherit; height: 36px; font-size: 14px; padding: 0 10px; border: 1px solid #CBD1E6; border-radius: 10px; background: #FFFFFF; }
.strip-link, .inhand-strip .btn.strip-link { background: none; border: 0; padding: 0; height: auto; font: inherit; font-size: 14px; font-weight: 700; color: #1F3FB8; text-decoration: underline; cursor: pointer; }
.inhand-strip.is-did .strip-link, .inhand-strip.is-did .btn.strip-link { color: var(--amber-ink); }
@media (max-width: 720px) {
  .items .item-rem .item-main { padding-right: 0; }
  .item-btns { position: static; margin-top: 12px; }
  .item-btns .btn-toggle { width: 100%; }
  .inhand-strip { max-width: none; }
}
.btn-outline-danger { background: #FFFFFF; border: 1px solid #F1B8B3; color: var(--red); }
.btn-outline-danger:hover { background: var(--red-bg); color: var(--red); }
.portal-head > .actions { flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; }
.pay-year { border-top: 1px solid var(--line); }
.pay-year > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 26px; cursor: pointer; list-style: none; }
.pay-year > summary::-webkit-details-marker { display: none; }
.pay-year > summary strong::before { content: '+ '; color: var(--soft); }
.pay-year[open] > summary strong::before { content: '\2212 '; }
.pay-year .table-scroll { padding: 0 26px 16px; }
.pay-year table { table-layout: fixed; width: 100%; }
.pay-year th:first-child { width: 28%; }
.pay-year th:last-child { width: 24%; }
.pay-year th.right, .pay-year td.right { text-align: right; }
.ending-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; padding: 10px 20px; background: var(--amber); color: var(--amber-text); font-size: 15px; text-align: center; }
.ending-bar .btn { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.ending-bar .btn:hover { color: #FFFFFF; filter: brightness(1.2); }
.ending-bar form { margin: 0; }
.ending-bar-close button { background: none; border: 0; padding: 4px 6px; font: inherit; font-size: 14px; font-weight: 700; color: var(--amber-text); text-decoration: underline; cursor: pointer; }

/* Homepage (v61): mock dashboard that matches the real one, steps with visuals, landlord types, nations */
.section-head { display: flex; flex-direction: column; gap: 10px; }
.hero-visual { position: relative; }
.mock-dash { background: var(--panel); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 50px rgba(36,80,232,0.14); border: 1px solid #FFFFFF; }
.mock-head { display: flex; flex-direction: column; gap: 2px; }
.mock-head strong { font-size: 20px; }
.mock-head span, .mock-meta { font-size: 13px; color: var(--soft); }
.mock-props { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock-prop { background: #FFFFFF; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mock-prop-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mock-prop-top strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-prop .badge, .mock-item .badge, .mock-pills .badge { font-size: 12px; padding: 4px 10px; }
.mock-meta .tag-soft { font-size: 11px; padding: 2px 7px; margin: 0; }
.mock-count { font-size: 12px; }
.mock-item { background: #FFFFFF; border-radius: 16px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mock-item-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.mock-item-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mock-item-title strong { font-size: 15px; }
.mock-item .inhand-strip { margin-top: 6px; font-size: 13px; padding: 6px 10px; }
.mock-btn-amber { background: var(--amber); border-color: var(--amber); color: var(--amber-text); }
.mock-item .btn { pointer-events: none; flex-shrink: 0; }
.mock-email { background: #FFFFFF; border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 20px 50px rgba(36,80,232,0.14); margin: -6px 0 0 56px; }
.mock-from { font-size: 12px; color: var(--soft); }
.mock-email > strong { font-size: 16px; }
.mock-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.mock-email-row { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 10px; }
.mock-email-row strong { font-size: 14px; }
.mock-email-row span { font-size: 13px; color: var(--muted); }

.how-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.how { display: flex; flex-direction: column; gap: 12px; }
.how > strong { font-size: 20px; margin-top: 6px; }
.how > p { color: var(--muted); line-height: 1.6; }
.how-visual { background: var(--tint); border-radius: 18px; padding: 20px; min-height: 150px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.how-field { background: #FFFFFF; border: 1px solid #CBD1E6; border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.how-field span { font-size: 12px; color: var(--soft); }
.how-field strong { font-size: 15px; }
.how-note { font-size: 13px; color: var(--muted); font-weight: 600; }
.how-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.how-chips span { font-size: 12px; font-weight: 700; background: #FFFFFF; color: var(--accent); border: 1px solid #B9C6F5; padding: 4px 10px; border-radius: 999px; }
.how-result { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.how-result .badge { font-size: 12px; padding: 4px 10px; }

.type-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.type { background: #FFFFFF; border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.type > strong { font-size: 20px; }
.type > p { color: var(--muted); line-height: 1.6; }
.type-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.type-tags .tag-soft { margin: 0; background: var(--tint); color: var(--accent); }
.type-foot { color: var(--muted); }

.nation-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.nation { border-top: 3px solid var(--accent); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.nation strong { font-size: 19px; }
.nation p { color: var(--muted); line-height: 1.6; }
#pricing .price-card { background: var(--panel); }
#pricing .price-card.featured { background: var(--accent); }
@media (max-width: 720px) {
  .mock-props { grid-template-columns: 1fr; }
  .mock-email { margin-left: 0; }
}

/* Sign-up (v61): form and a plan summary side by side */
.signup-wrap { padding: 56px var(--pad-x) 80px; background: var(--tint); display: flex; flex-direction: column; gap: 28px; }
.signup-intro { display: flex; flex-direction: column; gap: 8px; }
.signup-intro h1 { font-size: clamp(30px, 4vw, 42px); }
.signup-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
.signup-card { background: #FFFFFF; border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 26px; box-shadow: 0 20px 50px rgba(36,80,232,0.10); }
.signup-step { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.signup-step + .signup-step { border-top: 1px solid var(--line); padding-top: 26px; }
.signup-h { font-size: 19px; font-weight: 800; }
.signup-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.seg { display: inline-flex; align-self: flex-start; background: var(--panel); border: 1px solid #DDE2F0; border-radius: 999px; padding: 4px; gap: 4px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-block; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--soft); }
.seg span em { font-style: normal; font-weight: 600; font-size: 12px; margin-left: 4px; color: var(--green); }
.seg input:checked + span { background: #FFFFFF; color: var(--ink); box-shadow: 0 2px 8px rgba(26,31,54,0.10); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.plan-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plan-opt { position: relative; cursor: pointer; }
.plan-opt input { position: absolute; opacity: 0; }
.plan-opt > span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px; border: 1px solid #CBD1E6; border-radius: 16px; background: #FFFFFF; }
.plan-opt strong { font-size: 18px; }
.plan-limit { font-size: 14px; color: var(--muted); }
.plan-price { margin-top: 8px; font-weight: 800; font-size: 17px; }
.plan-opt input:checked + span { border: 2px solid var(--accent); background: var(--tint); padding: 17px; }
.plan-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.signup-card [hidden] { display: none; }
.signup-aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.summary-card { background: #FFFFFF; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.summary-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.summary-name { font-size: 26px; font-weight: 800; }
.summary-price { margin-top: 10px; }
.summary-price strong { font-size: 36px; font-weight: 800; }
.summary-price span { color: var(--muted); }
.summary-save { font-size: 14px; font-weight: 700; color: var(--green); }
.summary-save[hidden] { display: none; }
.summary-trial { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--green-bg); color: var(--green-ink); display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.5; }
.summary-trial strong { font-size: 16px; }
.summary-list { margin: 16px 0 0; padding-left: 20px; line-height: 1.9; color: var(--muted); font-size: 15px; }
.summary-next { font-size: 14px; color: var(--muted); line-height: 1.6; padding: 0 6px; }
@media (max-width: 900px) {
  .signup-grid { grid-template-columns: 1fr; }
  .signup-aside { position: static; }
}
@media (max-width: 560px) {
  .signup-card { padding: 24px; }
  .signup-row, .plan-pick { grid-template-columns: 1fr; }
  .plan-opt > span { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
  .plan-price { margin: 0 0 0 auto; }
}
@media (max-width: 560px) {
  .seg { align-self: stretch; }
  .seg label { flex: 1; }
  .seg span { display: block; text-align: center; padding: 8px 10px; }
  .seg span em { display: none; }
}

/* v62: calmer hero, email shown inside an inbox, fuller footer */
.mock-dash { padding: 26px; gap: 16px; }
.mock-props { gap: 14px; }
.inbox-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.inbox-copy { display: flex; flex-direction: column; gap: 16px; }
.inbox-points { margin: 6px 0 0; padding-left: 20px; line-height: 1.9; color: var(--muted); font-size: 17px; }
.inbox { background: #FFFFFF; border: 1px solid #DDE2F0; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(36,80,232,0.12); overflow: hidden; }
.inbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.inbox-meta { display: flex; flex-direction: column; }
.inbox-meta strong { font-size: 15px; }
.inbox-meta span, .inbox-date { font-size: 13px; color: var(--soft); }
.inbox-subject { padding: 14px 22px; font-weight: 800; font-size: 17px; border-bottom: 1px solid var(--line); }
.inbox-body { background: #F7F8FC; padding: 22px; }
.em { background: #FFFFFF; border-radius: 12px; padding: 22px 24px; font-family: Arial, Helvetica, sans-serif; color: #1A1F36; display: flex; flex-direction: column; gap: 10px; }
.em-site { font-weight: bold; font-size: 16px; }
.em-title { font-weight: bold; font-size: 19px; }
.em-p { font-size: 14px; line-height: 1.5; }
.em-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.em-pill { display: inline-block; font-size: 12px; font-weight: bold; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.em-red { background: #B42318; color: #FFFFFF; } .em-amber { background: #F6B64A; color: #3B2606; } .em-green { background: #17784F; color: #FFFFFF; }
.em-row { border: 1px solid #ECEEF5; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.em-edge-red { border-left: 5px solid #B42318; } .em-edge-amber { border-left: 5px solid #F6B64A; }
.em-row-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.em-row-top strong { font-size: 15px; }
.em-where, .em-what { font-size: 13px; color: #424A6B; }
.em-btn { align-self: flex-start; margin-top: 6px; background: #2450E8; color: #FFFFFF; font-weight: bold; font-size: 13px; padding: 7px 12px; border-radius: 8px; }
.em-inhand { margin-top: 6px; background: #EEF2FF; color: #1F3FB8; font-weight: bold; font-size: 13px; padding: 7px 10px; border-radius: 8px; }
.em-foot { border-top: 1px solid #ECEEF5; padding-top: 10px; font-size: 11px; color: #5B6385; }

.site-footer { display: block; padding: 0; border-top: 1px solid var(--line); background: var(--panel); }
.footer-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 56px var(--pad-x) 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-brand .brand { text-decoration: none; }
.footer-brand p { color: var(--muted); line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col strong { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); margin-bottom: 4px; }
.footer-col a { color: var(--ink); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-direction: column; gap: 6px; padding: 20px var(--pad-x) 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--soft); }
@media (max-width: 900px) {
  .inbox-section { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* v63 homepage tweaks */
.footer-top { grid-template-columns: minmax(0, 1.3fr) auto auto; gap: 24px 80px; padding: 40px var(--pad-x) 28px; }
.footer-brand p { max-width: none; }
.footer-col { min-width: 160px; }
.footer-bottom { padding: 16px var(--pad-x) 22px; }
.how-grid { align-items: stretch; }
.how-visual { height: 170px; min-height: 0; }
.inbox-section { align-items: start; }
.inbox-copy { padding-top: 12px; }
.inbox-settings { margin-top: 10px; background: var(--panel); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.inbox-settings-head { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.inbox-settings div { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 15px; }
.inbox-settings div span { color: var(--muted); }
.em-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.em-table th { text-align: center; font-size: 11px; color: #5B6385; padding: 0 4px 4px; font-weight: bold; }
.em-table th:first-child, .em-table td:first-child { text-align: left; padding-left: 0; }
.em-table td { text-align: center; padding: 5px 4px; border-top: 1px solid #ECEEF5; font-weight: bold; }
.em-table td:first-child { font-weight: bold; color: #1A1F36; }
.em-table .r { color: #B42318; } .em-table .a { color: #B54708; } .em-table .g { color: #067647; }
.track-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.track { background: var(--panel); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.track strong { font-size: 19px; }
.track p { color: var(--muted); line-height: 1.7; }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-size: 24px; color: var(--accent); }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding: 0 0 20px; color: var(--muted); line-height: 1.7; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* Dark mode for the account (v63). Colours come from the same variables, plus the surfaces that were plain white. */
/* Light/dark switch: a round button at the foot of the menu. Moon in light mode, sun in dark mode. */
.side-foot { display: flex; padding: 10px 4px 0; }
.portal-menu > nav + .side-foot { margin-top: auto; }
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #E8EBF7; --muted: #B7BDD6; --soft: #959CBB;
  --tint: #1F2A4F; --panel: #121729; --line: #262D46;
  --surface: #1A2036; --field: #141A2D; --field-line: #353D5C;
  --red-bg: #3B1815; --red-ink: #F6C6C0;
  --amber-bg: #3A2B10; --amber-ink: #F4D9A8;
  --green-bg: #102F23; --green-ink: #B7E5CF;
  --accent: #5B7FFF;
}
html[data-theme="dark"] body.portal { background: var(--panel); color: var(--ink); }
html[data-theme="dark"] a { color: var(--ink); }
html[data-theme="dark"] a:hover { color: #9DB2FF; }
html[data-theme="dark"] .portal-side, html[data-theme="dark"] .panel, html[data-theme="dark"] .prop-card, html[data-theme="dark"] .card,
html[data-theme="dark"] .stat, html[data-theme="dark"] .room-chip, html[data-theme="dark"] .room-prompt, html[data-theme="dark"] .room-row,
html[data-theme="dark"] .room-block.is-open, html[data-theme="dark"] .wizard-bar li, html[data-theme="dark"] .menu-toggle,
html[data-theme="dark"] .choice > span, html[data-theme="dark"] .filter-chip span, html[data-theme="dark"] .prop-switch span {
  background: var(--surface); border-color: var(--line); color: var(--ink);
}
html[data-theme="dark"] .item-controls, html[data-theme="dark"] .task-form, html[data-theme="dark"] .plan-box { background: var(--panel); }
html[data-theme="dark"] .portal-side nav a.active { background: var(--tint); color: #AFC2FF; }
html[data-theme="dark"] body.portal input:not([type=checkbox]):not([type=radio]),
html[data-theme="dark"] body.portal select, html[data-theme="dark"] body.portal textarea {
  background: var(--field); color: var(--ink); border-color: var(--field-line);
}
html[data-theme="dark"] .btn-outline-soft, html[data-theme="dark"] .btn-white { background: var(--surface); border-color: var(--field-line); color: var(--ink); }
html[data-theme="dark"] .btn-outline { border-color: var(--ink); color: var(--ink); }
html[data-theme="dark"] .btn-primary { background: #3F66F0; color: #FFFFFF; }
html[data-theme="dark"] .btn-outline-danger { background: var(--surface); border-color: #6B2A24; color: #FF8B80; }
html[data-theme="dark"] .btn-link { color: var(--soft); }
html[data-theme="dark"] .badge.is-grey { background: #2B3252; color: var(--ink); }
html[data-theme="dark"] .tag-soft { background: #232A44; color: var(--soft); }
html[data-theme="dark"] .tag-let { background: var(--green-bg); color: var(--green-ink); }
html[data-theme="dark"] .tag-inhand, html[data-theme="dark"] .inhand-strip.is-on, html[data-theme="dark"] .booking-line,
html[data-theme="dark"] .guide-box, html[data-theme="dark"] .next-email, html[data-theme="dark"] .ctl-inhand-panel { background: #1E2A52; border-color: #2B3A6E; color: #C2D0FF; }
html[data-theme="dark"] .inhand-strip { border-color: #3A4A80; }
html[data-theme="dark"] .strip-link, html[data-theme="dark"] .inhand-strip .btn.strip-link { color: #AFC2FF; }
html[data-theme="dark"] .inhand-strip.is-did .strip-link { color: var(--amber-ink); }
html[data-theme="dark"] .bar { background: #2A3150; }
html[data-theme="dark"] .plan-box .meter { background: #2A3150; }
html[data-theme="dark"] .item-btns .btn-toggle.is-open { background: #E8EBF7; border-color: #E8EBF7; color: #121729; }
html[data-theme="dark"] .switch .knob { background: #3A4262; }
html[data-theme="dark"] .switch.on .knob { background: var(--green); }
html[data-theme="dark"] .item:target { background: #1A2340; }
html[data-theme="dark"] .help-tip, html[data-theme="dark"] .tip { color: var(--soft); border-color: var(--field-line); }

#pricing { margin-bottom: 0; padding-bottom: 24px; }

/* Settings page */
.settings-form { display: flex; flex-direction: column; gap: 16px; }
.settings-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.settings-form [hidden] { display: none; }
@media (max-width: 640px) { .settings-row { grid-template-columns: 1fr; } }

/* v65: appearance switch readable in dark mode */
html[data-theme="dark"] .seg { background: var(--field); border-color: var(--field-line); }
html[data-theme="dark"] .seg input:checked + span { background: var(--accent); color: #FFFFFF; box-shadow: none; }

/* v74: My properties page, light/dark button above the plan box, archived cards */
.prop-card.is-archived { opacity: .6; border-style: dashed; }
.prop-card.is-archived:hover { opacity: .85; }
.props-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.props-section-head h2 { font-size: 20px; }

/* Sign-ups paused: launching soon page */
.soon-hero { margin-bottom: 72px; }
.soon-card { gap: 16px; }
.soon-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.soon-list li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0 12px 30px; border-top: 1px solid var(--line); position: relative; }
.soon-list li:first-child { border-top: 0; }
.soon-list li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 14px; height: 8px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.soon-list span { font-size: 14px; color: var(--muted); }

/* v77: Light | Dark switch under the plan box */
.plan-box + .side-foot { padding: 10px 0 0; }
.side-foot { display: block; }
.theme-switch { display: flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--tint); }
.theme-switch button { flex: 1; font: inherit; font-size: 14px; font-weight: 600; padding: 7px 10px; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; }
.theme-switch button[aria-pressed="true"] { background: #FFFFFF; color: var(--ink); box-shadow: 0 1px 4px rgba(26,31,54,0.12); }
.theme-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
html[data-theme="dark"] .theme-switch { background: var(--panel); }
html[data-theme="dark"] .theme-switch button[aria-pressed="true"] { background: var(--accent); color: #FFFFFF; box-shadow: none; }

/* v84: confirm-email notice */
.verify-notice { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }

/* v86: plan card and scheduled change */
.plan-now .form-title { font-size: 26px; }
.scheduled-box { border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.scheduled-box ul { margin: 0; padding-left: 20px; color: var(--muted); }

/* v87: Change plan cards and downgrade pop-up */
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; padding: 20px 26px 4px; }
.plan-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.plan-card .btn { margin-top: 10px; align-self: flex-start; }
.plan-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 18px; }
.plan-card-price { font-size: 24px; font-weight: 800; }
.plan-card.is-current { border: 2px solid var(--accent); background: var(--tint); padding: 17px; }
.plan-card .tag { font-size: 12px; font-weight: 700; color: var(--accent); background: #FFFFFF; padding: 3px 10px; border-radius: 999px; }
html[data-theme="dark"] .plan-card .tag { background: var(--surface); }
.dg-summary .plain-list { margin: 0 0 12px; padding-left: 20px; line-height: 1.6; }
.dg-now { line-height: 1.7; }
.dg-now span { display: inline-block; min-width: 48px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.dg-props { line-height: 1.7; }
.notice-ok { background: var(--green-bg, #E6F4EC); color: var(--green-ink, #0F5132); }
.dg-summary .actions { margin: 12px 0 4px; }

/* Admin > Prices */
.price-change-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0; }
.price-change-row .inline-form { display: inline-flex; }
.prop-card.is-locked, .prop-card.is-locked:hover { opacity: .6; }
.prop-card.is-locked .actions { margin-top: 10px; }

/* Downgrade summary (pop-up and page) */
.dg-plans { display: flex; align-items: stretch; gap: 10px; margin: 0 0 14px; }
.dg-plan { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); font-size: 14px; color: var(--muted); }
.dg-plan strong { font-size: 18px; color: var(--ink); }
.dg-plan.is-next { border-color: var(--accent); background: var(--tint); }
.dg-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--soft); }
.dg-arrow { align-self: center; font-size: 20px; color: var(--soft); }
.dg-lead { margin: 0 0 6px; font-size: 15px; line-height: 1.5; }
.dg-facts { margin: 0 0 14px; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.5; }
.dg-props { border: 1px solid var(--line); border-radius: 14px; margin: 0 0 14px; overflow: hidden; }
.dg-props-head { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--panel); font-size: 14px; }
.dg-props-head span { color: var(--soft); }
.dg-prop { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 15px; }
.dg-prop small { color: var(--soft); font-size: 13px; }
.dg-prop.is-lock strong { color: var(--soft); }
.dg-pill { flex: none; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.dg-pill.is-keep { background: var(--green-bg); color: var(--green-ink); }
.dg-pill.is-lock { background: var(--red-bg); color: var(--red-ink); }
.dg-summary .notice { font-size: 15px; line-height: 1.5; }
@media (max-width: 520px) { .dg-plans { flex-direction: column; } .dg-arrow { transform: rotate(90deg); } }

/* Scheduled plan change box on Plan and billing */
.scheduled-box { gap: 10px; }
.sb-head { display: flex; flex-direction: column; gap: 2px; }
.sb-head strong { font-size: 17px; }
.sb-line { margin: 0; color: var(--muted); }
.sb-lock { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--red-bg); color: var(--red-ink); }
.sb-lock .muted { color: var(--red-ink); opacity: .85; }
.sb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-chips .dg-pill { background: #FFFFFF; }
html[data-theme="dark"] .sb-chips .dg-pill { background: rgba(0,0,0,.25); }
.sb-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Guides (/guides and /guides/{slug}) */
.guide-page { --cat: #2450E8; --cat-bg: #EEF2FF; }
.cat-safety    { --cat: #C2410C; --cat-bg: #FFF1E7; }
.cat-licences  { --cat: #7C3AED; --cat-bg: #F3EEFF; }
.cat-tenancies { --cat: #2450E8; --cat-bg: #EEF2FF; }
.cat-energy    { --cat: #15803D; --cat-bg: #E9F7EE; }
.cat-money     { --cat: #B45309; --cat-bg: #FEF5E3; }
.cat-general   { --cat: #334155; --cat-bg: #EEF1F5; }
html[data-theme="dark"] .cat-safety    { --cat: #FB923C; --cat-bg: #3A2214; }
html[data-theme="dark"] .cat-licences  { --cat: #A78BFA; --cat-bg: #2A1F45; }
html[data-theme="dark"] .cat-tenancies { --cat: #7C9BFF; --cat-bg: #1F2A4F; }
html[data-theme="dark"] .cat-energy    { --cat: #4ADE80; --cat-bg: #12301E; }
html[data-theme="dark"] .cat-money     { --cat: #FBBF24; --cat-bg: #3A2A0C; }
html[data-theme="dark"] .cat-general   { --cat: #CBD5E1; --cat-bg: #1E2533; }

.nation-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #FFFFFF; color: var(--ink); border: 1px solid var(--line); white-space: nowrap; }
.nation-tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--n); }
.n-england { --n: #E11D48; } .n-wales { --n: #16A34A; } .n-scotland { --n: #2563EB; } .n-ni { --n: #F59E0B; }
html[data-theme="dark"] .nation-tag { background: var(--surface); }

/* Hero: tinted band with the title on the left and "at a glance" on the right */
.guide-hero { background: linear-gradient(135deg, var(--cat-bg) 0%, #FFFFFF 100%); border-bottom: 1px solid var(--line); padding: 34px var(--pad-x) 40px; }
html[data-theme="dark"] .guide-hero { background: linear-gradient(135deg, var(--cat-bg) 0%, var(--panel) 100%); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--soft); margin-bottom: 18px; }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--cat); }
.guide-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 36px; align-items: start; }
.guide-cat { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--cat); margin-bottom: 10px; }
.guide-hero h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; margin: 0 0 16px; }
.guide-lead { font-size: 19px; line-height: 1.65; color: var(--muted); margin: 0 0 18px; }
.guide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--soft); }
.guide-meta .checked { margin-right: 6px; }
.glance { background: #FFFFFF; border: 1px solid var(--line); border-top: 5px solid var(--cat); border-radius: 20px; padding: 20px 22px; box-shadow: 0 10px 30px rgba(26, 31, 54, .06); }
html[data-theme="dark"] .glance { background: var(--surface); }
.glance h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--cat); margin: 0 0 8px; }
.glance dl { margin: 0; }
.glance div { display: grid; grid-template-columns: 42% 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.glance div:first-of-type { border-top: 0; }
.glance dt { font-size: 14px; color: var(--soft); font-weight: 600; }
.glance dd { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.4; }
.glance div.is-warn dd { color: #B42318; }
html[data-theme="dark"] .glance div.is-warn dd { color: #F6A49B; }

/* Body: menu on the left, content on the right */
.guide { padding: 40px var(--pad-x) 72px; display: flex; flex-direction: column; gap: 36px; }
.guide-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.guide-toc { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.guide-toc strong { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); padding: 0 12px 8px; }
.guide-toc a { display: flex; gap: 10px; color: var(--muted); text-decoration: none; line-height: 1.35; padding: 8px 12px; border-left: 3px solid var(--line); }
.guide-toc a span { color: var(--soft); font-variant-numeric: tabular-nums; min-width: 16px; }
.guide-toc a:hover { color: var(--cat); }
.guide-toc a.active { border-left-color: var(--cat); color: var(--ink); font-weight: 700; background: var(--cat-bg); border-radius: 0 10px 10px 0; }
.guide-body { display: flex; flex-direction: column; gap: 22px; min-width: 0; font-size: 17px; line-height: 1.75; }
.guide-sec { scroll-margin-top: 20px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 22px; background: #FFFFFF; }
html[data-theme="dark"] .guide-sec { background: var(--surface); }
.guide-sec h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 24px; line-height: 1.25; margin: 0 0 14px; }
.guide-sec h2 .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--cat-bg); color: var(--cat); font-size: 16px; font-weight: 800; flex: none; }
.guide-sec h2 .nation-tag { font-size: 13px; }
.guide-sec p { margin: 0 0 12px; }
.guide-sec p:last-child, .guide-sec ul:last-child { margin-bottom: 0; }
.guide-sec ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.guide-sec li { position: relative; padding-left: 26px; }
.guide-sec li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 3px; background: var(--cat); }
.guide-sec strong { color: var(--ink); }
.guide-sec a { color: var(--accent); }
.guide-sec.is-nation { padding-top: 0; overflow: hidden; }
.guide-sec.is-nation h2 { margin: 0 -28px 18px; padding: 16px 28px; background: color-mix(in srgb, var(--n) 12%, #FFFFFF); border-bottom: 1px solid color-mix(in srgb, var(--n) 25%, #FFFFFF); }
.guide-sec.is-nation h2 .num { background: var(--n); color: #FFFFFF; }
html[data-theme="dark"] .guide-sec.is-nation h2 { background: color-mix(in srgb, var(--n) 18%, var(--surface)); border-bottom-color: color-mix(in srgb, var(--n) 35%, var(--surface)); }
.guide-sec.is-warn { background: #FFF6F5; border-color: #F6D3CF; }
.guide-sec.is-warn h2 .num { background: #FDE2DE; color: #B42318; }
.guide-sec.is-warn li::before { background: #B42318; }
html[data-theme="dark"] .guide-sec.is-warn { background: #2A1614; border-color: #4A2420; }
.guide-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 15px; }
.guide-table th { background: var(--cat-bg); color: var(--ink); text-align: left; font-size: 13px; padding: 12px 14px; }
.guide-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.guide-table tr:nth-child(even) td { background: var(--panel); }

/* Sign-up band */
.guide-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 28px; border-radius: 22px; background: linear-gradient(120deg, #2450E8 0%, #4F46E5 100%); color: #FFFFFF; }
.guide-cta div { flex: 1 1 340px; }
.guide-cta strong { font-size: 21px; color: #FFFFFF; }
.guide-cta p { margin: 6px 0 0; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .88); }
.guide-cta .btn { background: #FFFFFF; color: #1A1F36; }
.guide-cta .btn:hover { color: #1A1F36; filter: none; background: #EEF2FF; }

/* Questions, sources, related */
.guide-faqs { display: flex; flex-direction: column; gap: 10px; }
.guide-faqs details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.guide-faqs summary { cursor: pointer; font-weight: 700; padding: 14px 48px 14px 18px; list-style: none; position: relative; }
.guide-faqs summary::-webkit-details-marker { display: none; }
.guide-faqs summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--cat); }
.guide-faqs details[open] summary::after { content: '\2212'; }
.guide-faqs details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }
.guide-sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.guide-sources a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-size: 15px; line-height: 1.4; background: var(--panel); }
.guide-sources a span { font-size: 12px; font-weight: 700; color: var(--soft); text-transform: uppercase; letter-spacing: .04em; }
.guide-sources a:hover { border-color: var(--accent); }
.guide-disclaimer { margin: 0; font-size: 14px; }

/* Cards (index and related) */
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; border: 1px solid var(--line); border-top: 4px solid var(--cat); border-radius: 18px; text-decoration: none; color: var(--ink); background: #FFFFFF; transition: transform .15s, box-shadow .15s; }
.guide-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26, 31, 54, .08); color: var(--ink); }
html[data-theme="dark"] .guide-card { background: var(--surface); }
.guide-card strong { font-size: 18px; line-height: 1.3; }
.guide-card .card-desc { font-size: 14px; line-height: 1.55; color: var(--soft); }
.guide-card .card-nations { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.guide-card .card-nations .nation-tag { font-size: 11px; padding: 3px 8px; }
.guide-card .card-cat { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--cat); }

/* Index page */
.guides-hero { background: linear-gradient(135deg, #EEF2FF 0%, #FFFFFF 70%); border-bottom: 1px solid var(--line); padding: 46px var(--pad-x) 40px; }
html[data-theme="dark"] .guides-hero { background: linear-gradient(135deg, #1F2A4F 0%, var(--panel) 70%); }
.guides-hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; margin: 0 0 14px; }
.guides-hero p { font-size: 19px; line-height: 1.65; color: var(--muted); margin: 0 0 22px; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-pills a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.cat-pills a::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--cat); }
.cat-pills a span { color: var(--soft); font-weight: 600; }
.cat-pills a:hover { border-color: var(--cat); }
html[data-theme="dark"] .cat-pills a { background: var(--surface); }
.guide-group { scroll-margin-top: 20px; }
.guide-group-head { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.guide-group-head h2 { font-size: 26px; margin: 0; }
.guide-group-head::before { content: ''; width: 6px; height: 28px; border-radius: 3px; background: var(--cat); }

@media (max-width: 960px) {
  .guide-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .guide-layout { grid-template-columns: 1fr; gap: 20px; }
  .guide-toc { position: static; display: none; }
}
@media (max-width: 720px) {
  .guide-hero, .guides-hero { padding: 24px 18px 28px; }
  .guide { padding: 24px 18px 48px; gap: 24px; }
  .guide-body { font-size: 16px; }
  .guide-sec { padding: 20px 18px; border-radius: 18px; }
  .guide-sec.is-nation { padding-top: 0; }
  .guide-sec.is-nation h2 { margin: 0 -18px 16px; padding: 14px 18px; }
  .guide-sec h2 { font-size: 21px; }
  .guide-lead, .guides-hero p { font-size: 17px; }
  .glance div { grid-template-columns: 1fr; gap: 2px; }
}
.n-uk { --n: #2450E8; }

/* Sticky site header on public pages: stays at the top and slims down once you scroll */
html { scroll-padding-top: 96px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: padding .2s ease, box-shadow .2s ease; }
.site-header.is-scrolled { padding-top: 12px; padding-bottom: 12px; box-shadow: 0 6px 20px rgba(26, 31, 54, .07); }
html[data-theme="dark"] .site-header { background: rgba(18, 23, 41, .94); }
.guide-toc { top: 96px; }
.guide-sec, .guide-group { scroll-margin-top: 96px; }

/* Cookie choice bar for Google Analytics (v100). Only output when a GA4 ID is set in Super admin > Settings. */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(16, 24, 64, .16); }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { flex: 1 1 320px; margin: 0; font-size: 15px; color: var(--ink); }
.cookie-bar a { color: var(--accent); }
.cookie-actions { display: flex; gap: 10px; }
@media (max-width: 600px) { .cookie-bar { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; } .cookie-actions { width: 100%; } .cookie-actions .btn { flex: 1; } }

/* Choosing which properties to keep on a smaller plan (v101). */
.keep-picker label.dg-prop { cursor: pointer; }
.keep-picker .kp-label { display: flex; align-items: center; gap: 10px; min-width: 0; }
.keep-picker input[type="checkbox"] { width: 18px; height: 18px; flex: none; accent-color: var(--accent); margin: 0; }
.keep-picker .dg-prop.is-off { opacity: .5; cursor: not-allowed; }
.keep-picker .dg-prop.is-off input { cursor: not-allowed; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* EPC register lookup on the Certificates page (v105). */
.epc-lookup { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.epc-search { display: flex; gap: 10px; flex-wrap: wrap; }
.epc-search input { flex: 0 1 180px; text-transform: uppercase; }
.epc-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #FFFFFF; max-height: 340px; overflow-y: auto; }
.epc-pick { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); background: transparent; font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.epc-pick:first-child { border-top: 0; }
.epc-pick:hover, .epc-pick:focus-visible { background: var(--tint); }
.epc-meta { display: flex; align-items: center; gap: 8px; flex: none; font-size: 13px; color: var(--soft); }
.epc-band { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; color: #FFFFFF; font-weight: 800; font-size: 14px; }
.epc-band.b-A { background: #008054; } .epc-band.b-B { background: #19B459; } .epc-band.b-C { background: #8DCE46; color: #1B2A10; }
.epc-band.b-D { background: #FFD500; color: #3A2E00; } .epc-band.b-E { background: #FCAA65; color: #3A1E00; } .epc-band.b-F { background: #EF8023; } .epc-band.b-G { background: #E9153B; }
.epc-notice { font-size: 13px; color: var(--muted); }
.epc-notice summary { cursor: pointer; color: var(--accent); }
.epc-notice p, .epc-notice ul { margin: 8px 0; }
.epc-notice ul { padding-left: 18px; }

/* v114: a question with its answers underneath (not off to the right on wide screens) */
.question.question-stack { display: block; }
.question.question-stack legend { width: 100%; margin-bottom: 12px; }
.question.question-stack .yesno { clear: both; }
/* v114: space between a notice's text and its button */
.notice .actions { margin-top: 12px; }

/* v123: mobile home page. The hero runs edge to edge (no inset box), with the page's normal side gutter, and the
   eyebrow is plain text rather than a pill. */
@media (max-width: 640px) {
  .hero { margin: 0; border-radius: 0; padding: 32px 20px 40px; gap: 32px; }
  .hero-copy { gap: 18px; }
  .hero-copy .eyebrow { background: none; padding: 0; border-radius: 0; font-size: 13px; }
  .hero-copy > p { font-size: 18px; }
  .mock-dash { padding: 16px; }
  .mock-email { margin-left: 16px; }
  /* The tinted and dark bands get the same edge-to-edge treatment, and the cards inside them less padding. */
  .band { margin: 0; border-radius: 0; padding: 44px 20px; }
  .type, .track { padding: 20px; }
  .change { padding: 18px; }
}
/* v124: segmented buttons (light/dark/device, monthly/yearly) never wrap a label onto two lines */
.seg span { white-space: nowrap; }
@media (max-width: 480px) { .seg span { padding: 8px 12px; font-size: 14px; } }
/* v131: account credit on Plan and billing */
.credit-box { border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; background: var(--green-bg, #E6F4EC); }
.credit-box strong { font-size: 28px; line-height: 1.1; color: var(--green-ink, #0F5132); }
.credit-box p { margin: 0; }
/* v132: welcome panel on a new account's dashboard */
.welcome-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; line-height: 1.6; }
/* v137: "Your landlord responsibilities" section on the home page */
.band.duties { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 40px; margin-top: 24px; margin-bottom: 24px; }
.duties-copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 18px; }
.duties-grid { flex: 1 1 420px; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.duty { background: #FFFFFF; border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.duty strong { font-size: 18px; }
.duty p { color: var(--muted); line-height: 1.55; font-size: 15px; }
.duty-num { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--accent); }
html[data-theme="dark"] .duty { background: var(--panel); }
@media (max-width: 640px) { .band.duties { margin-top: 0; margin-bottom: 0; } .duties-grid { grid-template-columns: 1fr; } .duty { padding: 18px; } }
/* v140: refer-a-friend panel on the home page */
.band.referral-band { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 40px; margin-top: 24px; margin-bottom: 24px; }
.ref-example { flex: 1 1 320px; background: #FFFFFF; border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 20px 50px rgba(36,80,232,0.12); }
.ref-figure { font-size: 44px; font-weight: 800; line-height: 1.1; color: var(--green-ink, #0F5132); }
.ref-sub { font-weight: 600; }
.ref-list { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ref-list li { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: var(--green-bg, #E6F4EC); }
html[data-theme="dark"] .ref-example { background: var(--panel); }
@media (max-width: 640px) { .band.referral-band { margin-top: 0; margin-bottom: 0; } .ref-example { padding: 18px; } }
/* v142: phones held sideways (wide but short) get the public menu button too, so the sticky header stays small */
@media (max-height: 500px) and (max-width: 1000px) and (min-width: 721px) {
  .site-header .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; cursor: pointer;
  }
  .site-header .menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.15s, opacity 0.15s; }
  .site-header .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .site-header .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header, .site-header.is-scrolled { flex-wrap: wrap; padding: 10px 20px; }
  .site-nav { display: none; flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 2px; padding-top: 8px; max-height: calc(100vh - 70px); overflow-y: auto; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .site-nav a.btn { margin-top: 8px; border-bottom: 0; text-align: center; padding: 12px; }
}
/* v142: the "How it works" pictures grow to fit on narrower columns (tablets), instead of squashing at a fixed height */
.how-visual { height: auto; min-height: 170px; }
/* v142: the three "How it works" cards share rows, so their pictures and headings line up even when one picture is taller */
@supports (grid-template-rows: subgrid) {
  .how-grid { row-gap: 24px; }
  .how { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 12px; align-content: start; }
}
/* v142: the example summary email on phones uses the width (less padding around and inside it) */
@media (max-width: 640px) {
  .inbox-bar, .inbox-subject { padding-left: 14px; padding-right: 14px; }
  .inbox-body { padding: 8px; }
  .em { padding: 16px 14px; }
  .em-row { padding: 10px 12px; }
}
/* v144: plan choices stack one per row on phones, so the text isn't squeezed into two narrow columns */
@media (max-width: 640px) { .choice-row { grid-template-columns: 1fr; } }
/* v144: Payments on phones: date and amount on one line, what it was for underneath */
@media (max-width: 640px) {
  .pay-year > summary { padding: 14px 16px; }
  .pay-year .table-scroll { padding: 0 16px 12px; overflow: visible; }
  .pay-year table, .pay-year tbody { display: block; width: 100%; }
  .pay-year thead { display: none; }
  .pay-year tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .pay-year tr:last-child { border-bottom: 0; }
  .pay-year td { display: block; padding: 0; border: 0; text-align: left; }
  .pay-year td.right { text-align: right; }
  .pay-year td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--muted); font-size: 14px; }
  .pay-year td::before { content: none; }
}
/* v148: hero photo (assets/img/hero.jpg) behind a soft tint, strongest behind the text so it stays easy to read */
.hero {
  background:
    linear-gradient(90deg, rgba(238, 242, 255, 0.97) 0%, rgba(238, 242, 255, 0.9) 45%, rgba(238, 242, 255, 0.6) 100%),
    url('/assets/img/hero.jpg') center 90% / cover no-repeat,
    var(--tint);
}
@media (max-width: 900px) {
  .hero { background: linear-gradient(rgba(238, 242, 255, 0.92), rgba(238, 242, 255, 0.92)), url('/assets/img/hero.jpg') center 90% / cover no-repeat, var(--tint); }
}
/* v150: fuller "How it works" pictures: a couple of extra dated rows, and a mini email for the summary */
.how-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #FFFFFF; border: 1px solid #DDE2F0; border-radius: 10px; padding: 7px 10px; font-size: 13px; font-weight: 600; }
.how-row .badge { font-size: 11px; padding: 3px 9px; }
.how-mail { background: #FFFFFF; border: 1px solid #DDE2F0; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; }
.how-mail-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.how-mail-top span { color: var(--soft); font-size: 12px; }
.how-mail-subj { font-size: 13px; font-weight: 700; line-height: 1.35; }
.how-mail .mock-pills .badge { font-size: 11px; padding: 3px 9px; }
.how-mail .how-row { border-color: #ECEEF5; }

/* Email settings: what amber and red mean */
.warn-key { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.warn-key li { display: grid; grid-template-columns: 9px 1fr; gap: 10px; align-items: baseline; line-height: 1.5; color: var(--muted, #5A6280); }
.warn-key li strong { color: var(--ink, #1B2140); }
/* Held referral credit on Plan and billing (Free or no plan): above the plan chooser */
.credit-held { margin-bottom: 20px; }
.credit-held strong { font-size: 32px; }
/* A message moved into the section it's about (data-flash-here) */
.flash.flash-in { margin: 0 0 14px; }
.panel > .flash.flash-in { margin: 16px 20px 0; }
.panel.panel-body > .flash.flash-in { margin: 0 0 4px; }
/* Stacked account layout (menu above the page): the menu bar keeps its own height. Without this, a short page
   (e.g. My properties with nothing added) stretched the menu bar to fill the screen. */
@media (max-width: 800px), (max-height: 500px) and (max-width: 1000px) {
  .portal-wrap { align-content: flex-start; }
}
/* Home page prices: Monthly / Yearly switch. The chosen period is the big price; the other sits underneath. */
.price-switch { margin: 0 auto 28px; display: flex; width: max-content; }
.price-grid .p-annual { display: none; }
.price-grid[data-period="annual"] .p-annual { display: block; }
.price-grid[data-period="annual"] .p-monthly { display: none; }
.price-card .p-alt { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }
.price-card.featured .p-alt { color: rgba(255,255,255,0.85); }

/* ---------- Home hero (v178): topic tags, and an example dashboard in a browser window ---------- */
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips span { background: #FFFFFF; border: 1px solid #DDE3F4; border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; color: #2A3156; }
.hero-visual { position: relative; }
.hx-window { background: #FFFFFF; border-radius: 18px; box-shadow: 0 24px 60px rgba(36,80,232,0.18); overflow: hidden; border: 1px solid #E3E7F3; color: #1A1F36; }
.hx-chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #F1F3FA; border-bottom: 1px solid #E3E7F3; }
.hx-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #D5DAEA; display: inline-block; }
.hx-chrome span { margin-left: 12px; font-size: 12px; color: #6B7393; background: #FFFFFF; border-radius: 8px; padding: 4px 12px; flex: 1; }
.hx-app { display: grid; grid-template-columns: 150px 1fr; }
.hx-side { background: #FAFBFE; border-right: 1px solid #EEF1F8; padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #424A6B; }
.hx-side span { padding: 7px 9px; border-radius: 8px; }
.hx-side .on { background: #EEF2FF; color: #2450E8; font-weight: 700; }
.hx-logo { font-weight: 800; font-size: 13px; margin: 0 6px 10px; color: #1A1F36; }
.hx-main { padding: 16px 18px 64px; display: flex; flex-direction: column; gap: 12px; }
.hx-hello { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hx-hello strong { font-size: 17px; }
.hx-hello span { font-size: 12px; color: #6B7393; }
.hx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hx-stat { border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.hx-stat strong { font-size: 22px; line-height: 1; }
.hx-stat span { font-size: 11px; font-weight: 600; margin-top: 3px; }
.hx-stat.r { background: #FDECEC; color: #A61B1B; }
.hx-stat.a { background: #FFF4DE; color: #8A5A00; }
.hx-stat.g { background: #E6F4EC; color: #0F5132; }
.hx-list { border: 1px solid #EEF1F8; border-radius: 12px; overflow: hidden; }
.hx-list-head { display: flex; justify-content: space-between; padding: 9px 12px; background: #FAFBFE; font-size: 12px; }
.hx-list-head span { color: #6B7393; }
.hx-row { display: grid; grid-template-columns: 8px 1fr auto auto; gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid #EEF1F8; font-size: 12px; }
.hx-row strong { display: block; font-size: 12.5px; }
.hx-row small { color: #6B7393; font-size: 11px; }
.hx-row .badge { font-size: 10.5px; white-space: nowrap; }
.hx-dot { width: 8px; height: 8px; border-radius: 50%; }
.hx-dot.r { background: #C62828; } .hx-dot.a { background: #F2B33D; } .hx-dot.g { background: #1E8E4E; }
.hx-btn { font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 1px solid #D5DAEA; }
.hx-btn.red { background: #C62828; color: #FFFFFF; border-color: #C62828; }
.hx-btn.ghost { color: #6B7393; }
.hx-toast { position: absolute; left: -28px; bottom: -26px; background: #FFFFFF; color: #1A1F36; border-radius: 14px; box-shadow: 0 14px 34px rgba(26,31,54,0.18); padding: 12px 14px; display: flex; align-items: center; gap: 11px; width: 280px; border: 1px solid #E3E7F3; }
/* Looks like a phone notification: app icon, sender and time, then the subject. */
.hx-toast-icon { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.hx-toast-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.hx-toast-from { display: flex; justify-content: space-between; gap: 8px; }
.hx-toast-from b { color: #1A1F36; font-weight: 700; }
.hx-toast-from { font-size: 11px; color: #6B7393; }
.hx-toast strong { font-size: 13px; }
.hx-toast small { font-size: 11.5px; color: #424A6B; }
/* Phones: no sidebar or row buttons, the alert sits under the window, and the buttons stay side by side. */
@media (max-width: 720px) {
  .hero h1 { font-size: 40px; }
  .hero-sub { font-size: 21px; margin: 0; }
  .hero-chips span { font-size: 13px; padding: 5px 10px; }
  .hero .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero .actions .btn { width: 100%; padding-left: 10px; padding-right: 10px; text-align: center; }
  .hx-app { grid-template-columns: 1fr; }
  .hx-side { display: none; }
  .hx-main { padding: 14px 14px 16px; }
  .hx-hello { flex-direction: column; gap: 2px; }
  .hx-chrome span { font-size: 11px; }
  .hx-stat { padding: 9px 10px; }
  .hx-stat strong { font-size: 20px; }
  .hx-row { grid-template-columns: 8px 1fr auto; padding: 10px 12px; }
  .hx-row .hx-btn { display: none; }
  .hx-row strong { font-size: 13.5px; }
  .hx-row small { font-size: 12px; }
  .hx-toast { position: relative; left: auto; bottom: auto; width: auto; margin: -14px 12px 0; }
}
@media (max-width: 420px) {
  .hero .actions .btn { font-size: 15px; padding-top: 14px; padding-bottom: 14px; white-space: nowrap; }
}
@media (max-width: 330px) {
  .hero .actions { grid-template-columns: 1fr; }
}
