/* Content-first event inspection; the existing Fenix logo stays unchanged. */
body .chart-toolbar { grid-template-columns: repeat(5, minmax(0, 1fr)); }
body .chart-toolbar #btn-setup-trail[aria-pressed=true] { color: #f1a472; background: #dc7d4612; }
body .dashboard .dash-checklist { margin-top: 10px; }
body .dashboard :is(.dash-checklist,.dash-setup-top) > summary {
  font-size: 15px; font-weight: 400; color: #c8c9d1; padding: 10px 0; cursor: pointer;
}
body .dashboard .dash-secondary { margin-top: 24px; padding-top: 12px; border-top: 1px solid #444653; }
body .dashboard .dash-reference-context { margin-top: 12px; font-size: 13px; color: #b2b2bd; }
body .dashboard .dash-reference-context[hidden] { display: none; }
body .dashboard .dash-reference-context > summary { cursor: pointer; padding: 8px 0; }
.dash-reference-context dl { margin: 6px 0; }
.reference-context-row { border-bottom: 1px solid #444653; padding: 8px 0; overflow-wrap: anywhere; }
.reference-context-row dt { color: #c8c9d1; }
.reference-context-row dd { margin: 4px 0 0; }
.setup-cards { align-items: start; }
.setup-card { min-width: 0; overflow-wrap: anywhere; }
.setup-card .setup-description-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.setup-card .setup-description-details { margin: 0 0 12px; font-size: 12px; color: #b2b2bd; }
.setup-card .setup-description-details > summary { cursor: pointer; padding: 4px 0; }
.setup-card .setup-description-details > p { margin-top: 8px; max-height: 240px; overflow: auto; white-space: pre-wrap; }
body #notifications-dialog { width: min(760px, calc(100vw - 32px)); padding: 24px 28px; box-sizing: border-box; font-size: 17px; line-height: 1.45; }
body #notifications-dialog:not(.notice-detail-view) { width: min(550px, calc(100vw - 24px)); }
#notifications-dialog .shell-dialog-head { margin-bottom: 18px; gap: 16px; }
#notifications-dialog .shell-dialog-head h2 { font-size: 28px; margin: 0; }
#notification-detail-title { font-size: 23px; line-height: 1.3; text-transform: none; margin: 0 0 14px; }
#notification-detail-meta { font-size: 17px; line-height: 1.5; white-space: pre-line; margin: 0 0 12px; }
#notification-detail-status { font-size: 16px; line-height: 1.5; margin: 12px 0; color: #bfc2ce; }
#notification-detail-conditions { margin: 16px 0 20px; }
#notification-detail-conditions li { font-size: 17px; padding: 12px 0; }
#notification-detail-conditions .notice-reference { font-size: 16px; }
body #notification-chart { display: block; min-height: 48px; padding: 12px 20px; font-size: 17px; margin: 16px 0 22px; }
body #notification-chart[hidden] { display: none; }
#notification-tech { margin-top: 20px; padding-top: 12px; border-top: 1px solid #444653; }
#notification-tech > summary { min-height: 32px; font-size: 14px; color: #aeb1c0; cursor: pointer; }
#notification-detail-recorded, #notification-detail-version { font-size: 13px; }
#notifications-dialog .inbox-footer { margin-top: 20px; padding-top: 18px; border-top: 1px solid #444653; }
#notifications-dialog.notice-detail-view .inbox-footer { margin-top: 0; padding-top: 0; border-top: 0; }
#notifications-dialog .inbox-footer button { font-size: 15px; min-height: 44px; }
body #notifications-dialog #inbox-settings { margin: 14px 0 0; min-height: 44px; font-size: 15px; border-bottom: 0; color: #b2b2bd; }
#notification-inbox-status:empty { display: none; }
#notification-preview-hint { font-size: 14px; margin: 0; }
#notification-list { margin-top: 8px; }
#notification-list .notification-open strong { font-size: 17px; }
#notification-list .notification-open small { font-size: 13px; }
.notification-list .notice-row { display: flex; align-items: center; gap: 18px; }
.notice-row .notification-open { flex: 1; min-width: 0; }
.notice-row .notice-chart { flex: 0 0 auto; min-height: 44px; font-size: 15px; }
.notice-chart:disabled { opacity: .5; cursor: default; }
#meld-list .notification-open { font-size: 18px; line-height: 1.4; }
#meld-list .notification-open small { font-size: 15px; }
.meld-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #444653; }
.meld-footer button { min-height: 44px; }
body .meldungen-area { grid-template-rows: minmax(0, 1fr); overflow: hidden; }
body .meldungen-panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0,1fr) auto; height: 100%; min-height: 0; box-sizing: border-box; }
body .meld-list { min-height: 0; max-height: none; }
body .meld-detail:not([hidden]) { grid-row: 5; max-height: 220px; }
@media (max-width: 680px) {
  body .topbar .brand { gap: 8px; }
  body .topbar .brand .logo { width: 72px; height: 38px; }
  body .topbar .edge-wordmark { width: 120px; height: auto; margin-bottom: 3px; }
  body .topbar .account-tools { gap: 2px; }
  body .topbar .account-tools :is(.icon-btn,.profile-button) { min-width: 40px; width: 40px; padding: 8px; }
  body #notifications-dialog { width: calc(100vw - 16px); padding: 18px; max-height: 92dvh; }
  #notification-detail-title { font-size: 22px; }
  #notification-detail-meta { font-size: 16px; }
  #notification-detail-conditions li { font-size: 17px; }
  body #notification-chart { width: 100%; }
  #meld-list .notice-row { flex-wrap: wrap; gap: 4px; }
  #meld-list .notice-row .notification-open { flex-basis: 100%; }
  #meld-list .notice-chart { margin-left: auto; font-size: 14px; }
  .meldungen-panel h2 { margin: 4px 0; }
  .meld-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meld-filters :is(select,button) { width: 100%; min-width: 0; }
  .meld-footer { margin-top: 0; padding-top: 10px; gap: 6px; }
  .meld-footer #meld-settings { background: transparent; border-color: transparent; padding-left: 0; font-size: 13px; }
}

.setup-trail-control { display: flex; align-items: stretch; min-width: 0; }
body .chart-toolbar .setup-trail-control #btn-setup-trail { flex: 1 1 auto; min-width: 0; padding-inline: 1px; white-space: normal; line-height: 1; }
#setup-trail-options { min-width: 25px; }
#setup-trail-options summary {
  display: grid; place-items: center; min-height: 48px; padding-inline: 5px;
  border-radius: 6px; cursor: pointer; list-style: none;
}
#setup-trail-options summary::-webkit-details-marker { display: none; }
#setup-trail-options[open] summary { color: #f1a472; background: #dc7d4612; }
.setup-trail-options-panel {
  position: absolute; z-index: 85; top: 100%; right: 8px; width: min(280px, calc(100vw - 16px));
  padding: 8px 12px; border: 1px solid #626575; border-radius: 10px; background: #292c38; box-shadow: 0 8px 24px #0008;
}
.setup-trail-options-panel label { display: flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.setup-attempt-dialog { overflow-wrap: anywhere; }
