:root {
  color-scheme: dark;
  --bg: #121616;
  --rail: #161b1b;
  --top: #131818;
  --panel: #1a2020;
  --raised: #222929;
  --line: #333c3b;
  --text: #f1f5f3;
  --muted: #a6b2ad;
  --accent: #62e4b1;
  --tint: #1c3830;
  --tint-border: #305949;
  --amber: #efc58b;
  --amberbg: #382f22;
  --blue: #a8c8e7;
  --bluebg: #253440;
  --red: #ffad9c;
  --redbg: #482d2a;
  --shadow: 0 14px 60px #0005;
  --sans: Inter, 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f5f7f5;
  --rail: #fff;
  --top: #fbfcfb;
  --panel: #fff;
  --raised: #edf1ef;
  --line: #cfd9d3;
  --text: #162821;
  --muted: #50645a;
  --accent: #006e4b;
  --tint: #dff4e9;
  --tint-border: #a4d6c0;
  --amber: #775012;
  --amberbg: #f7edd7;
  --blue: #305d80;
  --bluebg: #e3edf6;
  --red: #933525;
  --redbg: #fce4df;
  --shadow: 0 14px 60px #193c2426;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  color: inherit;
}
button {
  border: 0;
  background: none;
}
button,
input,
textarea,
select {
  border-radius: 7px;
}
button {
  transition:
    background 0.16s,
    color 0.16s,
    border-color 0.16s;
}
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button:hover {
  filter: brightness(1.12);
}
h1,
h2,
h3,
h4,
p,
dl,
ol,
ul {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  line-height: 1.18;
}
h1 {
  font-size: clamp(2.1rem, 3.1vw, 3.1rem);
  letter-spacing: -0.065em;
  font-weight: 625;
}
h2 {
  font-size: 1.22rem;
  letter-spacing: -0.035em;
  font-weight: 630;
}
h3 {
  font-size: 1.22rem;
  letter-spacing: -0.025em;
  margin: 12px 0 5px;
}
h4 {
  font-size: 0.98rem;
  margin: 24px 0 12px;
}
.icon {
  flex: none;
  vertical-align: middle;
}
.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  background: var(--panel);
  color: var(--text);
  padding: 8px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 226px;
  background: var(--rail);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.36rem;
  letter-spacing: -0.06em;
  font-weight: 700;
  white-space: nowrap;
}
.brandfield {
  font-weight: 450;
  color: var(--accent);
  margin-left: 5px;
}
.brandmark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #102c22;
  background: #64e7ae;
  border-radius: 9px;
}
.rail > .brand {
  height: 76px;
  padding: 0 22px;
}
.railgroup {
  padding: 38px 13px 0;
}
.railcaption,
.hero-label,
.dateline,
.timeblock small {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.railcaption {
  font-size: 0.76rem;
  color: var(--muted);
  padding: 0 12px;
  margin-bottom: 14px;
}
.navitem {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  margin: 4px 0;
  font-size: 0.94rem;
  font-weight: 535;
  color: var(--muted);
  text-align: left;
}
.navitem:hover,
.iconbtn:hover,
.listrow:hover,
.taskrow:hover,
.identity:hover,
.message:hover {
  background: var(--raised);
  color: var(--text);
}
.navitem.current {
  background: var(--tint);
  color: var(--accent);
}
.navitem.current:before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: var(--accent);
  border-radius: 3px;
}
.navitem b,
.count {
  font: 500 0.8rem var(--mono);
  background: var(--raised);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 5px;
  padding: 2px 6px;
}
.navitem b,
.navdot {
  margin-left: auto;
}
.navdot,
.hero-label i,
.badge i {
  width: 6px;
  height: 6px;
  display: inline-block;
  background: currentColor;
  border-radius: 100%;
}
.navdot {
  background: var(--accent);
}
.railbottom {
  margin-top: auto;
  padding: 12px;
}
.privacy,
.identity {
  display: flex;
  align-items: center;
  gap: 11px;
}
.privacy {
  color: var(--muted);
  font-size: 0.86rem;
  padding: 12px;
}
.identity {
  width: 100%;
  text-align: left;
  border-top: 1px solid var(--line);
  border-radius: 0;
  margin-top: 8px;
  padding: 18px 8px 6px;
}
.avatar,
.tile {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--tint);
  color: var(--accent);
  display: inline-grid;
  place-items: center;
  flex: none;
}
.avatar {
  border: 1px solid var(--tint-border);
  border-radius: 50%;
  font: 600 0.85rem var(--mono);
}
.identity small,
.rowsummary small,
.panel small,
.timeline small,
.muted,
.hint,
.dialogbody > p,
.pair dt {
  color: var(--muted);
}
.identity strong,
.identity small,
.rowsummary small,
.rowsummary strong,
.panel small,
.timeline small {
  display: block;
}
.identity strong {
  font-size: 0.88rem;
}
.identity small {
  font-size: 0.78rem;
}
.identity > .icon {
  margin-left: auto;
}
.work {
  margin-left: 226px;
}
.top {
  height: 76px;
  background: var(--top);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 0 clamp(24px, 3.2vw, 54px);
}
.crumb,
.toptools,
.roles,
.dateline,
.primary,
.secondary,
.hero-btn,
.textbtn,
.iconbtn,
.filter,
.underlist,
.tinytitle,
.summarytitle,
.sectionhead,
.metarow,
.actions,
.heroloc,
.heroactions,
.statlabel,
.badge,
.notice {
  display: flex;
  align-items: center;
}
.crumb,
.toptools {
  gap: 11px;
}
.crumb {
  font-size: 0.85rem;
  color: var(--muted);
}
.crumb strong {
  color: var(--text);
  font-weight: 500;
}
.crumb > span {
  opacity: 0.6;
}
.demolabel {
  font: 500 0.75rem var(--mono);
  color: var(--muted);
}
.roles {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 8px;
}
.roles button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  color: var(--muted);
  font-size: 0.84rem;
  border-radius: 5px;
}
.roles [aria-pressed='true'] {
  background: var(--tint);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--tint-border);
}
.iconbtn {
  height: 36px;
  width: 36px;
  justify-content: center;
  color: var(--muted);
}
.mobilebrand,
.bottomnav {
  display: none;
}
main {
  max-width: 1580px;
  padding: clamp(26px, 3vw, 46px) clamp(24px, 3.2vw, 54px) 64px;
  margin: auto;
}
main:focus {
  outline: none;
}
.pagehead,
.sectionhead,
.panelhead,
.summaryfoot,
.dialoghead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pagehead {
  margin-bottom: 25px;
}
.pagehead p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.96rem;
}
.dateline {
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  margin-bottom: 10px;
}
.primary,
.secondary,
.hero-btn,
.textbtn {
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 37px;
  padding: 8px 13px;
}
.secondary {
  background: var(--panel);
  border: 1px solid var(--line);
}
.primary,
.hero-btn {
  background: #70e7b5;
  color: #102c20;
}
.primary:hover,
.hero-btn:hover {
  background: #92f3cd;
}
.textbtn {
  padding: 3px 0;
  color: var(--accent);
  font-size: 0.84rem;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #19382f;
  border: 1px solid #395348;
  border-radius: 13px;
  min-height: 208px;
  color: #f2faf5;
}
.hero:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, #18372e, #274b3b);
  z-index: -2;
}
.hero.property-photo:before {
  left: 30%;
  background: url('./media/larchgate.webp') center 61% / cover no-repeat;
}
.hero.property-photo:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    #152e28 3%,
    #18352dfc 31%,
    #19382fe8 40%,
    #19382f87 52%,
    transparent 68%
  );
}
.herocopy {
  padding: 27px 31px;
  position: relative;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a1f2cc;
  font-size: 0.73rem;
  font-weight: 650;
}
.hero h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  margin: 12px 0 7px;
  max-width: 62%;
  text-wrap: balance;
}
.heroloc {
  font-size: 0.86rem;
  gap: 6px;
  color: #d8e7e0;
}
.heroactions {
  margin-top: 23px;
  gap: 15px;
}
.heroactions > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e0ebe5;
  font: 500 0.8rem var(--mono);
}
.hero-btn {
  min-height: 36px;
  font-size: 0.86rem;
}
.fieldgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 30%);
  gap: clamp(18px, 2vw, 32px);
  margin-top: 30px;
}
.sectionhead {
  margin-bottom: 15px;
  min-height: 34px;
}
.sectionhead h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter {
  position: relative;
  gap: 5px;
  padding: 0 8px 0 10px;
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.filter select {
  background: transparent;
  border: none;
  color: var(--text);
  padding: 7px 0;
  font-size: 0.8rem;
  max-width: 126px;
}
.tasklist,
.panel,
.summary {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.taskrow,
.listrow {
  display: flex;
  width: 100%;
  text-align: left;
  align-items: center;
  gap: 14px;
  padding: 19px 16px;
  border-radius: 0;
}
.taskrow + .taskrow,
.listrow + .listrow {
  border-top: 1px solid var(--line);
}
.timeblock {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 68px;
  font: 520 0.93rem var(--mono);
  padding-right: 12px;
  border-right: 1px solid var(--line);
  color: var(--text);
}
.timeblock small {
  font-size: 0.65rem;
  color: var(--muted);
}
.rowsummary {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.rowsummary strong,
.message strong {
  font-size: 0.98rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}
.rowsummary small,
.message span {
  font-size: 0.82rem;
  line-height: 1.5;
  margin-top: 4px;
}
.taskrow > .icon,
.listrow > .icon {
  color: var(--muted);
}
.badge {
  display: inline-flex;
  max-width: 100%;
  font: 540 0.75rem var(--sans);
  gap: 6px;
  line-height: 1.35;
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
  background: var(--raised);
  color: var(--muted);
}
.badge.green {
  background: var(--tint);
  color: var(--accent);
}
.badge.amber {
  background: var(--amberbg);
  color: var(--amber);
}
.badge.blue {
  background: var(--bluebg);
  color: var(--blue);
}
.badge.red {
  background: var(--redbg);
  color: var(--red);
}
.underlist {
  gap: 7px;
  font-size: 0.79rem;
  color: var(--muted);
  margin-top: 13px;
}
.summary {
  padding: 18px;
}
.summarytitle,
.tinytitle {
  gap: 10px;
}
.summarytitle h2 {
  font-size: 1.01rem;
}
.tile {
  width: 31px;
  height: 31px;
  border-radius: 8px;
}
.bigcount {
  font-size: 2.9rem;
  line-height: 1;
  letter-spacing: -0.065em;
  font-weight: 560;
  margin: 19px 0;
}
.bigcount span {
  font-size: 0.88rem;
  font-weight: 450;
  letter-spacing: 0;
  margin-left: 9px;
  color: var(--muted);
}
.summaryfoot {
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.81rem;
}
.office-note {
  margin: 24px 2px 0;
}
.tinytitle {
  font-weight: 620;
  font-size: 0.91rem;
}
.tinytitle .icon {
  color: var(--muted);
}
.message {
  margin-top: 11px;
  border-left: 2px solid var(--tint-border);
  border-radius: 0;
  text-align: left;
  padding: 4px 12px;
  width: 100%;
}
.message span {
  display: block;
  color: var(--muted);
}
.panelhead {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}
.panelhead small {
  font-size: 0.83rem;
  margin-top: 6px;
}
.panel {
  margin-bottom: 18px;
}
.panel .listrow {
  padding: 15px 18px;
}
.empty {
  padding: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}
.reading {
  max-width: 780px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  margin: 24px 0;
  overflow: hidden;
}
.stats > div {
  padding: 20px;
  min-width: 0;
}
.stats > div + div {
  border-left: 1px solid var(--line);
}
.statlabel {
  gap: 8px;
  color: var(--muted);
  font-size: 0.87rem;
}
.statlabel .icon {
  color: var(--accent);
}
.stats strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 550;
  letter-spacing: -0.045em;
  margin-top: 9px;
}
.stats.compact {
  grid-template-columns: repeat(3, 1fr);
}
.officegrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}
.tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 18px;
}
.tab {
  color: var(--muted);
  padding: 8px 13px;
}
.tab.selected {
  background: var(--tint);
  color: var(--accent);
}
.inert:hover {
  background: transparent;
}
.notice {
  gap: 10px;
  padding: 12px 14px;
  margin: 10px 0 17px;
  border-radius: 7px;
  background: var(--tint);
  color: var(--accent);
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.notice .textbtn {
  margin-left: auto;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  padding: 0;
  width: min(590px, calc(100% - 28px));
  max-height: 88dvh;
  box-shadow: var(--shadow);
  overflow: hidden;
}
dialog[open] {
  display: flex;
  flex-direction: column;
  animation: arrive 0.15s ease-out;
}
dialog::backdrop {
  background: #070d0dc7;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialoghead {
  border-bottom: 1px solid var(--line);
  padding: 15px 18px 15px 22px;
}
.dialoghead h2 {
  font-size: 1.27rem;
}
.dialogbody {
  padding: 19px 22px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.dialogbody p {
  margin: 6px 0 12px;
}
.dialogbody label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  margin: 0 0 14px;
  font-weight: 535;
}
.dialogbody input,
.dialogbody select,
.dialogbody textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 10px;
  color: var(--text);
  min-width: 0;
  width: 100%;
  font-weight: 400;
}
.dialogbody textarea {
  resize: vertical;
}
.dialogbody input:disabled,
.dialogbody select:disabled {
  opacity: 0.65;
}
.formgrid,
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.facts {
  gap: 16px 20px;
  margin: 20px 0;
}
.pair dt {
  font-size: 0.8rem;
}
.pair dd {
  margin: 3px 0;
  font-size: 0.94rem;
}
.metarow {
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
}
.actions {
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 17px;
}
.hint {
  font-size: 0.87rem;
}
.timeline {
  list-style: none;
  padding: 0 0 0 8px;
}
.timeline li {
  border-left: 1px solid var(--line);
  position: relative;
  padding: 0 0 15px 16px;
}
.timeline li:before {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  top: 6px;
  left: -4px;
}
.timeline li:last-child {
  border-color: transparent;
}
.timeline strong {
  font-size: 0.95rem;
}
.timeline small {
  font-size: 0.8rem;
  margin-top: 2px;
}
.timeline p {
  white-space: pre-line;
  font-size: 0.93rem;
  overflow-wrap: anywhere;
}
.route {
  margin: 14px 0;
}
.route > summary {
  margin-bottom: 12px;
  color: var(--accent);
}
summary {
  cursor: pointer;
}
.breakdown details + details {
  border-top: 1px solid var(--line);
}
.breakdown summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 17px;
}
.breakdown summary strong {
  margin-left: auto;
}
.breakdown ul {
  padding: 0 18px 13px 38px;
  color: var(--muted);
  font-size: 0.9rem;
}
.breakdown summary::-webkit-details-marker {
  display: none;
}
.breakdown details[open] summary svg {
  transform: rotate(180deg);
}
#form-error:empty {
  display: none;
}
#form-error {
  color: var(--red);
  font-size: 0.9rem;
}
#toast {
  position: fixed;
  z-index: 8;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 8px);
  background: #d2f5e4;
  color: #153e2d;
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  max-width: calc(100% - 24px);
  width: max-content;
  font-size: 0.9rem;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@keyframes arrive {
  from {
    opacity: 0.2;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1550px) {
  .hero {
    min-height: 235px;
  }
  .herocopy {
    padding: 34px 38px;
  }
  .taskrow {
    padding: 22px;
  }
  .rail {
    width: 246px;
  }
  .work {
    margin-left: 246px;
  }
}
@media (max-width: 1150px) {
  .rail {
    width: 197px;
  }
  .work {
    margin-left: 197px;
  }
  .rail > .brand {
    padding: 0 16px;
  }
  .fieldgrid {
    grid-template-columns: minmax(0, 1fr) 215px;
    gap: 17px;
  }
  .taskrow {
    gap: 9px;
    padding: 16px 11px;
  }
  .timeblock {
    min-width: 56px;
    padding-right: 6px;
  }
  .top {
    padding: 0 24px;
  }
  .officegrid {
    grid-template-columns: 1fr;
  }
  .statlabel {
    align-items: start;
  }
  .stats > div {
    padding: 14px;
  }
}
@media (max-width: 965px) {
  .fieldgrid {
    grid-template-columns: 1fr;
  }
  .aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .office-note {
    margin: 5px 0;
  }
  .crumb > .icon,
  .crumb span,
  .crumb strong {
    display: none;
  }
  .rail {
    width: 184px;
  }
  .work {
    margin-left: 184px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stats > div:nth-child(3) {
    border-left: 0;
  }
  .stats > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .stats.compact > div:nth-child(3) {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}
@media (max-width: 760px) {
  .rail,
  .crumb {
    display: none;
  }
  .work {
    margin: 0;
  }
  .top {
    height: 61px;
    padding: 0 13px;
    gap: 6px;
  }
  .mobilebrand {
    display: block;
  }
  .brand {
    font-size: 1.18rem;
    gap: 7px;
  }
  .brandmark {
    width: 29px;
    height: 29px;
    border-radius: 8px;
  }
  .brandmark .icon {
    width: 20px;
  }
  .toptools {
    gap: 3px;
  }
  .demolabel {
    font-size: 0.66rem;
  }
  .roles {
    padding: 2px;
  }
  .roles button {
    font-size: 0.79rem;
    padding: 6px 8px;
  }
  .roles button .icon {
    display: none;
  }
  .iconbtn {
    width: 30px;
    height: 34px;
  }
  .bottomnav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    background: var(--rail);
    border-top: 1px solid var(--line);
    padding: 3px 3px max(5px, env(safe-area-inset-bottom));
  }
  .bottomnav .navitem {
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    justify-content: center;
    padding: 6px 2px;
    margin: 0;
    font-size: 0.73rem;
    line-height: 1.2;
  }
  .navitem.current:before {
    display: none;
  }
  .bottomnav .navitem.current {
    background: transparent;
  }
  .pagehead {
    margin: 0 0 18px;
  }
  .pagehead .secondary,
  .pagehead .primary {
    font-size: 0.81rem;
    padding: 7px 9px;
    gap: 5px;
  }
  .pagehead .secondary svg,
  .pagehead .primary svg {
    width: 15px;
  }
  .pagehead p {
    font-size: 0.87rem;
  }
  .dateline {
    font-size: 0.68rem;
    gap: 4px;
    margin-bottom: 6px;
  }
  .pagehead h1 {
    font-size: 2.1rem;
  }
  .toptools .demolabel {
    font-size: 0;
  }
  .toptools .demolabel:after {
    content: 'Demo';
    font-size: 0.66rem;
  }
  .fieldgrid {
    gap: 20px;
    margin-top: 22px;
  }
  main {
    padding: 22px 16px 90px;
  }
  .hero {
    min-height: 180px;
  }
  .herocopy {
    padding: 21px;
  }
  .hero.property-photo:before {
    left: 20%;
  }
  .hero.property-photo:after {
    background: linear-gradient(90deg, #18342d 0%, #18342df0 26%, #18342dbf 48%, #18342d36 83%);
  }
  .hero h2 {
    max-width: 85%;
    font-size: 1.55rem;
    margin: 10px 0 7px;
  }
  .heroactions {
    margin-top: 17px;
  }
  .heroloc {
    font-size: 0.78rem;
    flex-wrap: wrap;
    gap: 4px;
  }
  .hero-label {
    font-size: 0.68rem;
  }
  .aside {
    gap: 14px;
  }
  .taskrow {
    padding: 15px 11px;
  }
  .stats {
    margin: 16px 0;
  }
  .sectionhead {
    margin-bottom: 10px;
  }
  .pagehead:has(+ .officegrid) {
    align-items: start;
  }
  .panelhead {
    padding: 14px;
  }
  .panel .listrow {
    padding: 13px 12px;
    gap: 8px;
  }
  .stats.compact .statlabel {
    font-size: 0.76rem;
  }
  .stats.compact > div {
    padding: 10px;
  }
  .underlist {
    font-size: 0.76rem;
  }
  #toast {
    bottom: 77px;
  }
  .dialoghead {
    padding: 11px 15px;
  }
  .dialogbody {
    padding: 15px;
  }
  .dialogbody input,
  .dialogbody select,
  .dialogbody textarea {
    font-size: 1rem;
  }
  .dialogbody .primary {
    min-height: 42px;
  }
}
@media (max-width: 530px) {
  .aside {
    grid-template-columns: 1fr;
  }
  .rowsummary strong {
    font-size: 0.9rem;
  }
  .taskrow {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 12px;
    column-gap: 10px;
    row-gap: 5px;
  }
  .taskrow .timeblock {
    grid-row: 1/3;
    height: 100%;
    justify-content: center;
  }
  .taskrow .badge {
    grid-column: 2;
    width: max-content;
  }
  .taskrow > .icon {
    grid-column: 3;
    grid-row: 1/3;
  }
  .taskrow .rowsummary small {
    font-size: 0.76rem;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .summary {
    padding: 15px;
  }
  .office-note {
    margin-top: 2px;
  }
  .listrow {
    flex-wrap: wrap;
  }
  .pagehead {
    align-items: flex-end;
  }
  .pagehead p {
    max-width: 95%;
  }
  .toptools .iconbtn {
    width: 27px;
  }
  .hero h2 {
    max-width: 100%;
  }
  .stats.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .badge {
    white-space: normal;
  }
  .panelhead .textbtn {
    white-space: nowrap;
  }
  .pagehead > .secondary,
  .pagehead > .primary {
    flex-shrink: 0;
  }
  .pagehead:has(> .secondary) p {
    max-width: 180px;
  }
}
@media (max-width: 370px) {
  .mobilebrand .brand {
    font-size: 1.02rem;
  }
  .brandfield {
    margin-left: 3px;
  }
  .top {
    padding: 0 8px;
  }
  .toptools {
    gap: 2px;
  }
  main {
    padding-left: 12px;
    padding-right: 12px;
  }
  .taskrow .timeblock {
    min-width: 0;
  }
  .herocopy {
    padding: 17px;
  }
  .pagehead > .secondary .icon {
    display: none;
  }
  .pagehead > .secondary {
    font-size: 0.75rem;
  }
  .toptools .demolabel:after {
    font-size: 0.62rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

[hidden] {
  display: none !important;
}
.brandmark {
  flex: none;
}
.rail > .brand {
  padding-right: 8px;
}
@media (max-width: 530px) {
  .pagehead {
    align-items: center;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 8px;
  }
  .pagehead > div {
    display: contents;
  }
  .pagehead .dateline {
    grid-column: 1/-1;
    margin-bottom: 1px;
  }
  .pagehead h1 {
    grid-column: 1/-1;
  }
  .pagehead:has(> button) h1 {
    grid-column: 1;
    grid-row: 2;
  }
  .pagehead > button {
    grid-column: 2;
    grid-row: 2;
  }
  .pagehead p,
  .pagehead:has(> .secondary) p {
    grid-column: 1/-1;
    max-width: none;
    margin-top: 0;
  }
  .mobilebrand .brandfield {
    margin-left: 4px;
  }
}
@media (max-width: 385px) {
  .top {
    height: auto;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 3px 6px;
    padding: 7px 12px;
  }
  .toptools {
    display: contents;
  }
  .mobilebrand {
    grid-area: 1/1;
  }
  .toptools .iconbtn {
    width: 32px;
  }
  .toptools [data-act='theme'] {
    grid-area: 1/2;
  }
  .toptools [data-act='demo'] {
    grid-area: 1/3;
  }
  .toptools .demolabel {
    grid-area: 2/1;
    font-size: 0.72rem;
  }
  .toptools .demolabel:after {
    content: none;
  }
  .roles {
    grid-area: 2/2/3/4;
    justify-self: end;
  }
}
@media (max-width: 530px) {
  .pagehead {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .pagehead:has(> .primary) h1 {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .pagehead > .primary {
    grid-column: 1/-1;
    grid-row: 4;
    justify-self: start;
    margin-top: 4px;
  }
}
.rail > .brand {
  font-size: 1.16rem;
  gap: 8px;
}
@media (min-width: 761px) and (max-width: 1150px) {
  .rail > .brand {
    font-size: 1.02rem;
    padding-left: 12px;
    gap: 6px;
  }
  .rail .brandmark {
    width: 29px;
    height: 29px;
  }
}

/* A compact handoff above the checklist keeps the employee's next control in reach. */
.nextpanel {
  min-height: 0;
}
.nextpanel .herocopy {
  padding: 17px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 18px;
  align-items: center;
}
.nextpanel .hero-label,
.nextpanel h2,
.nextdetail {
  grid-column: 1;
}
.nextpanel h2 {
  margin: 2px 0;
  max-width: none;
  font-size: 1.55rem;
}
.nextdetail {
  font-size: 0.9rem;
  color: #d9ebe1;
  overflow-wrap: anywhere;
}
.nextpanel .hero-btn {
  grid-column: 2;
  grid-row: 1/4;
  justify-self: end;
}
.nextpanel.property-photo .herocopy {
  max-width: 70%;
}
.nextpanel[data-priority='critical'] {
  border-color: var(--red);
}
.nextpanel[data-priority='critical'] .hero-label {
  color: #ffd0bf;
}
.nextpanel[data-priority='deadline'] .hero-label {
  color: #ffdda9;
}
.workrow {
  padding: 14px 16px;
}
.workrow + .workrow,
.keyentry + .keyentry {
  border-top: 1px solid var(--line);
}
.rowhead,
.rowtools,
.rowtools > div,
.rowplace,
.rowtime,
.summaryrows > div,
.convo-task,
.custodyline,
.completed > summary,
.reviewthreads > summary {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rowhead,
.rowtools,
.summaryrows > div,
.convo-task {
  justify-content: space-between;
}
.propertylink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  padding: 2px 0;
  min-height: 32px;
  min-width: 0;
}
.propertylink strong {
  font-size: 1.03rem;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.propertylink .icon,
.rowmeta,
.rowtime,
.summaryrows dt,
.office-note > small,
.convo-task small,
.custodyline > span:first-child {
  color: var(--muted);
}
.rowhead > .badge {
  flex: none;
}
.rowmeta,
.rowtime,
.office-note > small {
  font-size: 0.82rem;
}
.rowplace {
  margin-top: 7px;
  font-size: 0.91rem;
  overflow-wrap: anywhere;
}
.rowplace .icon {
  color: var(--muted);
}
.rowtools {
  flex-wrap: wrap;
  margin-top: 7px;
}
.rowtools > div {
  flex-wrap: wrap;
}
.quick {
  padding: 5px 10px;
  font-weight: 560;
  font-size: 0.84rem;
  min-height: 34px;
  border: 1px solid var(--tint-border);
  color: var(--accent);
  background: var(--tint);
}
.quick.quiet {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.completed {
  margin-top: 10px;
}
.completed > summary,
.reviewthreads > summary {
  min-height: 44px;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 560;
}
.completed > summary > .icon:last-child {
  margin-left: auto;
}
.completed .workrow {
  opacity: 0.92;
}
.summaryrows {
  margin: 6px 0 9px;
}
.summaryrows > div {
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}
.summaryrows dd {
  margin: 0;
  font-family: var(--mono);
}
.office-note .listrow {
  padding: 10px 0;
  flex-wrap: wrap;
}
.office-note .listrow > .rowsummary {
  flex-basis: 65%;
}
.keyentry > .badge {
  margin: 13px 16px -8px;
}
.keyentry .workrow {
  padding-top: 11px;
}
.linkedstats > button {
  position: relative;
  text-align: left;
  border-radius: 0;
  padding: 17px 20px;
}
.linkedstats > button + button {
  border-left: 1px solid var(--line);
}
.linkedstats > button > .icon {
  position: absolute;
  bottom: 22px;
  right: 15px;
  color: var(--muted);
}
.linkedstats > button:hover,
.linkedstats > button:focus-visible {
  background: var(--raised);
}
.linkedstats > button:focus-visible {
  outline-offset: -3px;
}
.tabs {
  flex-wrap: wrap;
}
.convo-task {
  margin: 12px 0;
}
.convo-task small {
  font-size: 0.83rem;
}
.convo-task .textbtn {
  flex: none;
}
.custodyline {
  justify-content: space-between;
  border-block: 1px solid var(--line);
  padding: 9px 0;
  font-size: 0.87rem;
}
.convo-actions {
  position: sticky;
  bottom: -1px;
  padding: 10px 0 4px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.reviewthreads {
  margin: 12px 0;
}
.reviewthreads details {
  padding: 8px 10px;
  border-left: 2px solid var(--line);
}
.reviewthreads details summary {
  margin-bottom: 8px;
}
@media (max-width: 965px) {
  .linkedstats > button:nth-child(3) {
    border-left: 0;
  }
  .linkedstats > button:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 760px) {
  .nextpanel .herocopy,
  .nextpanel.property-photo .herocopy {
    display: block;
    max-width: none;
    padding: 14px 16px;
  }
  .nextpanel h2 {
    font-size: 1.35rem;
    margin: 5px 0 3px;
  }
  .nextpanel .hero-btn {
    margin-top: 9px;
  }
  .nextpanel .hero-label {
    font-size: 0.69rem;
  }
  .quick,
  .hero-btn,
  .propertylink,
  .dialogbody .actions button,
  .bottomnav .navitem,
  .pagehead > button,
  .tab,
  .convo-task .textbtn,
  .iconbtn,
  .filter select,
  .roles button {
    min-height: 44px;
  }
  .top {
    height: auto;
    min-height: 61px;
  }
  .toptools .iconbtn,
  .dialoghead .iconbtn {
    min-width: 44px;
  }
  .toptools .roles button {
    min-width: 44px;
  }
  .bottomnav .messagecount {
    position: absolute;
    top: 1px;
    left: calc(50% + 9px);
    font-size: 0.65rem;
    padding: 0 4px;
    line-height: 16px;
    border-radius: 8px;
    color: var(--accent);
    background: var(--tint);
  }
  .workrow {
    padding: 9px 12px 12px;
  }
  .propertylink {
    gap: 2px;
  }
  .rowhead {
    gap: 6px;
  }
  .rowmeta {
    margin-top: -3px;
  }
  .rowtools > div {
    gap: 7px;
  }
  .rowplace {
    margin-top: 5px;
  }
  .linkedstats > button {
    padding: 13px 12px;
  }
  .keyentry > .badge {
    margin-left: 12px;
  }
  .convo-actions {
    bottom: -15px;
    padding-bottom: 10px;
  }
}
@media (max-width: 530px) {
  .top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 1px 5px;
    padding: 4px 12px;
  }
  .mobilebrand {
    grid-area: 1/1;
  }
  .toptools {
    display: contents;
  }
  .toptools [data-act='theme'] {
    grid-area: 1/2;
  }
  .toptools [data-act='demo'] {
    grid-area: 1/3;
  }
  .toptools .demolabel {
    grid-area: 2/1;
    font-size: 0.72rem;
  }
  .toptools .demolabel:after {
    content: none;
  }
  .roles {
    grid-area: 2/2/3/4;
    justify-self: end;
  }
  .roles button {
    padding: 3px 10px;
  }
  .toptools .roles {
    padding: 0;
  }
  .rowtools {
    align-items: start;
  }
  .rowtools > div {
    margin-left: auto;
  }
  .workrow .rowtime {
    min-height: 36px;
  }
  .aside {
    gap: 18px;
  }
  .office-note > small {
    display: block;
    margin-top: 6px;
  }
}

.linkedstats > button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}
.office-note .listrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}
.office-note .listrow > .icon {
  display: none;
}
@media (min-width: 390px) and (max-width: 530px) {
  .top {
    display: flex;
    padding: 0 8px;
    gap: 5px;
  }
  .mobilebrand .brand {
    font-size: 1.02rem;
    gap: 5px;
  }
  .mobilebrand .brandmark {
    width: 26px;
    height: 26px;
  }
  .toptools {
    display: flex;
    gap: 2px;
  }
  .toptools .demolabel {
    font-size: 0;
  }
  .toptools .demolabel:after {
    content: 'Demo';
    font-size: 0.65rem;
  }
  .toptools .roles button {
    padding: 3px 6px;
  }
}
