/* =====================================================================
   Abode New Homes Client Portal: brand + mobile theme
   Loaded AFTER Content/Site.css. Site.css is left untouched as a safety net.
   Brand: Abode design system colours, Poppins font (per Abode, Nov 2026).
   Everything is scoped to body.ap-body so it only affects updated layouts.
   Site.css uses !important on some colours (lines ~2049-2081), so some
   rules here need !important too.
   ===================================================================== */

:root {
  --abode-black: #000000;
  --abode-white: #ffffff;
  --abode-lime: #b5be05;
  --lime-600: #a8b21c;
  --lime-700: #8e9618;
  --lime-300: #dde47a;
  --lime-100: #f3f5d3;
  --ink-800: #1c1c1c;
  --ink-700: #2a2a2a;
  --ink-500: #5e5e5e;
  --ink-300: #bdbdbd;
  --ink-200: #e3e3e0;
  --ink-100: #f1f1ee;
  --ink-50: #f8f8f6;
  --error-600: #c62828;
  --success-600: #2f7d32;

  --font: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.08);
  --shadow-md: 0 6px 20px rgba(0,0,0,.10);
  --sidebar-w: 260px;
  --topbar-h: 64px;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body.ap-body {
  margin: 0 !important;
  font-family: var(--font) !important;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--abode-white) !important;
}
body.ap-body *, body.ap-body *::before, body.ap-body *::after { box-sizing: border-box; }
body.ap-body h1, body.ap-body h2, body.ap-body h3, body.ap-body h4,
body.ap-body input, body.ap-body select, body.ap-body button, body.ap-body textarea,
body.ap-body label, body.ap-body table { font-family: var(--font) !important; }
body.ap-body img { max-width: 100%; height: auto; }
body.ap-body a { color: var(--abode-black); text-decoration-color: var(--abode-lime); text-underline-offset: 3px; }
body.ap-body a:hover { color: var(--lime-700); }
body.ap-body :focus-visible { outline: 3px solid var(--abode-lime); outline-offset: 2px; }

.ap-skip {
  position: absolute; left: -9999px; top: 8px; z-index: 1000;
  background: var(--abode-lime); color: #000 !important; padding: 8px 16px; border-radius: var(--radius-sm);
  font-weight: 700;
}
.ap-skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
body.ap-body .ap-btn,
body.ap-body .login-button,
body.ap-body input[type="submit"],
body.ap-body button.ap-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; margin: 0;
  float: none !important; width: auto;
  font-family: var(--font) !important; font-size: 15px !important; font-weight: 700 !important;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none !important; line-height: 1.2;
  border: 2px solid var(--abode-lime) !important; border-radius: var(--radius-sm) !important;
  background: var(--abode-lime) !important; background-image: none !important;
  color: var(--abode-black) !important; box-shadow: none !important;
  cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: background-color .12s ease, border-color .12s ease;
}
body.ap-body .ap-btn:hover, body.ap-body .login-button:hover, body.ap-body input[type="submit"]:hover {
  background: var(--lime-600) !important; border-color: var(--lime-600) !important; color: #000 !important;
}
body.ap-body .ap-btn:active, body.ap-body .login-button:active, body.ap-body input[type="submit"]:active {
  background: var(--lime-700) !important; border-color: var(--lime-700) !important;
}
body.ap-body .ap-btn--ghost, body.ap-body input.ap-btn--ghost {
  background: transparent !important; border-color: var(--abode-black) !important; color: var(--abode-black) !important;
}
body.ap-body .ap-btn--ghost:hover, body.ap-body input.ap-btn--ghost:hover {
  background: var(--abode-black) !important; border-color: var(--abode-black) !important; color: #fff !important;
}
body.ap-body .ap-btn--block { display: flex; width: 100% !important; }
body.ap-body .ap-btn--sm { min-height: 36px; padding: 6px 14px; font-size: 13px !important; }

/* ---------- Form fields ---------- */
body.ap-body input[type="text"], body.ap-body input[type="password"], body.ap-body input[type="email"],
body.ap-body input[type="search"], body.ap-body select, body.ap-body textarea {
  width: 100% !important; max-width: 100%; min-height: 48px;
  padding: 10px 14px !important; margin: 0 !important;
  font-size: 16px !important; color: var(--ink-700) !important; line-height: 1.4;
  background: #fff !important; background-image: none !important;
  border: 1px solid var(--ink-300) !important; border-radius: var(--radius-sm) !important;
  box-shadow: none !important; float: none !important;
}
body.ap-body select {
  -webkit-appearance: none; appearance: none; padding-right: 40px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 14px center !important;
}
body.ap-body input:focus, body.ap-body select:focus, body.ap-body textarea:focus {
  outline: none; border-color: #000 !important; box-shadow: 0 0 0 3px var(--lime-300) !important;
}
body.ap-body .field-validation-error, body.ap-body .validation-summary-errors {
  display: block; color: var(--error-600) !important; font-size: 13px; margin-top: 6px;
}
body.ap-body .validation-summary-errors ul { margin: 0 0 16px; padding-left: 18px; }
body.ap-body .input-validation-error { border-color: var(--error-600) !important; }

.ap-eyebrow, .ap-eyebrow-dark {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4;
}
.ap-eyebrow { color: var(--abode-lime); }
.ap-eyebrow-dark { color: var(--ink-700); margin-bottom: 6px; }

/* =====================================================================
   DASHBOARD SHELL (_ColumnsTwo layout)
   ===================================================================== */
body.ap-body .master-wrapper-page,
body.ap-body .master-wrapper-content,
body.ap-body .master-wrapper-main {
  float: none !important; width: 100% !important; max-width: none !important;
  min-height: 0 !important; margin: 0 !important; padding: 0 !important; background: none !important;
}
body.ap-body .center-2 {
  float: none !important; width: auto !important; max-width: none !important;
  margin: 0 !important; padding: 0 !important; min-height: 100vh;
  background: var(--abode-white) !important; background-image: none !important;
  display: flex; flex-direction: column;
}

/* One black top bar. Phone: logo + MENU, address as a slim second row. Desktop: one row. */
.ap-topbar {
  position: sticky; top: 0; z-index: 70;
  display: grid; grid-template-columns: auto 1fr auto;
  grid-template-areas: "logo . menu" "addr addr addr";
  align-items: center; gap: 0 16px;
  padding: 12px 16px; background: var(--abode-black);
}
.ap-topbar__logo { grid-area: logo; }
.ap-menu-toggle { grid-area: menu; }
.ap-topbar__address { grid-area: addr; min-width: 0; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ink-800); }
.ap-topbar__address .ap-eyebrow { font-size: 11px; }
.ap-topbar__address-value {
  display: block; color: var(--ink-300); font-size: 14px; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ap-topbar__welcome { display: none; margin: 0; }
body.ap-nav-open .ap-topbar__address { display: none; }
body.ap-body .ap-topbar__logo img { display: block; height: 36px !important; width: auto !important; max-width: none; }
body.ap-body .ap-menu-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 14px !important; margin: 0 !important;
  background: transparent !important; background-image: none !important; color: #fff !important;
  border: 1px solid var(--ink-700) !important; border-radius: var(--radius-sm) !important; box-shadow: none !important;
  font-family: var(--font) !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: .08em; cursor: pointer;
}
body.ap-body .ap-menu-toggle:hover { border-color: var(--abode-lime) !important; }
.ap-menu-toggle__bars, .ap-menu-toggle__bars::before, .ap-menu-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: var(--abode-lime); border-radius: 1px; content: ""; position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.ap-menu-toggle__bars::before { position: absolute; top: -6px; }
.ap-menu-toggle__bars::after { position: absolute; top: 6px; }
body.ap-nav-open .ap-menu-toggle__bars { background: transparent; }
body.ap-nav-open .ap-menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
body.ap-nav-open .ap-menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Sidebar (black). Mobile: drops down under the top bar when MENU is tapped. */
body.ap-body .side-2 {
  float: none !important; width: 100% !important; max-width: none !important;
  margin: 0 !important; padding: 0 !important;
  background: var(--abode-black) !important;
  display: none;
}
/* Phone + tablet: MENU opens a full-screen black menu under the top bar */
@media (max-width: 899px) {
  body.ap-nav-open { overflow: hidden !important; }
  body.ap-nav-open .side-2 {
    display: block; position: fixed !important; top: 0; left: 0; right: 0; bottom: 0;
    height: auto !important; z-index: 60; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding-top: 69px !important; /* height of the top bar's first row while the menu is open */
    border-top: 0;
  }
  body.ap-nav-open #ap-sidebar .listbox .list { padding: 8px 0 32px !important; }
  body.ap-nav-open #ap-sidebar .listbox .list > li > a {
    min-height: 64px; padding: 16px 24px !important; font-size: 20px !important; font-weight: 600 !important;
    border-bottom: 1px solid var(--ink-800) !important;
  }
  body.ap-nav-open #ap-sidebar .listbox .list > li#logout { border-top: 0 !important; margin-top: 0 !important; padding-top: 0 !important; }
}
body.ap-body .side-2 .block,
body.ap-body .side-2 .listbox {
  background: transparent !important; margin: 0 !important; padding: 0 !important; border: 0 !important; width: auto !important;
}
body.ap-body .ap-nav__logo { display: none; }
body.ap-body .side-2 .listbox .list {
  list-style: none !important; margin: 0 !important; padding: 8px 0 16px !important; width: auto !important;
}
body.ap-body .side-2 .listbox .list > li {
  width: auto !important; height: auto !important; float: none !important; display: block !important;
  margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; text-align: left !important;
}
body.ap-body .side-2 .listbox .list > li > a {
  display: flex !important; align-items: center; gap: 12px;
  width: auto !important; height: auto !important; min-height: 52px;
  padding: 12px 24px !important; margin: 0 !important;
  background: none !important; background-image: none !important;
  border: 0 !important; border-left: 4px solid transparent !important; border-radius: 0 !important;
  color: #fff !important; font-size: 15px !important; font-weight: 500 !important; line-height: 1.3 !important;
  text-indent: 0 !important; text-transform: none !important; text-decoration: none !important;
  overflow: visible !important; white-space: normal !important;
}
body.ap-body .side-2 .listbox .list > li > a::before {
  content: ""; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-700);
}
body.ap-body #ap-sidebar .listbox .list > li,
body.ap-body #ap-sidebar .listbox .list > li > a { width: auto !important; max-width: none !important; }
body.ap-body #ap-sidebar .listbox .list > li > a { background-color: transparent !important; }
body.ap-body .side-2 .listbox .list > li > a:hover, body.ap-body #ap-sidebar .listbox .list > li > a:hover { background: var(--ink-800) !important; color: #fff !important; }
body.ap-body #ap-sidebar .listbox .list > li > a.active,
body.ap-body .side-2 .listbox .list > li > a.active {
  color: var(--abode-lime) !important; border-left-color: var(--abode-lime) !important; background: var(--ink-800) !important; font-weight: 700 !important;
}
body.ap-body .side-2 .listbox .list > li > a.active::before { background: var(--abode-lime); }
body.ap-body .side-2 .listbox .list > li#logout { border-top: 1px solid var(--ink-800) !important; margin-top: 8px !important; padding-top: 8px !important; }

/* Desktop: fixed sidebar on the left */
/* Desktop: full-width black top bar, sidebar menu on the left underneath */
@media (min-width: 900px) {
  :root { --topbar-h: 80px; }
  .ap-topbar {
    grid-template-columns: calc(var(--sidebar-w) - 24px) minmax(0, 1fr) auto;
    grid-template-areas: "logo addr welcome";
    height: var(--topbar-h); padding: 0 40px 0 24px;
  }
  .ap-topbar__address { margin: 0; padding: 0 0 0 40px; border: 0; }
  .ap-topbar__address .ap-eyebrow { font-size: 12px; }
  .ap-topbar__address-value { font-size: 16px; }
  .ap-topbar__welcome { grid-area: welcome; display: block; color: #fff; font-size: 20px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
  body.ap-nav-open .ap-topbar__address { display: block; }
  body.ap-body .ap-topbar__logo img { height: 44px !important; }
  body.ap-body .ap-menu-toggle { display: none !important; }
  body.ap-body .master-wrapper-main {
    display: grid !important; grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  }
  body.ap-body .side-2,
  body.ap-nav-open .side-2 {
    display: block; position: sticky; top: var(--topbar-h); height: calc(100vh - var(--topbar-h)); max-height: none;
    overflow-y: auto; border-top: 1px solid var(--ink-800);
  }
  body.ap-body .center-2 { min-height: calc(100vh - var(--topbar-h)); }
}

/* ---------- Site header band (_Header) ---------- */
.ap-site-header {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px;
  padding: 20px 16px; background: var(--abode-black); color: #fff; border-top: 1px solid var(--ink-800);
}
.ap-site-header__value { display: block; color: var(--ink-300); font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.ap-site-header__welcome { margin: 0; color: #fff; font-size: 18px; font-weight: 600; line-height: 1.2; }
@media (min-width: 900px) {
  .ap-site-header { padding: 28px 40px; border-top: 0; }
  .ap-site-header__value { font-size: 16px; }
  .ap-site-header__welcome { font-size: 22px; }
}
body.ap-body .header-line, body.ap-body .footer-line { display: none !important; }

/* ---------- Page content ---------- */
body.ap-body .ap-page { flex: 1 0 auto; padding: 24px 16px 40px; width: 100%; max-width: 1200px; }
body.ap-body .ap-page > br { display: none; }
@media (min-width: 900px) { body.ap-body .ap-page { padding: 40px; } }

body.ap-body .ap-page-title,
body.ap-body .header-text,
body.ap-body #ProgressSummary, body.ap-body #Photos, body.ap-body #Documents,
body.ap-body #MessageHistory, body.ap-body #Feed, body.ap-body #Logout, body.ap-body #Contacts {
  display: block !important; margin: 0 0 24px !important; padding: 0 !important;
  background: none !important; background-image: none !important;
  color: var(--abode-black) !important; font-size: 28px !important; font-weight: 700 !important;
  line-height: 1.15 !important; letter-spacing: 0 !important; text-transform: none !important;
  min-height: 0 !important; height: auto !important;
}
@media (min-width: 900px) {
  body.ap-body .ap-page-title, body.ap-body .header-text { font-size: 36px !important; }
}

/* Project picker */
body.ap-body #JobForm { display: block !important; margin: 0 0 24px !important; max-width: 480px; }
body.ap-body .project-select { display: block; font-size: 0; }
body.ap-body .project-select > * { font-size: 16px; }
body.ap-body .project-select .ap-eyebrow-dark { font-size: 12px; }
body.ap-body .project-select select { width: 100% !important; }

/* Cards used across pages */
.ap-card, body.ap-body .milestones-reached, body.ap-body .contract-days, body.ap-body .weather-widget {
  background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}

/* ---------- Footer (_Footer) ---------- */
body.ap-body .ap-footer {
  width: 100% !important; margin-top: auto; padding: 24px 16px; border-top: 1px solid var(--ink-200);
  color: var(--ink-500); font-size: 14px; background: #fff;
}
.ap-footer__help { margin: 0 0 8px; color: var(--ink-700); }
.ap-footer__help a { font-weight: 700; }
.ap-footer__legal { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; font-size: 12px; }
.ap-footer__legal a { color: var(--ink-500) !important; text-decoration: none; }
@media (min-width: 900px) { body.ap-body .ap-footer { padding: 24px 40px; } }

/* =====================================================================
   PROGRESS SUMMARY
   ===================================================================== */
body.ap-body .contract-dates {
  float: none !important; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 24px; max-width: 480px;
  text-transform: none !important; font-size: 14px !important; color: var(--ink-500);
}
body.ap-body .contract-dates br { display: none; }
body.ap-body .contract-date { display: block; color: var(--abode-black) !important; font-weight: 700; font-size: 16px; }

body.ap-body .progress-heading {
  margin: 0 0 16px; padding: 0; background: none !important; color: var(--abode-black) !important;
  font-size: 20px !important; font-weight: 600 !important; line-height: 1.15; text-transform: none !important; text-align: left !important;
}
body.ap-body .milestones-reached, body.ap-body .contract-days {
  margin: 0 0 24px !important; padding: 20px !important; width: auto !important; float: none !important; overflow: hidden;
}

/* List format: one big progress bar */
body.ap-body .progress-bar-container,
body.ap-body .milestones-reached .progress-bar-container,
body.ap-body .milestones-reached .progress-bar-dynamic { max-width: none !important; }
body.ap-body .progress-bar-container { position: relative; width: auto !important; margin: 0 !important; padding: 0 !important; background: none !important; }
body.ap-body .progress-bar-dynamic {
  width: 100% !important; height: 16px !important; margin: 0 !important; background: var(--ink-200) !important;
  border: 0 !important; border-radius: 8px !important; overflow: hidden;
}
body.ap-body .progress-bar-fill { height: 100% !important; background: var(--abode-lime) !important; border-radius: 8px; }
body.ap-body .percentage-text {
  position: static !important; margin-top: 8px; color: var(--abode-black) !important;
  font-size: 28px !important; font-weight: 800 !important; line-height: 1; text-align: left !important;
}

/* List format: milestones accordion */
body.ap-body .milestones-box { clear: both; position: relative; margin-bottom: 32px; }
body.ap-body .milestones-box .milestone-name {
  position: relative; display: flex; align-items: center; gap: 12px;
  margin: 8px 0 0 !important; padding: 14px 16px !important; min-height: 56px;
  background: #fff !important; background-image: none !important;
  border: 1px solid var(--ink-200) !important; border-radius: var(--radius-md) !important;
  color: var(--abode-black) !important; font-size: 15px !important; font-weight: 600 !important; line-height: 1.3 !important;
  text-transform: none !important; opacity: 1 !important; cursor: pointer;
}
body.ap-body .milestones-box .milestone-name::before {
  content: ""; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink-100); border: 2px solid var(--ink-200);
}
body.ap-body .milestones-box .milestone-name.complete::before {
  border-color: var(--abode-lime);
  background: var(--abode-lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M4 12l5 5L20 6' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E") center/14px no-repeat;
}
body.ap-body .milestones-box .milestone-name.incomplete { color: var(--ink-700) !important; background: var(--ink-50) !important; font-weight: 500 !important; cursor: default; }
body.ap-body .milestones-box .milestone-name.incomplete::before { background: #fff; border-color: var(--ink-300); }
body.ap-body .milestones-box .ui-accordion-header-icon { display: none !important; }
body.ap-body .milestones-box .milestone-detail {
  margin: 0 !important; padding: 12px 16px 16px 56px !important; border: 0 !important;
  background: none !important; color: var(--ink-700) !important; font-size: 15px; height: auto !important;
}
body.ap-body .milestones-box .milestone-detail p { margin: 0; }

/* Box format: milestone calendar cards (table turned into a grid) */
body.ap-body .calendar-table, body.ap-body .calendar-table tbody, body.ap-body .calendar-table tr {
  display: contents;
}
body.ap-body .ap-page > div:has(> .calendar-table) {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px;
}
body.ap-body .calendar-td { display: block !important; width: auto !important; height: auto !important; padding: 0 !important; border: 0 !important; }
body.ap-body .calendar-td > span { display: none; }
body.ap-body .calendar {
  width: auto !important; height: 100% !important; min-height: 110px; margin: 0 !important; padding: 16px !important;
  background: #fff !important; background-image: none !important;
  border: 1px solid var(--ink-200); border-top: 4px solid var(--abode-lime); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
body.ap-body .calendar-text { position: static !important; width: auto !important; padding: 0 !important; margin: 0 !important; }
body.ap-body .calendar-text br { display: none; }
body.ap-body .calendar-desc { color: var(--abode-black) !important; font-size: 14px !important; font-weight: 600 !important; line-height: 1.3; text-transform: none !important; }
body.ap-body .calendar-date { margin-top: 8px; color: var(--ink-500) !important; font-size: 14px !important; font-weight: 500 !important; }

/* Box format: contract days */
body.ap-body .contract-days > span {
  float: none !important; display: inline-block; margin: 0 16px 8px 0 !important; font-size: 14px; color: var(--ink-500);
}
body.ap-body .contract-days > span b { display: block; color: var(--abode-black); font-weight: 600; }
body.ap-body .contract-days > br { display: none; }
body.ap-body .contract-days-progress {
  display: flex; gap: 2px; width: 100% !important; height: 16px; margin-top: 8px;
  border-radius: 8px; overflow: hidden; background: var(--ink-200);
}
body.ap-body .contract-days-progress .progress-bar { flex: 1 1 0; min-width: 0; width: auto !important; height: 100%; float: none !important; margin: 0 !important; padding: 0 !important; background: var(--ink-200); }
body.ap-body .contract-days-progress .progress-bar:has(.progress-bar-fill) { background: var(--abode-lime); }
body.ap-body .contract-days-progress img { display: none !important; }

/* Box format: milestones reached chips */
body.ap-body .milestones-reached .progress-bar-container > div { display: flex; flex-wrap: wrap; gap: 8px; }
body.ap-body .milestones-reached .progress-bar {
  float: none !important; width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; background: none !important;
}
body.ap-body .milestones-reached .progress-bar img { display: none !important; }
body.ap-body .progress-activity-title {
  position: static !important; display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 13px !important; font-weight: 600 !important; line-height: 1.3; text-transform: none !important;
  transform: none !important; width: auto !important; white-space: normal !important;
}
body.ap-body .progress-activity-title.white { background: var(--abode-lime); color: #000 !important; }
body.ap-body .progress-activity-title.black { background: #fff; color: var(--ink-500) !important; border: 1px solid var(--ink-200); }

/* Weather widget (only if switched on) */
body.ap-body .weather-widget {
  float: none !important; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
  width: auto !important; height: auto !important; margin: 0 0 24px !important; padding: 16px !important;
  position: static !important; top: auto !important; left: auto !important;
  background: var(--abode-black) !important; background-image: none !important; color: #fff !important; border: 0;
}
body.ap-body .weather-widget * { position: static !important; color: inherit !important; font-family: var(--font) !important; }
body.ap-body .weather-widget .celcius { font-size: 16px; vertical-align: super; }
body.ap-body .weather-widget .temperature { color: var(--abode-lime) !important; font-size: 28px; font-weight: 700; }
body.ap-body .weather-widget .top-left, body.ap-body .weather-widget .bottom-right { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; float: none !important; }

.ap-cta-row { clear: both; margin: 8px 0 0; }
@media (max-width: 599px) { body.ap-body .ap-cta-row .ap-btn { display: flex; width: 100% !important; } }

/* =====================================================================
   PHOTOS + PHOTO ALBUM (tables turned into responsive grids)
   ===================================================================== */
body.ap-body table.photos-table, body.ap-body table.photo-album-table, body.ap-body div.photos-table {
  display: grid !important; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px;
  width: 100% !important; margin: 0 0 24px; border: 0; background: none;
}
@media (min-width: 600px) {
  body.ap-body table.photos-table, body.ap-body table.photo-album-table, body.ap-body div.photos-table { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
}
body.ap-body .photos-table tbody, body.ap-body .photos-table tr,
body.ap-body .photo-album-table tbody, body.ap-body .photo-album-table tr { display: contents; }
body.ap-body .photos-table td, body.ap-body .photo-album-table td, body.ap-body div.photos-table .photo {
  display: block !important; width: auto !important; height: auto !important; padding: 0 !important; margin: 0 !important; border: 0 !important;
  background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--ink-200) !important;
}
body.ap-body .photos-table td > span, body.ap-body .photo-album-table td > span { display: none; }
body.ap-body div.photos-table .photo { min-height: 0 !important; max-height: none !important; line-height: 0; float: none !important; }
body.ap-body div.photos-table .photo a, body.ap-body .photos-table td a, body.ap-body .photo-album-table td a { display: block; margin: 0 !important; padding: 0 !important; }
body.ap-body .project-select select { font-weight: 400 !important; }
body.ap-body .photos-table img, body.ap-body .photo-album-table img, body.ap-body div.photos-table .photo img {
  display: block; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; margin: 0 !important;
}
body.ap-body .photo-description {
  position: static !important; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: auto !important; height: auto !important; padding: 10px 12px !important; margin: 0 !important; background: #fff !important;
}
body.ap-body .photo-description a { color: var(--abode-black) !important; font-size: 14px !important; font-weight: 600; line-height: 1.3; text-decoration: none; }
body.ap-body .photo-description-arrow { display: none !important; }
body.ap-body .photos-table td:has(> div > a):hover, body.ap-body .photo-album-table td:hover { box-shadow: var(--shadow-md); }

/* =====================================================================
   DOCUMENTS
   ===================================================================== */
body.ap-body .documents { width: auto !important; }
body.ap-body .documents .list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 760px; }
body.ap-body .documents .list > li { width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; float: none !important; background: none !important; }
body.ap-body .documents .list > li > a {
  display: flex !important; align-items: center; gap: 14px;
  width: auto !important; height: auto !important; min-height: 64px; padding: 12px 16px !important; margin: 0 !important;
  text-transform: none !important; letter-spacing: 0 !important;
  background: #fff !important; background-image: none !important;
  border: 1px solid var(--ink-200); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  color: var(--abode-black) !important; font-size: 15px !important; font-weight: 500; line-height: 1.35;
  text-decoration: none !important; overflow-wrap: anywhere; text-indent: 0 !important;
}
body.ap-body .documents .list > li > a::before {
  content: attr(data-type); flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--abode-lime); color: #000; font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
body.ap-body .documents .list > li > a:hover { box-shadow: var(--shadow-md); border-color: var(--ink-300); }
/* Site.css colours #pdf / #word rows by ID with !important; :is() with IDs out-ranks it */
body.ap-body .documents .list > li:is(#pdf, #word, #doc, #docx, #xls, #xlsx, *) > a,
body.ap-body .documents .list > li:is(#pdf, #word, #doc, #docx, #xls, #xlsx, *) > a:hover {
  background: #fff !important; background-image: none !important; color: var(--abode-black) !important; width: auto !important;
}

/* =====================================================================
   MESSAGES (history table + detail)
   ===================================================================== */
body.ap-body table.tablesorter, body.ap-body #myTable {
  width: 100% !important; margin: 0 0 24px !important; border-collapse: separate !important; border-spacing: 0 !important;
  background: #fff !important; border: 1px solid var(--ink-200) !important; border-radius: var(--radius-md); overflow: hidden;
  font-size: 14px !important;
}
body.ap-body table.tablesorter thead tr th, body.ap-body #myTable th {
  padding: 12px 14px !important; background-color: var(--abode-black) !important; color: #fff !important;
  border: 0 !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: .08em; text-transform: uppercase; text-align: left;
  background-position: right 10px center !important;
}
body.ap-body table.tablesorter thead tr .headerSortDown, body.ap-body table.tablesorter thead tr .headerSortUp { background-color: var(--ink-800) !important; color: var(--abode-lime) !important; }
body.ap-body table.tablesorter tbody td, body.ap-body #myTable td {
  padding: 12px 14px !important; background: #fff !important; color: var(--ink-700) !important;
  border: 0 !important; border-top: 1px solid var(--ink-200) !important; vertical-align: middle;
}
body.ap-body table.tablesorter tbody tr:nth-child(even) td { background: var(--ink-50) !important; }

/* Phone: each message becomes a card */
@media (max-width: 767px) {
  body.ap-body #myTable, body.ap-body #myTable tbody { display: block; border: 0 !important; background: none !important; }
  body.ap-body #myTable thead { display: none; }
  body.ap-body #myTable tbody { display: grid; gap: 12px; }
  body.ap-body #myTable tr {
    display: grid !important; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px;
    background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  }
  body.ap-body #myTable td { display: block !important; padding: 0 !important; border: 0 !important; background: none !important; }
  body.ap-body #myTable td:nth-child(1) { grid-column: 1; order: 2; color: var(--ink-500) !important; font-size: 13px; }
  body.ap-body #myTable td:nth-child(2) { grid-column: 1; order: 1; color: var(--abode-black) !important; font-weight: 600; font-size: 15px; }
  body.ap-body #myTable td:nth-child(3) { grid-column: 1; order: 3; font-size: 13px; }
  body.ap-body #myTable td:nth-child(4) { display: none !important; }
  body.ap-body #myTable td:nth-child(5) { grid-column: 1; order: 4; color: var(--ink-500) !important; font-size: 13px; }
  body.ap-body #myTable td:nth-child(6) { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
}

body.ap-body .form-field {
  display: grid; gap: 2px; width: auto !important; margin: 0 !important; padding: 12px 0 !important;
  border-bottom: 1px solid var(--ink-200); float: none !important; overflow: visible;
}
body.ap-body .form-field label, body.ap-body .form-field .left-label, body.ap-body .form-field .ap-field-value {
  float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; text-align: left !important;
  color: var(--ink-700); font-size: 15px; font-weight: 400; white-space: pre-wrap; overflow-wrap: anywhere;
}
body.ap-body .form-field .left-label { color: var(--ink-500) !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: .08em; text-transform: uppercase; }
body.ap-body .form-field:has(.left-label) + br, body.ap-body .ap-page > div > br { display: none; }
body.ap-body .ap-page > div > .ap-btn { margin-top: 24px; }
body.ap-body .ap-page > div:has(> .form-field) {
  background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-md); padding: 8px 20px 20px; max-width: 760px; box-shadow: var(--shadow-sm);
}

/* =====================================================================
   CONTACTS
   ===================================================================== */
body.ap-body .contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
body.ap-body .contact-card {
  float: none !important; width: auto !important; height: auto !important; margin: 0 !important;
  display: flex; gap: 16px; align-items: flex-start; padding: 20px !important;
  background: #fff !important; border: 1px solid var(--ink-200) !important; border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
body.ap-body .contact-image { float: none !important; width: 72px !important; height: 72px !important; flex: 0 0 72px; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
body.ap-body .contact-details *, body.ap-body .contact-preferred-contact { position: static !important; height: auto !important; min-height: 0 !important; line-height: 1.4 !important; float: none !important; }
body.ap-body .contact-preferred-contact a { word-break: break-word; overflow-wrap: break-word !important; }
body.ap-body .contact-image img { width: 72px !important; height: 72px !important; border-radius: 50%; object-fit: cover; background: var(--ink-100); }
body.ap-body .contact-details { float: none !important; width: auto !important; min-width: 0; margin: 0 !important; padding: 0 !important; }
body.ap-body .contact-details p { margin: 0 0 2px; padding: 0 !important; border: 0 !important; color: var(--ink-500); font-size: 14px; }
body.ap-body .contact-details > p:first-child { color: var(--abode-black); font-size: 17px; font-weight: 600; }
body.ap-body .contact-preferred-contact p { margin-top: 10px; font-size: 13px; }
body.ap-body .contact-preferred-contact a { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }

/* Search box (shown when a login has 10+ jobs) */
body.ap-body form.search-box { display: grid; gap: 12px; max-width: 480px; margin: 0 0 24px; }
body.ap-body form.search-box .inputs, body.ap-body form.search-box .input-box { float: none !important; width: auto !important; margin: 0 !important; display: grid; gap: 8px; }
body.ap-body form.search-box label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); }

/* Live feed iframe */
body.ap-body .ap-page iframe { max-width: 100%; border: 0; border-radius: var(--radius-md); height: 56vw !important; max-height: 700px; }

/* =====================================================================
   LOGIN + LOST PASSWORD (_LoginLayout)
   ===================================================================== */
html.login-html, body.ap-login { background: var(--abode-white) !important; background-image: none !important; }
body.ap-login { min-height: 100vh; display: flex; flex-direction: column; }
/* 19 Nov 2026: login band and logo cut to about 2/3 of the old size */
/* 19 Nov 2026: "My Home Portal" with a small "by [logo]" underneath, centred as one group */
.ap-login__band { background: var(--abode-black); padding: 22px 16px 20px; text-align: center; }
body.ap-body .ap-login__brand { margin: 0; color: #fff; font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
body.ap-body a.ap-login__by { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--ink-300) !important; text-decoration: none !important; font-size: 13px; font-weight: 500; }
/* lift "by" level with the abode wordmark, not the new homes line under it */
.ap-login__by span { position: relative; top: -4px; }
.ap-login__logo { display: block; width: 92px; height: auto; }
.ap-login__main { flex: 1 0 auto; width: 100%; max-width: 480px; margin: 0 auto; padding: 24px 16px 48px; }
.ap-login__card {
  background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: 28px 20px;
}
@media (min-width: 600px) {
  .ap-login__band { padding: 32px 24px 28px; }
  body.ap-body .ap-login__brand { font-size: 34px; }
  .ap-login__logo { width: 112px; }
  .ap-login__by span { top: -5px; }
  .ap-login__main { padding-top: 40px; }
  .ap-login__card { padding: 36px 40px; }
}
.ap-login__title { margin: 0 0 4px !important; color: #000 !important; font-size: 28px !important; font-weight: 700 !important; line-height: 1.15; }
.ap-login__lead { margin: 0 0 24px; color: var(--ink-500); font-size: 15px; }
body.ap-login #loginForm {
  width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important;
  background: none !important; background-image: none !important; float: none !important; text-align: left !important;
}
body.ap-login #loginForm form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
/* Site.css gives #loginForm buttons side margins (e.g. 178px), which stretched the form past the card */
body.ap-login #loginForm form > *, body.ap-login #loginForm .login-button, body.ap-login #loginForm .ap-btn { margin: 0 !important; min-width: 0; max-width: 100%; }
body.ap-login #loginForm input[type="text"], body.ap-login #loginForm input[type="password"] { width: 100% !important; }
body.ap-login #UserName, body.ap-login #Password { background-image: none !important; }
.ap-field { display: grid; gap: 6px; }
.ap-field > label { color: var(--abode-black); font-size: 14px; font-weight: 600; }
.ap-check { display: flex; align-items: center; gap: 10px; }
body.ap-body .ap-check input[type="checkbox"] { width: 20px; height: 20px; margin: 0 !important; accent-color: var(--abode-black); float: none !important; }
body.ap-body .ap-check label { margin: 0 !important; padding: 0 !important; font-size: 15px !important; color: var(--ink-700) !important; text-decoration: none !important; float: none !important; }
/* 20 Nov 2026: hint under "Keep me logged in" */
body.ap-body .ap-check__hint { margin: 4px 0 16px 30px; font-size: 13px; line-height: 1.4; color: var(--ink-500); }
.ap-login__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 14px; }
body.ap-login #LostPassword, body.ap-login #Back { float: none !important; margin: 0 !important; padding: 0 !important; background: none !important; }
.ap-login__help { margin: 20px 0 0; text-align: center; color: var(--ink-500); font-size: 14px; }
.ap-login__help a { font-weight: 700; }

/* =====================================================================
   REVIEW UPDATE (19 Nov 2026)
   ===================================================================== */

/* Hide the project picker when the client only has one project */
body.ap-body #JobForm:has(select option:only-child) { display: none !important; }

/* jQuery UI greys disabled headers with opacity. Keep unfinished milestones readable. */
body.ap-body .milestones-box .ui-state-disabled { opacity: 1 !important; }

/* Empty state (Message History) */
.ap-empty {
  padding: 32px 20px; text-align: center; background: var(--ink-50);
  border: 1px dashed var(--ink-300); border-radius: var(--radius-md);
}
.ap-empty__title { margin: 0 0 6px; font-size: 18px; font-weight: 600; color: var(--abode-black); }
.ap-empty__text { margin: 0; color: var(--ink-700); }

/* Progress Summary: build card, progress, What's next, milestones */
.ap-summary { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
body.ap-body .ap-summary > * { margin: 0 !important; }
body.ap-body .ap-summary .milestones-reached { margin: 0 !important; }

.ap-build-card {
  padding: 20px; border-radius: var(--radius-md); background: var(--abode-black); color: #fff;
}
.ap-build-card p { margin: 0; }
.ap-build-card__big { font-size: 36px; font-weight: 700; line-height: 1.1; color: var(--abode-lime); }
.ap-build-card__sub { margin-top: 4px !important; font-size: 15px; color: #fff; }
.ap-build-card__sub--lead { margin: 0 0 4px !important; }
.ap-build-card__handover {
  display: flex; flex-direction: column; gap: 2px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2);
}
.ap-build-card__date { font-size: 20px; font-weight: 600; }

.ap-build-card__weather { margin-top: 12px !important; font-size: 14px; color: var(--ink-300); }

.ap-progress-count { margin: 10px 0 0; font-size: 14px; color: var(--ink-700); }

.ap-summary__aside { display: grid; gap: 16px; align-content: start; }
.ap-side-card {
  padding: 20px; background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
body.ap-body .ap-side-card__title { margin: 0 0 12px; font-size: 18px !important; font-weight: 600; color: var(--abode-black); text-transform: none; }
.ap-side-card__text { margin: 12px 0 0; font-size: 14px; color: var(--ink-700); }
.ap-next-list { margin: 0; padding: 0; list-style: none; counter-reset: apnext; }
.ap-next-list li {
  counter-increment: apnext; display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-top: 1px solid var(--ink-100); font-weight: 500; color: var(--abode-black);
}
.ap-next-list li:first-child { border-top: 0; padding-top: 0; }
/* 19 Nov 2026: plain bold numbers (the pale lime circles looked too busy) */
.ap-next-list li::before {
  content: counter(apnext) "."; flex: 0 0 20px; font-weight: 700; color: var(--abode-black);
  font-variant-numeric: tabular-nums;
}
.ap-side-card--dark { background: var(--abode-black); border-color: var(--abode-black); color: #fff; }
body.ap-body .ap-side-card--dark .ap-side-card__title { color: #fff; }
.ap-side-card--dark .ap-side-card__text { color: #fff; margin: 0 0 12px; }
body.ap-body .ap-side-card__phone { display: block; font-size: 24px; font-weight: 700; color: var(--abode-lime) !important; text-decoration: none; }
body.ap-body .ap-side-card__link { display: block; margin-top: 4px; font-size: 14px; color: #fff !important; }
.ap-desktop-only { display: none; }

@media (min-width: 1200px) {
  .ap-summary {
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-areas: "build aside" "progress aside" "list aside" "cta aside";
    grid-template-rows: auto auto 1fr auto;
    column-gap: 32px;
  }
  .ap-summary:not(:has(.ap-build-card)) {
    grid-template-areas: "progress aside" "list aside" "cta aside";
    grid-template-rows: auto 1fr auto;
  }
  .ap-build-card { grid-area: build; }
  body.ap-body .ap-summary .milestones-reached { grid-area: progress; }
  .ap-summary .milestones-box { grid-area: list; }
  .ap-summary .ap-cta-row { grid-area: cta; }
  .ap-summary__aside { grid-area: aside; align-self: start; position: sticky; top: calc(var(--topbar-h) + 40px); }
  .ap-desktop-only { display: block; }
}

/* 19 Nov 2026: What's next steps link to their milestone */
body.ap-body .ap-next-list a.ap-next-link {
  flex: 1; color: var(--abode-black) !important; text-decoration: none; font-weight: 500;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; border-radius: 4px;
}
body.ap-body .ap-next-list a.ap-next-link::after { content: "\2193"; color: var(--ink-500); font-weight: 700; }
body.ap-body .ap-next-list a.ap-next-link:hover,
body.ap-body .ap-next-list a.ap-next-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; color: var(--abode-black) !important; }
body.ap-body .ap-next-list a.ap-next-link:focus-visible { outline: 3px solid var(--lime-300); outline-offset: 2px; }
@keyframes ap-milestone-flash {
  0%, 60% { box-shadow: 0 0 0 4px var(--abode-lime); background-color: var(--lime-100); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
body.ap-body .milestones-box .milestone-name.ap-milestone-flash { animation: ap-milestone-flash 2.6s ease-out; outline: none; }
body.ap-body .milestones-box .milestone-name:focus:not(:focus-visible) { outline: none; }
@media (prefers-reduced-motion: reduce) {
  body.ap-body .milestones-box .milestone-name.ap-milestone-flash { animation: none; box-shadow: 0 0 0 4px var(--abode-lime); }
}

/* 19 Nov 2026: Report a Defect page */
.ap-defect { max-width: 760px; }
.ap-defect__lead { margin: 0 0 20px; font-size: 16px; color: var(--ink-700); }
.ap-defect__rule {
  display: flex; gap: 14px; align-items: flex-start; margin: 0 0 24px; padding: 16px 18px;
  background: var(--lime-100); border: 1px solid var(--abode-lime); border-radius: var(--radius-md);
}
.ap-defect__rule p { margin: 0; color: var(--abode-black); font-size: 15px; }
.ap-defect__rule-badge {
  flex: 0 0 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--abode-lime); color: var(--abode-black); font-weight: 800; font-size: 16px;
}
.ap-defect__done { margin: 0 0 20px; padding: 16px 18px; background: var(--abode-black); color: #fff; border-radius: var(--radius-md); }
.ap-defect__done p { margin: 0; color: #fff; }
.ap-defect__done-title { font-weight: 700; font-size: 17px; margin-bottom: 4px !important; }
body.ap-body .ap-defect__error {
  margin: 0 0 20px; padding: 14px 18px; border: 1px solid var(--error-600); border-left-width: 4px;
  border-radius: var(--radius-md); background: #fff; color: var(--error-600) !important; font-size: 15px;
}
body.ap-body .ap-defect__error p, body.ap-body .ap-defect__error ul { margin: 0; color: var(--error-600); }
body.ap-body .ap-defect__error.validation-summary-valid { display: none; }
.ap-defect__field {
  margin: 0 0 20px; padding: 18px 20px; background: #fff;
  border: 1px solid var(--ink-200); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.ap-defect__label { display: block; margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--abode-black); }
.ap-defect__hint { margin: 0 0 14px; font-size: 14px; color: var(--ink-500); }
.ap-defect__pickers { display: flex; flex-wrap: wrap; gap: 12px; }
body.ap-body .ap-defect__pick { position: relative; flex: 1 1 200px; justify-content: center; }
body.ap-body .ap-defect__pick.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.ap-defect__file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.ap-defect__pick:focus-within { outline: 3px solid var(--lime-300); outline-offset: 2px; }
.ap-defect__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.ap-defect__thumbs:empty { display: none; }
.ap-defect__thumb { position: relative; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; background: var(--ink-100); }
.ap-defect__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.ap-body .ap-defect__remove {
  position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.75); color: #fff; font-size: 20px; line-height: 32px; cursor: pointer;
}
body.ap-body .ap-defect__remove:hover, body.ap-body .ap-defect__remove:focus-visible { background: #000; outline: 2px solid #fff; }
.ap-defect__count { margin: 10px 0 0; font-size: 13px; color: var(--ink-500); }
body.ap-body .ap-defect__text { min-height: 130px; resize: vertical; }
body.ap-body .ap-defect__send { width: 100%; }
body.ap-body .ap-defect__send[disabled] { opacity: .5; cursor: not-allowed; }
@media (min-width: 600px) { body.ap-body .ap-defect__send { width: auto; min-width: 240px; } }

/* 19 Nov 2026: Dashboard (landing page) */
.ap-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ap-dash { display: grid; gap: 16px; max-width: 1100px; }
body.ap-body .ap-dash > * { margin: 0; }
.ap-dash .project-select { margin: 0 !important; }

/* House card */
.ap-dash-hero {
  display: grid; gap: 16px; padding: 20px; background: #fff;
  border: 1px solid var(--ink-200); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.ap-dash-house { width: 100%; aspect-ratio: 9 / 5; background: var(--ink-50); border-radius: var(--radius-sm); overflow: hidden; }
.ap-dash-house svg { display: block; width: 100%; height: 100%; }
.ap-dash-hero__text p, .ap-dash-hero__text h2 { margin: 0; }
.ap-dash-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--ink-500); }
body.ap-body .ap-dash-stage { margin: 4px 0 6px !important; font-size: 30px !important; font-weight: 700; line-height: 1.15; color: var(--abode-black); text-transform: none; }
.ap-dash-blurb { font-size: 16px; color: var(--ink-700); }

/* 6 stage steps: a 3 x 2 grid on phones, one row on wider screens */
.ap-dash-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; margin: 0; padding: 0; list-style: none; }
.ap-dash-step { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.ap-dash-step__dot {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-size: 15px; font-weight: 700; background: #fff; color: var(--ink-500); border: 2px solid var(--ink-300);
}
.ap-dash-step__name { font-size: 13px; font-weight: 500; line-height: 1.25; color: var(--ink-500); }
.ap-dash-step.is-done .ap-dash-step__dot { background: var(--abode-lime); border-color: var(--abode-lime); color: var(--abode-black); }
.ap-dash-step.is-done .ap-dash-step__name { color: var(--abode-black); }
.ap-dash-step.is-next .ap-dash-step__dot { border-color: var(--abode-black); color: var(--abode-black); }
.ap-dash-step.is-next .ap-dash-step__name { color: var(--abode-black); font-weight: 700; }

/* Two big numbers */
.ap-dash-stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ap-dash-stat {
  padding: 20px; background: var(--abode-black); color: #fff; border-radius: var(--radius-md);
}
.ap-dash-stat p { margin: 0; }
.ap-dash-stat__num { font-size: 48px; font-weight: 700; line-height: 1; color: var(--abode-lime); }
.ap-dash-stat__num span { font-size: 24px; font-weight: 600; }
.ap-dash-stat__label { margin-top: 6px !important; font-size: 17px; font-weight: 600; color: #fff; }
.ap-dash-bar { height: 10px; margin-top: 14px; background: rgba(255,255,255,.18); border-radius: 999px; overflow: hidden; }
.ap-dash-bar span { display: block; height: 100%; background: var(--abode-lime); border-radius: 999px; }
.ap-dash-stat__small { margin-top: 10px !important; font-size: 14px; color: var(--ink-300); }

/* Day count, handover, weather */
.ap-dash-facts {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 4px 20px;
  background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.ap-dash-facts p {
  display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 14px 0;
  border-top: 1px solid var(--ink-100); font-size: 15px;
}
.ap-dash-facts p:first-child { border-top: 0; }
.ap-dash-facts__label { color: var(--ink-700); }
.ap-dash-facts__value { font-weight: 700; color: var(--abode-black); text-align: right; }

/* What's next */
body.ap-body .ap-dash-next .ap-next-list a.ap-next-link::after { content: "\2192"; }
body.ap-body .ap-dash-next__btn { display: flex; width: 100%; margin-top: 16px !important; }

@media (min-width: 600px) {
  .ap-dash-steps { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .ap-dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-dash-facts { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); padding: 16px 20px; gap: 16px; }
  .ap-dash-facts p { flex-direction: column; justify-content: flex-start; padding: 0; border-top: 0; }
  .ap-dash-facts__value { text-align: left; font-size: 18px; }
}
.ap-dash-body, .ap-dash-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1200px) {
  .ap-dash-hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; column-gap: 32px; }
  .ap-dash-hero .ap-dash-steps { grid-column: 1 / -1; }
  .ap-dash-body { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 24px; }
}

/* 19 Nov 2026: "Get the app" pop-up (js/abode-install.js) */
.ap-install {
  position: fixed; z-index: 1000; left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px 14px; align-items: center;
  padding: 16px; background: var(--abode-black); color: #fff;
  border: 1px solid #333; border-radius: var(--radius-md); box-shadow: 0 10px 30px rgba(0,0,0,.35);
  font-family: var(--font); animation: ap-install-in .3s ease-out;
}
.ap-install__icon { width: 52px; height: 52px; border-radius: 12px; display: block; }
.ap-install__text p { margin: 0; }
.ap-install__title { font-size: 16px; font-weight: 700; line-height: 1.3; color: #fff; }
.ap-install__body { margin-top: 4px !important; font-size: 14px; line-height: 1.5; color: var(--ink-300); }
.ap-install__body strong { color: #fff; font-weight: 600; }
.ap-install__share { display: inline-flex; vertical-align: -3px; color: var(--abode-lime); }
.ap-install__actions { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
body.ap-body .ap-install__go { min-height: 44px; padding: 10px 22px; }
body.ap-body .ap-install__later {
  min-height: 44px; padding: 10px 14px; background: transparent !important; border: 0 !important;
  color: #fff !important; font-family: var(--font) !important; font-size: 15px !important; font-weight: 600 !important;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; box-shadow: none !important;
}
body.ap-body .ap-install__later:focus-visible, body.ap-body .ap-install__go:focus-visible { outline: 3px solid var(--lime-300); outline-offset: 2px; }
@media (min-width: 600px) {
  .ap-install { left: auto; right: 24px; bottom: 24px; width: 400px; }
}
@keyframes ap-install-in { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ap-install { animation: none; } }
