.editorial-panel { display: grid; gap: 1.25rem; margin-block: 1.5rem; min-width: 0; }
.editorial-section-heading { display:flex; align-items:start; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.editorial-section-heading h2 { margin-bottom:.5rem; }
.editorial-section-heading .hint { max-width:65ch; }
.editorial-chart-grid, .editorial-content-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.editorial-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.editorial-metric { border-inline-start:2px solid var(--portal-line); padding-inline-start:1rem; }
.editorial-metric strong { display:block; font-size:1.75rem; font-weight:500; color:var(--portal-brand); }
.editorial-metric span { color:var(--portal-muted); font-size:.8125rem; }
.editorial-chart { display:grid; gap:.9rem; }
.editorial-bar-row { display:grid; gap:.35rem; }
.editorial-bar-heading { display:flex; justify-content:space-between; gap:.75rem; font-size:.8125rem; overflow-wrap:anywhere; }
.editorial-bar { height:8px; width:100%; background:#f0f3f5; border-radius:4px; overflow:hidden; }
.editorial-bar span { display:block; height:100%; background:#277e6b; border-radius:4px; }
.editorial-bar-row small { color:var(--portal-muted); font-size:.75rem; }
.editorial-filters { display:grid; grid-template-columns:2fr repeat(3,minmax(0,1fr)); gap:.75rem; margin-bottom:1rem; }
.editorial-filters label { display:grid; gap:.375rem; font-size:.8125rem; }
.editorial-table-wrap { max-width:100%; overflow:auto; border:1px solid var(--portal-line); border-radius:6px; }
.editorial-table { width:100%; border-collapse:collapse; font-size:.8125rem; text-align:start; }
.editorial-table th { font-weight:500; color:var(--portal-muted); background:#f8fafb; white-space:nowrap; }
.editorial-table td, .editorial-table th { padding:.8rem; border-bottom:1px solid var(--portal-line); text-align:start; vertical-align:top; }
.editorial-table tr:last-child td { border-bottom:0; }
.editorial-table td { min-width:7rem; max-width:22rem; overflow-wrap:anywhere; }
.editorial-table td small { display:block; margin-top:.2rem; color:var(--portal-muted); font-size:.7rem; }
.editorial-table td:first-child { min-width:12rem; }
.editorial-table .button { min-height:2rem; padding:.3rem .65rem; font-size:.75rem; }
.editorial-disclosure > summary { font-size:1.0625rem; font-weight:500; }
.editorial-disclosure[open] > summary { margin-bottom:1.25rem; }
.editorial-disclosure form, [data-editorial-settings] form { margin-top:1rem; }
[data-editorial-decision] { margin-top:1.25rem; }
[data-editorial-history] .message { background:#fbfcfc; }
.editorial-content-item { display:flex; align-items:start; justify-content:space-between; gap:1rem; padding:.75rem 0; border-bottom:1px solid var(--portal-line); }
.editorial-content-item small { display:block; color:var(--portal-muted); }
.editorial-content-item .actions { flex-shrink:0; }
.editorial-content-item .link-button { font-size:.8125rem; }
.editorial-delete { color:var(--portal-danger); }
@media(max-width:900px) { .editorial-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:720px) { .editorial-chart-grid, .editorial-content-grid { grid-template-columns:1fr; } .editorial-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .editorial-section-heading { flex-wrap:wrap; } .editorial-content-item { flex-wrap:wrap; } .editorial-table .button { min-height:44px; } }
@media(max-width:420px) { .editorial-filters { grid-template-columns:1fr; } }

.editorial-upload { border:1px dashed var(--portal-line); border-radius:6px; padding:.75rem; min-width:0; }
.editorial-upload label { display:grid; gap:.4rem; font-size:.8125rem; }
.editorial-upload input[type="file"] { min-width:0; font-size:.8125rem; }
.editorial-panel > *, .editorial-chart-grid > *, .editorial-content-grid > * { min-width: 0; }
.editorial-panel { overflow-wrap: anywhere; }
.editorial-metric { min-width: 0; }

/* Separate overview, reporting and publishing into distinct visual groups. */
.editorial-overview { background: #f0f7f4; border-color: #cedfd7; }
.editorial-metric { padding: .85rem 1rem; border: 1px solid #d9e5df; border-radius: 8px; background: #fff; }
.editorial-chart-grid > .portal-card { background: #f6f8fc; border-color: #d6e0ed; }
.editorial-chart-grid > .portal-card:nth-child(2) { background: #f4f8f7; border-color: #d3e1db; }
.editorial-chart-grid h2 { padding-block-end: .75rem; border-block-end: 1px solid var(--portal-section-border); }
.editorial-filters { padding: 1rem; border: 1px solid var(--portal-section-border); border-radius: 8px; background: #f4f7fb; }
.editorial-table-wrap { background: #fff; }
.editorial-table tbody tr:nth-child(even) { background: #f8fafc; }
.editorial-disclosure { background: #fbf8f1; border-color: #e4dccb; }
.editorial-disclosure > summary { color: #51472f; }
.editorial-disclosure > form,
.editorial-disclosure > details,
[data-editorial-content],
[data-editorial-settings] {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--portal-section-border);
  border-radius: 8px;
  background: #fff;
}
.editorial-disclosure > details { margin-block-start: 1rem; }
[data-editorial-content] { margin: 0; }
[data-editorial-content][open] > summary,
.management-panel details[open] > summary {
  padding-block-end: .85rem;
  margin-block-end: 1rem;
  border-block-end: 1px solid var(--portal-section-border);
}
[data-editorial-content-list] { padding: .5rem .85rem; margin-block: 1rem; border: 1px solid #e2e7ed; border-radius: 6px; background: #f6f8fb; }
[data-editorial-content-form] { padding-block-start: 1rem; border-block-start: 1px solid var(--portal-section-border); }
[data-editorial-decision] { padding: 1rem; border: 1px solid #cfded7; border-radius: 8px; background: #f2f8f5; }
[data-editorial-settings] { margin-block-start: 1.25rem; background: #f5f8fc; }
.editorial-upload { border-style: solid; background: #f5f8fb; }
@media (max-width: 420px) { .editorial-metric { padding: .75rem; } }

/* Lightweight editorial surfaces share the workspace's quiet hierarchy. */
.workspace-shell .editorial-overview, .workspace-shell .editorial-chart-grid > .portal-card { background:#fff; border-color:#e2e7ec; }
.workspace-shell .editorial-metric { background:#f7faf8; border:0; border-radius:8px; }
.workspace-shell .editorial-metric strong { font-size:1.8rem; font-weight:500; }
.workspace-shell .editorial-chart-grid h2 { border:0; padding:0; }
.workspace-shell .editorial-filters { border:0; padding:1rem; background:#f7f9fb; border-radius:8px; }
.workspace-shell .editorial-table th { background:#f7f9fb; font-size:.75rem; letter-spacing:.01em; }
.workspace-shell .editorial-table td, .workspace-shell .editorial-table th { padding:1rem .85rem; }
.workspace-shell .editorial-table tbody tr:nth-child(even) { background:#fff; }
.workspace-shell .editorial-table tbody tr:hover { background:#f8fbf9; }
.workspace-shell .editorial-disclosure { background:#fff; border-color:#e2e7ec; }
.workspace-shell .editorial-disclosure > summary { color:var(--portal-ink); font-size:1.125rem; }
.workspace-shell .editorial-disclosure > form { padding:0; border:0; }
.workspace-shell .editorial-disclosure > details { background:#fafbfc; border-color:#e2e7ec; }
.workspace-shell [data-editorial-content] { background:#fff; }
.workspace-shell [data-editorial-content-list]:empty { display:none; }
.workspace-shell [data-editorial-content-list] { background:#f8fafb; }
.workspace-shell .editorial-upload { border:1px dashed #cfd9df; background:#fafcfc; border-radius:8px; }
