.norswe-lab,
  .norswe-lab * {
    box-sizing: border-box;
  }

  .norswe-lab {
    --lab-bg: #06111a;
    --lab-panel: rgba(8, 17, 28, 0.9);
    --lab-panel-strong: rgba(8, 17, 28, 0.97);
    --lab-border: rgba(191, 219, 254, 0.2);
    --lab-text: #f8fbff;
    --lab-muted: #a9bbcb;
    --lab-blue: #72d6ff;
    --lab-mag-low: #116b55;
    --lab-mag-mid: #76510d;
    --lab-mag-high: #a9362e;
    --lab-quake: var(--lab-mag-low);
    --lab-exp: #4ea0ff;
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    color: var(--lab-text);
    background: var(--lab-bg);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  }

  #norswe-map {
    position: absolute;
    inset: 0;
    margin: 0;
    background: #04101a;
  }

  .norswe-lab__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .norswe-lab__scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(90deg, rgba(2, 6, 12, 0.46), rgba(2, 6, 12, 0.08) 34%, rgba(2, 6, 12, 0.08) 66%, rgba(2, 6, 12, 0.34)),
      linear-gradient(180deg, rgba(2, 6, 12, 0.18), transparent 34%, rgba(2, 6, 12, 0.28));
  }

  .norswe-lab__panel {
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 18px;
    bottom: 18px;
    width: min(420px, calc(100vw - 36px));
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--lab-border);
    border-radius: 12px;
    background: var(--lab-panel);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(12px);
  }

  .norswe-lab__top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
  }

  .norswe-lab__kicker {
    margin: 0 0 4px;
    color: var(--lab-blue);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .norswe-lab__title {
    grid-column: 2;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    color: var(--lab-blue);
    font-size: clamp(0.96rem, 1.7vw, 1.08rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 0 18px rgba(114, 214, 255, 0.3);
  }

  .norswe-lab__back,
  .norswe-lab__button,
  .norswe-lab__info-button,
  .norswe-lab__info-close,
  .norswe-lab__event {
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--lab-text);
    background: rgba(255, 255, 255, 0.08);
  }

  .norswe-lab__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    min-width: 0;
    padding: 0 9px;
    border-color: rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(180, 65, 65, 0.95);
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 14px rgba(90, 20, 20, 0.24);
  }

  .norswe-lab__back-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
  }

  .norswe-lab__back-icon svg {
    display: block;
    width: 100%;
    height: 100%;
  }

  .norswe-lab__info-button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-color: rgba(191, 219, 254, 0.72);
    border-radius: 50%;
    background: linear-gradient(180deg, #1d8bd6, #0f5dbb);
    color: #ffffff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    padding: 0 0 2px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 14px rgba(15, 93, 187, 0.26);
  }

  .norswe-lab__note {
    margin: 0;
    color: var(--lab-muted);
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .norswe-lab__map-note {
    display: none;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(114, 214, 255, 0.22);
    border-radius: 8px;
    color: #eaf6ff;
    background: rgba(114, 214, 255, 0.1);
    font-size: 0.86rem;
    line-height: 1.38;
  }

  .norswe-lab__info {
    position: absolute;
    z-index: 5;
    top: 58px;
    left: calc(100% + 12px);
    width: min(470px, calc(100vw - 448px));
    max-height: min(680px, calc(100svh - 92px));
    overflow: hidden;
    border: 1px solid rgba(114, 214, 255, 0.24);
    border-radius: 8px;
    color: var(--lab-muted);
    background: rgba(8, 15, 23, 0.96);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  }

  .norswe-lab__info[hidden] {
    display: none;
  }

  .norswe-lab__info-scroll {
    max-height: min(680px, calc(100svh - 92px));
    display: grid;
    gap: 14px;
    padding: 16px;
    overflow: auto;
    scrollbar-gutter: stable;
  }

  .norswe-lab__info-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
  }

  .norswe-lab__info-title {
    margin: 0;
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 850;
  }

  .norswe-lab__info-close {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
  }

  .norswe-lab__info p {
    margin: 0;
    color: var(--lab-muted);
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .norswe-lab__info-examples {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 12px;
    align-items: center;
    margin: 0;
  }

  .norswe-lab__example-cluster,
  .norswe-lab__example-marker {
    display: grid;
    place-items: center;
    color: #ffffff;
    background: #116b55;
    border: 2px solid rgba(6, 17, 26, 0.94);
    box-shadow: 0 0 0 5px rgba(17, 107, 85, 0.24);
    font-weight: 850;
    line-height: 1.05;
    text-align: center;
  }

  .norswe-lab__example-cluster {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #a9362e;
    box-shadow: 0 0 0 5px rgba(169, 54, 46, 0.24);
    font-size: 0.92rem;
  }

  .norswe-lab__example-cluster span:last-child {
    font-size: 0.82rem;
    color: #eef6ff;
  }

  .norswe-lab__example-marker {
    width: 58px;
    height: 42px;
    border-radius: 8px;
    font-size: 0.96rem;
  }

  .norswe-lab__info-list {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--lab-muted);
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .norswe-lab__info-list li {
    position: relative;
    padding-left: 18px;
  }

  .norswe-lab__info-list li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lab-blue);
    box-shadow: 0 0 0 3px rgba(114, 214, 255, 0.12);
  }

  .norswe-lab__info-list a {
    color: #ffffff;
    font-weight: 850;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }

  .norswe-lab__info-list a:hover,
  .norswe-lab__info-list a:focus-visible {
    color: var(--lab-blue);
    outline: none;
  }

  .norswe-lab__mag-key {
    display: inline-block;
    margin: 0 2px;
    padding: 1px 6px 2px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
  }

  .norswe-lab__mag-key--low {
    background: var(--lab-mag-low);
  }

  .norswe-lab__mag-key--mid {
    background: var(--lab-mag-mid);
  }

  .norswe-lab__mag-key--high {
    background: var(--lab-mag-high);
  }

  .norswe-lab__info-cue {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    height: 34px;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
  }

  .norswe-lab__info-cue::before {
    content: "";
    width: 44px;
    height: 24px;
    border: 1px solid rgba(159, 232, 255, 0.68);
    border-radius: 999px;
    background: rgba(8, 26, 40, 0.96);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.42), 0 0 16px rgba(114, 214, 255, 0.2);
  }

  .norswe-lab__info-cue::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border-right: 3px solid #b9f2ff;
    border-bottom: 3px solid #b9f2ff;
  }

  .norswe-lab__info-cue--top {
    top: 0;
    background: linear-gradient(180deg, rgba(8, 15, 23, 0.96), rgba(8, 15, 23, 0));
  }

  .norswe-lab__info-cue--top::after {
    transform: translateY(3px) rotate(225deg);
  }

  .norswe-lab__info-cue--bottom {
    bottom: 0;
    background: linear-gradient(0deg, rgba(8, 15, 23, 0.96), rgba(8, 15, 23, 0));
  }

  .norswe-lab__info-cue--bottom::after {
    transform: translateY(-3px) rotate(45deg);
  }

  .norswe-lab__info--can-scroll-up .norswe-lab__info-cue--top,
  .norswe-lab__info--can-scroll-down .norswe-lab__info-cue--bottom {
    opacity: 1;
  }

  .norswe-lab__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .norswe-lab__stat {
    min-width: 0;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--lab-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
  }

  .norswe-lab__stat strong,
  .norswe-lab__stat span {
    display: block;
    text-align: center;
  }

  .norswe-lab__stat strong {
    font-size: 1.32rem;
    line-height: 1;
  }

  .norswe-lab__stat span {
    margin-top: 4px;
    color: var(--lab-muted);
    font-size: 0.67rem;
    font-weight: 850;
    text-transform: uppercase;
  }

  .norswe-lab__tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .norswe-lab__button {
    min-height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 850;
  }

  .norswe-lab__button:hover,
  .norswe-lab__button:focus-visible,
  .norswe-lab__back:hover,
  .norswe-lab__back:focus-visible,
  .norswe-lab__info-button:hover,
  .norswe-lab__info-button:focus-visible,
  .norswe-lab__info-close:hover,
  .norswe-lab__info-close:focus-visible {
    border-color: rgba(114, 214, 255, 0.68);
    outline: none;
    background: rgba(114, 214, 255, 0.14);
  }

  .norswe-lab__info-button:hover,
  .norswe-lab__info-button:focus-visible {
    background: linear-gradient(180deg, #2a9ff0, #126dce);
  }

  .norswe-lab__back:hover,
  .norswe-lab__back:focus-visible {
    background: rgba(196, 78, 78, 0.98);
  }

  .norswe-lab__list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    color: var(--lab-muted);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .norswe-lab__recent {
    position: relative;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
  }

  .norswe-lab__event-scroll-wrap {
    position: relative;
    min-height: 0;
  }

  .norswe-lab__event-list {
    height: 100%;
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 8px;
    overflow: auto;
    padding-right: 4px;
    scrollbar-gutter: stable;
  }

  .norswe-lab__scroll-cue {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 8px;
    height: 34px;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
  }

  .norswe-lab__scroll-cue::before {
    content: "";
    width: 38px;
    height: 20px;
    border: 1px solid rgba(114, 214, 255, 0.34);
    border-radius: 999px;
    background: rgba(6, 17, 26, 0.84);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
  }

  .norswe-lab__scroll-cue::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--lab-blue);
    border-bottom: 2px solid var(--lab-blue);
  }

  .norswe-lab__scroll-cue--top {
    top: 0;
    background: linear-gradient(180deg, rgba(6, 17, 26, 0.96), rgba(6, 17, 26, 0));
  }

  .norswe-lab__scroll-cue--top::after {
    transform: translateY(3px) rotate(225deg);
  }

  .norswe-lab__scroll-cue--bottom {
    bottom: 0;
    background: linear-gradient(0deg, rgba(6, 17, 26, 0.96), rgba(6, 17, 26, 0));
  }

  .norswe-lab__scroll-cue--bottom::after {
    transform: translateY(-3px) rotate(45deg);
  }

  .norswe-lab__recent--can-scroll-up .norswe-lab__scroll-cue--top,
  .norswe-lab__recent--can-scroll-down .norswe-lab__scroll-cue--bottom {
    opacity: 1;
  }

  .norswe-lab__event {
    position: relative;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: start;
    gap: 2px 9px;
    padding: 8px 9px;
    border: 1px solid rgba(191, 219, 254, 0.13);
    border-radius: 8px;
    color: inherit;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    text-align: left;
    touch-action: manipulation;
  }

  .norswe-lab__event:hover,
  .norswe-lab__event:focus-visible,
  .norswe-lab__event--active {
    border-color: rgba(114, 214, 255, 0.68);
    outline: none;
    background: rgba(114, 214, 255, 0.12);
  }

  .norswe-lab__mag {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
    width: 54px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: var(--mag-color, var(--lab-quake));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    font-size: 0.95rem;
    font-weight: 950;
  }

  .norswe-lab__event--exp .norswe-lab__mag {
    --mag-color: var(--lab-exp);
  }

  .norswe-lab__marker-summary {
    display: contents;
  }

  .norswe-lab__depth-under {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    width: 54px;
    display: grid;
    gap: 2px;
    color: #d7e8f7;
    line-height: 1.1;
  }

  .norswe-lab__depth-under span {
    color: var(--lab-blue);
    font-size: 0.66rem;
    font-weight: 850;
    text-transform: uppercase;
  }

  .norswe-lab__depth-under strong {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 0.74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .norswe-lab__event-text {
    min-width: 0;
    display: contents;
  }

  .norswe-lab__card-top,
  .norswe-lab__card-bottom {
    min-width: 0;
    display: grid;
    align-items: start;
  }

  .norswe-lab__card-top {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .norswe-lab__card-bottom {
    grid-column: 2;
    grid-row: 3;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: end;
    margin-top: 0;
  }

  .norswe-lab__region,
  .norswe-lab__time,
  .norswe-lab__place-text,
  .norswe-lab__card-coords,
  .norswe-lab__population-under {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .norswe-lab__region {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    overflow: hidden;
    color: #f8fbff;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.35;
  }

  .norswe-lab__country-flag {
    width: 18px;
    height: 13px;
    flex: 0 0 auto;
    margin-top: 1px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 2px;
    background: #334155;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22);
  }

  .norswe-lab__country-flags {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 3px;
    max-width: 60px;
    margin-top: 1px;
  }

  .norswe-lab__country-flags .norswe-lab__country-flag {
    margin-top: 0;
  }

  .norswe-lab__country-flag--no {
    background:
      linear-gradient(to right, transparent 0 28%, #ffffff 28% 38%, #00205b 38% 52%, #ffffff 52% 62%, transparent 62%),
      linear-gradient(to bottom, transparent 0 31%, #ffffff 31% 43%, #00205b 43% 58%, #ffffff 58% 70%, transparent 70%),
      #ba0c2f;
  }

  .norswe-lab__country-flag--se {
    background:
      linear-gradient(to right, transparent 0 30%, #fecc00 30% 46%, transparent 46%),
      linear-gradient(to bottom, transparent 0 38%, #fecc00 38% 62%, transparent 62%),
      #006aa7;
  }

  .norswe-lab__country-flag--dk {
    background:
      linear-gradient(to right, transparent 0 30%, #ffffff 30% 44%, transparent 44%),
      linear-gradient(to bottom, transparent 0 39%, #ffffff 39% 61%, transparent 61%),
      #c8102e;
  }

  .norswe-lab__country-flag--fi {
    background:
      linear-gradient(to right, transparent 0 32%, #002f6c 32% 48%, transparent 48%),
      linear-gradient(to bottom, transparent 0 37%, #002f6c 37% 63%, transparent 63%),
      #ffffff;
  }

  .norswe-lab__country-flag--ru {
    background:
      linear-gradient(to bottom, #ffffff 0 33.333%, #0039a6 33.333% 66.666%, #d52b1e 66.666%);
  }

  .norswe-lab__region-text {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .norswe-lab__time,
  .norswe-lab__place-text {
    color: var(--lab-muted);
    font-size: 0.74rem;
  }

  .norswe-lab__place-text {
    grid-column: 2;
    grid-row: 2;
    color: #d7e8f7;
    font-weight: 650;
  }

  .norswe-lab__place-name {
    color: #ffffff;
    font-weight: 950;
  }

  .norswe-lab__card-coords,
  .norswe-lab__population-under {
    display: grid;
    gap: 1px;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: right;
  }

  .norswe-lab__card-coords span,
  .norswe-lab__population-under span {
    color: var(--lab-blue);
    font-size: 0.66rem;
    font-weight: 850;
    text-transform: uppercase;
  }

  .norswe-lab__card-coords strong,
  .norswe-lab__population-under strong {
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1.1;
  }

  .norswe-lab__population-under {
    justify-items: start;
    text-align: left;
  }

  .norswe-lab__time {
    color: #aab9c9;
    line-height: 1.2;
    text-align: right;
  }

  .norswe-lab__status {
    position: fixed;
    z-index: 4;
    top: 16px;
    left: 50%;
    width: min(560px, calc(100vw - 32px));
    margin: 0;
    transform: translateX(-50%);
    padding: 10px 14px;
    border: 1px solid rgba(248, 113, 113, 0.45);
    border-radius: 8px;
    color: #fff;
    background: rgba(127, 29, 29, 0.94);
    font-weight: 800;
  }

  .norswe-lab__status small {
    display: block;
    margin-top: 3px;
    opacity: 0.9;
  }

  .maplibregl-popup-content {
    width: min(292px, calc(100vw - 28px));
    min-width: 220px;
    max-width: min(292px, calc(100vw - 28px));
    padding: 11px;
    border: 1px solid rgba(191, 219, 254, 0.22);
    border-radius: 10px;
    color: var(--lab-text);
    background: var(--lab-panel-strong);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }

  .maplibregl-popup-close-button {
    color: #fff;
    font-size: 20px;
  }

  .norswe-lab__popup-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 20px 7px 0;
  }

  .norswe-lab__popup-mag {
    flex: 0 0 auto;
    padding: 5px 7px;
    border-radius: 7px;
    color: #fff;
    background: var(--mag-color, var(--lab-quake));
    font-weight: 950;
  }

  .norswe-lab__popup-mag--exp {
    --mag-color: var(--lab-exp);
  }

  .norswe-lab__popup-title strong {
    min-width: 0;
    overflow: hidden;
    color: #ffffff;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .norswe-lab__popup-place {
    margin: 0 0 8px;
    color: #d7e8f7;
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.3;
  }

  .norswe-lab__popup-facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.65fr);
    gap: 7px 10px;
    margin: 0;
  }

  .norswe-lab__popup-facts div {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .norswe-lab__popup-facts dt {
    color: var(--lab-blue);
    font-size: 0.65rem;
    font-weight: 850;
    line-height: 1.1;
    text-transform: uppercase;
  }

  .norswe-lab__popup-facts dd {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .norswe-lab--bottom-panel .norswe-lab__scrim {
    background: linear-gradient(180deg, transparent 34%, rgba(2, 6, 12, 0.5));
  }

  .norswe-lab--bottom-panel .norswe-lab__panel {
    top: auto;
    right: 10px;
    left: 10px;
    bottom: 10px;
    width: auto;
    max-height: clamp(220px, 42svh, 520px);
    padding: 10px;
    gap: 9px;
  }

  .norswe-lab--bottom-panel .norswe-lab__title {
    font-size: 0.86rem;
  }

  .norswe-lab--bottom-panel .norswe-lab__note,
  .norswe-lab--bottom-panel .norswe-lab__stats {
    display: none;
  }

  .norswe-lab--bottom-panel .norswe-lab__info {
    top: 56px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
  }

  .norswe-lab--bottom-panel .norswe-lab__info[hidden] {
    display: none;
  }

  .norswe-lab--bottom-panel .norswe-lab__info-scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
  }

  .norswe-lab--bottom-panel .norswe-lab__event {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 8px;
  }

  .norswe-lab--map-unavailable #norswe-map,
  .norswe-lab--map-unavailable .norswe-lab__scrim,
  .norswe-lab--map-unavailable .norswe-lab__tools,
  .norswe-lab--map-unavailable .norswe-lab__stats {
    display: none;
  }

  .norswe-lab--map-unavailable {
    min-height: 100svh;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(114, 214, 255, 0.14), transparent 38%), #06111a;
  }

  .norswe-lab--map-unavailable .norswe-lab__panel {
    position: fixed;
    inset: 10px;
    width: auto;
    height: auto;
    max-height: none;
    overflow: hidden;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .norswe-lab--map-unavailable .norswe-lab__map-note {
    display: block;
  }

  @media (orientation: landscape) and (max-height: 560px) {
    .norswe-lab--map-unavailable .norswe-lab__panel {
      inset: max(6px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
      gap: 7px;
      padding: 8px;
    }

    .norswe-lab--map-unavailable .norswe-lab__map-note {
      padding: 7px 9px;
      font-size: 0.78rem;
      line-height: 1.22;
    }

    .norswe-lab--map-unavailable .norswe-lab__list-head {
      font-size: 0.68rem;
      letter-spacing: 0.06em;
    }

    .norswe-lab--map-unavailable .norswe-lab__event-list {
      gap: 6px;
    }

    .norswe-lab--map-unavailable .norswe-lab__event {
      grid-template-columns: 52px minmax(0, 1fr);
      gap: 1px 8px;
      padding: 6px 8px;
    }

    .norswe-lab--map-unavailable .norswe-lab__mag {
      width: 50px;
      height: 32px;
    }

    .norswe-lab--map-unavailable .norswe-lab__depth-under {
      min-height: 29px;
    }
  }

  @media (max-width: 760px), (orientation: portrait) and (max-width: 1120px) {
    .norswe-lab__scrim {
      background: linear-gradient(180deg, transparent 34%, rgba(2, 6, 12, 0.5));
    }

    .norswe-lab__panel {
      top: auto;
      right: 10px;
      left: 10px;
      bottom: 10px;
      width: auto;
      max-height: clamp(220px, 42svh, 520px);
      padding: 10px;
      gap: 9px;
    }

    .norswe-lab__title {
      font-size: 0.86rem;
    }

    .norswe-lab__note,
    .norswe-lab__stats {
      display: none;
    }

    .norswe-lab__info {
      top: 56px;
      right: 10px;
      bottom: 10px;
      left: 10px;
      width: auto;
      max-height: none;
      display: flex;
      flex-direction: column;
    }

    .norswe-lab__info[hidden] {
      display: none;
    }

    .norswe-lab__info-scroll {
      flex: 1 1 auto;
      min-height: 0;
      max-height: none;
    }

    .norswe-lab__event {
      grid-template-columns: 56px minmax(0, 1fr);
      padding: 8px;
    }

    .maplibregl-popup-content {
      width: min(260px, calc(100vw - 24px));
      min-width: 0;
      max-width: min(260px, calc(100vw - 24px));
      padding: 10px;
    }

    .norswe-lab__popup-title {
      margin-right: 18px;
    }

    .norswe-lab__popup-place {
      margin-bottom: 7px;
      font-size: 0.76rem;
    }

    .norswe-lab__popup-facts {
      grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    }

  }
