/*
 * Spokojna, ciemna paleta bez poświat i gradientów.
 * Kategorie rozróżnia kolor i kształt znacznika (koło, pierścień, kwadrat, romb),
 * ten sam na mapie, w filtrach i na kartach.
 */
:root {
  --bg-primary: #121417;
  --bg-secondary: #191c20;
  --bg-tertiary: #262a30;
  --bg-card: #191c20;
  --bg-card-hover: #1e2227;
  --bg-notice: #1d2126;

  --text-main: #e7e9ec;
  --text-muted: #a9b0b8;
  --text-dim: #8d959f;

  --border-color: #2e333a;
  --border-strong: #454c55;
  --border-focus: #9cc2ea;

  --accent: #8fb4dc;          /* linki, zaznaczenie, suwak */
  --notice-rule: #b9c6d4;     /* pionowa linia bloku komunikatu */

  --color-attack: #d4655c;
  --color-foiled: #d98c4c;
  --color-threat: #9d8bd2;
  --color-weapon: #cdb04f;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 4px;
  --radius-md: 6px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Header */
.app-header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 20px;
  flex-shrink: 0;
  z-index: 100;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Wordmark: obrys liter z Inter Bold (OFL), kropka nad "j" to dioda czujki */
.wordmark {
  height: 1.8rem;
  width: auto;
  flex: none;
  overflow: visible;
}

.wordmark-led {
  fill: var(--color-attack);
}

.wordmark-led-ring {
  fill: none;
  stroke: var(--color-attack);
  stroke-width: 70;
  transform-box: fill-box;
  transform-origin: center;
  animation: led-pulse 2.4s ease-out infinite;
}

@keyframes led-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.9); opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark-led-ring { animation: none; opacity: 0; }
}

.brand-tagline {
  font-weight: 400;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--text-main);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background-color: #30353c;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-main);
}
.btn-ghost:hover {
  background-color: var(--bg-tertiary);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.8rem;
}

/* Komunikaty służb: domyślnie jedna linia (wystawca, data, tytuł) i numer 112.
   Kliknięcie rozwija treść, źródło i archiwum (app.js). */
.notice-banner {
  margin-top: 10px;
  background-color: var(--bg-notice);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--notice-rule);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-main);
  cursor: pointer;
}

.notice-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.notice-main {
  padding: 7px 80px 7px 14px;
  min-width: 0;
  position: relative;
}

.notice-latest {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.notice-banner.expanded .notice-latest {
  display: block;
}

.notice-meta {
  display: flex;
  flex-shrink: 0;
  gap: 0 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.notice-issuer {
  font-weight: 600;
  color: var(--text-main);
}

.notice-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  min-width: 0;
}

.notice-banner:not(.expanded) .notice-latest .notice-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-banner:not(.expanded) .notice-summary,
.notice-banner:not(.expanded) .notice-source,
.notice-banner:not(.expanded) .notice-archive {
  display: none;
}

/* Rozwinięty: jedna kolumna z jednym przewijaniem, numer 112 pod spodem */
.notice-banner.expanded .notice-content {
  grid-template-columns: minmax(0, 1fr);
}

.notice-banner.expanded .notice-main {
  max-height: 50dvh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.notice-banner.expanded .notice-112 {
  border-left: none;
  border-top: 1px solid var(--border-color);
}

.notice-summary {
  margin-top: 2px;
  color: #cfd4da;
  max-width: 90ch;
}

.notice-source {
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.notice-112 {
  padding: 7px 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-left: 1px solid var(--border-color);
  white-space: nowrap;
}

.notice-112 strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Bez komunikatów (sam numer 112) blok zajmuje całą szerokość */
.notice-content > .notice-112:only-child {
  grid-column: 1 / -1;
  border-left: none;
}

.notice-archive {
  margin-top: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 6px;
}

.notice-archive summary {
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.notice-archive summary:hover {
  color: var(--text-main);
}

.notice-archive ul {
  list-style: none;
  margin-top: 6px;
}

.notice-archive li {
  padding: 8px 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
}
.notice-archive li:first-child {
  border-top: none;
  padding-top: 2px;
}

.notice-archive .notice-title {
  font-size: 0.85rem;
}

.notice-toggle {
  position: absolute;
  top: 8px;
  right: 14px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.notice-toggle::after {
  content: "Rozwiń";
}
.notice-banner.expanded .notice-toggle::after {
  content: "Zwiń";
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Znaczniki kategorii: wspólny kolor i kształt */
.chip-attack, .badge-attack, .pin-attack { --cat: var(--color-attack); }
.chip-foiled, .badge-foiled, .pin-foiled { --cat: var(--color-foiled); }
.chip-threat, .badge-threat, .pin-threat { --cat: var(--color-threat); }
.chip-weapon, .badge-weapon, .pin-weapon { --cat: var(--color-weapon); }

.chip:where(:not([data-category="all"]))::before,
.card-badge::before {
  content: "";
  box-sizing: border-box;
  display: inline-block;
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  background-color: var(--cat);
  border-radius: 50%;
}

.chip-foiled::before,
.badge-foiled::before {
  background-color: transparent;
  border: 2px solid var(--cat);
}

.chip-threat::before,
.badge-threat::before {
  border-radius: 1px;
}

.chip-weapon::before,
.badge-weapon::before {
  border-radius: 1px;
  transform: rotate(45deg) scale(0.85);
}

/* Main Split Layout */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.mobile-view-toggle {
  display: none;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 2px;
}

.view-toggle-btn {
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 4px 12px;
  font: inherit;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}

.view-toggle-btn.active {
  background-color: var(--text-main);
  color: var(--bg-primary);
  font-weight: 600;
}

.content-split {
  flex: 1;
  display: flex;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

/* Sidebar */
.sidebar {
  width: 380px;
  flex-shrink: 0;
  background-color: var(--bg-primary);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  z-index: 10;
}

.sidebar-header {
  padding: 12px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 100%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 7px 32px 7px 10px;
  color: var(--text-main);
  font: inherit;
  font-size: 0.85rem;
}

.search-box input::placeholder {
  color: var(--text-dim);
}

.search-box input:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 0;
}

.btn-clear {
  position: absolute;
  right: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

/* Filtry unoszą się nad lewym górnym rogiem mapy (lista jest po prawej) */
.map-filters {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 380px - 24px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
}

.map-filters > * {
  pointer-events: auto;
}

.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip,
.time-segments {
  background-color: rgba(25, 28, 32, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--text-muted);
}

.chip.active {
  background-color: var(--text-main);
  color: var(--bg-primary);
  border-color: var(--text-main);
  font-weight: 600;
}

.chip-count {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  font-weight: 600;
}

.chip.active .chip-count {
  color: inherit;
  opacity: 0.7;
}

.time-segments {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 2px;
}

.segment {
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 4px 12px;
  font: inherit;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}

.segment:hover {
  color: var(--text-main);
}

.segment.active {
  background-color: var(--bg-tertiary);
  color: var(--text-main);
  font-weight: 600;
}

.list-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sort-selector {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sort-selector select {
  background-color: var(--bg-primary);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font: inherit;
  font-size: 0.8rem;
}

/* Incidents Feed */
.incidents-container {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.incident-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.incident-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.incident-card.selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}

.card-badge {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-date {
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.card-when {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
}

.card-ago {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
  margin-top: 2px;
}

.card-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-desc {
  font-size: 0.84rem;
  color: #c9ced5;
  line-height: 1.5;
  margin-top: 2px;
}

.card-status {
  font-size: 0.8rem;
  border-left: 2px solid var(--border-strong);
  padding: 1px 8px;
  margin-top: 2px;
  color: var(--text-muted);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.78rem;
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  color: var(--text-dim);
}

.card-source {
  min-width: 0;
}

.card-source-link {
  color: var(--accent);
}

.card-btn-zoom {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
}
.card-btn-zoom:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
}

.empty-state, .loading-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.empty-hint {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 8px;
}

/* Map Section */
.map-section {
  flex: 1;
  position: relative;
  height: 100%;
}

.map-view {
  width: 100%;
  height: 100%;
  background-color: #1b1e22;
}

/* Markery: kolor i kształt jak w filtrach (koło, pierścień, kwadrat, romb) */
.pin-attack { --pin: #d7261e; }
.pin-foiled { --pin: #ec6a00; }
.pin-threat { --pin: #6b3fd4; }
.pin-weapon { --pin: #e3a800; }

.custom-pin-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.custom-pin {
  width: 16px;
  height: 16px;
  background-color: var(--pin);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.custom-pin.pin-foiled {
  background-color: #fff;
  border: 4.5px solid var(--pin);
}

.custom-pin.pin-threat {
  border-radius: 4px;
}

.custom-pin.pin-weapon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  transform: rotate(45deg);
}

.custom-pin-wrapper:hover .custom-pin,
.custom-pin-wrapper.is-selected .custom-pin {
  transform: scale(1.35);
}

.custom-pin-wrapper:hover .custom-pin.pin-weapon,
.custom-pin-wrapper.is-selected .custom-pin.pin-weapon {
  transform: rotate(45deg) scale(1.35);
}

.custom-pin-wrapper.is-selected .custom-pin {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 0 0 5px rgba(255, 255, 255, 0.35), 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Spoza filtrów: zostają na mapie jako kontekst */
.custom-pin-wrapper.is-faded {
  opacity: 0.5;
  filter: grayscale(0.7);
}

.custom-pin-wrapper.is-faded .custom-pin {
  transform: scale(0.75);
  box-shadow: none;
}

.custom-pin-wrapper.is-faded .custom-pin.pin-weapon {
  transform: rotate(45deg) scale(0.75);
}

/* Ostatnie 24 h: pulsujący pierścień jak dioda w logo */
.custom-pin-wrapper.is-recent:not(.is-faded)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--pin);
  pointer-events: none;
  animation: led-pulse 2.4s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .custom-pin-wrapper.is-recent::after { animation: none; opacity: 0; }
}

/* Custom Leaflet Popups */
.leaflet-popup-content-wrapper {
  background-color: var(--bg-secondary) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md) !important;
  padding: 0 !important;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.45 !important;
}

.leaflet-popup-tip {
  background-color: var(--bg-secondary) !important;
}

.leaflet-container a.leaflet-popup-close-button {
  color: var(--text-muted);
}

.popup-card {
  padding: 14px 16px;
  max-width: 300px;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding-right: 12px;
}

.popup-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.popup-city {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.popup-desc {
  font-size: 0.82rem;
  color: #c9ced5;
  margin: 0 0 8px !important;
}

.popup-status {
  font-size: 0.78rem;
  border-left: 2px solid var(--border-strong);
  padding: 1px 8px;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.popup-footer {
  font-size: 0.78rem;
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
}

.leaflet-container a.popup-link {
  color: var(--accent);
}

/* Modal Dialog */
.app-dialog {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 640px;
  width: calc(100vw - 32px);
  margin: auto;
  color: var(--text-main);
}

.app-dialog::backdrop {
  background: rgba(10, 11, 13, 0.75);
}

.dialog-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 20px 24px 24px;
  max-height: 90dvh;
  overflow-y: auto;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.dialog-title {
  font-size: 1.15rem;
  font-weight: 600;
}

.btn-close-dialog {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.btn-close-dialog:hover {
  color: var(--text-main);
}

.error-box {
  border: 1px solid var(--color-attack);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.info-body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cfd4da;
  max-width: 68ch;
}

.info-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 18px 0 4px;
}

.info-body h3:first-child {
  margin-top: 0;
}

.help-numbers {
  list-style: none;
}

.help-numbers li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--border-color);
}

.help-numbers strong {
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Responsive adjustments */
@media (max-width: 900px) {
  body,
  .app-container {
    height: 100dvh;
  }
  .mobile-view-toggle {
    display: inline-flex;
    justify-self: end;
  }
  .main-content {
    min-height: 0;
  }
  /* Filtry jako pasek pod przełącznikiem, wspólny dla mapy i listy */
  .map-filters {
    position: static;
    max-width: none;
    padding: 8px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: start;
    gap: 6px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
  }
  .filter-chips {
    grid-column: 1 / -1;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 100%;
  }
  .chip,
  .time-segments {
    box-shadow: none;
    backdrop-filter: none;
  }
  .chip {
    flex-shrink: 0;
  }
  .content-split {
    position: relative;
    flex: 1;
    min-height: 0;
  }
  .sidebar {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-left: none;
  }
  .sidebar.mobile-hidden {
    display: none;
  }
  .map-section.mobile-hidden {
    display: none;
  }
}

@media (max-width: 600px) {
  .app-header {
    padding: 8px 12px;
  }
  .header-main {
    gap: 8px;
  }
  .brand-tagline {
    display: none;
  }
  .wordmark {
    height: 1.55rem;
  }
  .header-actions .btn {
    padding: 4px 8px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  /* Komunikat: wystawca i data nad tytułem, numer 112 pod spodem */
  .notice-banner {
    margin-top: 8px;
    font-size: 0.8rem;
  }
  .notice-content {
    grid-template-columns: 1fr;
  }
  .notice-main {
    padding: 6px 64px 6px 10px;
  }
  .notice-latest {
    display: block;
  }
  .notice-meta {
    font-size: 0.72rem;
  }
  .notice-title {
    font-size: 0.85rem;
  }
  .notice-toggle {
    top: 6px;
    right: 10px;
    font-size: 0.72rem;
  }
  .notice-112 {
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding: 5px 10px;
    font-size: 0.75rem;
    white-space: normal;
  }
  .notice-112 strong {
    font-size: 0.95rem;
  }
  .notice-content > .notice-112:only-child {
    border-top: none;
  }

  .chip {
    padding: 5px 10px;
    font-size: 0.78rem;
  }
  .time-segments {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .segment {
    flex-shrink: 0;
  }
  .segment {
    padding: 3px 10px;
    font-size: 0.76rem;
  }

  .view-toggle-btn {
    padding: 3px 10px;
    font-size: 0.76rem;
  }

  .sidebar-header {
    padding: 8px 12px;
    gap: 8px;
  }
  .list-meta {
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .sort-selector label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .help-numbers li {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
