.leaflet-container { font-family: var(--font-body); }
.leaflet-tile-pane { filter: grayscale(1) brightness(.68) contrast(1.2) sepia(.12) hue-rotate(125deg); }
.leaflet-control-zoom { border: 1px solid #39464a !important; box-shadow: none !important; }
.leaflet-control-zoom a { background: #172124; color: #c0cbc8; border-color: #39464a; }
.leaflet-control-zoom a:hover { background: #253235; }
.leaflet-control-attribution { background: rgba(11,16,18,.75) !important; color: #617072 !important; font-size: 8px !important; }
.leaflet-control-attribution a { color: #819091 !important; }
.quake-marker { background: transparent; border: 0; }
.quake-pin { display: block; border-radius: 50%; box-sizing: border-box; position: relative; background: rgba(200,243,106,.14); border: 1px solid rgba(200,243,106,.8); box-shadow: inset 0 0 0 3px rgba(200,243,106,.14), 0 0 12px rgba(200,243,106,.08); }
.quake-pin::after { content: ""; position: absolute; width: 3px; height: 3px; background: var(--lime); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.quake-pin.strong { background: rgba(243,185,95,.14); border-color: rgba(243,185,95,.85); box-shadow: inset 0 0 0 3px rgba(243,185,95,.14), 0 0 12px rgba(243,185,95,.1); }
.quake-pin.strong::after { background: var(--amber); }
.quake-pin.major { background: rgba(241,122,98,.15); border-color: rgba(241,122,98,.9); box-shadow: inset 0 0 0 3px rgba(241,122,98,.14), 0 0 12px rgba(241,122,98,.12); }
.quake-pin.major::after { background: var(--coral); }
.log-section { padding: 38px 0 30px; }
.section-title { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.section-title .eyebrow { margin-bottom: 6px; }
.section-title h2 { font-size: 24px; letter-spacing: -.7px; }
.log-actions { display: flex; gap: 17px; align-items: center; }
#log-count { font-size: 11px; color: var(--faint); }
.table-wrap { border: 1px solid var(--line-soft); border-radius: 7px; background: var(--surface); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; }
th { padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 8px; letter-spacing: 1px; color: var(--faint); text-transform: uppercase; white-space: nowrap; font-weight: 500; }
th button { border: 0; background: transparent; padding: 0; color: inherit; text-transform: inherit; font: inherit; letter-spacing: inherit; }
td { padding: 13px 18px; border-bottom: 1px solid var(--line-soft); color: #b7c0bd; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,.012); }
td.table-place { max-width: 280px; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.table-mag { color: var(--lime); font-family: var(--font-display); font-size: 12px; }
.status-tag { font-size: 8px; border: 1px solid #34432c; color: #a5c471; padding: 3px 6px; border-radius: 3px; text-transform: uppercase; letter-spacing: .6px; }
.row-details { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 4px; padding: 4px 8px; }
.row-details:hover { border-color: var(--lime-dim); color: var(--lime); }
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state p { color: var(--muted); margin: 6px 0 20px; }
footer { border-top: 1px solid var(--line-soft); padding: 20px 0 25px; display: flex; justify-content: space-between; gap: 20px; color: var(--faint); font-size: 10px; }
.brand-footer { color: #a5b0ac; font-family: var(--font-display); letter-spacing: 1px; margin-right: 8px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--lime); }
.event-dialog { width: min(480px, calc(100% - 30px)); max-height: 85vh; padding: 30px; border: 1px solid #344146; background: var(--surface); color: var(--text); border-radius: 9px; box-shadow: 0 30px 100px #0008; }
.event-dialog::backdrop { background: rgba(3,7,8,.78); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; right: 13px; top: 11px; background: transparent; border: 0; color: var(--muted); font-size: 24px; line-height: 1; }
.dialog-close:hover { color: var(--text); }
.dialog-mag { width: 66px; height: 66px; font-size: 21px; margin-bottom: 22px; }
.dialog-place { font-size: 24px; line-height: 1.2; letter-spacing: -.8px; padding-right: 10px; }
.dialog-time { color: var(--muted); font-size: 11px; margin: 10px 0 22px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.detail { padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail small { display: block; color: var(--faint); font-size: 8px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 5px; }
.detail strong { font-weight: 500; font-size: 12px; }
.dialog-link { display: inline-block; color: var(--lime); font-size: 11px; margin-top: 20px; }
.about-content h2 { font-size: 27px; line-height: 1.15; margin-bottom: 18px; }
.about-content > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.about-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.about-row span:first-child { color: var(--lime); }
.about-content .about-note { font-size: 10px; margin-top: 20px; color: var(--faint); }
@media (max-width: 1100px) {
  .site-header { gap: 35px; }
  .workspace { grid-template-columns: minmax(0,1fr) 310px; }
  .map-key { display: none; }
  .map-search { max-width: 135px; }
  .segmented button { padding: 5px 8px; }
  .event-item { padding: 15px 13px; gap: 9px; }
}
@media (max-width: 850px) {
  .site-header { padding: 0 22px; gap: 30px; }
  .header-status > span:not(.live-dot) { display: none; }
  #utc-clock { display: none; }
  main { padding: 0 22px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .workspace { grid-template-columns: 1fr; }
  .map-panel { border-right: 0; }
  .map-wrap { min-height: 440px; }
  .events-panel { border-top: 1px solid var(--line-soft); }
  .event-list { max-height: 355px; }
  .map-key { display: flex; }
  .insights-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-header { height: 62px; padding: 0 16px; gap: 15px; }
  .brand { font-size: 15px; gap: 7px; letter-spacing: 1.3px; }
  .brand-mark { transform: scale(.8); }
  nav { gap: 17px; margin-left: auto; }
  .nav-link { font-size: 11px; }
  .nav-link[data-view="about"] { display: none; }
  .header-status { margin-left: 0; }
  main { padding: 0 14px; }
  .page-heading { padding: 27px 0 22px; align-items: flex-start; }
  h1 { font-size: 32px; letter-spacing: -1.4px; }
  .subtitle { font-size: 12px; max-width: 260px; }
  .eyebrow { font-size: 8px; }
  .refresh-wrap { padding-top: 23px; }
  #updated-label { display: none; }
  .refresh-wrap .button { width: 36px; padding: 0; font-size: 0; gap: 0; }
  .refresh-icon { font-size: 19px; }
  .stats-grid { gap: 9px; }
  .stat-card { padding: 14px; min-height: 129px; }
  .stat-top { font-size: 8px; letter-spacing: .9px; }
  .stat-value { font-size: 30px; }
  .stat-foot { font-size: 9px; }
  .stat-foot .muted { display: none; }
  .map-heading { padding: 15px; }
  .map-key { display: none; }
  .filter-bar { flex-wrap: wrap; padding: 9px; gap: 7px; }
  .map-search { order: 3; max-width: none; width: 100%; }
  .map-search input { height: 29px; }
  .segmented { flex: 1; }
  .segmented button { flex: 1; padding: 5px 8px; }
  .map-wrap { min-height: 390px; }
  .insights-grid { gap: 10px; margin-top: 10px; }
  .section-title { align-items: flex-start; }
  #log-count { display: none; }
  .section-title h2 { font-size: 21px; }
  .log-actions .button { font-size: 10px; }
  th, td { padding: 12px 14px; }
  footer { flex-direction: column; gap: 9px; line-height: 1.6; }
  .event-dialog { padding: 25px 20px; }
}


/* kc-contrast-resolver: one ink block, measured fg vs painted ground (S57); rewritten in place, never stacked */
/* k=light|*|span#stat-period */ @media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) span#stat-period { color: rgb(255, 255, 255) !important; } }
/* k=light|*|div.stat-foot */ @media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) div.stat-foot { color: rgb(255, 255, 255) !important; } }
/* k=light|*|div#stat-shallow.stat-foot */ @media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) div#stat-shallow.stat-foot { color: rgb(255, 255, 255) !important; } }
/* k=light|*|main#main p */ @media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) main#main p { color: rgb(255, 255, 255) !important; } }
/* k=light|*|p#feed-subtitle */ @media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) p#feed-subtitle { color: rgb(255, 255, 255) !important; } }
/* k=light|*|button#strongest-tab */ @media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) button#strongest-tab { color: rgb(255, 255, 255) !important; } }
/* k=light|*|span#distribution-total.small-label */ @media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) span#distribution-total.small-label { color: rgb(255, 255, 255) !important; } }
/* k=light|*|section#activity-log.log-section button */ @media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) section#activity-log.log-section button { color: rgb(255, 255, 255) !important; } }
/* k=light|*|section#activity-log.log-section th */ @media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) section#activity-log.log-section th { color: rgb(255, 255, 255) !important; } }
/* k=light|*|span.sr-only */ @media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) span.sr-only { color: rgb(255, 255, 255) !important; } }
/* k=light|*|span#updated-label */ @media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) span#updated-label { color: rgb(255, 255, 255) !important; } }
/* k=light|*|main#main span */ @media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) main#main span { color: rgb(255, 255, 255) !important; } }
/* kc-contrast-resolver end */
