/* Shared workstream styles keep SEO/AEO, Reddit, and TikTok visually consistent. */

#arc-shell #tiktok-chat-work,
#arc-shell #reddit-chat-work,
#arc-shell #seo-chat-work {
  container-type: inline-size;
  width: 100%;
}
#arc-shell .rd-context,
#arc-shell .seo-area-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--arc-muted);
  font-size: 12px;
  flex-wrap: wrap;
}
#arc-shell .rd-context button,
#arc-shell .seo-area-top button {
  font-size: 12px;
  padding: 0;
  gap: 6px;
}
#arc-shell #seo-area-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
#arc-shell .rd-area,
#arc-shell .seo-area-shortcut {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: center;
  gap: 4px 7px;
  padding: 10px;
  background: var(--arc-selected);
  border: 1px solid transparent;
  min-width: 0;
}
#arc-shell .rd-area:hover,
#arc-shell .seo-area-shortcut:hover {
  background: var(--arc-hover);
}
#arc-shell .rd-area[aria-pressed="true"],
#arc-shell .seo-area-shortcut[aria-pressed="true"] {
  border-color: var(--arc-muted);
  background: var(--arc-hover);
}
#arc-shell .rd-area strong,
#arc-shell .seo-area-shortcut strong {
  font-size: 12px;
  font-weight: 500;
  white-space: normal;
}
#arc-shell .rd-area small,
#arc-shell .seo-area-shortcut small {
  font-size: 11px;
  color: var(--arc-muted);
  grid-column: 1/-1;
}
#arc-shell .rd-hero,
#arc-shell .seo-journey-intro {
  margin: 20px 0 18px;
}
#arc-shell .rd-hero h2,
#arc-shell .seo-journey-intro h2 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.6px;
  line-height: 1.25;
  margin: 0 0 12px;
}
#arc-shell .rd-hero p,
#arc-shell .seo-journey-intro p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--arc-muted);
  margin: 0;
  max-width: 650px;
}
#arc-shell .rd-kicker,
#arc-shell .seo-card-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--arc-muted);
  margin-bottom: 10px;
}
#arc-shell .rd-cards,
#arc-shell .seo-recommendations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
#arc-shell .rd-card,
#arc-shell .seo-start-card {
  border: 1px solid var(--arc-line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
#arc-shell .rd-card h3,
#arc-shell .seo-start-card h3 {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
  margin: 0;
}
#arc-shell .rd-card p,
#arc-shell .seo-start-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--arc-muted);
  margin: 0;
}
#arc-shell .rd-card button,
#arc-shell .seo-start-card button {
  margin-top: auto;
  padding: 9px 0;
  gap: 7px;
  font-weight: 500;
}
#arc-shell .rd-footnote,
#arc-shell .seo-next-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--arc-muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 20px 0 0;
}
#arc-shell .rd-footnote svg,
#arc-shell .seo-next-note svg {
  flex: none;
  margin-top: 2px;
}
#arc-shell .rd-back {
  margin: 20px 0 15px;
  padding: 3px 0;
  font-size: 12px;
  color: var(--arc-muted);
}
#arc-shell .rd-detail,
#arc-shell .seo-brief {
  padding: 22px;
  border: 1px solid var(--arc-line);
  border-radius: 12px;
}
#arc-shell .rd-detail h2,
#arc-shell .seo-brief h2 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 500;
  margin: 0 0 10px;
}
#arc-shell .rd-detail > p,
#arc-shell .seo-brief > p {
  color: var(--arc-muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 20px;
}
#arc-shell .rd-detail dl,
#arc-shell .seo-brief dl {
  margin: 0;
}
#arc-shell .rd-detail dl > div,
#arc-shell .seo-brief dl > div {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 18px;
  border-top: 1px solid var(--arc-line);
  padding: 14px 0;
  font-size: 13px;
  line-height: 1.6;
}
#arc-shell .rd-detail dt,
#arc-shell .seo-brief dt {
  color: var(--arc-muted);
}
#arc-shell .rd-detail dd,
#arc-shell .seo-brief dd {
  margin: 0;
}
#arc-shell .rd-actions,
#arc-shell .seo-brief-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
#arc-shell button.rd-primary,
#arc-shell button.seo-primary {
  background: var(--arc-text);
  color: var(--arc-paper);
  padding: 11px 15px;
}
#arc-shell button.rd-primary:hover,
#arc-shell button.seo-primary:hover {
  background: var(--arc-text);
  color: var(--arc-paper);
  opacity: 0.9;
}
#arc-shell button.rd-primary:disabled,
#arc-shell button.seo-primary:disabled,
#arc-shell button.rd-primary:disabled:hover,
#arc-shell button.seo-primary:disabled:hover {
  background: var(--arc-selected);
  color: var(--arc-muted);
  opacity: 1;
}
#arc-shell .rd-summary,
#arc-shell .seo-active-row {
  padding: 14px 0;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--arc-line);
}
#arc-shell .rd-summary strong,
#arc-shell .seo-active-row strong {
  font-weight: 500;
  display: block;
}
#arc-shell .rd-summary p,
#arc-shell .seo-active-row small {
  color: var(--arc-muted);
  font-size: 12px;
  margin: 5px 0 0;
}
#arc-shell .rd-summary button,
#arc-shell .seo-active-row button {
  font-size: 12px;
  flex-shrink: 0;
}
#arc-shell .rd-example {
  margin-top: 20px;
  padding: 20px;
  background: var(--arc-selected);
  border-radius: 12px;
}
#arc-shell .rd-example h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 10px;
}
#arc-shell .rd-example p {
  font-size: 13px;
  line-height: 1.65;
  margin: 10px 0;
  color: var(--arc-muted);
}
#arc-shell .rd-example blockquote {
  margin: 14px 0;
  padding-left: 14px;
  border-left: 2px solid var(--arc-line);
  font-size: 14px;
  line-height: 1.7;
}
#arc-shell .rd-review-note {
  border-top: 1px solid var(--arc-line);
  padding-top: 12px;
}
#arc-shell .rd-status {
  color: var(--arc-muted);
  font-size: 12px;
}
#arc-shell .rd-connection {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  padding: 9px 0;
}
#arc-shell .rd-connection small {
  color: var(--arc-muted);
  font-size: 11px;
}
#arc-shell .rd-inspector-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--arc-muted);
  margin: 0;
}
@container (max-width:560px) {
  #arc-shell #seo-area-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #arc-shell .rd-cards,
  #arc-shell .seo-recommendations {
    grid-template-columns: 1fr;
  }
  #arc-shell .rd-detail dl > div,
  #arc-shell .seo-brief dl > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  #arc-shell .rd-hero h2,
  #arc-shell .seo-journey-intro h2 {
    font-size: 22px;
  }
}

#arc-shell .rd-card .rd-kicker,
#arc-shell .seo-start-card .seo-card-kicker {
  margin-bottom: 2px;
}

#arc-shell .rd-context svg,
#arc-shell .seo-area-top svg,
#arc-shell .rd-area > svg,
#arc-shell .seo-area-shortcut > svg {
  width: 16px;
  height: 16px;
}

/* Specialist introductions share the CMO message width and avatar gutter. */
#arc-shell .cmo-view:has(#reddit-chat-work:not([hidden])) .cmo-thread,
#arc-shell .cmo-view:has(#reddit-chat-work:not([hidden])) .cmo-composer-wrap,
#arc-shell .cmo-view:has(#tiktok-chat-work:not([hidden])) .cmo-thread,
#arc-shell .cmo-view:has(#tiktok-chat-work:not([hidden])) .cmo-composer-wrap {
  max-width: none;
  padding-left: max(
    66px,
    calc(
      (100% - var(--workspace-content-width)) / 2 +
        var(--workspace-content-padding)
    )
  );
  padding-right: max(
    var(--workspace-content-padding),
    calc(
      (100% - var(--workspace-content-width)) / 2 +
        var(--workspace-content-padding)
    )
  );
}
#arc-shell .work-opening-message {
  position: relative;
  margin: 0 0 26px;
}
#arc-shell .work-message-avatar {
  display: grid;
  place-items: center;
  position: absolute;
  left: -54px;
  top: -12px;
  width: 40px;
  height: 44px;
}
#arc-shell .work-message-avatar .arc-character {
  transform: scale(1.5);
}
#arc-shell .work-message-body {
  min-width: 0;
}
#arc-shell .work-message-speaker {
  display: block;
  margin-bottom: 11px;
  font-size: 12px;
  font-weight: 500;
}
@container (max-width: 560px) {
  #arc-shell #reddit-area-nav .cycle-stage > header,
  #arc-shell #tiktok-area-nav .cycle-stage > header {
    min-height: 34px;
  }
  #arc-shell #reddit-area-nav .cycle-note,
  #arc-shell #tiktok-area-nav .cycle-note {
    min-height: 50px;
  }
}
