html body { background: #f7f9f8; }
html h1 { font-size: 30px; line-height: 1.25; }
html .panel { border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 16px 0; }
html .card { box-shadow: none; border-radius: 8px; }
html .link, html button, html input, html textarea, html .tabs button { border-radius: 6px; }
[hidden] { display: none !important; }
select { font: inherit; color: inherit; background: #fff; border: 1px solid #d9e3df; border-radius: 6px; min-height: 42px; padding: 8px 10px; width: 100%; }
button:disabled { opacity: .55; cursor: wait; }
.activity-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 24px 0 12px; }
.activity-toolbar > div:first-child { flex: 1 1 200px; }
.activity-toolbar > div:nth-child(2) { flex: 0 1 180px; }
.activity-table-wrap { max-width: 100%; overflow: auto; border-bottom: 1px solid #d9e3df; }
.activity-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 14px; }
.activity-table th { color: #64736f; font-weight: 600; background: #edf2ef; white-space: nowrap; }
.activity-table th, .activity-table td { padding: 14px 12px; border-top: 1px solid #d9e3df; vertical-align: middle; }
.activity-table td { min-width: 100px; max-width: 320px; overflow-wrap: anywhere; }
.activity-table small { display: block; margin-top: 6px; color: #8b5421; }
.activity-name { display: flex; gap: 12px; align-items: center; min-width: 180px; }
.activity-name img { width: 44px; height: 56px; object-fit: cover; border-radius: 4px; flex: none; }
.activity-state { display: inline-block; font-size: 12px; border-radius: 4px; padding: 4px 8px; white-space: nowrap; background: #e9edef; color: #48525b; }
.state-published { color: #145c3c; background: #e1f2e7; }
.state-closed { color: #854b1d; background: #fbecd9; }
.state-archived { color: #64676e; background: #e8e8ec; }
.selected-row { background: #ecf5f2; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.row-actions button { font: inherit; cursor: pointer; min-height: 36px; padding: 5px 8px; border: 1px solid #d4dfda; background: #fff; color: #0b5d56; white-space: nowrap; }
.row-actions .primary-button { background: #0b5d56; color: white; }
.activity-editor { border-top: 2px solid #0b5d56; margin-top: 32px; padding-top: 24px; display: grid; gap: 20px; }
.activity-editor h2, #activityRegistrations h2 { font-size: 22px; overflow-wrap: anywhere; }
.activity-editor .card-head > div { min-width: 0; }
.activity-url { color: #0b5d56; font-size: 14px; overflow-wrap: anywhere; }
.activity-editor .actions { position: sticky; bottom: 0; background: #f7f9f8; padding: 14px 0; border-top: 1px solid #d9e3df; z-index: 2; }
.activity-editor input, .activity-editor textarea { min-width: 0; }
.activity-editor .poster-admin img { max-height: 240px; object-fit: contain; border-radius: 6px; }
.activity-editor .poster-admin > div { display: grid; gap: 10px; }
.activity-editor .poster-admin:has(img[hidden]) { grid-template-columns: 1fr; }
.activity-editor .agenda-row { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) auto; }
#addAgendaItem { margin-top: 10px; }
#activityRegistrations { border-top: 2px solid #d9e3df; padding-top: 24px; margin-top: 28px; }
.empty-state { text-align: center; color: #64736f; }
dialog { border: 1px solid #d9e3df; border-radius: 8px; padding: 24px; width: min(480px, calc(100% - 32px)); color: #142421; }
dialog::backdrop { background: rgba(20,36,33,.35); }
dialog h2 { font-size: 22px; }
dialog .row-actions { justify-content: flex-end; }
@media (max-width: 600px) {
  #activityManager > .activity-table-wrap .activity-table thead { display: none; }
  #activityRows tr { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #d9e3df; padding: 12px 0; }
  #activityRows td { border: 0; max-width: none; min-width: 0; }
  #activityRows td:first-child, #activityRows td:last-child { grid-column: 1 / -1; }
  #activityRows td:nth-child(4)::before { content: '报名人数：'; color: #64736f; }
  .activity-editor .agenda-row { grid-template-columns: minmax(0,1fr) auto; }
  .activity-editor .agenda-row input { grid-column: 1; }
  .activity-editor .agenda-row button { grid-column: 2; grid-row: 1 / 3; }
  .activity-editor .card-head, #activityRegistrations .card-head { flex-direction: column; }
  .activity-toolbar > div:nth-child(2) { flex: 1 1 150px; }
  .activity-table th, .activity-table td { padding: 10px 8px; }
  .activity-editor .actions { align-items: start; }
  .activity-editor .actions button { flex: none; }
}
