.cc-console {
  --cc-cyan: #087f8c;
  --cc-green: #16814d;
  --cc-amber: #a46508;
  --cc-red: #cb4652;
  color: var(--fg);
  background: var(--bg);
  min-width: 0;
  padding: 0 4px 28px;
  letter-spacing: 0;
}
.cc-console *,
.cc-console *::before,
.cc-console *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}
.cc-console button,
.cc-console input,
.cc-console select {
  font: inherit;
}
.cc-console a {
  color: inherit;
  text-decoration: none;
}
.cc-console button {
  cursor: pointer;
}
.cc-console button,
.cc-console select,
.cc-console a {
  touch-action: manipulation;
}
.cc-console button:disabled {
  opacity: 0.4;
  cursor: default;
}
.cc-console .cc-task-row,
.cc-console .cc-members button,
.cc-console .cc-tabs button {
  border-radius: 0;
  text-align: left;
}
.cc-console .cc-node {
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
}
.cc-console .cc-workspace > main {
  padding: 0;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.cc-console :focus-visible {
  outline: 2px solid var(--cc-cyan);
  outline-offset: 3px;
}
.cc-console h1 {
  font-size: 25px;
  line-height: 1.35;
  margin: 6px 0 0;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.cc-console h2 {
  font-size: 17px;
  line-height: 1.45;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.cc-console small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.cc-console code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.cc-console svg {
  flex-shrink: 0;
}
.cc-topbar,
.cc-run-heading,
.cc-graph-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cc-topbar {
  min-height: 56px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 25px;
}
.cc-topbar > div,
.cc-brand,
.cc-run-actions,
.cc-link,
.cc-graph-toolbar > div,
.cc-graph-toolbar > span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cc-brand {
  font-size: 15px;
  font-weight: 600;
}
.cc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--fg);
  background: var(--surface);
  padding: 0;
}
.cc-icon:hover {
  background: var(--surface-raised);
}
/* Semantic tones so collaborative actions read at a glance on phones. */
.cc-icon.cc-tone-primary {
  border-color: var(--accent, #7aa2f7);
  color: var(--accent, #7aa2f7);
}
.cc-icon.cc-tone-primary:hover {
  background: color-mix(in srgb, var(--accent, #7aa2f7) 16%, transparent);
}
.cc-icon.cc-tone-warn {
  border-color: #e0af68;
  color: #e0af68;
}
.cc-icon.cc-tone-warn:hover {
  background: rgba(224, 175, 104, 0.16);
}
.cc-icon.cc-tone-danger {
  border-color: #f7768e;
  color: #f7768e;
}
.cc-icon.cc-tone-danger:hover {
  background: rgba(247, 118, 142, 0.16);
}
.cc-sync,
.cc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
}
.cc-sync i,
.cc-status i {
  display: inline-block;
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: currentColor;
}
.cc-sync {
  color: var(--cc-green);
}
.cc-sync.stale {
  color: var(--cc-amber);
}
.cc-run-heading {
  align-items: flex-start;
  margin-bottom: 24px;
}
.cc-run-heading > div:first-child {
  min-width: 0;
}
.cc-run-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}
.cc-eyebrow {
  color: var(--muted);
  font-size: 12px;
}
.cc-link {
  font-size: 12px;
  min-height: 34px;
}
.cc-goal {
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  padding-bottom: 16px;
}
.cc-metrics {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  gap: 22px;
}
.cc-metrics > div {
  min-width: 0;
  border-right: 1px solid var(--border);
  padding-right: 22px;
}
.cc-metrics > div:last-child {
  border: 0;
}
.cc-metrics > div > span {
  font-size: 12px;
  color: var(--muted);
}
.cc-metrics strong {
  display: block;
  font-size: 28px;
  font-weight: 600;
  margin: 8px 0;
  line-height: 1.2;
}
.cc-console progress {
  width: 100%;
  height: 4px;
  display: block;
  border: 0;
  border-radius: 0;
  accent-color: var(--cc-green);
  background: var(--border);
}
.cc-console progress::-webkit-progress-bar {
  background: var(--border);
}
.cc-console progress::-webkit-progress-value {
  background: var(--cc-green);
}
.cc-phase {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
  padding: 16px 0;
}
.cc-phase > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cc-warning {
  padding: 12px 16px;
  background: color-mix(in srgb, var(--cc-amber) 8%, var(--surface));
  border-left: 3px solid var(--cc-amber);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.cc-tabs {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  margin-top: 12px;
}
.cc-tabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  color: var(--muted);
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 14px 0;
  white-space: nowrap;
  font-size: 13px;
}
.cc-tabs button[aria-current] {
  border-color: var(--cc-cyan);
  color: var(--fg);
}
.cc-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 390px;
}
.cc-workspace.has-detail {
  grid-template-columns: minmax(0, 1fr) 300px;
}
.cc-workspace > main {
  min-width: 0;
}
.cc-graph-wrap {
  min-width: 0;
  background: var(--surface);
}
.cc-graph-toolbar {
  height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.cc-graph-toolbar output {
  width: 36px;
  text-align: center;
}
.cc-graph-scroll {
  overflow: auto;
  max-height: 620px;
  min-height: 360px;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 20px 20px;
}
.cc-graph-plane {
  position: relative;
  transform-origin: top left;
}
.cc-edges {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--muted);
  overflow: visible;
}
.cc-edges > path {
  fill: none;
  stroke: var(--border);
  stroke-width: 2;
}
.cc-edges > path.cc-edge-done {
  stroke: var(--cc-green);
  opacity: 0.65;
}
.cc-edges > path.cc-edge-flow {
  stroke: var(--cc-cyan);
  stroke-dasharray: 6 5;
  animation: cc-flow 1.1s linear infinite;
}
@keyframes cc-flow {
  to {
    stroke-dashoffset: -22;
  }
}
.cc-node {
  position: absolute;
  width: 238px;
  height: 112px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--fg);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 5px #00000009;
}
.cc-node:hover,
.cc-node.selected {
  border-color: var(--cc-cyan);
  box-shadow: 0 0 0 1px var(--cc-cyan);
}
.cc-node-running {
  border-left: 3px solid var(--cc-cyan);
}
.cc-node-done {
  border-left: 3px solid var(--cc-green);
}
.cc-node-blocked,
.cc-node-failed {
  border-left: 3px solid var(--cc-red);
}
.cc-node-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.cc-node-head > code {
  max-width: 100px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.cc-node > strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}
.cc-node-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  min-width: 0;
}
.cc-node-foot > svg {
  margin-left: auto;
}
.cc-avatar {
  display: inline-flex;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--cc-cyan) 10%, var(--surface));
  color: var(--cc-cyan);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 11px;
}
.cc-status {
  color: var(--muted);
  font-size: 11px;
}
.cc-running,
.cc-queued {
  color: var(--cc-cyan);
}
.cc-done,
.cc-completed {
  color: var(--cc-green);
}
.cc-blocked,
.cc-failed {
  color: var(--cc-red);
}
.cc-review,
.cc-waiting,
.cc-paused,
.cc-stopping {
  color: var(--cc-amber);
}
.cc-run-state {
  font-size: 12px;
  white-space: nowrap;
}
.cc-detail {
  border-left: 1px solid var(--border);
  padding: 16px 20px;
  background: var(--surface);
  min-width: 0;
}
.cc-detail header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cc-detail h2 {
  font-size: 16px;
  margin: 14px 0;
}
.cc-detail dl {
  margin: 24px 0;
}
.cc-detail dt {
  color: var(--muted);
  font-size: 11px;
  margin-top: 18px;
}
.cc-detail dd {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.cc-detail dd small {
  display: block;
  margin-top: 6px;
}
.cc-reference {
.cc-artifact-thumb {
  display: block;
  max-width: 132px;
  max-height: 96px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
}
a:has(> .cc-artifact-thumb) {
  display: inline-block;
  line-height: 0;
  margin: 2px 8px 2px 0;
  vertical-align: middle;
}
  font-size: 12px;
  overflow-wrap: anywhere;
}
.cc-reference code {
  display: block;
  margin: 6px 0;
}
.cc-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
}
.cc-filters label,
.cc-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
}
.cc-filters input,
.cc-search input {
  background: transparent;
  border: 0;
  outline: none;
  color: var(--fg);
  font-size: 13px;
  min-width: 0;
  width: 200px;
}
.cc-filters select {
  padding: 7px;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 12px;
}
.cc-task-row {
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr) 82px 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 17px 12px;
  text-align: left;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
}
.cc-task-row:hover {
  background: var(--surface-raised);
}
.cc-task-row strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.cc-task-row small {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cc-members > section {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.cc-members header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cc-members p {
  font-size: 13px;
  color: var(--muted);
}
.cc-members button {
  display: flex;
  width: 100%;
  gap: 12px;
  padding: 12px;
  background: transparent;
  color: var(--fg);
  border: 0;
  text-align: left;
  font-size: 13px;
}
.cc-members button > span:first-of-type {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.cc-artifacts article {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.cc-artifacts article > div {
  flex: 1;
  min-width: 0;
}
.cc-artifacts code {
  display: block;
  margin: 8px 0;
}
.cc-artifacts article > span {
  font-size: 12px;
  color: var(--muted);
}
.cc-timeline {
  list-style: none;
  padding: 10px 0;
  margin: 0;
}
.cc-timeline li {
  display: grid;
  grid-template-columns: 10px 60px minmax(0, 1fr) 34px;
  gap: 12px;
  padding: 17px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.cc-timeline time {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.cc-timeline p {
  margin: 7px 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.cc-timeline code {
  display: block;
  margin-top: 5px;
}
.cc-event-dot {
  width: 7px;
  height: 7px;
  background: var(--cc-cyan);
  border-radius: 50%;
  margin-top: 4px;
}
.cc-source-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.cc-empty {
  padding: 55px 18px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.cc-run-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 75px 18px;
  align-items: center;
  gap: 25px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.cc-run-row h2 {
  margin: 8px 0;
}
.cc-run-row:hover h2 {
  color: var(--cc-cyan);
}
.cc-row-progress strong {
  font-size: 20px;
  display: block;
  margin-bottom: 9px;
}
.cc-expanded {
  position: fixed;
  inset: 20px;
  z-index: var(--z-overlay, 1000);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 0 0 30px #0008;
}
.cc-expanded .cc-graph-scroll {
  max-height: none;
  height: calc(100% - 52px);
}
:root[data-theme="dark"] .cc-console {
  --cc-cyan: #48bdc9;
  --cc-green: #66c794;
  --cc-amber: #e3b15c;
  --cc-red: #ee8390;
}
.cc-goal-dialog {
  width: 560px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  background: var(--surface);
}
.cc-goal-dialog::backdrop {
  background: #0007;
}
.cc-goal-dialog header,
.cc-goal-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cc-goal-dialog label {
  display: block;
  font-size: 13px;
  margin-top: 18px;
}
.cc-goal-dialog textarea {
  display: block;
  width: 100%;
  min-width: 0;
  resize: vertical;
  margin-top: 8px;
  padding: 10px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
  line-height: 1.5;
}
.cc-goal-dialog footer {
  justify-content: flex-end;
  margin-top: 20px;
}
.cc-goal-dialog footer button {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--fg);
}
.cc-goal-dialog footer button[type="submit"] {
  color: white;
  background: #087f8c;
  border-color: #087f8c;
}
.cc-group-context {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 18px;
  min-height: 32px;
}
.cc-group-context span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.cc-group-id {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}
.cc-group-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 18px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--border);
}
.cc-group-row > svg:first-child {
  color: var(--cc-cyan);
}
.cc-group-row:hover h2 {
  color: var(--cc-cyan);
}
.cc-group-row code {
  color: var(--muted);
}
.cc-group-row p {
  font-size: 13px;
  margin: 10px 0 8px;
}
.cc-updated {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.cc-task-dialog {
  width: 560px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  margin: auto 16px auto auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  padding: 0 20px 24px;
}
.cc-task-dialog::backdrop {
  background: #0007;
}
.cc-task-dialog header {
  position: sticky;
  top: 0;
  background: var(--surface);
  padding: 12px 0;
  gap: 16px;
  z-index: 1;
}
.cc-task-dialog header code {
  min-width: 0;
  overflow-wrap: anywhere;
}
.cc-task-dialog h2 {
  font-size: 18px;
  line-height: 1.5;
}
.cc-task-dialog .cc-icon {
  min-height: 44px;
  min-width: 44px;
}
.cc-task-dialog .cc-reference code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.cc-task-dialog .cc-link {
  min-height: 44px;
}
.cc-terminal-toggle {
  min-height: 44px;
  padding: 8px 14px;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
}
.cc-terminal {
  min-width: 0;
  margin-top: 16px;
  overflow-wrap: anywhere;
}
.cc-terminal iframe {
  width: 100%;
  height: 360px;
  border: 1px solid var(--border);
}
.cc-terminal .v3-terminal-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  padding: 10px 0;
}
.cc-dashboard-link {
  display: none;
}
@media (max-width: 700px) {
  body.collaboration-active .app-shell {
    display: block;
  }
  body.collaboration-active .sidebar,
  body.collaboration-active .topbar {
    display: none;
  }
  body.collaboration-active .workspace {
    min-width: 0;
    margin: 0;
  }
  body.collaboration-active #root {
    padding: 0 max(12px, env(safe-area-inset-right))
      max(20px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }
  .cc-console .cc-topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--bg);
    margin-bottom: 18px;
    min-height: 62px;
    gap: 8px;
  }
  .cc-topbar > div {
    gap: 6px;
  }
  .cc-brand {
    font-size: 14px;
    gap: 6px;
    min-width: 0;
    min-height: 44px;
  }
  .cc-dashboard-link {
    display: inline-flex;
  }
  .cc-task-dialog {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: env(safe-area-inset-top) 18px
      max(24px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
  }
  .cc-goal-dialog textarea {
    font-size: 16px;
  }
  .cc-goal-dialog footer button {
    min-height: 44px;
  }
  .cc-console input,
  .cc-console select {
    font-size: 16px;
    min-height: 44px;
  }
  .cc-tabs {
    gap: 0;
    justify-content: space-between;
  }
  .cc-tabs button {
    min-height: 48px;
    padding: 12px 7px;
    gap: 5px;
  }
  .cc-group-row {
    gap: 12px;
  }
  .cc-group-row h2 {
    font-size: 17px;
  }
  .cc-run-heading {
    margin-bottom: 16px;
  }
  .cc-run-actions {
    width: 100%;
  }
  .cc-console .cc-task-row {
    grid-template-columns: minmax(0, 1fr) 78px;
    padding: 15px 0;
    gap: 8px;
  }
  .cc-task-row > code {
    grid-column: 1;
    color: var(--muted);
  }
  .cc-task-row > span:first-of-type {
    grid-column: 1;
    grid-row: 2;
  }
  .cc-task-row > .cc-status {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
  }
  .cc-task-row strong {
    font-size: 14px;
  }
  .cc-task-row small {
    white-space: normal;
    line-height: 1.5;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cc-edges > path.cc-edge-flow {
    animation: none;
  }
}
@media (max-width: 1000px) {
  .cc-workspace.has-detail {
    grid-template-columns: minmax(0, 1fr);
  }
  .cc-detail {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .cc-run-heading {
    flex-wrap: wrap;
  }
  .cc-run-actions {
    justify-content: flex-start;
  }
  .cc-metrics {
    gap: 12px;
  }
  .cc-metrics > div {
    padding-right: 12px;
  }
}
@media (max-width: 600px) {
  .cc-console h1 {
    font-size: 21px;
  }
  .cc-topbar {
    margin-bottom: 20px;
  }
  .cc-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .cc-metrics > div:nth-child(2) {
    border: 0;
  }
  .cc-metrics strong {
    font-size: 24px;
  }
  .cc-tabs {
    gap: 17px;
  }
  .cc-tabs button {
    font-size: 12px;
  }
  .cc-filters {
    flex-wrap: wrap;
  }
  .cc-task-row {
    grid-template-columns: 45px minmax(0, 1fr) 72px;
    padding: 14px 0;
    gap: 8px;
  }
  .cc-task-row > svg {
    display: none;
  }
  .cc-task-row strong {
    font-size: 12px;
  }
  .cc-timeline li {
    grid-template-columns: 6px 48px minmax(0, 1fr);
    gap: 9px;
  }
  .cc-timeline li > .cc-icon {
    display: none;
  }
  .cc-run-row {
    grid-template-columns: minmax(0, 1fr) 65px;
    gap: 12px;
  }
  .cc-run-row > svg {
    display: none;
  }
  .cc-row-progress {
    grid-column: 1;
    grid-row: 2;
    width: 150px;
  }
  .cc-run-row > .cc-run-state {
    grid-column: 2;
    grid-row: 1;
  }
  .cc-expanded {
    inset: 6px;
  }
  .cc-run-actions {
    gap: 7px;
  }
  .cc-phase {
    gap: 10px;
  }
  .cc-search input {
    width: 180px;
  }
}
@media (max-width: 700px) {
  .cc-tabs {
    gap: 0;
  }
  .cc-tabs button {
    flex: 1;
    justify-content: center;
    padding: 12px 3px;
    gap: 4px;
    font-size: 12px;
  }
  .cc-task-row strong {
    font-size: 14px;
  }
}
.cc-team-switch {
  display: flex;
  gap: 4px;
  margin: 8px 0 18px;
  border-bottom: 1px solid var(--border);
}
.cc-team-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.cc-team-switch a[aria-current="page"] {
  color: var(--fg);
  border-color: #168376;
}
.cc-team-row {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 18px 6px;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.cc-team-row > div {
  min-width: 0;
  flex: 1;
}
.cc-team-row > svg {
  flex: 0 0 auto;
  color: var(--muted);
}
.cc-team-row h2 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.cc-team-row p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.cc-team-row small {
  color: var(--muted);
  font-size: 12px;
}
.cc-team-row:hover {
  background: var(--surface-raised);
}
.cc-team-notes section {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.cc-team-notes h2 {
  margin: 0 0 12px;
  font-size: 16px;
}
.cc-team-notes p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.75;
  font-size: 14px;
}
.cc-team-history details,
.cc-archived-run {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.cc-team-history summary,
.cc-archived-run summary {
  min-height: 44px;
  cursor: pointer;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.cc-team-history time,
.cc-archived-run summary > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.cc-archived-run p,
.cc-archived-run li {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.cc-team-editor {
  max-height: 90dvh;
  overflow-y: auto;
}
.cc-team-editor input,
.cc-team-editor textarea,
.cc-goal-dialog select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  border-radius: 6px;
  padding: 10px;
  font: inherit;
}
.cc-team-field {
  display: grid;
  gap: 8px;
}
.cc-team-editor label {
  font-size: 14px;
}
.cc-team-editor footer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
}
.cc-team-conflict {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}
.cc-team-conflict h3 {
  font-size: 15px;
}
.cc-archive-import {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.cc-archive-import .cc-warning {
  flex-basis: 100%;
  max-width: 320px;
}
.cc-team-page .cc-run-actions {
  flex-wrap: wrap;
}
@media (max-width: 699px) {
  .cc-team-editor {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-sizing: border-box;
  }
  .cc-team-editor input,
  .cc-team-editor textarea,
  .cc-goal-dialog select {
    font-size: 16px;
    min-height: 44px;
  }
  .cc-team-editor input#team-title,
  .cc-goal-dialog select#team-run {
    min-height: 44px;
    height: 44px;
    font-size: 16px;
    border-radius: 6px;
  }
  .cc-team-row {
    flex-wrap: wrap;
    column-gap: 10px;
  }
  .cc-team-row > div {
    flex-basis: calc(100% - 70px);
  }
  .cc-team-row .cc-run-state {
    margin-left: 30px;
  }
  .cc-team-page .cc-phase {
    flex-wrap: wrap;
    row-gap: 8px;
  }
}
.cc-archive-restore {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 12px;
}
