/* cards.css: the realtor-os feature-card kit (Wren pass 2, 2026-11-14; Eric: more screens, cards that
   hold up alone at full frame for the v6 reels). Owns layout only: the title row (.fc-h on market tiles,
   .tile__hr on desk and atlas tiles: glyph + label left, status chip right), the status chips (.fc-chip),
   the capsule segmented range control (.seg, 44px targets), the initials avatars on pipeline cards (.cav),
   the agenda week strip (.wk) and the focused listing's price spark (.a-lspark). Loaded after tiles.css
   and before glass.css, which owns every surface. Never add a backdrop-filter here. */

/* ---------- Title row: label and glyph left, chip right, both on one baseline ---------- */
.fc-h, .tile__hr { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; }
.fc-h { margin-bottom: 2px; }
.tile__hr { margin-bottom: 10px; }
.tile__hr .tile__h, .tile__hr .a-l { margin: 0; }
.fc-h .d-tile__l, .tile__hr .tile__h, .tile__hr .a-l { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.fc-i { width: 14px; height: 14px; flex: none; color: #f6c08f; }
.tile__hr .fc-i { width: 12px; height: 12px; }
.fc-chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 4px 9px; border-radius: 999px;
  font: 600 10.5px/1.2 var(--f-t); letter-spacing: .03em; text-transform: none; font-variant-numeric: tabular-nums;
  color: #ece4da; background: rgb(255 240 222 / .08); box-shadow: inset 0 0 0 1px rgb(255 240 222 / .14);
}
.fc-chip--live i { width: 6px; height: 6px; border-radius: 50%; background: #eba467; box-shadow: 0 0 0 2px rgb(235 164 103 / .22); }
.fc-chip--acc { color: #f8cfa6; background: rgb(235 164 103 / .14); box-shadow: inset 0 0 0 1px rgb(235 164 103 / .34); }
@media (prefers-reduced-motion: no-preference) {
  .fc-chip--live i { animation: fc-pulse 2.4s ease-out infinite; }
}
@keyframes fc-pulse { 0% { box-shadow: 0 0 0 0 rgb(235 164 103 / .55); } 80%, 100% { box-shadow: 0 0 0 6px rgb(235 164 103 / 0); } }

/* ---------- Segmented range control: one capsule, three 44px tabs, the chosen one lit from inside ---------- */
.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; margin-bottom: 8px; background: rgb(255 240 222 / .07); box-shadow: inset 0 0 0 1px rgb(255 240 222 / .12); }
.seg__b {
  min-height: 44px; min-width: 60px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 12px/1 var(--f-t); color: #ddd3c7; background: transparent; font-variant-numeric: tabular-nums;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.seg__b[aria-selected="true"] { color: #fff; background: rgb(255 240 222 / .14); box-shadow: inset 0 1px 0 rgb(255 246 234 / .22), inset 0 0 0 1px rgb(255 246 234 / .1), 0 1px 2px rgb(0 0 0 / .3); }
.seg__b:focus-visible { outline: 2px solid #eba467; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .seg__b:not([aria-selected="true"]):hover { color: #fff; background: rgb(255 240 222 / .07); } }

/* ---------- Pipeline cards: initials avatar left, name and street right ---------- */
.card { display: flex; align-items: flex-start; gap: 7px; }
.card > span { min-width: 0; flex: 1; }
.card small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cav {
  flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px;
  font: 700 8.5px/1 var(--f-t); font-style: normal; letter-spacing: .02em; color: #f4efe9;
  background: rgb(255 240 222 / .14); box-shadow: inset 0 0 0 1px rgb(255 240 222 / .12);
}
.card.is-hot .cav { background: #eba467; color: #26170c; box-shadow: none; }
/* Phones split a pipeline row into two ~95px cards: the avatar would push names onto two lines, so it
   stays a desktop detail (the feed keeps its avatars; its rows run full width). */
@media (max-width: 760px) { .pipe .cav { display: none; } }

/* ---------- Agenda week strip: seven cells, Saturday lit, a dot under the days with showings ---------- */
.wk { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin: -2px 0 6px; }
.wk li { position: relative; text-align: center; font: 600 10px/1 var(--f-t); color: #c9bfb3; padding: 4px 0 8px; border-radius: 7px; }
.wk li.has::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgb(255 240 222 / .4); }
.wk li.is-on { color: #26170c; background: #eba467; }
.wk li.is-on::after { background: #26170c; }
.agenda__list li { padding: 4px 0 4px 8px; margin-bottom: 4px; }

/* ---------- Listing in focus: the 90-day price spark and its line ---------- */
.a-lspark { --ch: 40px; margin: 10px -2px 0; }
.a-lsub { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 1099px) {
  .a-lsub { display: none; }
  .a-lspark { --ch: 28px; margin-top: 6px; }
}
