.ljms-monitor,
.ljms-monitor * {
  box-sizing: border-box;
}

.ljms-monitor {
  width: 100%;
  max-width: var(--ljms-max-width, 1780px);
  margin: 0 auto;
  font-family: var(--ljms-font, Arial, Helvetica, sans-serif);
  color: var(--ljms-title-color, #000);
}

.ljms-main-title {
  margin: 0 0 34px;
  font-size: var(--ljms-title-size, 46px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.ljms-grid {
  display: grid;
  grid-template-columns: repeat(var(--ljms-columns, 2), minmax(0, 1fr));
  gap: var(--ljms-gap, 72px);
  align-items: stretch;
}

.ljms-columns-1 { --ljms-columns: 1; }
.ljms-columns-2 { --ljms-columns: 2; }
.ljms-mode-weather .ljms-grid,
.ljms-mode-quake .ljms-grid { grid-template-columns: minmax(0, 1fr); }

.ljms-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.ljms-section-title {
  margin: 0 0 4px;
  font-size: var(--ljms-section-title-size, 52px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ljms-title-color, #000);
}

.ljms-card {
  position: relative;
  min-height: var(--ljms-card-min-height, 410px);
  height: 100%;
  padding: 18px 30px 24px;
  background: var(--ljms-bg, #fff);
  border: var(--ljms-border-width, 2px) solid var(--ljms-border-color, #111);
  border-radius: var(--ljms-border-radius, 0);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.ljms-card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.ljms-card-subtitle {
  font-size: var(--ljms-subtitle-size, 26px);
  font-style: italic;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ljms-title-color, #000);
  margin: 0 0 24px;
}

.ljms-alert-flag {
  position: relative;
  display: grid;
  grid-template-columns: auto 104px;
  align-items: stretch;
  gap: 16px;
  margin: -34px -28px 0 0;
  font-size: var(--ljms-subtitle-size, 26px);
  font-weight: 700;
  font-style: italic;
  color: var(--ljms-title-color, #000);
  white-space: nowrap;
}

.ljms-alert-flag i {
  display: block;
  width: 104px;
  height: 98px;
  background: var(--ljms-level-red, #ff1010);
}

.ljms-alert-yellow i { background: var(--ljms-level-yellow, #efff00); }
.ljms-alert-orange i { background: var(--ljms-level-orange, #ffb300); }
.ljms-alert-red i { background: var(--ljms-level-red, #ff1010); }

.ljms-weather-icon,
.ljms-quake-icon {
  width: var(--ljms-icon-size, 86px);
  height: var(--ljms-icon-size, 86px);
}

.ljms-weather-icon {
  color: var(--ljms-weather-icon, #315f6e);
  margin: 4px 0 20px;
}

.ljms-weather-icon svg,
.ljms-quake-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ljms-summary {
  max-width: 94%;
  color: var(--ljms-text-color, #555);
  font-size: var(--ljms-text-size, 28px);
  line-height: 1.35;
  font-weight: 300;
}

.ljms-summary p {
  margin: 0 0 26px;
}

.ljms-meta-line {
  margin-top: 10px;
  color: var(--ljms-muted-color, #666);
  font-size: var(--ljms-small-size, 20px);
}

.ljms-source {
  margin-top: auto;
  align-self: flex-end;
  padding-top: 20px;
  color: var(--ljms-title-color, #000);
  font-size: var(--ljms-small-size, 20px);
}

.ljms-bottom-bar {
  min-height: 34px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 4px 18px;
  background: var(--ljms-bottom-bg, #000);
  color: var(--ljms-bottom-text, #fff);
  border-radius: 0 0 var(--ljms-border-radius, 0) var(--ljms-border-radius, 0);
}

.ljms-bottom-single {
  grid-template-columns: 1fr;
  justify-items: start;
}

.ljms-bottom-bar a,
.ljms-bottom-bar span {
  color: var(--ljms-bottom-text, #fff);
  font-size: var(--ljms-small-size, 20px);
  line-height: 1.2;
  text-decoration: none;
}

.ljms-bottom-bar a:hover {
  text-decoration: underline;
}

.ljms-quake-status {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 4px 0 12px;
  color: var(--ljms-title-color, #000);
  font-size: var(--ljms-small-size, 20px);
}

.ljms-quake-status-vigilance,
.ljms-quake-status-danger,
.ljms-quake-status-major {
  color: var(--ljms-quake-danger, #ff1010);
}

.ljms-quake-status-normal .ljms-quake-icon,
.ljms-quake-status-info .ljms-quake-icon {
  color: var(--ljms-quake-icon, #000);
}

.ljms-quake-status-vigilance .ljms-quake-icon,
.ljms-quake-status-danger .ljms-quake-icon,
.ljms-quake-status-major .ljms-quake-icon {
  color: var(--ljms-quake-danger, #ff1010);
}

.ljms-quake-list {
  margin: 0 4px 46px;
}

.ljms-quake-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  min-height: 78px;
  padding: 8px 24px;
  color: #000;
}

.ljms-row-normal { background: var(--ljms-level-yellow, #efff00); }
.ljms-row-info { background: var(--ljms-level-yellow, #efff00); }
.ljms-row-vigilance { background: var(--ljms-level-orange, #ffb300); }
.ljms-row-danger { background: var(--ljms-level-red, #ff1010); color: #fff; }
.ljms-row-major { background: var(--ljms-level-major, #680000); color: #fff; }

.ljms-quake-mag {
  font-size: calc(var(--ljms-text-size, 28px) + 6px);
  line-height: 1;
  font-weight: 500;
}

.ljms-quake-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--ljms-small-size, 20px);
  line-height: 1.1;
}

.ljms-quake-details strong {
  font-weight: 800;
}

.ljms-quake-details span {
  font-weight: 700;
}

.ljms-empty {
  font-size: var(--ljms-text-size, 28px);
  color: var(--ljms-text-color, #555);
}

@media (max-width: 1100px) {
  .ljms-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .ljms-main-title { font-size: clamp(34px, 6vw, var(--ljms-title-size, 46px)); }
  .ljms-section-title { font-size: clamp(34px, 7vw, var(--ljms-section-title-size, 52px)); }
}

@media (max-width: 680px) {
  .ljms-card {
    min-height: 0;
    padding: 16px 18px 52px;
  }
  .ljms-card-subtitle { font-size: 20px; }
  .ljms-summary { font-size: 20px; max-width: 100%; }
  .ljms-weather-panel .ljms-summary { gap: 12px; }
  .ljms-weather-panel .ljms-summary p { line-height: 1.22; }
  .ljms-alert-flag {
    grid-template-columns: 1fr 58px;
    font-size: 18px;
    margin: -16px -16px 0 0;
  }
  .ljms-alert-flag i { width: 58px; height: 58px; }
  .ljms-bottom-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
  }
  .ljms-bottom-bar a,
  .ljms-bottom-bar span,
  .ljms-source,
  .ljms-quake-details { font-size: 15px; }
  .ljms-quake-row {
    grid-template-columns: 62px 1fr;
    min-height: 66px;
    padding: 8px 12px;
  }
  .ljms-quake-mag { font-size: 28px; }
}

/* V1.1 compact AGERCA mockup refinements */
.ljms-weather-panel .ljms-card {
  min-height: var(--ljms-card-min-height, 408px);
  padding-bottom: 42px;
}

.ljms-weather-panel .ljms-summary {
  max-width: 94%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  min-height: 0;
  max-height: 235px;
}

.ljms-weather-panel .ljms-summary p {
  margin: 0;
  line-height: 1.28;
  max-width: 100%;
  word-break: break-word;
}

.ljms-row-latest {
  background: var(--ljms-level-orange, #ffb300) !important;
  color: #000 !important;
}

.ljms-quake-row .ljms-quake-details span {
  display: inline-flex;
  align-items: center;
}


/* V1.2 animated weather icons */
.ljms-weather-icon {
  transform-origin: center center;
}
.ljms-weather-icon.ljms-icon-sun,
.ljms-weather-icon.ljms-icon-sun_cloud,
.ljms-weather-icon.ljms-icon-sun_rain,
.ljms-weather-icon.ljms-icon-cloud,
.ljms-weather-icon.ljms-icon-rain,
.ljms-weather-icon.ljms-icon-storm,
.ljms-weather-icon.ljms-icon-wind,
.ljms-weather-icon.ljms-icon-moon_cloud {
  animation: ljms-float 4.8s ease-in-out infinite;
}
.ljms-weather-icon .ljms-i-rays,
.ljms-weather-icon .ljms-i-sun {
  transform-origin: 48px 48px;
}
.ljms-weather-icon.ljms-icon-sun .ljms-i-rays,
.ljms-weather-icon.ljms-icon-sun_cloud .ljms-i-sun,
.ljms-weather-icon.ljms-icon-sun_rain .ljms-i-sun {
  animation: ljms-spin 16s linear infinite;
  transform-origin: center;
}
.ljms-weather-icon .ljms-i-cloud {
  animation: ljms-cloud-drift 5.5s ease-in-out infinite;
}
.ljms-weather-icon .ljms-i-rain path {
  animation: ljms-rain 1.5s ease-in-out infinite;
}
.ljms-weather-icon .ljms-i-rain path:nth-child(2) { animation-delay: .2s; }
.ljms-weather-icon .ljms-i-rain path:nth-child(3) { animation-delay: .4s; }
.ljms-weather-icon .ljms-i-bolt {
  animation: ljms-bolt 1.8s ease-in-out infinite;
}
.ljms-weather-icon .ljms-i-alert {
  animation: ljms-pulse 1.8s ease-in-out infinite;
}
@keyframes ljms-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes ljms-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes ljms-cloud-drift {
  0%,100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}
@keyframes ljms-rain {
  0%,100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(4px); opacity: .55; }
}
@keyframes ljms-bolt {
  0%,100% { opacity: 1; }
  45% { opacity: .35; }
  50% { opacity: 1; }
  55% { opacity: .35; }
  60% { opacity: 1; }
}
@keyframes ljms-pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.ljms-weather-icon .ljms-i-wind {
  animation: ljms-wind 2.8s ease-in-out infinite;
}
@keyframes ljms-wind {
  0%,100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}


/* V1.4 equal card sizing + responsive clean layout */
.ljms-weather-panel .ljms-card,
.ljms-quake-panel .ljms-card {
  justify-content: flex-start;
}

.ljms-weather-panel .ljms-summary,
.ljms-quake-list,
.ljms-empty {
  flex: 1 1 auto;
}

.ljms-quake-list {
  display: flex;
  flex-direction: column;
}

.ljms-panel .ljms-bottom-bar {
  width: 100%;
}

.ljms-weather-panel .ljms-card-subtitle {
  max-width: 100%;
}

.ljms-weather-panel .ljms-summary {
  font-size: calc(var(--ljms-text-size, 28px) - 2px);
}

@media (max-width: 1100px) {
  .ljms-panel {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .ljms-panel,
  .ljms-card,
  .ljms-panel .ljms-bottom-bar {
    width: 100%;
  }

  .ljms-card {
    padding-bottom: 18px;
  }

  .ljms-source {
    position: static;
    align-self: flex-end;
    padding-top: 16px;
  }
}

/* V1.7 dynamic weather icon */
.ljms-weather-icon-render { display:block; width:100%; height:100%; }
.ljms-weather-icon-render svg { display:block; width:100%; height:100%; }
.ljms-weather-icon template { display:none; }

/* V1.9 quake UI refinements */
.ljms-quake-panel .ljms-card-subtitle,
.ljms-quake-date-title {
  font-size: var(--ljms-quake-title-size, var(--ljms-subtitle-size, 26px));
}

.ljms-quake-panel .ljms-quake-icon {
  width: var(--ljms-quake-icon-size, var(--ljms-icon-size, 86px));
  height: var(--ljms-quake-icon-size, var(--ljms-icon-size, 86px));
}

.ljms-quake-status {
  margin: 18px 0 24px;
  gap: 0;
}

.ljms-quake-mag {
  font-size: var(--ljms-quake-magnitude-size, calc(var(--ljms-text-size, 28px) + 6px));
}

.ljms-quake-details {
  font-size: var(--ljms-quake-details-size, var(--ljms-small-size, 20px));
}

.ljms-quake-source {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: var(--ljms-quake-source-size, var(--ljms-small-size, 20px));
  text-align: right;
}

.ljms-quake-updated {
  color: var(--ljms-title-color, #000);
  white-space: nowrap;
}

@media (max-width: 680px) {
  .ljms-quake-panel .ljms-card-subtitle,
  .ljms-quake-date-title {
    font-size: clamp(20px, 6vw, var(--ljms-quake-title-size, 26px));
  }
  .ljms-quake-source {
    justify-content: flex-start;
    align-self: flex-start;
    text-align: left;
    font-size: 15px;
  }
}

/* V2.0 — météo slick: niveau par bordure, sans carré de couleur */
.ljms-alert-flag {
  display: none !important;
}

.ljms-weather-panel .ljms-card {
  border-color: var(--ljms-border-color, #111111);
}

.ljms-weather-panel.ljms-level-none .ljms-card {
  border-color: var(--ljms-level-none, #00e600);
}

.ljms-weather-panel.ljms-level-yellow .ljms-card {
  border-color: var(--ljms-level-yellow, #efff00);
}

.ljms-weather-panel.ljms-level-orange .ljms-card {
  border-color: var(--ljms-level-orange, #ffb300);
}

.ljms-weather-panel.ljms-level-red .ljms-card {
  border-color: var(--ljms-level-red, #ff1010);
}

.ljms-weather-panel .ljms-card-topline {
  display: block;
  min-width: 0;
}

.ljms-weather-panel .ljms-card-subtitle {
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(20px, 2.7vw, var(--ljms-subtitle-size, 26px));
  line-height: 1.08;
  margin-bottom: 26px;
}

@media (max-width: 680px) {
  .ljms-weather-panel .ljms-card-subtitle {
    font-size: clamp(17px, 5.2vw, 22px);
  }
}


/* V2.1 — slick horizontal card layout + non-italic titles */
.ljms-section-title,
.ljms-card-subtitle,
.ljms-quake-date-title {
  font-style: normal !important;
}

.ljms-weather-panel .ljms-card,
.ljms-quake-panel .ljms-card {
  display: grid !important;
  grid-template-columns: minmax(76px, var(--ljms-icon-size, 86px)) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: clamp(24px, 3.2vw, 52px);
  row-gap: clamp(18px, 2vw, 28px);
  align-items: start;
}

.ljms-weather-panel .ljms-card-topline,
.ljms-quake-panel .ljms-card-subtitle,
.ljms-quake-panel .ljms-quake-date-title {
  grid-column: 1 / -1;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.08;
}

.ljms-weather-panel .ljms-card-subtitle,
.ljms-quake-panel .ljms-card-subtitle,
.ljms-quake-panel .ljms-quake-date-title {
  font-weight: 700;
  letter-spacing: -0.015em;
}

.ljms-weather-panel .ljms-weather-icon,
.ljms-quake-panel .ljms-quake-status {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  justify-self: start;
  margin: 0 !important;
}

.ljms-weather-panel .ljms-summary,
.ljms-quake-panel .ljms-quake-list,
.ljms-quake-panel .ljms-empty {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  max-width: 100%;
  margin: 0 !important;
  min-width: 0;
}

.ljms-weather-panel .ljms-summary {
  max-height: none;
  gap: clamp(14px, 1.8vw, 22px);
}

.ljms-weather-panel .ljms-source,
.ljms-quake-panel .ljms-quake-source,
.ljms-quake-panel .ljms-source {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 0;
  padding-top: 0;
  align-self: end;
}

.ljms-quake-panel .ljms-quake-icon {
  transform-origin: center center;
  animation: ljms-quake-pulse 2.4s ease-in-out infinite;
}

.ljms-quake-panel .ljms-quake-icon svg {
  filter: none;
}

@keyframes ljms-quake-pulse {
  0%, 100% { transform: scale(1) translateX(0); opacity: 1; }
  20% { transform: scale(1.025) translateX(-1px); opacity: .95; }
  40% { transform: scale(.985) translateX(1px); opacity: 1; }
  60% { transform: scale(1.02) translateX(-1px); opacity: .96; }
  80% { transform: scale(1) translateX(0); opacity: 1; }
}

@media (max-width: 900px) {
  .ljms-weather-panel .ljms-card,
  .ljms-quake-panel .ljms-card {
    grid-template-columns: minmax(64px, calc(var(--ljms-icon-size, 86px) * .82)) minmax(0, 1fr);
    column-gap: 22px;
  }
}

@media (max-width: 680px) {
  .ljms-weather-panel .ljms-card,
  .ljms-quake-panel .ljms-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    row-gap: 16px;
  }

  .ljms-weather-panel .ljms-card-topline,
  .ljms-quake-panel .ljms-card-subtitle,
  .ljms-quake-panel .ljms-quake-date-title,
  .ljms-weather-panel .ljms-weather-icon,
  .ljms-quake-panel .ljms-quake-status,
  .ljms-weather-panel .ljms-summary,
  .ljms-quake-panel .ljms-quake-list,
  .ljms-quake-panel .ljms-empty,
  .ljms-weather-panel .ljms-source,
  .ljms-quake-panel .ljms-source,
  .ljms-quake-panel .ljms-quake-source {
    grid-column: 1;
    grid-row: auto;
  }

  .ljms-weather-panel .ljms-card-subtitle,
  .ljms-quake-panel .ljms-card-subtitle,
  .ljms-quake-panel .ljms-quake-date-title {
    white-space: nowrap;
  }
}

/* V2.2 — UI polish + embedded source viewer */
.ljms-weather-panel .ljms-source,
.ljms-quake-panel .ljms-quake-source,
.ljms-quake-panel .ljms-source {
  justify-self: end;
  align-self: end;
  text-align: right;
  max-width: 100%;
}

.ljms-weather-panel .ljms-source {
  padding-right: clamp(4px, 1vw, 14px);
}

.ljms-panel .ljms-bottom-bar {
  min-height: 46px;
  padding: 9px clamp(18px, 2vw, 30px);
  gap: clamp(14px, 2vw, 30px);
  overflow: hidden;
}

.ljms-bottom-bar a {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}

.ljms-bottom-bar > span {
  opacity: .9;
  user-select: none;
}

.ljms-bottom-bar a[data-ljms-embed-link="1"] {
  cursor: pointer;
}

.ljms-bottom-bar a[data-ljms-embed-link="1"]::after {
  content: "↗";
  font-size: .72em;
  margin-left: .45em;
  line-height: 1;
  opacity: .75;
}

.ljms-embed-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  color: #111;
  font-family: var(--ljms-font, Arial, Helvetica, sans-serif);
}

.ljms-embed-modal.is-open {
  display: block;
}

.ljms-embed-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.74);
  backdrop-filter: blur(3px);
}

.ljms-embed-dialog {
  position: absolute;
  inset: clamp(18px, 4vw, 54px);
  background: #fff;
  border: 2px solid #111;
  box-shadow: 0 30px 90px rgba(0,0,0,.42);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  overflow: hidden;
}

.ljms-embed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  background: #0b0b0b;
  color: #fff;
}

.ljms-embed-title {
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ljms-embed-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.ljms-embed-open {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  line-height: 1.1;
}

.ljms-embed-open:hover {
  opacity: .8;
}

.ljms-embed-close {
  appearance: none;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.55);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  font-size: 28px;
  line-height: 28px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.ljms-embed-close:hover {
  background: rgba(255,255,255,.12);
}

.ljms-embed-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.ljms-embed-note {
  padding: 9px 18px;
  font-size: 13px;
  line-height: 1.25;
  color: #333;
  background: #f5f5f5;
  border-top: 1px solid #ddd;
}

@media (max-width: 680px) {
  .ljms-weather-panel .ljms-source,
  .ljms-quake-panel .ljms-quake-source,
  .ljms-quake-panel .ljms-source {
    justify-self: end;
    align-self: end;
    text-align: right;
  }

  .ljms-panel .ljms-bottom-bar {
    min-height: 42px;
    padding: 8px 14px;
  }

  .ljms-embed-dialog {
    inset: 10px;
  }

  .ljms-embed-head {
    padding: 12px 12px;
  }

  .ljms-embed-actions {
    gap: 8px;
  }

  .ljms-embed-open {
    display: none;
  }
}

/* V2.3/V2.4 — alignment + manual margin controls */
.ljms-weather-panel .ljms-card,
.ljms-quake-panel .ljms-card {
  padding: var(--ljms-card-padding-top, 20px) var(--ljms-card-padding-right, 30px) var(--ljms-card-padding-bottom, 72px) var(--ljms-card-padding-left, 30px) !important;
  position: relative;
}

.ljms-weather-panel .ljms-card {
  column-gap: var(--ljms-weather-icon-content-gap, 52px) !important;
  row-gap: var(--ljms-weather-title-content-gap, 28px) !important;
}

.ljms-quake-panel .ljms-card {
  column-gap: var(--ljms-quake-icon-content-gap, 52px) !important;
  row-gap: var(--ljms-quake-title-content-gap, 28px) !important;
}

.ljms-weather-panel .ljms-weather-icon {
  padding-top: var(--ljms-weather-icon-top, 4px) !important;
}

.ljms-weather-panel .ljms-summary {
  padding-top: var(--ljms-weather-content-top, 6px) !important;
}

.ljms-quake-panel .ljms-quake-status {
  padding-top: var(--ljms-quake-icon-top, 4px) !important;
}

.ljms-quake-panel .ljms-quake-list,
.ljms-quake-panel .ljms-empty {
  padding-top: var(--ljms-quake-content-top, 6px) !important;
}

.ljms-weather-panel .ljms-source,
.ljms-quake-panel .ljms-quake-source,
.ljms-quake-panel .ljms-source {
  position: absolute !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  max-width: calc(100% - 60px);
  text-align: right;
}

.ljms-weather-panel .ljms-source {
  right: var(--ljms-weather-source-right, 30px) !important;
  bottom: var(--ljms-weather-source-bottom, 22px) !important;
}

.ljms-quake-panel .ljms-quake-source,
.ljms-quake-panel .ljms-source {
  right: var(--ljms-quake-source-right, 30px) !important;
  bottom: var(--ljms-quake-source-bottom, 22px) !important;
}

.ljms-panel .ljms-bottom-bar {
  min-height: 54px;
  padding: 10px 20px;
  gap: clamp(14px, 2vw, 30px);
}

.ljms-weather-panel .ljms-bottom-bar {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.ljms-weather-panel .ljms-bottom-bar a:first-child {
  justify-self: start;
  text-align: left;
}

.ljms-weather-panel .ljms-bottom-bar a:last-child {
  justify-self: start;
  text-align: left;
}

.ljms-quake-panel .ljms-bottom-bar {
  grid-template-columns: 1fr;
  justify-items: start;
}

.ljms-bottom-bar a {
  align-self: center;
}

.ljms-quake-list {
  width: 100%;
  gap: 0;
}

.ljms-quake-row {
  align-items: center;
}

.ljms-quake-details strong,
.ljms-quake-details span {
  display: block;
}

@media (max-width: 680px) {
  .ljms-weather-panel .ljms-card,
  .ljms-quake-panel .ljms-card {
    padding: 18px 18px 22px !important;
  }

  .ljms-weather-panel .ljms-source,
  .ljms-quake-panel .ljms-quake-source,
  .ljms-quake-panel .ljms-source {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    min-height: 0;
    display: block;
    max-width: 100%;
  }

  .ljms-panel .ljms-bottom-bar {
    min-height: 42px;
    padding: 8px 14px;
  }
}


/* V2.5 — embed popup: close button without circle */
.ljms-embed-close,
.ljms-embed-actions .ljms-embed-close {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 2px 4px !important;
  color: #fff !important;
  font-size: 34px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ljms-embed-close:hover,
.ljms-embed-actions .ljms-embed-close:hover {
  background: transparent !important;
  opacity: .68;
}

/* V2.9 - option to disable weather vigilance border color */
.ljms-weather-panel.ljms-weather-alert-border-off .ljms-card {
  border-color: var(--ljms-border-color, #111111) !important;
}
