/* Use the Cockpit's shared surfaces, typography and controls in both themes. */
#cp-overview { display: grid; gap: 18px; min-width: 0; }
#cp-overview.hidden { display: none; }
#cp-overview .card { margin: 0; min-width: 0; }
.ov-heading, .ov-row-head, .ov-brain { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ov-heading { align-items: center; flex-wrap: wrap; }
.ov-heading h2 { font-size: 1.05rem; margin: 0 0 4px; }
.ov-heading .eyebrow { display: none; }
.ov-heading p { margin: 0; font-size: .8rem; color: var(--muted); }
.ov-controls { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; min-width: 0; }
.ov-controls label, .ov-editor label { display: grid; gap: 6px; font-size: .74rem; color: var(--muted); min-width: 0; }
.ov-controls select, .ov-editor input, .ov-editor select, .ov-editor textarea {
  width: 100%; box-sizing: border-box; min-height: 34px; padding: 8px 10px;
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--border-2);
  border-radius: 8px; font: inherit; font-size: .82rem; color-scheme: dark;
}
:root[data-theme="light"] .ov-controls select,
:root[data-theme="light"] .ov-editor input,
:root[data-theme="light"] .ov-editor select { color-scheme: light; }
.ov-controls select { max-width: 420px; }
.ov-controls .btn-sm { min-height: 34px; }
#cp-overview a.btn-sm { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
.ov-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 10px; margin: 14px 0 10px; }
.ov-stats > div { background: var(--surface-2); border-radius: 9px; padding: 10px 12px; display: grid; gap: 3px; }
.ov-stats strong { font-size: 1.05rem; font-weight: 700; font-family: var(--mono); line-height: 1.4; }
.ov-stats span { font-size: .7rem; color: var(--muted); }
.ov-agreement { border-left: 3px solid var(--accent); }
.ov-deliverable { padding: 18px 0; border-top: 1px solid var(--border); }
.ov-deliverable:first-of-type { margin-top: 14px; }
.ov-deliverable h4 { font-size: .9rem; margin: 0 0 6px; }
.ov-deliverable progress { width: 100%; height: 6px; accent-color: var(--accent); display: block; margin: 10px 0; }
.ov-deliverable > .btn-sm { margin-top: 10px; }
.ov-deliverable details { border: 0; margin: 12px 0 0; padding: 0; }
.ov-note { padding: 12px 14px; background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; font-size: .85rem; }
.ov-late h4 { color: var(--warning-text); }
.ov-error { color: var(--critical); }
.ov-task-list { padding-left: 18px; line-height: 1.8; }
.ov-task-list small { display: block; color: var(--muted); }
.ov-url { overflow-wrap: anywhere; }
.ov-columns { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; }
.ov-chart { min-width: 0; }
.ov-chart h4 { font-size: .74rem; color: var(--muted); font-weight: 600; margin: 14px 0 8px; }
.ov-bars { height: 100px; display: flex; gap: 3px; align-items: end; border-bottom: 1px solid var(--border); }
.ov-bars > div { flex: 1; min-width: 1px; border-radius: 2px 2px 0 0; }
.ov-chart-axis { display: flex; justify-content: space-between; font-size: .7rem; margin: 7px 0 16px; color: var(--muted); font-family: var(--mono); }
.ov-unlinked { padding: 12px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.ov-editor { border-color: var(--accent-text); }
.ov-editor form { display: grid; gap: 16px; margin-top: 14px; }
.ov-task-picker { max-height: 240px; overflow: auto; }
.ov-task-picker label { display: flex; align-items: center; padding: 9px 0; gap: 8px; color: var(--ink-2); }
.ov-task-picker input { width: 16px; min-height: 16px; flex-shrink: 0; }
.ov-warning { border-left: 3px solid var(--warning-text); }
.ov-brain .btn-primary { flex-shrink: 0; }
@media (max-width: 760px) {
  .ov-heading, .ov-row-head, .ov-brain { flex-direction: column; }
  .ov-heading { align-items: stretch; }
  .ov-columns { grid-template-columns: 1fr; }
  .ov-unlinked { align-items: start; flex-direction: column; }
  .ov-controls { width: 100%; }
  .ov-controls label { flex: 1 1 100%; }
  .ov-controls select { max-width: 100%; }
}
