#listView .agenda-layout { min-width: 240px; }
.agenda-mobile-header { display: none; }
#listView .agenda-search { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; padding: 0; background: none; border: 0; box-shadow: none; }
#listView .agenda-search label { display: grid; gap: 6px; min-width: 0; color: #647184; font-size: 13px; font-weight: 700; }
#listView .agenda-search input { width: 100%; min-width: 0; height: 44px; padding: 8px 10px; border: 1px solid #cdd7e4; border-radius: 6px; font: inherit; font-size: 16px; color: #172033; background: white; }
#listView .agenda-search-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: #647184; }
#listView #agendaClear { min-height: 36px; width: auto; padding: 6px 12px; font-size: 13px; white-space: nowrap; border-radius: 6px; }
#listView #scheduleAgenda { max-width: 100%; min-width: 0; }
#listView.agenda-mode .table-wrap, #listView:not(.agenda-mode) #scheduleAgenda { display: none !important; }
#listView.agenda-mode .schedule-edit-tools { display: none !important; }
#listView.agenda-mode #listCount { display: none !important; }
#listView .agenda-day { margin: 0 0 28px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
#listView .agenda-day-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 6px 0; }
#listView .agenda-day-head h3 { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.3; color: #172033; letter-spacing: 0; }
#listView .agenda-day-head small { display: block; margin-bottom: 4px; font-size: 13px; color: #647184; }
#listView .agenda-day-count { flex: 0 0 auto; padding: 5px 12px; border-radius: 6px; background: #fce7f2; color: #a72969; font-size: 14px; font-weight: 700; }
#listView .agenda-entries { display: grid; gap: 10px; }
#listView .agenda-entry { position: relative; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr); gap: 18px; align-items: start; padding: 16px; min-width: 0; background: #fff; border: 1px solid #dbe1e9; border-left: 4px solid var(--agenda-color, #dbe1e9); border-radius: 8px; box-shadow: none; }
#listView .agenda-place, #listView .agenda-work { min-width: 0; }
#listView .agenda-place { display: grid; gap: 6px; }
#listView .agenda-entry strong { display: inline; color: #172033; font-size: 16px; font-weight: 750; line-height: 1.5; letter-spacing: 0; }
#listView .agenda-entry span, #listView .agenda-entry strong { white-space: normal; overflow-wrap: anywhere; word-break: normal; height: auto; max-height: none; overflow: visible; text-overflow: clip; }
#listView .agenda-entry .agenda-corporation, #listView .agenda-people { color: #647184; font-size: 14px; font-weight: 600; line-height: 1.55; }
#listView .agenda-people { margin-top: 6px; }
#listView .agenda-note { margin: 8px 0 0; color: #647184; font-size: 13px; line-height: 1.5; }
#listView .agenda-open { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; box-shadow: none; min-width: 0; min-height: 0; cursor: pointer; }
#listView .agenda-open:hover { background: rgb(21 95 116 / 4%); transform: none; }
#listView .agenda-open:focus-visible { outline: 3px solid #16748a; outline-offset: 2px; }
#listView .agenda-empty-day, #listView .agenda-empty { margin: 0; padding: 16px 0; color: #647184; font-size: 14px; }
@media (max-width: 820px) {
  #adminShell:has(#listView.active) .agenda-mobile-header { display: flex; align-items: center; position: fixed; inset: 0 0 auto; height: calc(env(safe-area-inset-top) + 72px); padding: env(safe-area-inset-top) 16px 0 76px; background: #fff; border-bottom: 1px solid #dbe1e9; color: #172033; font-size: 16px; font-weight: 750; z-index: 65; }
  #adminShell:has(#listView.active) #mobileMenuBtn { top: calc(env(safe-area-inset-top) + 14px); width: 44px; min-width: 44px; height: 44px; min-height: 44px; box-shadow: none; }
  body.editor-open .agenda-mobile-header { display: none !important; }
  #listView { scroll-margin-top: calc(env(safe-area-inset-top) + 84px); }
  #adminShell:has(#listView.active.agenda-mode) .quick-days,
  #adminShell:has(#listView.active.agenda-mode) > main > .metric-grid { display: none !important; }
  #listView .agenda-search { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #listView .agenda-layout { min-width: 0; }
  #listView .agenda-entry { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.45fr); gap: 12px; padding: 13px 11px; }
  #listView .agenda-entry strong { font-size: 15px; }
  #listView .agenda-entry .agenda-corporation, #listView .agenda-people { font-size: 13px; }
  #listView .agenda-day-head h3 { font-size: 23px; }
  #listView.agenda-mode .table-toolbar { padding: 0 0 14px !important; }
  #listView.agenda-mode .table-toolbar > h2 { display: none !important; }
  #listView.agenda-mode .table-toolbar > .segmented-control:not(.agenda-layout) { display: none !important; }
  #listView.agenda-mode .toolbar-month-control { grid-row: 2; }
  #listView.agenda-mode .schedule-create-actions { grid-row: 3; }
}
@media print {
  #listView .agenda-search, #listView .agenda-layout, #listView .agenda-open { display: none !important; }
  #listView .agenda-entry { break-inside: avoid; }
  #listView .agenda-day-head { break-after: avoid; }
}
