/* BraunAI Realtor Event Planner. Self-contained. No outside fonts or icon libraries.
   Tokens match the Listing Brief Builder: navy #0b1f3a, gold #c9a227, cream #f7f3e8. */
:root {
  --navy: #0b1f3a;
  --navy-2: #122a4a;
  --gold: #c9a227;
  --cream: #f7f3e8;
  --ink: #1b1b1b;
  --ink-2: #3d3d3d;
  --muted: #3d3d3d;
  --line: #c8c4b8;
  --accent: #c9a227;
  --accent-hover: #b08e1f;
  --accent-line: #c9a227;
  --accent-soft: #f4ebd0;
  --gray: #ffffff;
  --shadow-sm: none;
  --card: #ffffff;
  --focus: #0b1f3a;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --warn-bg: #fff3cd;
  --ok-bg: #e8f2e8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body.rep-page {
  margin: 0;
  font: 16px/1.5 var(--font);
  background: var(--cream);
  color: var(--ink);
  padding: 0;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 0.65rem 1rem;
  z-index: 20;
  font-weight: 700;
  min-height: 44px;
}
.skip:focus { left: 1rem; top: 1rem; }
a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--navy-2); }
header {
  background: var(--navy);
  color: #fff;
  padding: 16px 20px;
}
header .brand { margin: 0; font-size: 1.05rem; }
header b { color: var(--gold); font-weight: 700; }
.badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem;
  border: 1px solid #c9a227;
  border-radius: 999px;
  color: #c9a227;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
main { margin: 0; padding: 0; }
.rep-hero {
  max-width: 72rem;
  margin: 0 auto;
  padding: 20px 20px 8px;
  background: transparent;
  color: var(--ink);
}
.rep-hero h1 {
  font-size: 1.65rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  color: var(--navy);
}
.rep-hero .lead { margin: 0 0 0.75rem; max-width: 46rem; }
.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0 0 1rem;
}
.note { font-size: 0.95rem; color: var(--muted); }
footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 24px 20px 32px;
  max-width: 72rem;
  margin: 0 auto;
}
footer p { margin: 0 0 0.5rem; }
header a:focus, header .skip:focus, .skip:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Realtor Event Planner - additive page styles. Relies on /css/brand.css and /css/site.css. */
.rep-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  z-index: 100;
}
.rep-skip:focus {
  left: 8px;
  top: 8px;
}

.rep-hero { position: relative; }
.rep-hero .rep-lead {
  max-width: 42rem;
}
.rep-hero .rep-local-note {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 40rem;
}
.rep-toolbar {
  position: sticky;
  top: 68px;
  z-index: 40;
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.rep-toolbar .rep-bar {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
}
.rep-save {
  flex: 1 1 14rem;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.4;
}
.rep-save strong { color: var(--ink); font-weight: 650; }
.rep-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.rep-actions button,
.rep-btn {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  min-height: 44px;
}
.rep-actions button:hover,
.rep-btn:hover { border-color: var(--ink); }
.rep-actions button:focus-visible,
.rep-btn:focus-visible,
.rep-field:focus-visible,
.rep-select:focus-visible,
.rep-task input[type="checkbox"]:focus-visible,
.rep-check input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.rep-btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.rep-btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.rep-btn-danger { color: #8A2A16; border-color: #E8B4A4; }

.rep-wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 4rem;
}
.rep-grid {
  display: grid;
  /* Explicit shrinkable track: an implicit auto track grows to the widest card's
     min-content width, which pushed every card past a 320px viewport. */
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}
.rep-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-sm);
  padding: 1.35rem 1.35rem 1.5rem;
}
.rep-card h2 {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  color: var(--ink);
}
.rep-card .rep-help {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 52rem;
}
.rep-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem 1rem;
}
@media (min-width: 720px) {
  .rep-fields-3 { grid-template-columns: 1fr 1fr 1fr; }
  .rep-fields-2 { grid-template-columns: 1fr 1fr; }
}
.rep-field-wrap { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.rep-field-wrap.rep-span-2 { grid-column: 1 / -1; }
.rep-field-wrap label,
.rep-label {
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.rep-hint { font-size: 0.8rem; color: var(--muted); }
.rep-field,
.rep-select,
.rep-area {
  width: 100%;
  max-width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}
.rep-area { min-height: 5.5rem; resize: vertical; }

.rep-field, .rep-select, .rep-area {
  min-width: 0;
  overflow-wrap: anywhere;
}
.rep-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#rep-import-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.rep-type-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}
@media (min-width: 700px) {
  .rep-type-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1020px) {
  .rep-type-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.rep-type {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.85rem 0.9rem;
  background: var(--gray);
  cursor: pointer;
  min-width: 0;
}
.rep-type:hover { border-color: var(--accent-line); }
.rep-type:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.rep-type input { margin-top: 0.2rem; flex: none; accent-color: var(--accent); width: 1.1rem; height: 1.1rem; }
.rep-type b { display: block; color: var(--ink); font-size: 0.98rem; }
.rep-type span { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.4; margin-top: 0.15rem; }

.rep-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
@media (min-width: 700px) {
  .rep-summary { grid-template-columns: repeat(4, 1fr); }
}
.rep-stat {
  background: var(--gray);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  min-width: 0;
}
.rep-stat b { display: block; font-size: 1.35rem; color: var(--ink); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.rep-stat span { font-size: 0.8rem; color: var(--muted); }
.rep-stat.is-overdue b { color: #8A2A16; }
.rep-stat.is-over b { color: #8A2A16; }

.rep-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media screen and (max-width: 800px) { .rep-table-wrap { overflow: visible; } }
.rep-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.rep-table th {
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 0.4rem 0.55rem;
  border-bottom: 1px solid var(--line);
}
.rep-table td { padding: 0.4rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rep-table { table-layout: fixed; width: 100%; }
.rep-table .rep-num { width: 7.5rem; }
.rep-table .rep-cat { width: 28%; min-width: 16rem; }
.rep-table .rep-cat .rep-field,
.rep-table td .rep-field {
  overflow: visible;
  text-overflow: clip;
  min-width: 0;
  width: 100%;
}
.rep-row-actions { white-space: nowrap; }
.rep-linkbtn {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.35rem 0.2rem;
  min-height: 44px;
}
.rep-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 0.9rem;
  font-weight: 650;
  color: var(--ink);
}
.rep-banner {
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  line-height: 1.5;
  font-size: 0.95rem;
}
.rep-banner-warn { background: #FBEDE6; border: 1px solid #F1D3C5; color: #5A2A18; }
.rep-banner-info { background: var(--gray); border: 1px solid var(--line); color: var(--ink-2); }

.rep-progress {
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.4rem 0 1rem;
}
.rep-progress > span {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 0;
}

.rep-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.rep-filters button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.rep-group { margin: 0 0 1.15rem; }
.rep-group h3 {
  font-size: 1.02rem;
  margin: 0 0 0.55rem;
  color: var(--ink);
}
.rep-task {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.8rem 0.9rem;
  margin: 0 0 0.5rem;
  background: #fff;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 0.75rem;
}
.rep-task.is-done { opacity: 0.72; background: var(--gray); }
.rep-task.is-overdue { border-color: #E8B4A4; background: #FFF8F5; }
.rep-task.is-due-today { border-color: var(--accent); }
.rep-task input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  accent-color: var(--accent);
}
.rep-task > * { min-width: 0; }
.rep-task-title { font-weight: 650; color: var(--ink); margin: 0; font-size: 1rem; }
.rep-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  margin: 0.25rem 0 0.35rem;
  font-size: 0.82rem;
}
.rep-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-weight: 600;
}
.rep-pill-overdue { background: #8A2A16; color: #fff; border-color: #8A2A16; }
.rep-pill-today { background: var(--accent); color: #fff; border-color: var(--accent); }
.rep-pill-done { background: var(--accent-soft); color: #5A2A18; border-color: var(--accent-line); }
.rep-task-detail { margin: 0; color: var(--ink-2); font-size: 0.92rem; line-height: 1.5; }
.rep-task-extras {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  margin-top: 0.45rem;
}
@media (min-width: 700px) {
  .rep-task-extras { grid-template-columns: 1fr 1fr; }
}
.rep-task-extras input { font-size: 16px; }

.rep-list .rep-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
}
.rep-item-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.2rem;
}
.rep-list .rep-item .rep-field-wrap { min-width: 0; }
.rep-list .rep-item .rep-field,
.rep-list .rep-item .rep-select { width: 100%; max-width: 100%; }
.rep-check { display: flex; align-items: center; gap: 0.35rem; }
@media (min-width: 800px) {
  .rep-list.rep-asg .rep-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: end; }
  .rep-list.rep-mat .rep-item { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }
  .rep-list.rep-prz .rep-item { grid-template-columns: minmax(0, 1.2fr) minmax(6rem, 0.7fr) minmax(7rem, 0.7fr) minmax(0, 1fr) auto; align-items: end; }
  .rep-list.rep-log .rep-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }
}
.rep-approvals { display: grid; gap: 0.7rem; }
.rep-approvals article {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: var(--gray);
}
.rep-approvals h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.rep-approvals p { margin: 0; color: var(--ink-2); font-size: 0.92rem; line-height: 1.5; }

.rep-faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
}
.rep-faq summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--ink);
  padding: 0.25rem 0;
}
.rep-faq p { margin: 0.45rem 0 0.2rem; color: var(--ink-2); }

.rep-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}


/* 2026-11-13 staged candidate: the hidden attribute must win over component
   display rules (.rep-field-wrap is display:flex). */
.rep-page [hidden] { display: none !important; }

/* Co-hosted event mode */
.rep-sub { margin: 1.2rem 0 0.35rem; font-size: 1.05rem; }
.rep-respa {
  border: 2px solid #8A2A16;
  background: #FFF8F5;
  border-radius: 1rem;
  padding: 1rem 1.1rem 0.9rem;
  margin: 0 0 1.1rem;
  color: #3A1A0E;
}
.rep-respa h3 { margin: 0 0 0.2rem; font-size: 1.08rem; color: #8A2A16; }
.rep-respa-tag {
  display: inline-block;
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8A2A16;
}
.rep-respa ul { margin: 0.2rem 0 0.7rem; padding-left: 1.15rem; list-style: disc; }
.rep-respa li { margin: 0 0 0.45rem; font-size: 0.93rem; line-height: 1.5; }
.rep-respa a { color: #8A2A16; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.rep-respa-ssp {
  background: #8A2A16;
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.6rem 0.8rem;
  margin: 0 0 0.6rem;
  font-size: 0.93rem;
  line-height: 1.45;
}
.rep-ack { align-items: flex-start; font-size: 0.92rem; font-weight: 600; }
.rep-ack input { margin-top: 0.2rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: #8A2A16; }
#rep-split-warn ul { margin: 0.35rem 0 0; padding-left: 1.1rem; list-style: disc; }
#rep-split-warn li { margin: 0 0 0.3rem; }
.rep-table.rep-split-table th[scope="row"] { text-align: left; font-weight: 650; font-size: 0.95rem; letter-spacing: normal; text-transform: none; color: var(--ink); padding: 0.45rem 0.4rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.rep-split-table td { overflow-wrap: anywhere; }
@media (min-width: 800px) {
  .rep-list.rep-parties .rep-item { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) minmax(5.5rem, 0.6fr) auto; align-items: end; }
  .rep-list.rep-parties.has-extra .rep-item { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) minmax(5.5rem, 0.6fr) minmax(5.5rem, 0.6fr) auto; }
  .rep-list.rep-cotasks .rep-item { grid-template-columns: auto minmax(0, 2fr) minmax(0, 1fr) auto; align-items: center; }
}
@media screen and (max-width: 800px) {
  .rep-split-table th[scope="row"] { display: block; padding: 0 0 0.3rem; border: 0; }
}

/* Print values are generated in JS; hide them on screen so the form stays editable. */
.rep-print-value { display: none; }

/* Planner-page only narrow-viewport fixes. Root causes, not overflow masking:
   1. Budget category cells kept the desktop min-width (16rem) after stacking,
      and .rep-grid used an implicit auto track, so the widest card set the
      column width for every card (horizontal scroll, focus scroll shift).
   2. The hero reserved 6.5rem of right padding for the Ask Andy button,
      leaving a ~150px text column at 320px.
   3. The open mobile menu Call/Text row used two nowrap pill buttons with
      28px side padding in 1fr columns, wider than 320px.
   Shared brand.css, menu.js, and ask-andy.js are not edited. */
body.rep-page .hdr-c .hdr-cta,
body.rep-page .hdr-c .menu-btn { flex-shrink: 0; }
@media screen and (max-width: 380px) {
  body.rep-page .hdr-c .wrap { padding-left: 10px; padding-right: 10px; }
  body.rep-page .hdr-c .hdr-in { gap: 6px; }
  body.rep-page .hdr-c .hdr-cta { gap: 4px; }
  body.rep-page .hdr-c .hdr-apply { padding: 8px 8px; font-size: 13px; }
  body.rep-page .hdr-c .menu-btn { width: 36px; height: 36px; padding: 0 9px; }
  body.rep-page .rep-hero > .max-w-5xl { padding-left: 1.25rem; padding-right: 1.25rem; }
}
@media screen and (max-width: 420px) {
  body.rep-page .mnav-in { padding-left: 16px; padding-right: 16px; }
  body.rep-page .mnav-row { grid-template-columns: minmax(0, 1fr); }
  body.rep-page .mnav-cta .btn { min-width: 0; max-width: 100%; }
}
@media screen and (max-width: 767px) {
  body.rep-page .rep-hero { padding-bottom: 1.5rem; }
  body.rep-page .rep-wrap { padding-bottom: 7.5rem; }
  /* Ask Andy stays available as a compact avatar button so it covers less of
     the form. The label remains in the accessible name (visually hidden). */
  body.rep-page #aa-launch { padding: 4px; gap: 0; right: 12px; }
  body.rep-page #aa-launch img { width: 40px; height: 40px; }
  body.rep-page #aa-launch span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/* Print is a readable document of field values, not an editable form. */
@media print {
  #aa-launch,
  #aa,
  #aa[hidden],
  .mbar,
  .hdr,
  .mnav,
  .menu-btn,
  .rep-toolbar,
  .rep-actions,
  .rep-linkbtn,
  .rep-skip,
  .rep-filters,
  .rep-print-hide,
  .ask-andy,
  #ask-andy,
  .rep-cta,
  .ftr-top,
  .ftr-comp,
  .ftr .social,
  .rep-progress,
  .rep-file-input,
  input,
  textarea,
  select,
  .rep-field,
  .rep-select,
  .rep-area {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
  }
  html, body, body.site-c, body.theme-copper, body.c-page, body.bg-white, body.rep-page {
    background: #fff !important;
    color: #111 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    max-width: none !important;
  }
  .rep-hero, .hero-bg, .rep-hero.hero-bg {
    background: none !important;
    background-image: none !important;
    color: #111 !important;
    min-height: 0 !important;
    padding: 0 0 0.45rem !important;
    overflow: visible !important;
    position: static !important;
  }
  .rep-hero *, .hero-bg * { color: #111 !important; }
  .rep-hero h1, .rep-hero .text-4xl { font-size: 16pt !important; line-height: 1.2 !important; margin: 0 0 0.25rem !important; }
  .rep-hero .rep-lead, .rep-hero p { font-size: 9.5pt !important; margin: 0.2rem 0 !important; max-width: none !important; padding-right: 0 !important; }
  .rep-local-note, .rep-hero .hero-alt { font-size: 8.5pt !important; margin: 0.2rem 0 !important; padding: 0 !important; background: none !important; border: 0 !important; }
  .rep-wrap { max-width: none; padding: 0; }
  .rep-grid { gap: 0.45rem; }
  .rep-card {
    break-inside: auto;
    page-break-inside: auto;
    box-shadow: none;
    border: 0;
    border-top: 1px solid #ccc;
    border-radius: 0;
    padding: 0.4rem 0 0.45rem;
    background: transparent;
  }
  .rep-card-head {
    break-inside: avoid;
    page-break-inside: avoid;
    break-after: avoid;
    page-break-after: avoid;
  }
  .rep-card h2, .rep-card h3 {
    break-after: avoid;
    page-break-after: avoid;
  }
  .rep-card h2 + *,
  .rep-card h3 + *,
  .rep-card-head + * {
    break-before: avoid;
    page-break-before: avoid;
  }
  .rep-card h2 { font-size: 13pt; margin: 0 0 0.15rem; }
  .rep-card h3 { font-size: 11pt; margin: 0.35rem 0 0.2rem; }
  .rep-help, .rep-hint { font-size: 8.5pt; margin: 0 0 0.25rem; }
  .rep-summary { grid-template-columns: repeat(4, 1fr) !important; gap: 0.3rem; margin: 0 0 0.35rem; }
  .rep-stat { padding: 0.25rem 0.35rem; box-shadow: none; }
  .rep-stat b { font-size: 11pt; }
  .rep-type-grid,
  #rep-other-wrap,
  .rep-faq,
  #how {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
  }
  .rep-print-type {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
    font-size: 10pt;
    font-weight: 650;
    margin: 0.15rem 0 0.35rem;
    color: #111;
  }
  .rep-done-label { display: none !important; }
  .rep-done {
    min-height: 0;
    min-width: auto;
    display: block;
    padding: 0;
  }
  .rep-fields { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 0.25rem 0.75rem; }
  .rep-fields-3 { grid-template-columns: 1fr 1fr 1fr !important; }
  .rep-field-wrap { min-width: 0; break-inside: avoid; page-break-inside: avoid; }
  .rep-field-wrap label,
  .rep-item-label {
    display: block;
    font-size: 7.5pt;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 0.1rem;
    color: #333;
  }
  .rep-print-value {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 10pt;
    line-height: 1.35;
    color: #111;
    padding: 0;
    margin: 0;
    border: 0;
  }
  .rep-print-value.is-empty { display: none !important; }
  .rep-print-value.is-empty-shown {
    display: block !important;
    font-style: italic;
    color: #444;
  }

  /* Budget prints as a compact table, never the stacked mobile cards. */
  .rep-table-wrap { overflow: visible !important; }
  .rep-table {
    display: table !important;
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
    font-size: 9.5pt;
  }
  .rep-table thead { display: table-header-group !important; position: static !important; width: auto !important; height: auto !important; clip: auto !important; overflow: visible !important; }
  .rep-table tbody { display: table-row-group !important; }
  .rep-table tr { display: table-row !important; width: auto !important; background: none !important; border: 0 !important; margin: 0 !important; padding: 0 !important; break-inside: avoid; page-break-inside: avoid; }
  .rep-table th, .rep-table td {
    display: table-cell !important;
    width: auto !important;
    border: 0;
    border-bottom: 1px solid #ccc;
    padding: 0.18rem 0.35rem 0.18rem 0 !important;
    vertical-align: top;
    background: none;
  }
  .rep-table thead th {
    font-size: 7.5pt;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 650;
  }
  .rep-table td[data-label]::before { content: none !important; }
  .rep-table .rep-cat { width: 32% !important; min-width: 0 !important; }
  .rep-table .rep-num { width: 16% !important; }
  .rep-table .rep-row-actions { display: none !important; }

  .rep-task {
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 0.18rem 0;
    margin: 0 0 0.12rem;
    border: 0;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    background: none !important;
    opacity: 1 !important;
    box-shadow: none;
  }
  .rep-task-title { font-size: 10pt; }
  .rep-pill { background: #fff !important; color: #111 !important; border-color: #555 !important; }
  .rep-pill-overdue { color: #8A2A16 !important; border-color: #8A2A16 !important; font-weight: 700; }
  .rep-task-detail, .rep-task-meta { font-size: 8.5pt; }
  .rep-list .rep-item {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1.3fr !important;
    gap: 0.15rem 0.5rem;
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 0.15rem 0;
    border-bottom: 1px solid #ddd;
  }
  .rep-list.rep-mat .rep-item { grid-template-columns: auto 1fr 1fr !important; }
  .rep-list.rep-prz .rep-item { grid-template-columns: 1.3fr 0.6fr 0.7fr 1fr !important; }
  .rep-list.rep-log .rep-item { grid-template-columns: 1fr 1fr !important; }
  .rep-list.rep-parties .rep-item { grid-template-columns: 1.2fr 1.3fr 0.6fr 0.6fr !important; }
  .rep-list.rep-cotasks .rep-item { grid-template-columns: auto 2fr 1fr !important; }
  .rep-respa { border: 2px solid #8A2A16 !important; background: #fff !important; break-inside: avoid; page-break-inside: avoid; padding: 0.35rem 0.5rem; }
  .rep-respa li { font-size: 8.5pt; margin: 0 0 0.15rem; }
  .rep-respa a[href]::after { content: " (" attr(href) ")"; font-size: 7.5pt; }
  .rep-respa-ssp { background: #fff !important; color: #8A2A16 !important; border: 1px solid #8A2A16; }
  .rep-split-table th[scope="row"] { display: table-cell !important; }
  .rep-approvals article { break-inside: avoid; page-break-inside: avoid; padding: 0.2rem 0; background: none; }
  .rep-faq details { break-inside: avoid; page-break-inside: avoid; margin: 0 0 0.25rem; }
  .rep-faq details > *:not(summary) { display: block !important; }
  .ftr, .ftr-bottom {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
    background: none !important;
    border: 0 !important;
    padding: 0.5rem 0 0 !important;
    font-size: 8pt !important;
    color: #333 !important;
    break-inside: auto;
  }
  .ftr-bottom { border-top: 1px solid #ccc !important; padding-top: 0.4rem !important; }
  .rep-type:has(input:checked) { border: 1px solid #111; }
  .rep-type:not(:has(input:checked)) { opacity: 0.72; }
  a[href]::after { content: ""; }
  @page { size: letter; margin: 0.4in; }
}

@media screen and (max-width: 900px) {
  .rep-toolbar { position: static; top: auto; z-index: auto; }
  .rep-toolbar .rep-bar { padding: 0.55rem 1rem 0.7rem; align-items: stretch; }
  .rep-save { flex: 1 1 100%; font-size: 0.82rem; }
  .rep-actions { width: 100%; }
}

@media screen and (max-width: 800px) {
  .rep-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .rep-table, .rep-table tbody, .rep-table tr, .rep-table td {
    display: block;
    width: 100%;
    max-width: 100%;
  }
  .rep-table tr {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.65rem 0.75rem 0.4rem;
    margin: 0 0 0.7rem;
    background: var(--gray);
  }
  .rep-table td {
    border: 0;
    padding: 0.3rem 0 0.45rem;
    width: auto !important;
  }
  .rep-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.25rem;
  }
  .rep-table .rep-num,
  .rep-table .rep-cat { width: auto; min-width: 0; }
  .rep-table .rep-row-actions { text-align: left; }
  .rep-list .rep-item { min-width: 0; }
  .rep-list .rep-item .rep-field,
  .rep-list .rep-item .rep-select { width: 100%; }
}
@media screen and (max-width: 640px) {
  .rep-wrap { padding: 1.1rem 1rem 5.5rem; }
  .rep-toolbar .rep-bar { padding: 0.65rem 1rem; }
  .rep-card { padding: 1.05rem; border-radius: 1.15rem; }
  .rep-num { width: 6.2rem; }
  .rep-table .rep-num { width: auto; max-width: none; }
}


/* 2026-11-13 Creative gate: Done checkbox size, 44px tap target, visible label. */
.rep-print-type { display: none; }
.rep-done {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 2px;
  gap: 0.15rem;
  cursor: pointer;
  justify-self: start;
  box-sizing: border-box;
}
.rep-done input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: none;
  accent-color: var(--accent);
}
.rep-done-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1;
  text-transform: none;
}
.rep-task .rep-done { align-self: start; }

/* Creative gate: sticky header plus toolbar was covering jumped-to headings. */
#rep-cohost,
#rep-respa-flag,
#rep-split-warn,
#planner,
#rep-basics,
#how {
  scroll-margin-top: 128px;
}


/* BraunAI skin overrides: Listing Brief tokens, no lender chrome. RESPA box stays red. */
.rep-skip { display: none; } /* page uses .skip */
.rep-toolbar {
  top: 0;
  background: rgba(247, 243, 232, 0.96);
  border-bottom: 1px solid var(--line);
}
.rep-actions button,
.rep-btn,
.rep-btn-primary,
.rep-btn-danger {
  border-radius: 6px;
  font-weight: 700;
  min-height: 44px;
}
.rep-actions button,
.rep-btn {
  background: #fff;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.rep-actions button:hover,
.rep-btn:hover { border-color: var(--navy); filter: brightness(0.97); }
.rep-btn-primary {
  background: var(--gold);
  color: var(--navy);
  border: 0;
}
.rep-btn-primary:hover {
  background: var(--gold);
  border: 0;
  color: var(--navy);
  filter: brightness(0.97);
}
.rep-btn-danger {
  color: #8A2A16;
  border: 2px solid #8A2A16;
  background: #fff;
}
.rep-card {
  border-radius: 8px;
  box-shadow: none;
}
.rep-card h2 { color: var(--navy); }
.rep-field,
.rep-select,
.rep-area {
  border-radius: 6px;
  min-height: 44px;
}
.rep-type { border-radius: 8px; background: #fff; }
.rep-type:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--gold);
}
.rep-type input { accent-color: var(--navy); }
.rep-stat { border-radius: 8px; background: #fff; }
.rep-stat b { color: var(--navy); }
.rep-filters button {
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
}
.rep-filters button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.rep-pill {
  border-radius: 999px;
  border: 1.5px solid #c9a227;
  background: transparent;
  color: #0b1f3a;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.rep-pill-overdue { background: #8A2A16; color: #fff; border-color: #8A2A16; }
.rep-pill-today { background: transparent; color: #0b1f3a; border-color: #c9a227; }
.rep-pill-done { background: transparent; color: #0b1f3a; border-color: #c9a227; }
.rep-progress > span { background: var(--gold); }
.rep-task { border-radius: 8px; }
.rep-task.is-due-today { border-color: var(--gold); }
.rep-task input[type="checkbox"],
.rep-done input[type="checkbox"] { accent-color: var(--navy); }
.rep-linkbtn { color: var(--navy); }
.rep-hero .rep-lead,
.rep-hero .lead { color: var(--ink); }
.rep-hero .rep-local-note,
.rep-hero .callout {
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  max-width: 46rem;
}
.rep-done { color: var(--navy); }
@media screen and (max-width: 767px) {
  body.rep-page .rep-wrap { padding-bottom: 2.5rem; }
  body.rep-page .rep-hero { padding-bottom: 0.5rem; }
}
@media screen and (max-width: 400px) {
  .rep-hero { padding: 16px 16px 8px; }
  header { padding: 14px 16px; }
  .rep-hero h1 { font-size: 1.4rem; }
  .rep-actions { flex-direction: column; }
  .rep-actions button { width: 100%; }
}
@media print {
  .skip, header, .rep-toolbar { display: none !important; }
  footer {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
    background: none !important;
    border-top: 1px solid #ccc !important;
    padding: 0.5rem 0 0 !important;
    font-size: 8pt !important;
    color: #333 !important;
    text-align: left;
  }
  .rep-hero {
    background: none !important;
    color: #111 !important;
    padding: 0 0 0.45rem !important;
  }
  .rep-hero h1 { font-size: 16pt !important; color: #111 !important; }
  .rep-hero .lead, .rep-hero .callout, .rep-hero p {
    font-size: 9.5pt !important;
    color: #111 !important;
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0.2rem 0 !important;
  }
  body.rep-page { background: #fff !important; }
}



/* Counsel 2026-11-13: acknowledgment print line is screen-hidden. */
.rep-print-ack { display: none; }
.rep-ack { align-items: flex-start; gap: 0.45rem; }
.rep-ack span { max-width: 46rem; }
#rep-ack-note { margin: 0.35rem 0 0; max-width: 46rem; }
@media print {
  .rep-print-ack {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
    font-size: 8.5pt;
    margin: 0.2rem 0;
    color: #111;
  }
  .rep-ack .rep-print-value,
  #rep-ack-note { display: none !important; }
  /* Tighten print after Counsel added flag lines. Keep RESPA, warnings, split, checklist, and (ABHL) lender footer. */
  .rep-help,
  .rep-hero .lead,
  .rep-hero .callout,
  .rep-hero .rep-local-note,
  .rep-hero .hero-alt,
  .rep-card[aria-labelledby="approve-h"] {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
  }
  .rep-card { padding: 0.25rem 0 0.3rem; }
  .rep-card h2 { font-size: 11pt; margin: 0 0 0.1rem; }
  .rep-respa { padding: 0.25rem 0.4rem; }
  .rep-respa li { font-size: 8pt; margin: 0 0 0.1rem; }
  .rep-task { padding: 0.1rem 0; margin: 0 0 0.06rem; }
  .rep-task-title { font-size: 9pt; }
  .rep-task-detail, .rep-task-meta { font-size: 8pt; }
}

@media print {
  .rep-hero .rep-lead { display: none !important; height: 0 !important; margin: 0 !important; padding: 0 !important; }
  .rep-task-extras .rep-field-wrap:has(.rep-print-value.is-empty),
  .rep-task-extras .rep-field-wrap:has(.rep-print-value.is-empty-shown) { display: none !important; }
  .rep-task-extras:not(:has(.rep-print-value:not(.is-empty):not(.is-empty-shown))) { display: none !important; }
  .rep-list .rep-item .rep-field-wrap:has(.rep-print-value.is-empty) { display: none !important; }
}

@media print {
  .rep-task-detail { font-size: 7.5pt !important; line-height: 1.25; }
  .rep-group { margin: 0 0 0.45rem; }
  .rep-group h3 { font-size: 9.5pt; margin: 0 0 0.25rem; }
  .rep-list .rep-item { padding: 0.08rem 0; }
}
