/* Aldela demo2 — original presentation layer. Functional selectors stay intact. */
@font-face {
  font-family: "Manrope";
  src: url("./assets/manrope-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ui-bg: #f4f6f8;
  --ui-surface: #ffffff;
  --ui-surface-soft: #f7f9fa;
  --ui-ink: #102f38;
  --ui-muted: #61747e;
  --ui-line: #e3e9ed;
  --ui-accent: #087f8c;
  --ui-accent-soft: #e8f5f5;
  --ui-positive: #247858;
  --ui-warning: #8e661e;
  --ui-danger: #b54843;
  --ui-radius: 16px;
  --ui-radius-lg: 20px;
  --ui-shadow: 0 3px 14px #19354306, 0 1px 3px #19354303;
  --ui-shadow-float: 0 18px 60px #1636411c, 0 3px 12px #1636410d;
  --ui-motion: 200ms;
  --ui-font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --green: var(--ui-accent);
  --muted: var(--ui-muted);
  --line: var(--ui-line);
  --blue: #3679c9;
  --orange: #b27d2f;
}

html { background: var(--ui-bg); color-scheme: light; }
body.demo2 {
  color: var(--ui-ink);
  background: var(--ui-bg);
  font-family: var(--ui-font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
body.demo2 [hidden] { display: none !important; }
body.demo2 :is(button, input, select, textarea) { font-family: inherit; }
body.demo2 :is(button, summary, [role="button"]) { -webkit-tap-highlight-color: transparent; }
body.demo2 button {
  min-height: 40px;
  border-radius: 11px;
  padding: 10px 14px;
  line-height: 1.4;
  font-weight: 600;
  transition: background-color var(--ui-motion), color var(--ui-motion), border-color var(--ui-motion), box-shadow var(--ui-motion);
}
body.demo2 button:hover { background: #edf4f5; border-color: #cedfe2; }
body.demo2 button:disabled { opacity: .5; box-shadow: none; }
body.demo2 :is(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #13a1b0;
  outline-offset: 3px;
}
body.demo2 :is(input, select, textarea) {
  color: var(--ui-ink);
  background: #fff;
  border-color: var(--ui-line);
  border-radius: 10px;
  min-height: 40px;
  padding: 10px 12px;
}
body.demo2 input::placeholder,
body.demo2 textarea::placeholder { color: #778890; opacity: 1; }
body.demo2 :is(input, select, textarea):disabled { background: #f2f5f7; color: #637782; }
body.demo2 input[type="checkbox"] {
  min-height: 0;
  width: 19px;
  height: 19px;
  accent-color: var(--ui-accent);
}
body.demo2 textarea { line-height: 1.7; resize: vertical; }
body.demo2 a { text-underline-offset: 3px; }
body.demo2 :is(.u-icon, .ui-icon) { width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; }
body.demo2 .boot-message { padding: 42px; color: var(--ui-muted); font-family: var(--ui-font); font-size: 15px; }
body.demo2 .skip-link { position: fixed; left: 16px; top: -100px; z-index: 120; padding: 14px 18px; border-radius: 10px; color: #fff; background: #087f8c; font-size: 14px; box-shadow: var(--ui-shadow-float); }
body.demo2 .skip-link:focus { top: calc(14px + env(safe-area-inset-top, 0px)); }
body.demo2 :is(.primary, .primary:hover) { border-color: var(--ui-accent); color: #fff; }
body.demo2 .primary { background: var(--ui-accent); box-shadow: 0 3px 8px #087f8c13; }
body.demo2 .primary:hover { background: #096c77; }
body.demo2 :is(.small, .muted) { font-size: 13px; color: var(--ui-muted); }
body.demo2 h1 { font-size: clamp(27px, 2.2vw, 35px); line-height: 1.22; letter-spacing: -.045em; font-weight: 750; margin: 0 0 10px; }
body.demo2 h2 { font-size: 18px; line-height: 1.4; letter-spacing: -.025em; font-weight: 750; }
body.demo2 h3 { font-size: 15px; line-height: 1.5; font-weight: 700; }
body.demo2 p { line-height: 1.7; }

/* Shared desktop frame. */
body.demo2 .shell { grid-template-columns: 232px minmax(0, 1fr); }
body.demo2 .side {
  background: var(--ui-ink);
  color: #e6eff1;
  border: 0;
  padding: 31px 16px 22px;
  height: 100vh;
  height: 100dvh;
  z-index: 25;
}
body.demo2 .brand { color: #fff; font-size: 28px; gap: 12px; letter-spacing: -.045em; padding: 0 13px; }
body.demo2 .brand img { width: 29px; height: 35px; filter: brightness(0) invert(1); }
body.demo2 :is(.brand small, .brand-edition) { font-size: 9px; letter-spacing: .03em; font-weight: 650; padding: 4px 6px; border: 1px solid #6aa2ad42; color: #b9d9de; border-radius: 6px; margin-left: auto; }
body.demo2 .tenant { display: flex; align-items: center; gap: 10px; margin: 33px 0 22px; padding: 15px 12px; border-radius: 14px; background: #ffffff09; border: 1px solid #ffffff0b; }
body.demo2 .tenant > div { flex: 1; min-width: 0; }
body.demo2 .tenant-mark { display: flex; align-items: center; justify-content: center; width: 33px; height: 36px; flex: 0 0 33px; color: #bddce0; border: 1px solid #ffffff10; border-radius: 9px; background: #ffffff07; }
body.demo2 .tenant > .ui-icon { width: 14px; height: 14px; flex-basis: 14px; color: #92b3ba; }
body.demo2 .tenant strong { font-size: 14px; font-weight: 650; margin-bottom: 6px; }
body.demo2 .tenant .small { color: #a9bfc5; font-size: 11px; }
body.demo2 .nav { gap: 6px; }
body.demo2 .nav-label { padding: 0 13px; margin: 3px 0 12px; color: #8aaab2; font-size: 9px; letter-spacing: .13em; line-height: 1.6; font-weight: 650; text-transform: uppercase; }
body.demo2 .nav button {
  color: #bbced2;
  font-size: 13px;
  padding: 13px 14px;
  min-height: 48px;
  gap: 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 550;
}
body.demo2 .nav button :is(.u-icon, .ui-icon) { color: #9cbac1; }
body.demo2 .nav button > span { min-width: 0; }
body.demo2 .nav-active-dot { margin-left: auto; flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: #087f8c; }
body.demo2 .nav button:hover { background: #ffffff0c; color: #fff; border-color: #ffffff0b; }
body.demo2 .nav button.active { background: #e3f3f2; color: #0d5863; font-weight: 750; box-shadow: 0 5px 16px #00181d18; }
body.demo2 .nav button.active :is(.u-icon, .ui-icon) { color: #087f8c; }
body.demo2 .side-bottom { color: #9fb6bd; border-color: #ffffff12; font-size: 11px; padding: 21px 12px 0; }
body.demo2 .side-bottom strong { color: #c7d9dd; font-weight: 550; }
body.demo2 .side-bottom p { color: #9fb6bd; margin: 11px 0 16px; font-size: 11px; }
body.demo2 .demo-compare { display: inline-flex; align-items: center; gap: 7px; color: #bdd1d7; font-size: 11px; line-height: 1.7; text-decoration: none; }
body.demo2 .demo-compare .ui-icon { width: 14px; height: 14px; flex-basis: 14px; }
body.demo2 .demo-compare:hover { color: #fff; text-decoration: underline; }
body.demo2 .topbar {
  height: 76px;
  padding: 0 32px;
  background: #ffffffc9;
  border-color: var(--ui-line);
}
body.demo2 .crumb { font-size: 12px; letter-spacing: .01em; color: #6c7e87; }
body.demo2 .profile { gap: 12px; min-width: 0; }
body.demo2 .profile select { font-size: 12px; background: #f8fafb; min-height: 38px; border-color: #e7ecef; max-width: 260px; }
body.demo2 .avatar { width: 36px; height: 36px; color: #0e6973; background: #e4f2f2; font-size: 12px; }
body.demo2 .demo-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 7px; background: #e8f3f3; color: #146b72; font-size: 11px; font-weight: 700; white-space: nowrap; }
body.demo2 .local-banner {
  display: block;
  padding: 10px 32px;
  color: #667984;
  background: #f9fbfc;
  border-color: var(--ui-line);
  font-size: 11px;
}
body.demo2 .local-banner summary { cursor: pointer; line-height: 1.6; color: #5d717c; }
body.demo2 .local-banner > summary { display: flex; align-items: center; gap: 9px; list-style: none; min-height: 24px; }
body.demo2 .local-banner > summary::-webkit-details-marker { display: none; }
body.demo2 .local-banner > summary > .ui-icon { margin-left: auto; width: 15px; height: 15px; flex-basis: 15px; color: #78909b; }
body.demo2 .local-banner[open] > summary { margin-bottom: 8px; }
body.demo2 .local-banner[open] > summary > .ui-icon { transform: rotate(180deg); }
body.demo2 .local-banner > p { max-width: 1000px; margin: 3px 0 6px; font-size: 11px; line-height: 1.8; }
body.demo2 .local-dot { width: 6px; height: 6px; flex: 0 0 6px; display: inline-block; border-radius: 50%; background: #c59a50; }
body.demo2 .local-banner summary strong { font-weight: 650; }
body.demo2 .local-banner details[open] summary { margin-bottom: 8px; }
body.demo2 .local-banner details > :not(summary) { max-width: 1000px; line-height: 1.7; margin-top: 6px; }
body.demo2 .local-banner span { line-height: 1.7; }
body.demo2 .content { padding: 30px 32px 42px; max-width: 1920px; }
body.demo2 .page-title { margin-bottom: 25px; align-items: center; gap: 20px; }
body.demo2 .page-title p { margin-bottom: 0; max-width: 720px; }
body.demo2 .page-kicker { display: block; color: #7c8b94; font-size: 10px; line-height: 1.5; font-weight: 750; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 8px; }
body.demo2 .toolbar { gap: 9px; }
body.demo2 .toolbar button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; }
body.demo2 .mobile-nav,
body.demo2 .mobile-more,
body.demo2 .hm-mobile-tabs,
body.demo2 .corr-mobile-tabs { display: none; }

/* Dashboard and work modules. */
body.demo2 .stats { gap: 16px; margin-bottom: 24px; }
body.demo2 :is(.stat, .panel, .equipment-card) { border-color: var(--ui-line); border-radius: var(--ui-radius); box-shadow: var(--ui-shadow); }
body.demo2 .stat { padding: 21px 22px 19px; }
body.demo2 .stat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
body.demo2 .stat-icon { width: 35px; height: 35px; flex: 0 0 35px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: #478a94; background: #edf6f7; }
body.demo2 .stat-icon .ui-icon { width: 18px; height: 18px; flex-basis: 18px; }
body.demo2 .stat-top .stat-label { padding-top: 5px; }
body.demo2 .stat-label { font-size: 12px; color: var(--ui-muted); line-height: 1.6; }
body.demo2 .stat-number { font-size: 34px; letter-spacing: -.045em; font-weight: 750; line-height: 1.2; margin: 13px 0 11px; font-variant-numeric: tabular-nums; }
body.demo2 .stat-bottom { font-size: 11px; line-height: 1.6; }
body.demo2 .stat-progress,
body.demo2 .stat-track { height: 5px; background: #e7f0f1; border-radius: 99px; margin-top: 16px; overflow: hidden; }
body.demo2 .stat-progress > span,
body.demo2 .stat-track > span { display: block; height: 100%; background: var(--ui-accent); border-radius: inherit; }
body.demo2 .progress { background: #e5edef; height: 5px; border-radius: 99px; margin-top: 15px; }
body.demo2 .progress span { background: var(--ui-accent); }
body.demo2 .workspace { grid-template-columns: 290px minmax(0, 1fr); gap: 18px; }
body.demo2 .panel-head { padding: 19px 20px; border-color: var(--ui-line); }
body.demo2 .panel-head h2 { font-size: 15px; }
body.demo2 :is(.person, .house-row) { padding: 17px 18px; gap: 12px; border-color: #edf1f4; }
body.demo2 :is(.person, .house-row):hover { background: #f3f8f9; }
body.demo2 .person.selected { background: #edf7f7; border-left-color: var(--ui-accent); }
body.demo2 :is(.person strong, .house-row strong) { font-size: 13px; font-weight: 700; }
body.demo2 :is(.person small, .house-row small) { font-size: 12px; }
body.demo2 .person-meta { margin-top: 9px; }
body.demo2 .dot { width: 6px; height: 6px; }
body.demo2 .map-top { padding: 16px 19px; border-color: var(--ui-line); }
body.demo2 .map-top strong { font-size: 13px; font-weight: 700; }
body.demo2 .legend { font-size: 11px; gap: 12px; }
body.demo2 .map { background-color: #eaf0f2; background-image: linear-gradient(#d6e2e550 1px, transparent 1px), linear-gradient(90deg, #d6e2e550 1px, transparent 1px); }
body.demo2 .map .tile { filter: saturate(.7) contrast(.97); }
body.demo2 .map-pin {
  min-height: 36px;
  height: auto;
  border-color: #218392;
  border-width: 2px;
  border-radius: 10px;
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 750;
  box-shadow: 0 4px 12px #143e4d21;
}
body.demo2 .map-pin.worker { background: var(--ui-accent); border-color: #fff; color: #fff; border-radius: 50%; }
body.demo2 .map-pin.debt { color: #a3423e; border-color: #c87670; }
body.demo2 .map-pin.equip { color: #855b16; border-color: #c89746; }
body.demo2 .map-controls { right: 16px; top: 16px; gap: 8px; }
body.demo2 .map-controls button { min-width: 42px; min-height: 42px; padding: 8px; color: #2e5664; border-color: #dce6ea; background: #fffffff2; border-radius: 11px; box-shadow: 0 3px 10px #1339450d; }
body.demo2 .map-controls > button:nth-child(-n+3) { width: 48px; min-width: 48px; max-width: 48px; height: 48px; min-height: 48px; align-self: flex-end; flex: none; }
body.demo2 .map-controls > button:last-child { width: auto; align-self: flex-end; white-space: nowrap; }
body.demo2 .map-credit { color: #576e78; font-size: 10px; padding: 5px 8px; border-top-left-radius: 7px; }
body.demo2 .map-credit a { color: #366674; }
body.demo2 .map-fallback { color: #4f6670; border: 1px solid #d8e3e7; box-shadow: var(--ui-shadow); }
body.demo2 .caption { padding: 13px 18px; font-size: 11px; line-height: 1.7; }
body.demo2 .filters { gap: 9px; margin-bottom: 20px; }
body.demo2 .filters :is(input, select) { font-size: 13px; }
body.demo2 .tabs { padding: 4px; border-radius: 12px; background: #e8eef1; gap: 3px; }
body.demo2 .tabs button { padding: 8px 13px; border-radius: 9px; font-size: 12px; }
body.demo2 .tabs button.active { color: #116d78; box-shadow: 0 2px 5px #19354309; }
body.demo2 th { background: #f8fafb; padding: 15px 18px; font-size: 11px; color: #657883; font-weight: 650; }
body.demo2 td { padding: 17px 18px; font-size: 13px; border-color: #edf1f3; font-variant-numeric: tabular-nums; }
body.demo2 td strong { font-size: 13px; font-weight: 700; }
body.demo2 tr.clickable:hover { background: #f1f8f8; }
body.demo2 .pill { padding: 5px 9px; border-radius: 7px; font-size: 11px; line-height: 1.6; font-weight: 650; background: #eef2f4; color: #5a707a; }
body.demo2 :is(.pill.doing, .pill.court) { background: #e9f2fc; color: #32679b; }
body.demo2 :is(.pill.done, .pill.paid) { background: #e8f5ee; color: #277254; }
body.demo2 :is(.pill.review, .pill.prepare) { background: #fbf3e3; color: #866320; }
body.demo2 :is(.pill.assigned, .pill.claim) { background: #efedf8; color: #685693; }
body.demo2 .pill.enforce { background: #fceeea; color: #a04d43; }
body.demo2 .board { gap: 14px; }
body.demo2 .board-column { border: 1px solid #e1e8ec; border-radius: 15px; background: #edf2f5; padding: 14px; }
body.demo2 .board-column h3 { font-size: 12px; color: #5a737e; }
body.demo2 .task-card { padding: 16px; border-color: #e2e9ed; border-radius: 12px; box-shadow: 0 2px 5px #19354304; }
body.demo2 .task-card p { font-size: 13px; line-height: 1.6; }
body.demo2 .task-foot { font-size: 11px; gap: 8px; }
body.demo2 .notice { padding: 14px 17px; background: #f7fafb; color: #5f7580; border-color: #dfe8ec; border-radius: 12px; font-size: 12px; }
body.demo2 .equipment-grid { gap: 17px; }
body.demo2 .equipment-card { padding: 22px; transition: border-color var(--ui-motion), box-shadow var(--ui-motion); }
body.demo2 .equipment-card:hover { border-color: #b8d9dc; box-shadow: 0 8px 25px #254c5709; }
body.demo2 .equipment-icon { display: flex; align-items: center; justify-content: center; width: 43px; height: 43px; background: var(--ui-accent-soft); color: var(--ui-accent); border-radius: 12px; padding: 10px; margin-bottom: 19px; }
body.demo2 .equipment-card p { font-size: 12px; }
body.demo2 .history-item { padding: 16px 0; font-size: 13px; }
body.demo2 .history-item small { font-size: 11px; }
body.demo2 .empty { color: #6e828d; font-size: 13px; line-height: 1.7; }

/* Houses: common palette and legible inspector. */
body.demo2 #housesModule {
  --hm-line: var(--ui-line);
  --hm-muted: var(--ui-muted);
  --hm-green: var(--ui-accent);
  --hm-soft: var(--ui-accent-soft);
  --hm-danger: var(--ui-danger);
}
body.demo2 #housesModule .hm-stats { gap: 16px; margin-bottom: 22px; }
body.demo2 #housesModule .hm-stat { padding: 20px 21px; gap: 8px; border-radius: var(--ui-radius); box-shadow: var(--ui-shadow); }
body.demo2 #housesModule .hm-stat > span:not(.hm-stat-icon) { font-size: 12px; color: var(--ui-muted); }
body.demo2 #housesModule .hm-stat > strong { font-size: 33px; line-height: 1.2; letter-spacing: -.045em; font-weight: 750; font-variant-numeric: tabular-nums; }
body.demo2 #housesModule .hm-stat > small { font-size: 11px; line-height: 1.6; }
body.demo2 #housesModule .hm-stat-icon { padding: 9px; top: 19px; right: 17px; border-radius: 11px; }
body.demo2 #housesModule .hm-toolbar { border-radius: var(--ui-radius); padding: 16px; gap: 12px; box-shadow: var(--ui-shadow); margin-bottom: 17px; }
body.demo2 #housesModule .hm-filter-disclosure { margin: 0; padding: 0; border: 0; }
body.demo2 #housesModule .hm-filter-disclosure > summary { display: none; }
body.demo2 #housesModule .hm-filter { gap: 7px; min-width: 145px; }
body.demo2 #housesModule :is(.hm-filter > span, .hm-complex-filter summary > span) { font-size: 11px; font-weight: 550; color: #637983; }
body.demo2 #housesModule :is(.hm-filter select, .hm-search input) { font-size: 12px; padding: 10px; min-height: 42px; background: #fafcfc; }
body.demo2 #housesModule .hm-search { min-width: 180px; }
body.demo2 #housesModule .hm-reset { min-height: 42px; font-size: 12px !important; padding: 10px 13px !important; }
body.demo2 #housesModule .hm-complex-filter summary { border-radius: 10px; min-height: 65px; gap: 7px; padding: 9px 12px; }
body.demo2 #housesModule .hm-complex-filter summary strong { font-size: 12px; }
body.demo2 #housesModule :is(.hm-complex-options, .hm-layers > div) { padding: 12px; border-radius: 13px; box-shadow: var(--ui-shadow-float); }
body.demo2 #housesModule :is(.hm-complex-options label, .hm-layers label) { font-size: 12px; padding: 11px 6px; min-height: 42px; }
body.demo2 #housesModule .hm-complex-options > button { font-size: 12px; }
body.demo2 #housesModule .hm-viewbar { margin-bottom: 16px; }
body.demo2 #housesModule .hm-viewtabs { background: #e7eef1; border-radius: 12px; gap: 3px; }
body.demo2 #housesModule .hm-viewtabs button { border-radius: 9px; min-height: 36px; font-size: 12px !important; padding: 8px 15px; }
body.demo2 #housesModule .hm-viewtabs button.active { color: #0c717d; box-shadow: 0 2px 6px #1935430a; }
body.demo2 #housesModule :is(.hm-layers > summary, .hm-map-options > select) { min-height: 40px; border-radius: 10px; padding: 10px 12px; font-size: 12px; }
body.demo2 #housesModule .hm-workspace { grid-template-columns: 250px minmax(260px, 1fr) 306px; gap: 15px; }
body.demo2 #housesModule :is(.hm-list-panel, .hm-map-panel, .hm-inspector, .hm-table-panel) { border-radius: var(--ui-radius); box-shadow: var(--ui-shadow); }
body.demo2 #housesModule .hm-panel-heading { padding: 18px 17px; }
body.demo2 #housesModule .hm-panel-heading h2 { font-size: 14px; font-weight: 750; }
body.demo2 #housesModule :is(.hm-panel-heading > span, .hm-map-heading strong > span) { background: #e8f3f4; color: #19717b; padding: 4px 8px; font-size: 11px; font-variant-numeric: tabular-nums; }
body.demo2 #housesModule .hm-visibility { padding: 8px 12px; font-size: 11px; }
body.demo2 #housesModule .hm-visibility button { min-height: 32px; font-size: 11px !important; padding: 6px 7px; }
body.demo2 #housesModule .hm-house-list { height: 598px; scrollbar-color: #ccdadd transparent; }
body.demo2 #housesModule .hm-house-row { padding: 15px 11px; gap: 5px; }
body.demo2 #housesModule .hm-house-row.is-selected { background: #eaf5f5; box-shadow: inset 3px 0 0 var(--ui-accent); }
body.demo2 #housesModule .hm-house-row:hover { background: #f0f7f8; }
body.demo2 #housesModule .hm-select-house { min-height: 40px; gap: 9px; }
body.demo2 #housesModule .hm-house-icon { width: 32px; height: 34px; border-color: #dbe7e9; border-radius: 9px; color: #38818b; }
body.demo2 #housesModule .hm-row-copy strong { font-size: 13px; line-height: 1.55; font-weight: 750; }
body.demo2 #housesModule .hm-row-copy small { font-size: 11px; line-height: 1.7; }
body.demo2 #housesModule .hm-row-badges { gap: 5px; margin-top: 8px; }
body.demo2 #housesModule .hm-row-badges span { font-size: 10px !important; padding: 4px 6px; border-radius: 5px; background: #edf2f5; color: #516e79; line-height: 1.5; }
body.demo2 #housesModule .hm-eye { min-width: 30px; min-height: 32px; align-items: center; justify-content: center; margin-top: 1px; color: #648c96; }
body.demo2 #housesModule .hm-map-heading { padding: 18px; gap: 7px; }
body.demo2 #housesModule .hm-map-heading strong { font-size: 14px; font-weight: 750; }
body.demo2 #housesModule .hm-map-heading > span { font-size: 11px; }
body.demo2 #housesModule .hm-map { height: 555px !important; }
body.demo2 #housesModule .hm-map .map-pin { font-size: 11px; min-height: 36px; }
body.demo2 #housesModule .hm-map .map-pin.cluster { background: var(--ui-accent); outline-color: #85bcc3; min-width: 44px; height: 44px; border-radius: 50%; font-size: 13px; padding: 7px; }
body.demo2 #housesModule .hm-map .map-pin.selected { background: #effbfc; border-color: #066f7c; box-shadow: 0 0 0 5px #0c91a027, 0 5px 16px #153e4a26; }
body.demo2 #housesModule .hm-map-legend { font-size: 10px; line-height: 1.6; padding: 13px 15px 8px; gap: 10px; color: #607782; }
body.demo2 #housesModule .hm-map-legend i { border-color: #277f8d; }
body.demo2 #housesModule .hm-map-note { font-size: 10px; padding: 0 15px 14px; line-height: 1.7; }
body.demo2 #housesModule .hm-inspector { min-height: 0; display: block; grid-column: auto; }
body.demo2 #housesModule .hm-inspector-empty { padding: 100px 25px; color: var(--ui-muted); }
body.demo2 #housesModule .hm-inspector-empty > svg { display: inline-block; background: #e9f4f5; color: #488e99; width: 52px !important; height: 52px !important; padding: 13px; border-radius: 15px; }
body.demo2 #housesModule .hm-inspector-empty h2 { color: var(--ui-ink); font-size: 16px; margin-bottom: 10px; }
body.demo2 #housesModule :is(.hm-inspector-empty p, .hm-inspector-empty small) { display: block; font-size: 12px; line-height: 1.75; }
body.demo2 #housesModule .hm-inspector-header { padding: 24px 20px 19px; background: linear-gradient(135deg, #edf7f7, #fafdfe); border-right: 0; border-bottom: 1px solid var(--ui-line); }
body.demo2 #housesModule .hm-overline { font-size: 10px; color: #527e88; letter-spacing: .13em; font-weight: 750; }
body.demo2 #housesModule .hm-inspector-header h2 { font-size: 19px; line-height: 1.45; font-weight: 750; margin: 12px 24px 8px 0; }
body.demo2 #housesModule .hm-inspector-header p { font-size: 12px; line-height: 1.65; }
body.demo2 #housesModule .hm-coordinates { border-color: #cee1e4; background: #ffffff9c; font-size: 10px; padding: 6px 8px; border-radius: 7px; }
body.demo2 #housesModule .hm-close { top: 10px; right: 10px; padding: 7px !important; min-width: 34px; min-height: 34px; color: #4e7480; background: #ffffffb8; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
body.demo2 #housesModule .hm-detail-tabs { grid-column: auto; padding: 8px; gap: 2px; }
body.demo2 #housesModule .hm-detail-tabs button { min-height: 37px; font-size: 11px !important; padding: 8px 6px; border-radius: 8px; }
body.demo2 #housesModule .hm-detail-tabs button.active { background: #eaf5f5; color: #087480; }
body.demo2 #housesModule .hm-inspector-body { grid-column: auto; padding: 20px; max-height: 510px; scrollbar-color: #ccdadd transparent; }
body.demo2 #housesModule .hm-inspector-body h3 { font-size: 13px; margin: 22px 0 13px; }
body.demo2 #housesModule .hm-detail-metrics { gap: 10px; }
body.demo2 #housesModule .hm-detail-metrics button { border-radius: 12px; padding: 13px; border-color: #e3ecef; background: #f6fafb; }
body.demo2 #housesModule .hm-detail-metrics strong { font-size: 27px; font-weight: 750; font-variant-numeric: tabular-nums; }
body.demo2 #housesModule .hm-detail-metrics span { font-size: 11px; }
body.demo2 #housesModule .hm-alert { border-radius: 10px; padding: 12px; font-size: 11px; }
body.demo2 #housesModule .hm-master { gap: 10px; }
body.demo2 #housesModule .hm-master strong { font-size: 12px; }
body.demo2 #housesModule .hm-master small { font-size: 11px; }
body.demo2 #housesModule .hm-initial { background: #e7f2f4; color: #237383; font-size: 13px; padding: 9px 12px; }
body.demo2 #housesModule .hm-detail-heading { gap: 8px; }
body.demo2 #housesModule .hm-detail-heading > button { min-height: 34px; font-size: 11px !important; }
body.demo2 #housesModule .hm-task { padding: 13px 0 !important; gap: 10px; border-radius: 0; }
body.demo2 #housesModule .hm-task strong { font-size: 12px; line-height: 1.6; }
body.demo2 #housesModule .hm-task small { font-size: 11px; }
body.demo2 #housesModule .hm-stage { font-size: 10px; line-height: 1.5; border-radius: 6px; padding: 4px 6px; align-self: flex-start; }
body.demo2 #housesModule .hm-add { min-height: 42px; padding: 12px !important; font-size: 11px !important; border-radius: 11px; background: #f5fafb; }
body.demo2 #housesModule :is(.hm-muted, .hm-empty) { font-size: 12px; line-height: 1.75; }
body.demo2 #housesModule .hm-equipment { padding: 14px 0 !important; gap: 10px; border-radius: 0; }
body.demo2 #housesModule .hm-equipment strong { font-size: 12px; }
body.demo2 #housesModule .hm-equipment small { font-size: 11px; }
body.demo2 #housesModule .hm-eq-icon { color: #32818c; background: #edf6f7; border-radius: 10px; padding: 9px; }
body.demo2 #housesModule .hm-passport { font-size: 12px; }
body.demo2 #housesModule .hm-passport > div { padding: 14px 0; gap: 12px; }
body.demo2 #housesModule .hm-passport dt { font-size: 11px; }
body.demo2 #housesModule .hm-passport small { font-size: 10px; }
body.demo2 #housesModule .hm-table-mode { grid-template-columns: minmax(0, 1fr) 306px; }
body.demo2 #housesModule .hm-table-scroll th { font-size: 11px; padding: 15px; }
body.demo2 #housesModule .hm-table-scroll td { font-size: 12px; padding: 15px; }
body.demo2 #housesModule .hm-table-scroll td small { font-size: 11px; }
body.demo2 #housesModule .hm-table-address strong { font-size: 13px; }
body.demo2 #housesModule .hm-table-scroll tr.is-selected { background: #edf7f7; }
body.demo2 #housesModule .hm-footnote { font-size: 11px; line-height: 1.75; margin-top: 14px; }

/* Correspondence shares the frame, with a restrained blue accent for analysis. */
body.demo2 .correspondence { --corr-ink: var(--ui-ink); --corr-line: var(--ui-line); --corr-muted: var(--ui-muted); }
body.demo2 .corr-banner { padding: 19px 22px; border-color: #d9e8eb; border-radius: var(--ui-radius); background: linear-gradient(110deg, #eaf5f6, #f8fcfd); }
body.demo2 .corr-banner span { font-size: 12px; line-height: 1.7; color: #637e88; }
body.demo2 .corr-banner strong { font-size: 15px; color: #204c59; font-weight: 750; }
body.demo2 .corr-summary { border-radius: var(--ui-radius); margin: 19px 0; box-shadow: var(--ui-shadow); }
body.demo2 .corr-summary > span { padding: 19px 20px; font-size: 12px; gap: 12px; }
body.demo2 .corr-summary strong { font-size: 27px; color: var(--ui-ink); letter-spacing: -.035em; font-weight: 750; font-variant-numeric: tabular-nums; }
body.demo2 .corr-summary .late strong { color: #af4945; }
body.demo2 .corr-tabs { gap: 5px; margin: 19px 0; scrollbar-width: thin; }
body.demo2 .corr-tabs button { padding: 10px 15px; border-radius: 10px; font-size: 12px; color: #5c737d; }
body.demo2 .corr-tabs button.active { background: #e2f0f2; color: #116d7b; }
body.demo2 .corr-workspace { grid-template-columns: 246px minmax(280px, 1fr) 280px; border-radius: var(--ui-radius-lg); box-shadow: var(--ui-shadow); }
body.demo2 .corr-inbox { background: #f8fafb; min-height: 800px; }
body.demo2 .corr-inbox form { margin: 18px 14px 12px; gap: 5px; }
body.demo2 .corr-inbox form input { font-size: 12px; width: 100%; }
body.demo2 .corr-inbox form button { min-width: 39px; padding: 8px; }
body.demo2 .corr-inbox > select { width: calc(100% - 28px); margin: 0 14px 12px; font-size: 12px; }
body.demo2 .corr-inbox-label { padding: 14px 17px; color: #647c87; font-size: 10px; font-weight: 650; }
body.demo2 .corr-letter { padding: 18px 15px; gap: 9px; border-radius: 0; }
body.demo2 .corr-letter:hover { background: #edf6f7; }
body.demo2 .corr-letter.selected { background: #eaf5f5; border-left-color: var(--ui-accent); }
body.demo2 .corr-letter strong { font-size: 13px; font-weight: 750; line-height: 1.6; }
body.demo2 .corr-letter-meta { font-size: 10px; color: #687e88; }
body.demo2 .corr-letter-house { font-size: 12px; line-height: 1.6; }
body.demo2 .corr-letter-company { font-size: 11px; }
body.demo2 .corr-tag { font-size: 10px; line-height: 1.7; padding: 4px 7px; color: #526d79; background: #edf2f5; border-radius: 6px; font-weight: 550; }
body.demo2 .corr-detail { padding: 24px; }
body.demo2 .corr-detail-head h2 { color: var(--ui-ink); font-size: 23px; font-weight: 750; letter-spacing: -.035em; line-height: 1.4; }
body.demo2 .corr-detail-head > button { font-size: 11px; padding: 9px 11px; }
body.demo2 .corr-eyebrow { font-size: 10px; color: #71838c; letter-spacing: .1em; font-weight: 650; }
body.demo2 .corr-route { background: #f7fafb; border-color: #e4ecef; border-radius: 12px; padding: 16px; gap: 14px; margin: 22px 0; }
body.demo2 .corr-route > span { font-size: 12px; line-height: 1.7; }
body.demo2 .corr-route small { font-size: 11px; }
body.demo2 .corr-route select { font-size: 12px; }
body.demo2 .corr-section { padding: 24px 0; }
body.demo2 .corr-section h3 { font-size: 14px; font-weight: 750; margin-bottom: 16px; flex-wrap: wrap; }
body.demo2 .corr-section h3 > span:not(.corr-tag) { font-size: 11px; color: #657c88; }
body.demo2 .corr-original { background: #fafcfd; border-color: #e3ebef; border-radius: 13px; padding: 18px; }
body.demo2 .corr-original p { font-size: 14px; line-height: 1.85; }
body.demo2 .corr-source-line { font-size: 11px; color: #657a85; line-height: 1.7; }
body.demo2 .corr-original small { font-size: 11px; color: #617782; }
body.demo2 .corr-muted { font-size: 12px; line-height: 1.75; }
body.demo2 .corr-linked { border-radius: 11px; padding: 14px; }
body.demo2 .corr-linked > span { font-size: 13px; line-height: 1.6; }
body.demo2 .corr-linked small { font-size: 11px; color: #647d87; }
body.demo2 .corr-linked button { font-size: 11px; }
body.demo2 .correspondence label { font-size: 12px; color: #5c7580; gap: 8px; }
body.demo2 .correspondence :is(input, select, textarea) { font-size: 13px; }
body.demo2 .correspondence textarea { min-height: 140px; line-height: 1.8; }
body.demo2 .corr-actions { gap: 8px; }
body.demo2 .corr-actions button { font-size: 12px; }
body.demo2 :is(.corr-warning, .corr-success) { border-radius: 11px; font-size: 12px; padding: 14px; }
body.demo2 .corr-deadline { font-size: 12px; padding: 15px; border-radius: 11px; gap: 10px; }
body.demo2 .corr-deadline small { font-size: 11px; line-height: 1.7; }
body.demo2 .corr-expander { font-size: 12px; }
body.demo2 .corr-expander summary { min-height: 40px; padding: 9px 0; color: #116d7b; line-height: 1.7; }
body.demo2 .correspondence .corr-checkbox { font-size: 12px; line-height: 1.7; }
body.demo2 .corr-checkbox input { width: 19px; height: 19px; }
body.demo2 .corr-comment { font-size: 12px; padding: 14px; border-radius: 10px; }
body.demo2 .corr-comment > span { font-size: 11px; color: #6c818c; }
body.demo2 .corr-assistant { background: #f7fafc; padding: 22px 18px; }
body.demo2 .corr-assistant-head { grid-template-columns: 39px minmax(0, 1fr); gap: 2px 11px; margin-bottom: 18px; }
body.demo2 .corr-spark { width: 39px; height: 39px; color: #4774a9; background: #e6effb; border-radius: 12px; }
body.demo2 .corr-assistant h2 { font-size: 14px; line-height: 1.5; font-weight: 750; }
body.demo2 .corr-assistant-head > span { font-size: 10px; color: #6c7f8d; }
body.demo2 .corr-ai-notice { font-size: 11px; border-color: #dfe9ef; color: #607a89; padding: 13px; border-radius: 10px; }
body.demo2 .corr-assistant > button { font-size: 12px; min-height: 43px; }
body.demo2 .corr-ai-block { font-size: 12px; line-height: 1.8; margin: 24px 0; }
body.demo2 .corr-ai-block h3 { font-size: 13px; color: #30586e; margin-bottom: 12px; }
body.demo2 .corr-risk { color: #806123; padding-left: 12px; border-color: #d4a34f; }
body.demo2 .corr-ai-block blockquote { background: #edf3fa; color: #446582; padding: 13px; border-radius: 10px; }
body.demo2 .corr-proposal { padding: 14px; border-color: #dfe8ee; border-radius: 12px; gap: 10px; }
body.demo2 .corr-proposal small { font-size: 11px; color: #5e7786; }
body.demo2 .corr-proposal button { font-size: 11px; }
body.demo2 .corr-ai-body > button { font-size: 11px; min-height: 43px; }
body.demo2 .corr-ai-footer { font-size: 11px; line-height: 1.8; color: #657d8a; }
body.demo2 .corr-register { padding: 28px; border-radius: var(--ui-radius); }
body.demo2 .corr-register > p { font-size: 13px; color: var(--ui-muted); }
body.demo2 .corr-case > h3 { color: #496d7a; background: #eaf1f4; font-size: 12px; padding: 14px 16px; }
body.demo2 .corr-case h3 small { font-size: 10px; }
body.demo2 .corr-dispatch { font-size: 12px; border-radius: 12px; }

/* Dialogs and completion feedback. */
body.demo2 dialog {
  border-color: #dde7eb;
  border-radius: 22px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  width: min(780px, calc(100vw - 48px));
  box-shadow: 0 30px 110px #082b3b3b;
}
body.demo2 dialog::backdrop { background: #102f3866; backdrop-filter: blur(5px); }
body.demo2 .dialog-head { padding: 25px 28px 22px; position: sticky; top: 0; background: #fffffff5; backdrop-filter: blur(12px); z-index: 3; }
body.demo2 .dialog-head h2 { font-size: 23px; font-weight: 750; line-height: 1.4; }
body.demo2 .dialog-head p { font-size: 12px; margin-bottom: 0; }
body.demo2 .dialog-head > button { width: 40px; min-width: 40px; height: 40px; padding: 8px; display: flex; justify-content: center; align-items: center; background: #f4f8f9; }
body.demo2 .dialog-main { padding: 24px 28px 28px; }
body.demo2 .field label { font-size: 12px; margin-bottom: 9px; color: #5d7480; }
body.demo2 .dialog-grid { gap: 20px; margin-bottom: 24px; }
body.demo2 .steps { gap: 6px; margin-bottom: 24px; }
body.demo2 .steps span { border-radius: 8px; background: #eef3f5; color: #607883; font-size: 11px; padding: 9px 11px; }
body.demo2 .steps span.current { color: #fff; background: var(--ui-accent); }
body.demo2 .check { font-size: 14px; margin: 15px 0; line-height: 1.7; align-items: flex-start; }
body.demo2 .check input { flex-shrink: 0; margin-top: 3px; }
body.demo2 .photo-box { border-radius: 13px; background: #f7fafb; border-color: #c5dbe0; padding: 17px; }
body.demo2 .photo-box img { height: 145px; border-radius: 9px; }
body.demo2 .photo-box input { font-size: 12px; }
body.demo2 .dialog-actions { gap: 10px; padding-top: 22px; margin-top: 25px; }
body.demo2 #toast { background: #133d48; border: 1px solid #ffffff18; border-radius: 13px; box-shadow: 0 8px 30px #133d4826; font-size: 13px; padding: 14px 20px; line-height: 1.6; max-width: min(620px, calc(100vw - 32px)); }

@media (min-width: 761px) {
  /* The phone disclosure remains expanded visually on wider screens. */
  body.demo2 #housesModule .hm-filter-disclosure::details-content { display: block; content-visibility: visible; }
  body.demo2 #housesModule .hm-filter-disclosure:not([open]) > .hm-toolbar { display: flex; }
}

@media (min-width: 1660px) {
  body.demo2 .content { padding: 36px 40px 48px; }
  body.demo2 #housesModule .hm-workspace { grid-template-columns: 288px minmax(320px, 1fr) 338px; gap: 18px; }
  body.demo2 #housesModule .hm-table-mode { grid-template-columns: minmax(0, 1fr) 338px; }
  body.demo2 #housesModule .hm-map { height: 605px !important; }
  body.demo2 #housesModule .hm-house-list { height: 648px; }
  body.demo2 .corr-workspace { grid-template-columns: 280px minmax(400px, 1fr) 306px; }
}

@media (max-width: 1439px) and (min-width: 761px) {
  body.demo2 .shell { grid-template-columns: 208px minmax(0, 1fr); }
  body.demo2 .side { padding-left: 12px; padding-right: 12px; }
  body.demo2 .nav button { font-size: 12px; gap: 10px; padding-left: 12px; padding-right: 12px; }
  body.demo2 .content { padding: 27px 24px 38px; }
  body.demo2 .topbar { padding: 0 24px; }
  body.demo2 .local-banner { padding-left: 24px; padding-right: 24px; }
  body.demo2 #housesModule .hm-workspace { grid-template-columns: 248px minmax(0, 1fr); }
  body.demo2 #housesModule .hm-table-mode { grid-template-columns: minmax(0, 1fr); }
  body.demo2 #housesModule .hm-inspector:not(:has(.hm-inspector-header)) { display: none; }
  body.demo2 #housesModule .hm-inspector:has(.hm-inspector-header) {
    position: fixed;
    z-index: 45;
    right: 24px;
    top: 125px;
    width: 350px;
    max-height: calc(100vh - 155px);
    max-height: calc(100dvh - 155px);
    box-shadow: var(--ui-shadow-float);
    border-color: #cddfe3;
    display: flex;
    flex-direction: column;
  }
  body.demo2 #housesModule .hm-inspector-header { flex-shrink: 0; }
  body.demo2 #housesModule .hm-detail-tabs { flex-shrink: 0; }
  body.demo2 #housesModule .hm-inspector-body { min-height: 0; max-height: none; overflow: auto; }
  body.demo2 #housesModule .hm-stat-icon { display: none; }
}

@media (max-width: 1279px) and (min-width: 761px) {
  body.demo2 .stats { gap: 11px; }
  body.demo2 .stat { padding: 18px; }
  body.demo2 .stat-number { font-size: 29px; }
  body.demo2 .workspace { grid-template-columns: 240px minmax(0, 1fr); gap: 14px; }
  body.demo2 .corr-workspace { grid-template-columns: 230px minmax(0, 1fr); }
  body.demo2 .corr-inbox { grid-row: span 2; }
  body.demo2 .corr-assistant { grid-column: 2; border-left: 0; border-top: 1px solid var(--ui-line); }
  body.demo2 .corr-detail { padding: 22px; }
  body.demo2 .corr-detail-head { display: block; }
  body.demo2 .corr-detail-head > button { margin-top: 12px; }
  body.demo2 .corr-route { grid-template-columns: 1fr; }
  body.demo2 .corr-summary > span { padding: 15px; gap: 8px; font-size: 11px; }
  body.demo2 .corr-summary strong { font-size: 23px; }
}

@media (max-width: 1050px) and (min-width: 761px) {
  body.demo2 .shell { grid-template-columns: 184px minmax(0, 1fr); }
  body.demo2 .side { padding: 25px 9px 20px; }
  body.demo2 .brand { font-size: 25px; gap: 9px; }
  body.demo2 .nav button { font-size: 11px; padding: 13px 10px; gap: 8px; }
  body.demo2 .nav :is(.u-icon, .ui-icon) { width: 18px; height: 18px; flex-basis: 18px; }
  body.demo2 .tenant { gap: 8px; padding: 13px 9px; }
  body.demo2 .tenant-mark { width: 28px; flex-basis: 28px; height: 32px; }
  body.demo2 .tenant .small { font-size: 10px; }
  body.demo2 .tenant > .ui-icon { display: none; }
  body.demo2 .content { padding: 24px 18px 34px; }
  body.demo2 .topbar { padding: 0 18px; gap: 10px; }
  body.demo2 .local-banner { padding-left: 18px; padding-right: 18px; }
  body.demo2 .profile select { max-width: 205px; font-size: 11px; }
  body.demo2 .profile .avatar { display: none; }
  body.demo2 .page-title { align-items: flex-start; flex-direction: column; }
  body.demo2 .page-title .toolbar { width: auto; }
  body.demo2 .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.demo2 #housesModule .hm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body.demo2 #housesModule .hm-workspace { grid-template-columns: 220px minmax(0, 1fr); }
  body.demo2 #housesModule .hm-table-mode { grid-template-columns: minmax(0, 1fr); }
  body.demo2 #housesModule .hm-house-icon { display: none; }
  body.demo2 #housesModule .hm-row-copy strong { font-size: 12px; }
  body.demo2 #housesModule .hm-row-copy small { font-size: 11px; }
  body.demo2 .corr-workspace { grid-template-columns: 200px minmax(0, 1fr); }
  body.demo2 .corr-detail { padding: 18px; }
  body.demo2 .corr-detail-head h2 { font-size: 21px; }
  body.demo2 .corr-summary { display: grid; grid-template-columns: 1fr 1fr; }
  body.demo2 .corr-summary > span { border-bottom: 1px solid var(--ui-line); }
}

/* Compact navigation and content panes for phones, ready for web-app shells. */
@media (max-width: 760px) {
  body.demo2 { font-size: 14px; padding-bottom: calc(83px + env(safe-area-inset-bottom, 0px)); }
  body.demo2 .shell { display: block; min-height: calc(100vh - 83px); min-height: calc(100dvh - 83px); }
  body.demo2 .side { display: none; }
  body.demo2 .brand { font-size: 25px; gap: 10px; padding: 0; }
  body.demo2 .brand img { height: 29px; width: 25px; }
  body.demo2 .side :is(.tenant, .nav, .side-bottom, .nav-label) { display: none; }
  body.demo2 .topbar { min-height: 62px; height: auto; padding: calc(4px + env(safe-area-inset-top, 0px)) 16px 4px; gap: 3px; display: flex; flex-wrap: wrap; align-items: center; }
  body.demo2 .crumb { font-size: 10px; line-height: 1.5; flex: 1 0 100%; }
  body.demo2 .profile { width: 100%; gap: 8px; flex-wrap: wrap; justify-content: flex-start; }
  body.demo2 .profile select { max-width: 100%; min-width: 0; min-height: 48px; font-size: 16px; flex: 1 1 200px; }
  body.demo2 .profile .avatar { display: none; }
  body.demo2 .demo-badge { font-size: 10px; flex-shrink: 0; padding: 6px 9px; }
  body.demo2 .local-banner { padding: 0 16px; font-size: 11px; }
  body.demo2 .local-banner summary { min-height: 48px; padding: 10px 0; }
  body.demo2 .local-banner > summary { min-height: 48px; }
  body.demo2 .local-banner > p { font-size: 12px; }
  body.demo2 .local-banner span { display: inline; margin: 0; }
  body.demo2 .local-banner .local-dot { display: inline-block; }
  body.demo2 .content { padding: 16px 16px 28px; }
  body.demo2 .page-title { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin-bottom: 15px; align-items: center; }
  body.demo2 .page-title > div:first-child { min-width: 0; }
  body.demo2 .page-kicker { display: none; }
  body.demo2 h1 { font-size: 28px; line-height: 1.18; margin-bottom: 5px; }
  body.demo2 .page-title p { font-size: 12px; line-height: 1.6; }
  body.demo2 .toolbar { width: auto; gap: 8px; flex-wrap: wrap; }
  body.demo2 .page-title .quiet { width: 48px; min-width: 48px; padding: 12px; }
  body.demo2 .page-title .quiet span { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  body.demo2 .page-title:has(.toolbar .primary) { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  body.demo2 .toolbar button { font-size: 12px; }
  body.demo2 button { min-height: 48px; padding: 12px 14px; }
  body.demo2 :is(input, select, textarea) { font-size: 16px !important; min-height: 48px; padding: 11px 12px; }
  body.demo2 input[type="checkbox"] { width: 21px; height: 21px; min-height: 21px; }
  body.demo2 .check,
  body.demo2 .corr-checkbox { min-height: 48px; align-items: center; }
  body.demo2 .mobile-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 8px max(6px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
    background: #fffffffa;
    border-top: 1px solid #e0e8ec;
    box-shadow: 0 -5px 25px #173a4507;
    backdrop-filter: blur(18px);
  }
  body.demo2 .mobile-nav button {
    min-width: 0;
    min-height: 58px;
    padding: 6px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #627b86;
    font-size: 9px;
    line-height: 1.3;
    font-weight: 650;
  }
  body.demo2 .mobile-nav button :is(.u-icon, .ui-icon) { width: 21px; height: 21px; flex-basis: 21px; }
  body.demo2 .mobile-nav button.active,
  body.demo2 .mobile-nav button[aria-expanded="true"] { color: #0a7784; background: #eaf5f6; }
  body.demo2 .mobile-nav button span { max-width: 100%; overflow-wrap: anywhere; }
  body.demo2 .mobile-more {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    max-height: calc(100vh - 190px);
    max-height: calc(100dvh - 190px);
    overflow: auto;
    padding: 14px;
    gap: 8px;
    border: 1px solid #dbe7eb;
    border-radius: 20px;
    background: #fffffff7;
    box-shadow: var(--ui-shadow-float);
    backdrop-filter: blur(18px);
  }
  body.demo2 .mobile-more button { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 14px 11px; background: #f5f9fa; font-size: 12px; text-align: left; line-height: 1.5; }
  body.demo2 .mobile-more button.active { border-color: #b4d9df; color: #0c7280; background: #eaf6f7; }
  body.demo2 .mobile-more-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 14px; padding: 0 3px; }
  body.demo2 .mobile-more-head strong { font-size: 16px; font-weight: 750; }
  body.demo2 .mobile-more-head button { min-width: 48px; min-height: 48px; padding: 12px; justify-content: center; background: #f4f8fa; border: 0; border-radius: 12px; }
  body.demo2 .mobile-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body.demo2 .mobile-more-grid button { font-size: 12px; font-weight: 650; }
  body.demo2 .mobile-more .demo-compare { color: #327788; margin-top: 14px; min-height: 48px; padding: 10px 4px; font-size: 12px; }
  body.demo2 .mobile-more h2,
  body.demo2 .mobile-more p { grid-column: 1 / -1; }
  body.demo2 .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-bottom: 19px; }
  body.demo2 .stat { padding: 17px 15px; border-radius: 15px; }
  body.demo2 .stat-label { font-size: 11px; line-height: 1.7; }
  body.demo2 .stat-top { gap: 7px; }
  body.demo2 .stat-icon { width: 29px; height: 29px; flex-basis: 29px; border-radius: 9px; }
  body.demo2 .stat-icon .ui-icon { width: 16px; height: 16px; flex-basis: 16px; }
  body.demo2 .stat-number { font-size: 29px; margin: 12px 0 9px; }
  body.demo2 .stat-bottom { font-size: 11px; line-height: 1.65; }
  body.demo2 .workspace { display: flex; gap: 16px; }
  body.demo2 .workspace > .panel:first-child .list { max-height: 255px; }
  body.demo2 .map { height: 390px; height: clamp(330px, 49dvh, 470px); }
  body.demo2 .map-pin { min-width: 48px; min-height: 48px; padding: 9px; font-size: 12px; }
  body.demo2 .map-controls { top: 12px; right: 12px; gap: 7px; }
  body.demo2 .map-controls button { min-width: 48px; min-height: 48px; border-radius: 12px; }
  body.demo2 .map-credit { font-size: 9px; }
  body.demo2 .panel-head { padding: 16px; }
  body.demo2 .caption { font-size: 11px; padding: 13px 16px; }
  body.demo2 .legend { font-size: 11px; gap: 9px; }
  body.demo2 .filters { gap: 8px; }
  body.demo2 .filters > :is(input, select) { width: 100%; min-width: 0; }
  body.demo2 .tabs button { min-height: 48px; font-size: 12px; }
  body.demo2 .table-scroll tr { padding: 16px; }
  body.demo2 .table-scroll td { padding: 5px 1px; font-size: 13px; }
  body.demo2 .table-scroll td strong { font-size: 14px; }
  body.demo2 .board { grid-template-columns: repeat(5, minmax(265px, 78vw)); gap: 12px; }
  body.demo2 .equipment-card { padding: 21px; }
  body.demo2 .equipment-card p { font-size: 13px; }
  body.demo2 .equipment-icon { width: 46px; height: 46px; }
  body.demo2 .hm-mobile-tabs,
  body.demo2 .corr-mobile-tabs {
    display: flex;
    gap: 4px;
    padding: 5px;
    border-radius: 13px;
    background: #e6eef1;
    margin-bottom: 14px;
  }
  body.demo2 .hm-mobile-tabs button,
  body.demo2 .corr-mobile-tabs button { flex: 1; min-width: 0; min-height: 48px; padding: 9px 7px; border: 0; border-radius: 9px; background: transparent; color: #5b7682; font-size: 12px; display: inline-flex; justify-content: center; align-items: center; gap: 7px; }
  body.demo2 .hm-mobile-tabs button.active,
  body.demo2 .hm-mobile-tabs button[aria-pressed="true"],
  body.demo2 .hm-mobile-tabs button[aria-selected="true"],
  body.demo2 .corr-mobile-tabs button.active,
  body.demo2 .corr-mobile-tabs button[aria-pressed="true"],
  body.demo2 .corr-mobile-tabs button[aria-selected="true"] { background: #fff; color: #0a7684; box-shadow: 0 2px 5px #1935430a; font-weight: 750; }
  body.demo2 #housesModule .hm-stats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 170px; max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #c7d7dd transparent; scroll-snap-type: x proximity; gap: 9px; padding-bottom: 4px; margin-bottom: 11px; }
  body.demo2 #housesModule .hm-stat { min-width: 0; padding: 12px; gap: 4px; border-radius: 13px; scroll-snap-align: start; }
  body.demo2 #housesModule .hm-stat > span:not(.hm-stat-icon) { font-size: 11px; line-height: 1.4; }
  body.demo2 #housesModule .hm-stat > strong { font-size: 27px; line-height: 1.15; }
  body.demo2 #housesModule .hm-stat > small { font-size: 10px; line-height: 1.4; }
  body.demo2 #housesModule .hm-stat-icon { display: none; }
  body.demo2 #housesModule .hm-toolbar { padding: 13px; gap: 12px; border-radius: 15px; }
  body.demo2 #housesModule .hm-filter-disclosure { background: #fff; border: 1px solid var(--ui-line); border-radius: 14px; box-shadow: var(--ui-shadow); margin-bottom: 10px; }
  body.demo2 #housesModule .hm-filter-disclosure > summary { min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 12px 15px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; color: #315d6a; }
  body.demo2 #housesModule .hm-filter-disclosure > summary::-webkit-details-marker { display: none; }
  body.demo2 #housesModule .hm-filter-disclosure > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid #6a8993; border-bottom: 1.5px solid #6a8993; transform: rotate(45deg); margin-left: auto; margin-right: 3px; margin-top: -4px; }
  body.demo2 #housesModule .hm-filter-disclosure[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
  body.demo2 #housesModule .hm-filter-disclosure > .hm-filter-summary::after { display: none; }
  body.demo2 #housesModule .hm-filter-summary > .ui-icon:last-child { margin-left: auto; width: 16px; height: 16px; flex-basis: 16px; color: #6a8993; }
  body.demo2 #housesModule .hm-filter-disclosure[open] > .hm-filter-summary > .ui-icon:last-child { transform: rotate(180deg); }
  body.demo2 #housesModule .hm-filter-disclosure > .hm-toolbar { border: 0; border-top: 1px solid var(--ui-line); border-radius: 0 0 14px 14px; box-shadow: none; margin: 0; padding: 14px 13px; }
  body.demo2 #housesModule :is(.hm-filter, .hm-complex-filter) { min-width: 0; flex-basis: calc(50% - 6px); }
  body.demo2 #housesModule .hm-filter > span,
  body.demo2 #housesModule .hm-complex-filter summary > span { font-size: 11px; }
  body.demo2 #housesModule .hm-filter select { width: 100%; padding: 10px 7px; }
  body.demo2 #housesModule .hm-search { flex-basis: calc(100% - 89px); min-width: 0; }
  body.demo2 #housesModule .hm-complex-filter summary { min-height: 73px; padding: 11px 10px; }
  body.demo2 #housesModule .hm-complex-filter summary strong { font-size: 13px; }
  body.demo2 #housesModule .hm-complex-options { left: auto; right: 0; max-width: calc(100vw - 58px); width: 285px; min-width: 220px; }
  body.demo2 #housesModule :is(.hm-complex-options label, .hm-layers label) { min-height: 48px; font-size: 13px; align-items: center; padding: 10px 7px; }
  body.demo2 #housesModule .hm-complex-options > button { min-height: 48px; }
  body.demo2 #housesModule .hm-reset { min-height: 48px; padding: 11px !important; }
  body.demo2 #housesModule .hm-viewbar { gap: 8px; margin-bottom: 10px; }
  body.demo2 #housesModule .hm-viewtabs { display: none; }
  body.demo2 #housesModule .hm-viewtabs button { min-height: 48px; font-size: 12px !important; }
  body.demo2 #housesModule .hm-map-options { width: 100%; gap: 8px; }
  body.demo2 #housesModule .hm-map-options > select { flex: 1; min-width: 0; }
  body.demo2 #housesModule .hm-layers > summary { min-height: 48px; padding: 13px 12px; font-size: 12px; }
  body.demo2 #housesModule .hm-layers > div { max-width: calc(100vw - 34px); width: 280px; }
  body.demo2 #housesModule .hm-workspace { display: flex; flex-direction: column; gap: 14px; }
  body.demo2 #housesModule .hm-workspace[data-mobile-view="map"] > .hm-list-panel { display: none; }
  body.demo2 #housesModule .hm-workspace[data-mobile-view="list"] > .hm-map-panel { display: none; }
  body.demo2 #housesModule .hm-house-list { height: auto; max-height: 570px; max-height: 65dvh; }
  body.demo2 #housesModule .hm-house-row { padding: 16px 13px; gap: 9px; }
  body.demo2 #housesModule .hm-house-icon { display: flex; width: 36px; height: 38px; margin-top: 3px; }
  body.demo2 #housesModule .hm-select-house { min-height: 48px; gap: 11px; }
  body.demo2 #housesModule .hm-row-copy strong { font-size: 14px; }
  body.demo2 #housesModule .hm-row-copy small { font-size: 12px; }
  body.demo2 #housesModule .hm-row-badges span { font-size: 11px !important; }
  body.demo2 #housesModule .hm-eye { min-width: 48px; min-height: 48px; margin-top: 0; border-radius: 11px; }
  body.demo2 #housesModule .hm-eye svg { width: 20px !important; height: 20px !important; }
  body.demo2 #housesModule .hm-visibility { font-size: 11px; padding: 5px 13px; }
  body.demo2 #housesModule .hm-visibility button { min-height: 48px; font-size: 12px !important; }
  body.demo2 #housesModule .hm-map { height: 390px !important; height: clamp(330px, 49dvh, 470px) !important; }
  body.demo2 #housesModule .hm-mobile-tabs { margin-bottom: 10px; }
  body.demo2 #housesModule .hm-map-heading { padding: 12px 14px; min-height: 46px; flex-direction: row; align-items: center; gap: 8px; }
  body.demo2 #housesModule .hm-map-heading > span { display: none; }
  body.demo2 #housesModule .hm-map .map-pin { min-width: 48px; min-height: 48px; font-size: 12px; }
  body.demo2 #housesModule .hm-map .map-pin.cluster { min-width: 48px; height: 48px; }
  body.demo2 #housesModule .hm-map-legend { font-size: 11px; padding: 13px 14px 8px; }
  body.demo2 #housesModule .hm-map-note { font-size: 11px; padding: 0 14px 15px; }
  body.demo2 #housesModule .hm-inspector { display: none; }
  body.demo2 #housesModule .hm-inspector.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 75;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 85vh;
    max-height: 85dvh;
    min-height: 0;
    border-radius: 23px 23px 0 0;
    box-shadow: 0 -14px 60px #153c4829;
    border-color: #ccdde3;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  body.demo2 #housesModule .hm-inspector-header { padding: 23px 22px 17px; flex-shrink: 0; }
  body.demo2 #housesModule .hm-inspector-header::before { content: ""; position: absolute; top: 8px; left: calc(50% - 18px); width: 36px; height: 4px; background: #bdd1d7; border-radius: 9px; }
  body.demo2 #housesModule .hm-inspector-header h2 { font-size: 21px; margin-right: 46px; }
  body.demo2 #housesModule .hm-inspector-header p { font-size: 13px; }
  body.demo2 #housesModule .hm-close { top: 18px; right: 14px; min-width: 48px; min-height: 48px; }
  body.demo2 #housesModule .hm-coordinates { font-size: 11px; }
  body.demo2 #housesModule .hm-detail-tabs { padding: 8px 12px; flex-shrink: 0; }
  body.demo2 #housesModule .hm-detail-tabs button { min-height: 48px; font-size: 12px !important; padding: 10px 7px; }
  body.demo2 #housesModule .hm-inspector-body { min-height: 0; max-height: none; overflow: auto; padding: 20px 22px 28px; overscroll-behavior: contain; }
  body.demo2 #housesModule .hm-inspector-body h3 { font-size: 14px; }
  body.demo2 #housesModule .hm-detail-metrics button { padding: 15px; }
  body.demo2 #housesModule .hm-detail-metrics span { font-size: 12px; }
  body.demo2 #housesModule .hm-master strong,
  body.demo2 #housesModule .hm-task strong,
  body.demo2 #housesModule .hm-equipment strong { font-size: 13px; }
  body.demo2 #housesModule .hm-master small,
  body.demo2 #housesModule .hm-task small,
  body.demo2 #housesModule .hm-equipment small { font-size: 12px; }
  body.demo2 #housesModule .hm-task { min-height: 48px; }
  body.demo2 #housesModule .hm-stage { font-size: 11px; padding: 5px 7px; }
  body.demo2 #housesModule .hm-add { min-height: 48px; font-size: 12px !important; }
  body.demo2 #housesModule .hm-detail-heading > button { min-height: 48px; font-size: 12px !important; }
  body.demo2 #housesModule .hm-alert { font-size: 12px; }
  body.demo2 #housesModule .hm-passport { font-size: 13px; }
  body.demo2 #housesModule .hm-passport dt { font-size: 12px; }
  body.demo2 #housesModule .hm-passport small { font-size: 11px; }
  body.demo2 #housesModule .hm-table-scroll { max-height: 65vh; max-height: 65dvh; overflow: auto; }
  body.demo2 #housesModule .hm-table-scroll td { font-size: 12px; padding: 14px !important; }
  body.demo2 #housesModule .hm-table-scroll td small { font-size: 11px; }
  body.demo2 #housesModule .hm-footnote { font-size: 11px; }
  body.demo2 .corr-banner { padding: 18px; gap: 14px; flex-direction: column; align-items: stretch; }
  body.demo2 .corr-banner span { font-size: 12px; }
  body.demo2 .corr-banner strong { font-size: 15px; }
  body.demo2 .corr-summary { display: grid; grid-template-columns: 1fr 1fr; margin: 16px 0; }
  body.demo2 .corr-summary > span { padding: 17px 15px; font-size: 11px; border-bottom: 1px solid var(--ui-line); }
  body.demo2 .corr-summary strong { font-size: 25px; }
  body.demo2 .corr-tabs { gap: 5px; margin: 16px 0; padding-bottom: 3px; }
  body.demo2 .corr-tabs button { min-height: 48px; padding: 12px; font-size: 12px; }
  body.demo2 .corr-workspace { display: block; border-radius: 16px; }
  body.demo2 .corr-inbox { min-height: 0; border: 0; }
  body.demo2 .corr-letter-list { display: block; max-height: none; }
  body.demo2 .corr-letter { width: 100%; min-width: 0; border-top: 0; border-left: 3px solid transparent; padding: 18px; border-right: 0; gap: 10px; border-radius: 0; }
  body.demo2 .corr-letter.selected { border-left-color: var(--ui-accent); }
  body.demo2 .corr-letter strong { font-size: 14px; }
  body.demo2 .corr-letter-meta { font-size: 11px; }
  body.demo2 .corr-letter-house { font-size: 13px; }
  body.demo2 .corr-letter-company { font-size: 12px; }
  body.demo2 .corr-tag { font-size: 11px; padding: 4px 8px; }
  body.demo2 .corr-inbox form { margin: 16px 14px 12px; }
  body.demo2 .corr-inbox form button { min-width: 48px; min-height: 48px; }
  body.demo2 .corr-inbox-label { padding: 14px 18px; font-size: 11px; }
  body.demo2 .corr-detail { padding: 21px 18px; }
  body.demo2 .corr-detail-head h2 { font-size: 23px; }
  body.demo2 .corr-detail-head > button { min-height: 48px; font-size: 12px; margin-top: 12px; }
  body.demo2 .corr-route { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  body.demo2 .corr-route > span { font-size: 13px; }
  body.demo2 .corr-route small { font-size: 12px; }
  body.demo2 .corr-section h3 { font-size: 15px; }
  body.demo2 .corr-original { padding: 16px; }
  body.demo2 .corr-original p { font-size: 15px; line-height: 1.85; }
  body.demo2 .corr-source-line { font-size: 12px; }
  body.demo2 .corr-muted { font-size: 13px; }
  body.demo2 .correspondence label { font-size: 13px; }
  body.demo2 .corr-actions button { font-size: 12px; min-height: 48px; }
  body.demo2 .corr-linked { padding: 13px; gap: 10px; }
  body.demo2 .corr-linked small { font-size: 12px; }
  body.demo2 .corr-linked button { min-height: 48px; font-size: 12px; }
  body.demo2 .corr-expander summary { min-height: 48px; font-size: 13px; }
  body.demo2 .corr-assistant { border: 0; padding: 23px 19px; }
  body.demo2 .corr-assistant h2 { font-size: 16px; }
  body.demo2 .corr-assistant-head > span { font-size: 11px; }
  body.demo2 .corr-ai-notice { font-size: 12px; }
  body.demo2 .corr-assistant > button { min-height: 48px; font-size: 13px; }
  body.demo2 .corr-ai-block { font-size: 13px; }
  body.demo2 .corr-ai-block h3 { font-size: 14px; }
  body.demo2 .corr-proposal button,
  body.demo2 .corr-ai-body > button { min-height: 48px; font-size: 12px; }
  body.demo2 .corr-ai-footer { font-size: 12px; }
  body.demo2 .corr-case { min-width: 0; }
  body.demo2 .corr-case h3 { font-size: 12px; }
  body.demo2 .corr-register { padding: 20px 17px; }
  body.demo2 .corr-form-grid { grid-template-columns: 1fr; }
  body.demo2 #monitoringModule .mon-heading { flex-direction: row; align-items: center; gap: 10px; margin-bottom: 14px; }
  body.demo2 #monitoringModule .mon-heading > div > .mon-eyebrow,
  body.demo2 #monitoringModule .mon-heading h2 { display: none; }
  body.demo2 #monitoringModule .mon-heading p { font-size: 12px; line-height: 1.55; margin: 0; }
  body.demo2 #monitoringModule .mon-heading .mon-demo-chip { font-size: 10px; line-height: 1.5; white-space: normal; flex: 0 0 96px; padding: 7px 9px; border-radius: 11px; }
  body.demo2 #correspondence[data-mobile-pane="inbox"] .corr-workspace > :is(.corr-detail, .corr-assistant),
  body.demo2 #correspondence[data-mobile-pane="letter"] .corr-workspace > :is(.corr-inbox, .corr-assistant),
  body.demo2 #correspondence[data-mobile-pane="assistant"] .corr-workspace > :is(.corr-inbox, .corr-detail) { display: none; }
  body.demo2 dialog {
    width: calc(100vw - 16px);
    max-width: none;
    max-height: calc(100vh - 24px - env(safe-area-inset-top, 0px));
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px));
    border-radius: 20px;
  }
  body.demo2 .dialog-head { padding: 20px; align-items: flex-start; gap: 12px; }
  body.demo2 .dialog-head h2 { font-size: 21px; }
  body.demo2 .dialog-head > button { min-width: 48px; width: 48px; height: 48px; min-height: 48px; }
  body.demo2 .dialog-main { padding: 22px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
  body.demo2 .dialog-grid { grid-template-columns: 1fr; gap: 19px; }
  body.demo2 .dialog-actions { position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom, 0px)); padding: 15px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: #fffffff5; backdrop-filter: blur(12px); z-index: 2; }
  body.demo2 .dialog-actions button { min-height: 48px; }
  body.demo2 .photo-grid { grid-template-columns: 1fr; }
  body.demo2 .field label { font-size: 13px; }
  body.demo2 #toast { bottom: calc(93px + env(safe-area-inset-bottom, 0px)); font-size: 13px; }
}

@media (max-width: 374px) {
  body.demo2 .content { padding-left: 12px; padding-right: 12px; }
  body.demo2 .mobile-nav button { font-size: 8px; }
  body.demo2 #housesModule .hm-filter,
  body.demo2 #housesModule .hm-complex-filter { flex-basis: 100%; }
  body.demo2 #housesModule .hm-detail-tabs button { font-size: 11px !important; padding-left: 5px; padding-right: 5px; }
  body.demo2 .stat-number,
  body.demo2 #housesModule .hm-stat > strong { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  body.demo2 *,
  body.demo2 *::before,
  body.demo2 *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Team multi-select: visible focus and a touch-sized target, no status mutation. */
.team-controls{display:grid;gap:10px;padding:14px 16px;border-bottom:1px solid var(--border,#dce6e5)}
.team-controls small{color:var(--muted,#526868);line-height:1.5}
.team-person{cursor:pointer;display:grid!important;grid-template-columns:24px 38px minmax(0,1fr)!important}
.team-person input{width:22px;height:22px;accent-color:#087f78;align-self:center}
.team-person:focus-within{outline:2px solid #087f78;outline-offset:-2px}
.debt-overview-map{height:260px!important;min-height:220px!important}
