/* Chief of Staff: keep the existing six-card grid, tokens and media slots.
   The new illustration is a static fork/join, not a simulated live session. */
.sage-home .uc-chief-of-staff .cos-category {
  display: flex; align-items: center; gap: .65rem; margin: 0 0 .65rem;
  font-size: .78rem; line-height: 1.3; color: var(--muted); font-weight: 600;
}
.sage-home .uc-chief-of-staff .cos-category > span {
  color: var(--accent); font: 500 .76rem/1.3 var(--mono);
}
.sage-home .uc-chief-of-staff .uc-screen--orchestration {
  container-type: inline-size;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--color-accent-fill) 10%, transparent), transparent 65%), var(--paper);
}
.sage-home .uc-chief-of-staff .cos-map {
  --cos-gap: clamp(6px, 2cqi, 12px);
  --cos-line: color-mix(in srgb, var(--accent) 43%, var(--paper));
  position: absolute; inset: 0; display: grid;
  grid-template-rows: minmax(0, 1fr) clamp(14px, 4cqi, 22px) minmax(0, 1.05fr) clamp(14px, 4cqi, 22px) auto;
  padding: clamp(10px, 3.1cqi, 18px) clamp(10px, 3.4cqi, 20px);
  color: var(--ink);
}
.sage-home .uc-chief-of-staff .cos-director {
  display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2.2cqi, 14px);
  align-self: center; min-width: 0;
}
.sage-home .uc-chief-of-staff .cos-mark {
  display: grid; place-items: center; flex: none; width: clamp(32px, 9cqi, 48px); height: clamp(32px, 9cqi, 48px);
  border-radius: 30%; border: 1px solid color-mix(in srgb, var(--color-accent-fill) 52%, var(--line));
  background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent-fill) 8%, transparent);
}
.sage-home .uc-chief-of-staff .cos-mark img { width: 78%; height: 78%; object-fit: contain; }
.sage-home .uc-chief-of-staff .cos-director strong {
  display: block; font-size: clamp(.86rem, 3.3cqi, 1.12rem); line-height: 1.2; font-weight: 650; letter-spacing: -.025em;
}
.sage-home .uc-chief-of-staff .cos-director div > span {
  display: block; margin-top: .18rem; font-size: clamp(.72rem, 2.5cqi, .84rem); line-height: 1.25; color: var(--muted);
}
.sage-home .uc-chief-of-staff :is(.cos-specialists, .cos-branches) {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--cos-gap); min-width: 0;
}
.sage-home .uc-chief-of-staff .cos-specialist {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(3px, .8cqi, 5px);
  min-width: 0; padding: 5px 3px; border: 1px solid var(--line); border-radius: clamp(7px, 2cqi, 12px);
  background: color-mix(in srgb, var(--surface) 70%, var(--paper));
  box-shadow: 0 2px 5px color-mix(in srgb, var(--ink) 4%, transparent);
}
.sage-home .uc-chief-of-staff .cos-specialist-kind {
  display: flex; align-items: center; gap: .25rem; font-size: clamp(.7rem, 2.4cqi, .79rem); line-height: 1.2; color: var(--muted); white-space: nowrap;
}
.sage-home .uc-chief-of-staff .cos-specialist-kind svg { width: clamp(12px, 3cqi, 16px); height: clamp(12px, 3cqi, 16px); color: var(--accent); }
.sage-home .uc-chief-of-staff .cos-specialist strong {
  font-size: clamp(.76rem, 2.85cqi, .97rem); line-height: 1.2; font-weight: 600; letter-spacing: -.02em;
}
/* Each stem shares its column with the corresponding specialist. The fork/join
   endpoints use the same gap math, so text reflow cannot skew the connections. */
.sage-home .uc-chief-of-staff .cos-branches { position: relative; }
.sage-home .uc-chief-of-staff .cos-branches::before {
  content: ''; position: absolute; inset-inline: calc((100% - 2 * var(--cos-gap)) / 6); top: 50%; height: 1px; background: var(--cos-line);
}
.sage-home .uc-chief-of-staff .cos-branches::after {
  content: ''; position: absolute; left: 50%; width: 1px; height: 50%; background: var(--cos-line);
}
.sage-home .uc-chief-of-staff .cos-distribute::after { top: 0; }
.sage-home .uc-chief-of-staff .cos-collect::after { bottom: 0; }
.sage-home .uc-chief-of-staff .cos-branches i { position: relative; }
.sage-home .uc-chief-of-staff .cos-branches i::before {
  content: ''; position: absolute; left: 50%; width: 1px; height: 50%; background: var(--cos-line);
}
.sage-home .uc-chief-of-staff .cos-distribute i::before { bottom: 0; }
.sage-home .uc-chief-of-staff .cos-collect i::before { top: 0; }
.sage-home .uc-chief-of-staff .cos-distribute i::after {
  content: ''; position: absolute; left: calc(50% - 2px); bottom: 1px; width: 4px; height: 4px;
  border-right: 1px solid var(--cos-line); border-bottom: 1px solid var(--cos-line); transform: rotate(45deg);
}
.sage-home .uc-chief-of-staff .cos-result {
  justify-self: center; display: flex; align-items: center; justify-content: center; gap: .45rem;
  max-width: 100%; padding: clamp(5px, 1.5cqi, 8px) clamp(10px, 3cqi, 18px); border: 1px solid color-mix(in srgb, var(--good-ink) 24%, var(--line));
  border-radius: 9px; color: var(--good-ink); background: color-mix(in srgb, var(--good-bg) 38%, var(--paper));
}
.sage-home .uc-chief-of-staff .cos-result svg { flex: none; width: clamp(15px, 4cqi, 20px); height: clamp(15px, 4cqi, 20px); }
.sage-home .uc-chief-of-staff .cos-result strong { font-size: clamp(.73rem, 2.8cqi, .9rem); font-weight: 600; line-height: 1.2; }
/* The existing Group Chat artwork belongs beside the conversation explanation.
   Keep its complete original image, natural ratio and all current talk content. */
.sage-home .talk .talk-group {
  max-width: 960px; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); align-items: center;
  gap: clamp(1.1rem, 3vw, 2rem); margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding: clamp(1.1rem, 2.8vw, 1.65rem); border: 1px solid var(--line); border-radius: 20px; background: var(--surface);
}
.sage-home .talk .talk-group-copy h3 { font-size: clamp(1.15rem, 2.1vw, 1.45rem); line-height: 1.2; }
.sage-home .talk .talk-group-copy p { margin-top: .5rem; font-size: .94rem; line-height: 1.5; color: var(--muted); }
.sage-home .talk .talk-group-media {
  min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #1a1815;
}
.sage-home .talk .talk-group-media img { display: block; width: 100%; height: auto; }
@media (max-width: 700px) {
  .sage-home .talk .talk-group { grid-template-columns: minmax(0, 1fr); padding: 1rem; border-radius: 16px; }
  .sage-home .talk .talk-group-media { margin-inline: -.3rem; }
}
@media (max-width: 360px) {
  .sage-home .uc-chief-of-staff .cos-specialist-kind svg { display: none; }
}
