.cs-packet {
  color: var(--demo-ink);
}
.cs-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.cs-title > span {
  color: #6332a8;
  font-size: 11px;
  white-space: nowrap;
}
.cs-equipment {
  color: var(--demo-muted);
  margin-top: 7px !important;
  font-size: 12px;
}
.cs-tabs {
  display: flex;
  gap: 5px;
  margin-top: 20px;
  border-bottom: 1px solid var(--demo-line);
}
.cs-tabs button {
  min-height: 44px;
  padding: 10px 15px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--demo-muted);
  font-size: 13px;
  font-weight: 600;
  background: transparent;
}
.cs-tabs button[aria-selected="true"] {
  color: #6332a8;
  border-bottom-color: #8b5cf6;
}
.cs-view {
  border: 1px solid var(--demo-line);
  border-top: 0;
  background: white;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
}
.cs-view-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--demo-line);
}
.cs-view-tools > span {
  color: var(--demo-muted);
  font-size: 11px;
}
.cs-view-tools button {
  font-size: 11px;
  border: 1px solid #c9b4e6;
  border-radius: 5px;
  padding: 5px 10px;
  background: white;
  color: #6332a8;
  min-height: 44px;
}
.cs-view-tools button[aria-pressed="true"] {
  background: #f0eaff;
}
.cs-view-tools button[hidden] {
  display: none;
}
/* Sized to the floor plan so its room labels stay legible; every tab shares the box. */
.cs-visual {
  width: 100%;
  aspect-ratio: 1036/728;
  background: #fafbfd;
  overflow: hidden;
}
.cs-visual > svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* The aerial scales down with the frame; the pin grows back to a readable label. */
@media (max-width: 560px) {
  .cs-pin {
    transform: scale(1.7);
  }
}
.cs-hide-pipes .cs-pipe-routes {
  display: none;
}
.cs-spec-sheet {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  height: 100%;
  background: white;
}
.cs-spec-object {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  background: #0c1220;
}
.cs-spec-object img {
  height: 60%;
  width: auto;
  max-width: 80%;
  object-fit: contain;
}
.cs-spec-object figcaption {
  color: #c6cbd5;
  font-size: 10px;
}
.cs-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 0 20px;
  margin: 0;
  padding: 12px 22px;
  overflow: auto;
}
.cs-specs > div {
  padding: 10px 0;
  border-bottom: 1px solid var(--demo-line);
}
.cs-specs > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.cs-specs dt {
  color: var(--demo-muted);
  font-size: 10px;
}
.cs-specs dd {
  margin: 3px 0 0;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.cs-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  height: 100%;
  padding: 10px;
  background: #eef1f4;
}
.cs-photo-grid figure {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  margin: 0;
}
.cs-photo-grid img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.cs-photo-grid figcaption {
  font-size: 11px;
  color: var(--demo-muted);
}
.cs-entry-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: cs-ping 2.2s ease-out infinite;
}
@keyframes cs-ping {
  from {
    transform: scale(0.6);
    opacity: 1;
  }
  to {
    transform: scale(2.4);
    opacity: 0;
  }
}
.cs-caption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  min-height: 48px;
  padding: 10px 12px;
  border-top: 1px solid var(--demo-line);
  font-size: 11px;
  color: var(--demo-muted);
}
.cs-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cs-key::before {
  content: "";
  width: 16px;
  height: 0;
  border-top: 2px solid #1683b5;
}
.cs-hot::before {
  border-top-color: #b5763b;
}
.cs-uncertain::before {
  border-top: 2px dashed #82909f;
}
.cs-example {
  margin-top: 10px !important;
  color: var(--demo-muted);
  font-size: 10px;
}
.cs-packet button {
  cursor: pointer;
}
.cs-packet button:hover {
  background: #f0eaff;
}
.cs-packet :focus-visible {
  outline: 2px solid #8b5cf6;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .cs-entry-pulse {
    animation: none;
  }
}
@media (max-width: 620px) {
  .cs-title {
    display: block;
  }
  .cs-title > span {
    display: block;
    margin-top: 6px;
  }
  .cs-equipment {
    font-size: 11px;
  }
  .cs-tabs {
    margin-top: 16px;
    gap: 0;
  }
  .cs-tabs button {
    flex: 1;
    padding: 9px 4px;
    font-size: 12px;
  }
  .cs-spec-sheet {
    grid-template-columns: 1fr;
  }
  .cs-spec-object {
    display: none;
  }
  .cs-specs {
    padding: 6px 14px;
    gap: 0 14px;
  }
  .cs-specs > div {
    padding: 6px 0;
  }
  .cs-specs dd {
    font-size: 12px;
  }
  .cs-caption {
    min-height: 70px;
    font-size: 10px;
    gap: 5px 9px;
  }
}

/* Keep request content readable without the removed equipment illustration. */
.cs-tabs {
  margin-top: 0;
}
.cs-spec-sheet {
  grid-template-columns: 1fr;
}
.cs-visual[data-panel="issue"],
.cs-visual[data-panel="specs"] {
  aspect-ratio: auto;
}
.cs-visuals {
  display: grid;
}
.cs-visuals > .cs-visual {
  grid-area: 1 / 1;
}
.cs-visuals > .cs-visual[inert] {
  visibility: hidden;
}
.cs-issue {
  padding: 28px;
  background: white;
}
.cs-issue-label {
  display: block;
  color: #95613d;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
}
.cs-issue h3 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 14px;
}
.cs-issue p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--demo-muted);
  margin: 0;
}
.cs-issue-request {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--demo-line);
}
.cs-issue h4 {
  font-size: 13px;
  margin: 0 0 8px;
}
@media (max-width: 620px) {
  .cs-tabs {
    margin-top: 0;
  }
  .cs-issue {
    padding: 22px 18px;
  }
  .cs-issue h3 {
    font-size: 21px;
  }
}

.cs-household {
  background: #f4effb;
  border-bottom: 1px solid #ded4ec;
}
.cs-spec-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px 0;
}
.cs-spec-heading h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}
.cs-spec-heading > span {
  color: #79648c;
  font-size: 10px;
}
.cs-household .cs-specs dd {
  color: #58358a;
}
.cs-specs .cs-est {
  color: var(--demo-muted);
  font-size: 11px;
  font-weight: 400;
}
@media (max-width: 620px) {
  .cs-spec-heading {
    padding: 13px 14px 4px;
  }
}

/* Dark card on the page's navy, matching the nearby-work map. */
.cs-packet {
  --cs-ink: #e8ddd0;
  --cs-muted: #9aa5b6;
  --cs-line: #2d3a4d;
  --cs-card: #152033;
  --cs-violet: #b89aff;
  color: var(--cs-ink);
}
.cs-tabs {
  border-bottom-color: var(--cs-line);
}
.cs-tabs button {
  color: var(--cs-muted);
}
.cs-tabs button[aria-selected="true"] {
  color: var(--cs-violet);
  border-bottom-color: #8b5cf6;
}
.cs-packet button:hover {
  background: #1f1a38;
}
.cs-view {
  border-color: var(--cs-line);
  background: var(--cs-card);
}
.cs-visual,
.cs-issue,
.cs-spec-sheet,
.cs-photo-grid {
  background: var(--cs-card);
}
.cs-visual > svg image[href*="floor-plan"] {
  filter: invert(1) hue-rotate(180deg);
  mix-blend-mode: screen;
  opacity: 0.85;
}
.cs-issue {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.cs-issue-label {
  color: #e0a063;
}
.cs-issue h3,
.cs-issue h4 {
  color: var(--cs-ink);
}
.cs-issue p {
  color: #b9c1cc;
}
.cs-issue-request {
  border-top-color: var(--cs-line);
}
.cs-issue-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 5;
}
.cs-issue-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-household {
  background: #1b1733;
  border-bottom-color: var(--cs-line);
}
.cs-spec-heading h4,
.cs-specs dd,
.cs-household .cs-specs dd {
  color: var(--cs-ink);
}
.cs-specs dt,
.cs-specs .cs-est,
.cs-spec-heading > span {
  color: var(--cs-muted);
}
.cs-specs > div {
  border-bottom-color: var(--cs-line);
}
@media (max-width: 620px) {
  .cs-issue {
    grid-template-columns: 1fr;
  }
  .cs-issue-photo {
    aspect-ratio: 16 / 9;
  }
}
