/* ==========================================================================
   Property Hub — Renault-flavored real estate command center
   Renault tokens: square corners (2px max on buttons, 0px on cards),
   var(--r-primary) reserved for primary CTAs, b/w canvas, Inter Tight type.
   ========================================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #fafafa; font-family: var(--r-font); color: var(--r-ink); }

.ph-shell {
  display: grid;
  grid-template-columns: 88px 1fr;
  min-height: 100vh;
}
.ph-shell.has-ai { grid-template-columns: 88px 1fr 380px; }

/* ---------- Sidebar (stacked icon + label) ---------- */
.ph-sidebar {
  background: #fff;
  border-right: 1px solid var(--r-hairline);
  display: flex; flex-direction: column;
  padding: 16px 12px 16px;
  position: sticky; top: 0; height: 100vh;
  z-index: 20;
}
.ph-sidebar-logo {
  width: 44px; height: 44px;
  background: #000; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
  border-radius: 4px;
}
.ph-sidebar-nav { display: flex; flex-direction: column; gap: 14px; flex: 1; align-items: center; }
.ph-sidebar-foot { display: flex; flex-direction: column; align-items: center; padding-top: 12px; }
.ph-sidebar-item {
  width: 64px; padding: 8px 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  background: transparent; color: #666; border: none; cursor: pointer;
  border-radius: 6px;
  font-family: inherit;
}
.ph-sidebar-item:hover { background: #f4f4f4; color: #000; }
.ph-sidebar-item.is-active { background: #ececec; color: #000; }
.ph-sidebar-icon { display: inline-flex; align-items: center; justify-content: center; }
.ph-sidebar-label {
  display: block;
  font-size: 11px; font-weight: 500; line-height: 1;
  letter-spacing: 0.1px;
  color: inherit;
}
.ph-sidebar-item.is-active .ph-sidebar-label { font-weight: 700; }
.ph-sidebar-avatar {
  width: 40px; height: 40px;
  background: #fff; border: 1px solid #d6d6d6;
  border-radius: 4px;
  font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.3px;
  color: #000; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.ph-sidebar-avatar:hover { border-color: #000; }

/* ---------- New flyout ---------- */
.ph-flyout-scrim {
  display: none;
}
@keyframes ph-flyout-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.ph-flyout {
  position: fixed;
  top: 0; left: 88px;
  background: #fff;
  border-right: 1px solid var(--r-hairline);
  width: 420px;
  height: 100vh;
  overflow-y: auto;
  padding: 28px 28px 32px;
  display: flex; flex-direction: column; gap: 28px;
  box-shadow: 4px 0 16px rgba(0,0,0,0.06);
  animation: ph-flyout-in 180ms ease-out;
  z-index: 31;
}
/* invisible bridge so the cursor can travel from the sidebar item into the flyout
   without crossing a dead zone. covers the seam at the left edge. */
.ph-flyout-bridge {
  position: absolute;
  top: 0; bottom: 0;
  left: -24px; width: 24px;
  pointer-events: auto;
}
/* blur everything that isn't the sidebar or flyout while flyout is open */
body.ph-flyout-active .ph-main,
body.ph-flyout-active .home-main,
body.ph-flyout-active .ph-ai,
body.ph-flyout-active .ph-ai-fab {
  filter: blur(4px);
  transition: filter 120ms ease-out;
  pointer-events: none;
  user-select: none;
}
body.ph-flyout-active::after {
  content: "";
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 88px;
  background: rgba(0,0,0,0.18);
  pointer-events: none;
  z-index: 25;
  animation: ph-flyout-fade 120ms ease-out;
}
@keyframes ph-flyout-in {
  from { transform: translateX(-12px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.ph-flyout-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.ph-flyout-section { display: flex; flex-direction: column; gap: 12px; }
.ph-flyout-overline {
  font-size: 13px; font-weight: 700; letter-spacing: 0.2px;
  text-transform: none; color: #000;
}
.ph-flyout-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.ph-flyout-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  padding: 18px 10px;
  background: #fff;
  border: 1px solid var(--r-hairline);
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  min-height: 104px;
  transition: border-color 0.12s, background 0.12s;
}
.ph-flyout-tile:hover {
  border-color: #000;
  background: #fafafa;
}
.ph-flyout-tile-icon { color: #1a1a1a; display: inline-flex; }
.ph-flyout-tile-label {
  font-size: 13px; font-weight: 600; line-height: 1.25;
  color: #1a1a1a;
}
.ph-tools-flyout {
  width: min(900px, calc(100vw - 88px));
  padding-right: 32px;
}
.ph-tools-flyout-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ph-tools-flyout-tile {
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  min-height: 132px;
  padding: 16px;
}
.ph-tools-flyout-desc {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: #666;
}
.ph-flyout-recent { display: flex; flex-direction: column; gap: 8px; }
.ph-flyout-recent-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--r-hairline);
  border-radius: 4px;
  font-family: inherit; font-size: 14px; color: #1a1a1a; font-weight: 500;
  cursor: pointer;
}
.ph-flyout-recent-item:hover { border-color: #000; background: #fafafa; }
.ph-flyout-recent-item svg { color: #888; }

/* ---------- Main column ---------- */
.ph-main {
  display: flex; flex-direction: column;
  background: #fafafa;
  padding: 24px 32px 40px;
  gap: 22px;
  min-width: 0;
}
.ph-anchor-section {
  display: flex;
  flex-direction: column;
  gap: 22px;
  scroll-margin-top: 122px;
}

/* ---------- Header ---------- */
.ph-header { display: flex; flex-direction: column; gap: 12px; }
.ph-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: #000; text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: 0.13px;
  width: fit-content;
}
.ph-back:hover { color: #666; }
.ph-header-row {
  display: grid; grid-template-columns: 1fr auto;
  align-items: flex-start; gap: 24px;
}
.ph-address { margin: 4px 0 6px; line-height: 1.0; }
.ph-locality { color: #666; margin: 0 0 12px; }
.ph-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: #333; flex-wrap: wrap;
}
.ph-meta-sep { width: 1px; height: 12px; background: #c4c4c4; }
.ph-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.ph-dot { width: 8px; height: 8px; border-radius: 9999px; background: #8dc572; }
.ph-header-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.ph-header-right-top {
  display: flex; align-items: center; gap: 20px;
}
.ph-refresh { text-align: right; }
.ph-header-health {
  display: flex; align-items: center; gap: 12px;
  padding-left: 20px; border-left: 1px solid var(--r-hairline);
}
.ph-header-health-meta { display: flex; flex-direction: column; gap: 2px; }
.ph-header-health-num { font-size: 22px; font-weight: 700; line-height: 1; display: inline-flex; align-items: center; gap: 8px; }
.ph-header-health-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  background: var(--r-primary); color: var(--r-on-primary); padding: 3px 7px; border-radius: 2px;
}
.ph-header-health-lbl { font-size: 11px; color: #666; text-transform: uppercase; letter-spacing: 0.4px; }
.ph-header-cta { align-self: flex-end; }

.ph-sticky-property {
  position: fixed;
  top: 0;
  left: 120px;
  right: 32px;
  z-index: 26;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--r-hairline);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.ph-shell.has-ai .ph-sticky-property {
  right: 412px;
}
.ph-sticky-property.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ph-sticky-property-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 58px;
  padding: 8px 10px 8px 16px;
  border-bottom: 1px solid var(--r-hairline);
}
.ph-sticky-property-left,
.ph-sticky-property-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.ph-sticky-property-left {
  flex: 1;
}
.ph-sticky-property-right {
  flex-shrink: 0;
}
.ph-sticky-property-address {
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: #000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ph-sticky-property-owner {
  color: #333;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.ph-sticky-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  padding: 8px;
  overflow-x: auto;
}
.ph-sticky-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid transparent;
  color: #666;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.ph-sticky-nav a::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 9999px;
  background: #cfcfcf;
}
.ph-sticky-nav a.is-active {
  background: var(--r-primary);
  border-color: #000;
  color: var(--r-on-primary);
}
.ph-sticky-nav a.is-active::before {
  background: var(--r-on-primary);
}

/* Health ring */
.ph-ring { position: relative; }
.ph-ring-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; color: #000; line-height: 1;
}
.ph-ring-lbl {
  position: absolute; left: 0; right: 0; bottom: 8px;
  text-align: center; font-size: 9px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: #666;
}

/* ---------- Hero photo ---------- */
.ph-hero-photo {
  width: 100%; aspect-ratio: 16 / 5; background: #000;
  overflow: hidden; position: relative;
}
.ph-hero-photo svg, .ph-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Cards ---------- */
.ph-card {
  background: #fff;
  border: 1px solid var(--r-hairline);
  border-left: 4px solid #d6d6d6;
  padding: 24px;
}
.ph-card + .ph-card { margin-top: 0; }
.ph-card-head {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px;
}
.ph-card-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: #000; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 2px;
}
.ph-card-headline { flex: 1; }
.ph-card-title { margin: 0; }
.ph-card-sub { margin: 4px 0 0; color: #666; }
.ph-card-trail { display: inline-flex; align-items: center; gap: 8px; }

.ph-link {
  color: #000; text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: 0.13px;
  border-bottom: 1px solid #000; padding-bottom: 1px;
}
.ph-link:hover { color: #666; border-bottom-color: #666; }

.ph-tag {
  font-size: 11px; font-weight: 700; padding: 3px 8px; letter-spacing: 0.5px;
  border-radius: 2px; text-transform: uppercase;
}
.ph-tag-up { background: #e8f3df; color: #4a7a30; }
.ph-tag-down { background: #f8e0e0; color: #8c3838; }
.ph-tag-neutral { background: #f2f2f2; color: #333; }
.ph-tag-warn { background: var(--r-primary); color: var(--r-on-primary); }

/* ---------- Seller Update Center ---------- */
.ph-suc-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px;
  padding: 8px 0 16px;
}
.ph-suc-preview { padding-right: 24px; border-right: 1px solid var(--r-hairline); }
.ph-suc-quote {
  font-size: 13px; line-height: 1.5; color: #333;
  background: #f7f7f7; padding: 14px 16px;
  margin: 8px 0 12px;
}
.ph-suc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-content: start; }
.ph-suc-stat { display: flex; flex-direction: column; gap: 2px; }
.ph-suc-stat-icon { color: #666; }
.ph-suc-num { font-size: 22px; font-weight: 700; line-height: 1; margin-top: 4px; }
.ph-suc-num-soft { font-size: 13px; color: #666; font-weight: 400; }
.ph-suc-lbl { font-size: 11px; color: #666; }
.ph-suc-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid var(--r-hairline);
}

/* ---------- Activity ---------- */
.ph-activity-stats {
  display: grid; grid-template-columns: repeat(4, 1fr) auto;
  gap: 24px; padding: 8px 0 24px;
  border-bottom: 1px solid var(--r-hairline);
  align-items: center;
}
.ph-stat { display: flex; flex-direction: column; gap: 4px; }
.ph-stat-row { display: flex; align-items: baseline; gap: 8px; }
.ph-stat-num { font-size: 26px; font-weight: 700; line-height: 1; }
.ph-stat-lbl { font-size: 12px; color: #666; }
.ph-stat-delta { font-size: 11px; font-weight: 700; }
.ph-stat-delta-up { color: #4a7a30; }
.ph-stat-delta-down { color: #8c3838; }
.ph-activity-health {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding-left: 16px; border-left: 1px solid var(--r-hairline);
}

.ph-channel-section { padding-top: 20px; }
.ph-channel-head-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ph-channel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ph-channel { border: 1px solid var(--r-hairline); padding: 14px; }
.ph-channel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ph-logo-sq {
  width: 28px; height: 28px; border-radius: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.ph-channel-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.ph-channel-num { font-size: 16px; font-weight: 700; line-height: 1; }
.ph-channel-lbl { font-size: 10px; color: #666; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.4px; }
.ph-channel-foot { display: flex; justify-content: space-between; align-items: center; }

/* ---------- Toolbox ---------- */
.ph-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 8px 0; }
.ph-tool-group { display: flex; flex-direction: column; gap: 10px; }
.ph-tool-list { display: flex; flex-direction: column; gap: 4px; }
.ph-tool {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 10px; background: transparent; border: none; cursor: pointer;
  text-align: left; width: 100%;
  font-family: inherit; color: #000;
}
.ph-tool:hover { background: #f7f7f7; }
.ph-tool-icon { color: #000; display: inline-flex; }
.ph-tool-label { font-size: 13px; font-weight: 600; }
.ph-tools-foot { text-align: center; padding-top: 16px; border-top: 1px solid var(--r-hairline); margin-top: 8px; }

/* ---------- Listing Assets ---------- */
.ph-asset-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; padding-top: 8px; }
.ph-asset { background: #fff; cursor: pointer; display: flex; flex-direction: column; }
.ph-asset:hover .ph-asset-meta .r-heading-sm { color: #666; }
.ph-asset-media {
  position: relative; aspect-ratio: 4 / 3;
  background: #f7f7f7; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #c4c4c4;
}
.ph-asset-media svg { display: block; }
.ph-asset-meta { padding-top: 10px; }
.ph-asset-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px solid #d6d6d6;
  border-radius: 2px;
  background: #fff;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.1px;
  text-decoration: none;
  cursor: pointer;
  align-self: stretch;
  text-align: center;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.ph-asset-action svg { color: #888; flex-shrink: 0; transition: color 0.12s; }
.ph-asset-action:hover {
  border-color: #000; background: #000; color: #fff;
}
.ph-asset-action:hover svg { color: var(--r-primary); }
.ph-asset-confirm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: -2px 0 14px;
  padding: 8px 11px;
  background: #f4f8f1;
  border: 1px solid #d8e6cf;
  color: #355f23;
  font-size: 12.5px;
  font-weight: 700;
}
.ph-asset-confirm span {
  color: #5e8a3a;
  font-weight: 800;
}
.ph-asset-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--r-primary); color: var(--r-on-primary);
  font-size: 11px; font-weight: 700; letter-spacing: 0.144px;
  padding: 4px 10px; border-radius: 46px;
}
.ph-asset-upload {
  border: 1px dashed #c4c4c4;
}
.ph-asset-upload:hover { border-color: #000; color: #000; }

/* ---------- AI Co-Pilot ---------- */
.ph-ai {
  background: #fff;
  border-left: 1px solid var(--r-hairline);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; max-height: 100vh;
}
.ph-ai-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--r-hairline);
}
.ph-ai-head-left { display: flex; align-items: center; gap: 10px; }
.ph-ai-mark {
  width: 32px; height: 32px; background: #000; color: var(--r-on-dark);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 2px;
  overflow: hidden;
}
.ph-ai-mark img { width: 80%; height: 80%; object-fit: contain; display: block; }
.ph-icon-only {
  width: 28px; height: 28px; background: transparent; border: none; cursor: pointer; color: #666;
  display: inline-flex; align-items: center; justify-content: center;
}
.ph-icon-only:hover { color: #000; background: #f7f7f7; }

.ph-ai-body {
  flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px;
}
.ph-ai-intro {
  background: #f7f7f7; padding: 14px 16px;
  font-size: 14px; line-height: 1.5;
}
.ph-ai-prompts { display: flex; flex-direction: column; gap: 8px; }
.ph-ai-prompt {
  display: inline-flex; align-items: center; gap: 10px;
  text-align: left; padding: 10px 12px;
  background: #fff; border: 1px solid var(--r-hairline); cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; color: #000;
}
.ph-ai-prompt:hover { border-color: #000; }
.ph-ai-prompt-icon { color: #666; }

.ph-ai-thread { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.ph-ai-bubble { display: flex; gap: 8px; align-items: flex-start; }
.ph-ai-bubble-user { justify-content: flex-end; }
.ph-ai-avatar {
  width: 28px; height: 28px; background: #000; color: var(--r-on-dark); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 2px;
  overflow: hidden;
}
.ph-ai-avatar img { width: 80%; height: 80%; object-fit: contain; display: block; }
.ph-ai-msg {
  max-width: 80%; background: #f7f7f7;
  padding: 12px 14px; font-size: 13px; line-height: 1.5;
}
.ph-ai-msg-user { background: #000; color: #fff; }
.ph-ai-time { font-size: 10px; color: #8a8a8a; margin-top: 6px; }
.ph-ai-msg-user .ph-ai-time { color: rgba(255,255,255,0.6); }
.ph-ai-list { margin: 8px 0 0; padding-left: 18px; line-height: 1.6; }

.ph-ai-foot {
  border-top: 1px solid var(--r-hairline);
  padding: 12px 20px 16px;
}
.ph-ai-input-wrap {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid #000; padding: 4px 6px;
}
.ph-ai-input {
  flex: 1; border: none; outline: none; padding: 8px;
  font-family: inherit; font-size: 14px; background: transparent;
}
.ph-ai-send {
  width: 32px; height: 32px; background: var(--r-primary); color: var(--r-on-primary); border: none; cursor: pointer;
  border-radius: 2px; display: inline-flex; align-items: center; justify-content: center;
}
.ph-ai-send:hover { background: var(--r-primary-deep); }

/* ---------- AI Coach (top diagnosis card) ---------- */
.ph-coach {
  background: linear-gradient(180deg, var(--r-surface-soft) 0%, var(--r-canvas) 100%);
  border: 1px solid var(--r-primary);
  border-left: 4px solid var(--r-primary);
  padding: 28px 32px;
}
.ph-coach-head {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 16px; align-items: center; margin-bottom: 20px;
}
.ph-coach-mark {
  width: 40px; height: 40px; background: #000; color: var(--r-on-dark);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 2px;
}
.ph-coach-title { margin: 4px 0 0; line-height: 1.0; }
.ph-coach-meta { display: inline-flex; align-items: center; gap: 8px; }
.ph-coach-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding-bottom: 20px; border-bottom: 1px solid rgba(0,0,0,0.1);
}
.ph-coach-col-lbl { color: #666; margin-bottom: 8px; }
.ph-coach-text { margin: 0; font-size: 15px; line-height: 1.5; color: #1a1a1a; }
.ph-coach-actions {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 20px;
}
.ph-coach-action {
  background: #fff; border: 1px solid #e6e6e6;
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.ph-coach-action-lbl { color: #666; }
.ph-coach-action-title { font-size: 17px; font-weight: 700; line-height: 1.2; }
.ph-coach-action .r-btn { align-self: flex-start; }

/* ---------- Practice Call promo ---------- */
.ph-practice {
  background: #000; color: #fff;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px;
  padding: 32px;
  position: relative; overflow: hidden;
}
.ph-practice::before {
  content: ""; position: absolute; top: 0; right: 0;
  width: 4px; height: 100%; background: var(--r-primary);
}
.ph-practice-overline { color: var(--r-primary-on-dark); margin-bottom: 12px; }
.ph-practice-title { margin: 0 0 14px; line-height: 1.1; max-width: 24ch; }
.ph-practice-body { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,0.78); max-width: 56ch; }
.ph-practice-bullets { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.ph-practice-bullet { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,0.85); }
.ph-practice-dot { width: 6px; height: 6px; background: var(--r-primary); border-radius: 0; margin-top: 7px; flex-shrink: 0; }
.ph-practice-actions { display: flex; gap: 10px; }

.ph-practice-mock {
  background: #1a1a1a; border: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-direction: column; height: 100%; min-height: 280px;
}
.ph-practice-mock-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ph-practice-pulse { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--r-primary-on-dark); }
.ph-practice-pulse-dot {
  width: 8px; height: 8px; background: var(--r-primary); border-radius: 9999px;
  animation: ph-pulse 1.4s ease-in-out infinite;
}
@keyframes ph-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.ph-practice-mock-meta { font-size: 12px; color: rgba(255,255,255,0.6); }
.ph-practice-mock-body { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ph-practice-line {
  font-size: 13px; line-height: 1.5; padding: 10px 12px;
  background: rgba(255,255,255,0.05); border-left: 2px solid rgba(255,255,255,0.2);
  font-style: italic; color: rgba(255,255,255,0.85);
}
.ph-practice-line-agent { border-left-color: var(--r-primary); background: rgba(var(--r-primary-rgb), 0.08); }
.ph-practice-tag {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  margin-right: 8px; font-style: normal;
}
.ph-practice-tag-agent { color: var(--r-primary-on-dark); }
.ph-practice-waveform {
  display: flex; align-items: center; gap: 2px; height: 28px; margin-top: auto;
  padding-top: 8px;
}
.ph-practice-waveform span {
  flex: 1; background: var(--r-primary); min-height: 4px;
}

/* Outline-light button for inside black surfaces */
.r-btn-ghost-light {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4);
  padding: 11px 17px;
}
.r-btn-ghost-light:hover { background: #fff; color: #000; border-color: #fff; }
.r-btn-dark { background: #000; color: #fff; }
.r-btn-dark:hover { background: #1a1a1a; }

/* ---------- Seller Update — editable preview ---------- */
.ph-suc-preview-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
}
.ph-suc-mini-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  background: #000; color: var(--r-on-dark); padding: 3px 6px;
}
.ph-suc-textarea {
  width: 100%; min-height: 110px; resize: vertical;
  background: #fafafa; border: 1px solid #e6e6e6;
  font-family: inherit; font-size: 13.5px; line-height: 1.55; color: #1a1a1a;
  padding: 12px 14px; outline: none;
  box-sizing: border-box;
}
.ph-suc-textarea:focus { border-color: #000; background: #fff; }
.ph-suc-preview-foot { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.ph-suc-copy {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--r-primary); color: var(--r-on-primary); border: none;
  padding: 8px 12px; font-family: inherit; font-size: 12.5px; font-weight: 700;
  cursor: pointer; border-radius: 2px;
}
.ph-suc-copy:hover { background: var(--r-primary-deep); }
.ph-suc-copy.is-copied { background: #5e8a3a; color: #fff; }
.ph-suc-regen {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: #666; border: none;
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer; padding: 8px 6px;
}
.ph-suc-regen:hover { color: #000; }

/* ---------- Channel health bars ---------- */
.ph-channel-status {
  width: 8px; height: 8px; border-radius: 9999px; margin-left: auto;
}
.ph-channel-vs { margin-top: 10px; }
.ph-hbar { width: 100%; }
.ph-hbar-track { width: 100%; height: 6px; background: #f0f0f0; }
.ph-hbar-fill { height: 100%; transition: width 0.4s ease; }
.ph-channel-vs-label { font-size: 11px; color: #666; margin-top: 6px; }
.ph-channel-read {
  margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: #444;
  padding-top: 10px; border-top: 1px solid #f0f0f0;
}
/* Override old-style sparkline footer not used anymore */
.ph-channel-foot { display: none; }

/* ---------- Asset tile typography polish ---------- */
.ph-asset-label { font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.ph-asset-count { font-size: 12px; color: #666; margin-top: 2px; }
.ph-asset-upload {
  border: 1px dashed #c4c4c4;
  background: #fff;
  padding: 0; cursor: pointer; font-family: inherit;
  display: flex; align-items: stretch;
  text-align: left;
}
.ph-asset-upload-inner {
  width: 100%; aspect-ratio: 4 / 3.5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 16px; color: #666;
}
.ph-asset-upload-inner .ph-asset-label,
.ph-asset-upload-inner .ph-asset-count { text-align: center; }
.ph-asset-upload:hover { border-color: #000; }
.ph-asset-upload:hover .ph-asset-upload-inner { color: #000; }
.ph-asset-upload .ph-asset-media { display: none; }

/* Activity time-on-market plain label */
.ph-activity-tom { font-size: 13px; color: #666; font-weight: 600; }
.ph-secondary-sm {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #000;
  color: #000;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
}
.ph-secondary-sm:hover {
  background: #000;
  color: #fff;
}

/* Listing health ring inside activity card — restore previous size/positioning */
.ph-activity-health .ph-ring { width: 72px; height: 72px; }
.ph-activity-health .ph-ring-num { font-size: 22px; margin-top: -6px; }
.ph-activity-health .ph-ring-lbl { bottom: 12px; }

/* ---------- Seller Update Center — two-stream split ---------- */
.ph-suc-split {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0;
  border-top: 1px solid var(--r-hairline);
  margin-top: 4px;
}
.ph-suc-stream {
  padding: 24px 28px 4px;
  display: flex; flex-direction: column; gap: 16px;
}
.ph-suc-stream + .ph-suc-stream { border-left: 1px solid var(--r-hairline); }
.ph-suc-stream-report {
  background: linear-gradient(180deg, #fff 0%, #fbfbfb 100%);
}
.ph-suc-stream-text {
  background: #fafafa;
  padding-left: 24px;
  padding-right: 24px;
}
.ph-suc-stream-overline { color: #666; }
.ph-suc-stream-overline-row { display: flex; align-items: center; gap: 10px; }
.ph-suc-stream-title { font-size: 17px; font-weight: 700; line-height: 1.25; margin: 4px 0 0; }
.ph-suc-stream-report .ph-suc-stream-title { font-size: 20px; letter-spacing: -0.1px; }
.ph-suc-stream-body { margin: 0; font-size: 13px; line-height: 1.5; color: #555; }
.ph-suc-stream-text .ph-suc-stream-title { font-size: 16px; color: #1a1a1a; }
.ph-suc-stream-text .ph-suc-stream-body { color: #666; }
.ph-suc-stream-text .ph-suc-mini-tag {
  background: transparent;
  color: #777;
  border: 1px solid #d6d6d6;
}
.ph-suc-stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 16px; padding: 4px 0; }
.ph-suc-stream-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 20px; margin-top: auto; }

/* ---------- Channel scroll with peek ---------- */
.ph-channel-scroll {
  overflow-x: auto;
  margin: 0 -24px;
  padding: 0 24px 4px;
  scrollbar-width: thin;
}
.ph-channel-scroll::-webkit-scrollbar { height: 6px; }
.ph-channel-scroll::-webkit-scrollbar-thumb { background: #d4d4d4; }
.ph-channel-scroll::-webkit-scrollbar-track { background: transparent; }
.ph-channel-grid {
  display: grid;
  /* fixed-width tiles so the 4th peeks past the card edge */
  grid-template-columns: repeat(6, 260px);
  gap: 16px;
}
.ph-channel { width: 260px; }
.ph-channel-add {
  width: 260px;
  border: 1px dashed #c4c4c4; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 24px 16px;
  font-family: inherit; cursor: pointer; color: #666;
  min-height: 100%;
}
.ph-channel-add:hover { border-color: #000; color: #000; }
.ph-channel-add-plus {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 300; line-height: 1;
  border: 1px solid currentColor;
}
.ph-channel-add-label { font-size: 13px; font-weight: 700; }
.ph-channel-add-hint { font-size: 11px; color: #999; text-align: center; }
/* Floating AI toggle when collapsed */
.ph-ai-fab {
  position: fixed; right: 24px; bottom: 24px;
  width: 56px; height: 56px; background: #000; color: #fff;
  border: 1px solid #000; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.16);
  overflow: hidden;
  padding: 8px;
}
.ph-ai-fab img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ph-ai-fab:hover { background: #1a1a1a; }

/* ---------- Seller Update — primary action treatment ---------- */
.ph-suc-priority-tag {
  display: inline-flex; align-items: center;
  height: 20px;
  padding: 0 8px;
  border: 1px solid #000;
  color: #000;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}
.ph-suc-report-panel {
  margin-top: auto;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--r-hairline);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ph-suc-actions-primary {
  align-items: center;
  padding: 0;
  margin-top: 0;
}
.ph-suc-actions-primary .r-btn-dark {
  background: #000; color: #fff; padding: 14px 22px; font-size: 15px;
}
.ph-suc-actions-primary .r-btn-dark:hover { background: #1a1a1a; }
.ph-suc-actions-primary .r-btn-dark svg { color: var(--r-on-dark); }
.ph-suc-actions-primary .r-btn-outline-dark.r-btn-lg {
  padding: 14px 22px;
  font-size: 15px;
}
.r-btn-outline-dark.r-btn-sm {
  padding: 8px 12px; font-size: 12px; font-weight: 600;
}
.ph-suc-report-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.ph-suc-report-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
  border-left: 1px solid var(--r-hairline);
}
.ph-suc-report-metric:first-child { border-left: 0; padding-left: 0; }
.ph-suc-report-value {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: #000;
}
.ph-suc-report-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: #777;
}
.ph-suc-stream-text .ph-suc-textarea {
  min-height: 118px;
  background: #fff;
}

/* ---------- Listing Timeline ---------- */
.ph-tl-scroll {
  position: relative;
  margin: 0 -28px; padding: 8px 0 26px;
  overflow-x: auto; overflow-y: hidden;
}
.ph-tl-scroll::-webkit-scrollbar { height: 6px; }
.ph-tl-scroll::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.ph-tl-empty {
  padding: 22px;
  background: #fafafa;
  border: 1px dashed #cfcfcf;
  color: #666;
  font-size: 13px;
  line-height: 1.5;
}
.ph-tl-row {
  display: flex; gap: 0; padding: 24px 28px 10px;
  position: relative;
  min-width: max-content;
}
.ph-tl-row::before {
  content: "";
  position: absolute;
  left: 44px;
  right: 44px;
  top: 158px;
  height: 1px; background: #e6e6e6;
  z-index: 0;
}
.ph-tl-rail {
  display: none;
}
.ph-tl-item {
  position: relative; z-index: 1;
  width: 244px; flex-shrink: 0;
  padding-right: 28px;
  display: flex; flex-direction: column; gap: 8px;
}
.ph-tl-item:last-child { padding-right: 0; }
.ph-tl-media-slot {
  height: 94px;
  display: flex;
  align-items: flex-start;
}
.ph-tl-date {
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; color: #999;
  height: 16px;
}
.ph-tl-marker {
  position: relative; height: 32px;
  display: flex; align-items: center;
}
.ph-tl-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff; border: 1px solid #d6d6d6;
  display: inline-flex; align-items: center; justify-content: center;
  color: #555;
  position: relative; z-index: 2;
}
.ph-tl-item.is-current .ph-tl-dot {
  background: var(--r-primary); border-color: #000; color: var(--r-on-primary);
  box-shadow: 0 0 0 4px rgba(var(--r-primary-rgb), 0.25);
}
.ph-tl-manual .ph-tl-dot {
  background: #000;
  border-color: #000;
  color: #fff;
}
.ph-tl-system .ph-tl-dot {
  box-shadow: inset 0 0 0 3px #f5f5f5;
}
.ph-tl-item.is-current .ph-tl-date { color: #000; }
.ph-tl-card {
  padding-top: 4px;
}
.ph-tl-thumb {
  width: 50%;
  aspect-ratio: 4 / 3;
  background: #f7f7f7;
  border: 1px solid #000;
  overflow: hidden;
}
.ph-tl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ph-tl-thumb svg {
  display: block;
}
.ph-tl-source {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 3px 7px;
  background: #f5f5f5;
  border: 1px solid var(--r-hairline);
  color: #666;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}
.ph-tl-manual .ph-tl-source {
  background: #fff;
  border-color: #000;
  color: #000;
}
.ph-tl-title {
  font-size: 13px; font-weight: 700; line-height: 1.3;
  color: #000;
}
.ph-tl-note {
  font-size: 12px; line-height: 1.4; color: #666;
  margin-top: 2px;
}
.ph-tl-item.is-current .ph-tl-title { color: #000; }
.ph-tl-action {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 9px;
  padding: 5px 8px;
  background: #fff;
  border: 1px solid var(--r-hairline);
  color: #000;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
}
.ph-tl-action:hover {
  border-color: #000;
}
.ph-tl-manual-actions {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}
.ph-tl-manual-actions button {
  padding: 0;
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ph-tl-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.34);
}
.ph-tl-modal {
  width: min(560px, 100%);
  background: #fff;
  border: 1px solid #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  padding: 22px;
}
.ph-tl-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}
.ph-tl-modal-head h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}
.ph-tl-modal-head p {
  margin: 6px 0 0;
  color: #666;
  font-size: 13px;
  line-height: 1.4;
}
.ph-tl-modal-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--r-hairline);
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.ph-tl-type-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}
.ph-tl-type-grid button {
  min-height: 54px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--r-hairline);
  color: #333;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.ph-tl-type-grid button.is-selected {
  background: var(--r-primary);
  border-color: #000;
  color: var(--r-on-primary);
}
.ph-tl-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.ph-tl-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ph-tl-form label span {
  color: #333;
  font-size: 12px;
  font-weight: 700;
}
.ph-tl-form label em {
  color: #888;
  font-style: normal;
  font-weight: 600;
}
.ph-tl-form input,
.ph-tl-form select,
.ph-tl-form textarea {
  width: 100%;
  border: 1px solid var(--r-hairline);
  background: #fff;
  padding: 10px 11px;
  color: #000;
  font-family: inherit;
  font-size: 13px;
}
.ph-tl-form textarea {
  min-height: 112px;
  resize: vertical;
}
.ph-tl-notes-field {
  grid-column: 1 / -1;
}
.ph-tl-modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}
.ph-tl-cancel,
.ph-tl-submit {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #000;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
}
.ph-tl-cancel {
  background: #fff;
  color: #000;
}
.ph-tl-submit {
  background: #000;
  color: #fff;
}
.ph-tl-add-row {
  display: flex;
  justify-content: flex-start;
  padding-top: 2px;
}
.ph-tl-add-wrap {
  position: relative;
  display: inline-flex;
}
.ph-tl-add-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 12px;
}
.ph-tl-add-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  background: var(--r-primary);
  border: 1px solid #000;
  color: var(--r-on-primary);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
}
.ph-tl-add-main:hover {
  background: var(--r-primary-deep);
}
.ph-tl-add-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  min-width: 200px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--r-hairline);
  box-shadow: 0 18px 42px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transform-origin: bottom left;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 5;
}
.ph-tl-add-wrap:hover .ph-tl-add-menu,
.ph-tl-add-wrap:focus-within .ph-tl-add-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.ph-tl-add-menu button {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  background: #fff;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  color: #000;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}
.ph-tl-add-menu button:last-child {
  border-bottom: none;
}
.ph-tl-add-menu button:hover {
  background: #f7f7f7;
}

/* ---------- Header rework — meta row, utility row, status dropdown ---------- */
.ph-header-meta-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  margin-top: 4px;
}
.ph-header-meta-left {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: #333; flex-wrap: wrap;
}
.ph-header-owner {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: #333;
}
.ph-header-owner svg { color: #666; flex-shrink: 0; }

.ph-header-utility {
  display: flex; align-items: center; gap: 24px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--r-hairline);
}
.ph-refresh {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: #666;
}
.ph-refresh svg { color: #999; flex-shrink: 0; }
.ph-refresh strong { color: #000; font-weight: 700; }
.ph-header-utility .ph-header-health {
  margin-left: auto; padding-left: 24px;
  border-left: 1px solid var(--r-hairline);
  border-right: 1px solid var(--r-hairline);
  padding-right: 24px;
}
.ph-header-utility .ph-header-health-tag {
  display: inline-flex; align-items: center;
  width: fit-content;
}

/* Status dropdown */
.ph-status-select { position: relative; display: inline-flex; }
.ph-status-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #d6d6d6;
  padding: 6px 10px 6px 10px;
  font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; border-radius: 2px;
  color: #000;
}
.ph-status-trigger:hover { border-color: #000; }
.ph-status-trigger svg { color: #666; transition: transform 0.15s; }
.ph-status-select.is-open .ph-status-trigger svg { transform: rotate(180deg); }
.ph-status-label { font-weight: 700; }
.ph-status-menu {
  position: absolute; top: calc(100% + 4px); left: 0;
  z-index: 10;
  background: #fff; border: 1px solid #000;
  min-width: 180px;
  display: flex; flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.ph-status-opt {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: none; border-bottom: 1px solid #f0f0f0;
  padding: 10px 12px; font-family: inherit; font-size: 13px;
  text-align: left; cursor: pointer; color: #000;
}
.ph-status-opt:last-child { border-bottom: none; }
.ph-status-opt:hover { background: #fafafa; }
.ph-status-opt.is-current { background: #fffbe0; font-weight: 700; }

/* ---------- Header v3 — top row with floating health card; bottom CTA row ---------- */
.ph-header-top {
  display: grid; grid-template-columns: 1fr auto;
  align-items: flex-start; gap: 24px;
}
.ph-header-top-left { min-width: 0; }
.ph-header-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: #333; flex-wrap: wrap;
  margin-top: 12px;
}
.ph-header-meta .ph-meta-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: #c4c4c4; display: inline-block;
}
.ph-header-meta .ph-meta-sep {
  width: 1px; height: 14px; background: #d6d6d6; margin: 0 2px;
}
.ph-header-owner {
  display: inline-flex; align-items: center; gap: 6px;
}
.ph-header-owner svg { color: #888; flex-shrink: 0; }
.ph-header-owner strong { font-weight: 700; color: #000; }

.ph-header-health-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: #fafafa;
  border: 1px solid var(--r-hairline);
  border-radius: 4px;
  flex-shrink: 0;
}
.ph-header-health-card .ph-header-health-meta {
  display: flex; flex-direction: column; gap: 2px;
}
.ph-header-health-card .ph-header-health-tag {
  display: inline-flex; align-items: center; align-self: flex-start;
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  background: var(--r-primary); color: var(--r-on-primary); padding: 3px 7px;
}
.ph-header-health-card .ph-header-health-lbl {
  font-size: 11px; color: #666;
  text-transform: uppercase; letter-spacing: 0.4px;
  white-space: nowrap;
}

/* CTA row pinned right with refresh inline-left of the button */
.ph-header-cta-row {
  display: flex; justify-content: flex-end;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--r-hairline);
}
.ph-header-cta-group {
  display: inline-flex; align-items: center; gap: 14px;
}
.ph-refresh-inline {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: #888; white-space: nowrap;
}
.ph-refresh-inline svg { color: #aaa; }

/* Override old refresh stack styles — hidden in v3 layout */
.ph-header-utility,
.ph-header-right,
.ph-header-right-top { display: none !important; }

/* Ring number font already set inline; keep label hidden in tiny ring */
.ph-header-health-card .ph-ring-num {
  font-size: 16px !important; font-weight: 700;
}

/* ---------- Agent Feedback (twin of practice call) — avatar stack ---------- */
.ph-feedback-avatars {
  display: inline-flex; align-items: center;
  height: 36px;
}
.ph-feedback-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
  flex-shrink: 0;
}


/* ---------- AI Coach CTA inside card ---------- */
.ph-coach-cta {
  display: flex; align-items: center; gap: 16px;
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.08);
  flex-wrap: wrap;
}
.ph-coach-cta-main {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ph-coach-add-wrap {
  position: relative;
  display: inline-flex;
}
.ph-coach-add-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 12px;
}
.ph-coach-add {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--r-primary);
  border: 1px solid #000;
  color: var(--r-on-primary);
  cursor: pointer;
  font-family: inherit;
}
.ph-coach-add:hover {
  background: var(--r-primary-deep);
}
.ph-coach-add-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  min-width: 220px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--r-hairline);
  box-shadow: 0 18px 42px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transform-origin: bottom left;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 5;
}
.ph-coach-add-wrap:hover .ph-coach-add-menu,
.ph-coach-add-wrap:focus-within .ph-coach-add-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.ph-coach-add-menu button {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  background: #fff;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  color: #000;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}
.ph-coach-add-menu button:last-child {
  border-bottom: none;
}
.ph-coach-add-menu button:hover {
  background: #f7f7f7;
}
.ph-coach-cta .r-btn-primary { padding: 14px 22px; font-size: 14px; }
.ph-coach-refresh {
  font-size: 12px; color: #666;
  display: inline-flex; align-items: center; gap: 6px;
}

/* ---------- Practice Call / Agent Feedback split ---------- */
.ph-practice-split {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px;
  padding: 36px 40px;
  align-items: stretch;
}
.ph-practice-split .ph-practice-top,
.ph-practice-split .ph-practice-body-row { display: contents; }

.ph-practice-left {
  display: flex; flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.ph-practice-left .ph-practice-overline { margin-bottom: 8px; }
.ph-practice-left .ph-practice-title { margin: 0; max-width: 22ch; }
.ph-practice-left .ph-practice-waveform {
  margin-top: 0;
  height: 36px;
  padding-top: 0;
}
.ph-practice-left .ph-practice-actions {
  margin-top: auto;
  display: flex; gap: 12px; align-items: center;
}
.ph-feedback .ph-practice-left .ph-feedback-avatars { margin-top: 0; }

.ph-practice-right {
  display: flex; flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.ph-practice-right .ph-practice-body { margin: 0; max-width: none; }
.ph-practice-right .ph-practice-bullets { margin: 0; }

/* hide old floating accent stripe so split looks balanced */
.ph-practice-split::before { display: none; }
