.content-panel {
  flex: 0 0 auto;
  max-height: 45vh;
  display: flex;
  flex-direction: column;
}

.content-header {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.content-header h2 {
  font-size: 0.95rem;
  margin: 0;
  flex: 0 0 auto;
}

.content-status {
  font-size: 0.8rem;
  color: var(--muted, #888);
  flex: 1;
  text-align: right;
}

.content-status.error {
  color: #d33;
}

.content-toggle {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.content-panel.open .content-toggle {
  transform: rotate(180deg);
}

.content-body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.content-body[hidden] {
  display: none;
}

.content-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.content-controls select,
.content-controls input,
.content-controls button {
  font: inherit;
  font-size: 0.85rem;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid var(--border, #ddd);
  background: var(--panel, #fff);
  color: inherit;
}

.content-controls input {
  width: 130px;
}

.content-controls button {
  cursor: pointer;
}

.content-table-wrap {
  overflow: auto;
  min-height: 0;
}

.content-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.82rem;
}

.content-table th,
.content-table td {
  border-bottom: 1px solid var(--border, #eee);
  padding: 6px 10px;
  text-align: left;
  white-space: nowrap;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content-table thead th {
  position: sticky;
  top: 0;
  background: var(--panel, #fff);
  font-weight: 600;
}

.content-chip {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.content-chip.draft {
  background: #fff3cd;
  color: #8a6d00;
}

.content-chip.published {
  background: #d9f2e3;
  color: #15683a;
}

.content-empty {
  font-size: 0.85rem;
  color: var(--muted, #888);
}

@media (max-width: 640px) {
  .content-panel {
    display: none;
  }

  .content-panel.mobile-visible {
    display: flex;
    position: fixed;
    top: 44px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    max-height: none;
    border-radius: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 60px;
    background: var(--panel);
  }
}
