:root {
    --bg: #030b12;
    --bg-2: #06131d;
    --panel: rgba(5, 15, 25, 0.78);
    --panel-soft: rgba(8, 21, 34, 0.56);
    --panel-strong: rgba(6, 18, 29, 0.92);
    --border: rgba(172, 231, 226, 0.2);
    --line: rgba(172, 231, 226, 0.2);
    --line-strong: rgba(172, 231, 226, 0.34);
    --text: #f4f8fb;
    --muted: #b7c5cf;
    --subtle: #7f95a3;
    --teal: #83e6cf;
    --teal-bright: #a5fff0;
    --accent: #83e6cf;
    --accent-strong: #62d7bf;
    --glow: 0 0 34px rgba(131, 230, 207, 0.24);
    --category-ufo: #32d8d4;
    --category-ghost: #a65cff;
    --category-cryptid: #67d65d;
    --category-other: #d9af19;
    --radius: 8px;
    --header-h: 76px;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
    --max: 1680px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 14% 12%, rgba(104, 221, 208, 0.08), transparent 18rem),
        radial-gradient(circle at 84% 28%, rgba(75, 151, 255, 0.06), transparent 22rem),
        linear-gradient(180deg, #02080f 0%, #06121b 44%, #02080f 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 8% 18%, rgba(255, 255, 255, 0.42) 0 1px, transparent 1.5px),
        radial-gradient(circle at 32% 7%, rgba(255, 255, 255, 0.24) 0 1px, transparent 1.5px),
        radial-gradient(circle at 66% 28%, rgba(255, 255, 255, 0.28) 0 1px, transparent 1.5px),
        radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.5px);
    background-size: 370px 310px, 510px 430px, 420px 360px, 620px 520px;
    opacity: 0.22;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
    font: inherit;
}

img,
svg {
    display: block;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.page-shell {
    width: min(calc(100% - 80px), var(--max));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    background: rgba(3, 10, 17, 0.58);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: top 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    border-bottom-color: transparent;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.site-header.is-scrolled {
    top: 14px;
}

.site-header.is-open {
    top: 10px;
}

.header-inner {
    width: min(calc(100% - 56px), var(--max));
    min-height: var(--header-h);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 38px;
    border: 1px solid transparent;
    border-radius: 0;
    overflow: visible;
    transition: width 220ms ease, min-height 220ms ease, padding 220ms ease, border-color 220ms ease, border-radius 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled .header-inner,
.site-header.is-open .header-inner {
    width: min(calc(100% - 32px), 1120px);
    min-height: 64px;
    padding: 0 20px;
    border-color: rgba(131, 230, 207, 0.22);
    border-radius: 999px;
    background: rgba(3, 12, 20, 0.84);
    box-shadow: 0 20px 58px rgba(0, 0, 0, 0.38), 0 0 38px rgba(95, 214, 191, 0.12);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    background-clip: padding-box;
}

.site-header::before,
.site-header::after {
    content: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-width: max-content;
    color: #eef8f8;
    font-size: 28px;
    line-height: 1;
}

.brand-mark {
    width: 46px;
    height: 46px;
    color: var(--accent);
}

.brand-mark circle,
.brand-mark path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    margin-left: auto;
    color: rgba(246, 251, 255, 0.9);
    font-size: 15px;
}

.site-nav > a,
.nav-dropdown-button,
.login-link,
.nav-link-button {
    color: rgba(246, 251, 255, 0.9);
    transition: color 150ms ease;
}

.site-nav > a:hover,
.site-nav > a:focus-visible,
.nav-dropdown-button:hover,
.nav-dropdown-button:focus-visible,
.login-link:hover,
.login-link:focus-visible,
.nav-link-button:hover,
.nav-link-button:focus-visible,
.site-nav > a.is-active {
    color: var(--accent);
}

.site-nav > a.is-active {
    position: relative;
    font-weight: 760;
}

.site-nav > a.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -22px;
    width: 20px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 18px rgba(131, 230, 207, 0.8);
    transform: translateX(-50%);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.nav-dropdown-button .icon {
    width: 14px;
    height: 14px;
    transition: transform 160ms ease;
}

.nav-dropdown.is-open .nav-dropdown-button .icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    min-width: 210px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(5, 15, 25, 0.96);
    box-shadow: var(--shadow);
    transform: translate(-50%, 8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.nav-dropdown.is-open .dropdown-menu {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-menu a {
    display: block;
    padding: 11px 12px;
    border-radius: 6px;
    color: var(--muted);
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
    color: var(--text);
    background: rgba(131, 230, 207, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}

.header-logout-form {
    margin: 0;
}

.nav-link-button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.user-menu {
    position: relative;
    z-index: 1001;
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
}

.user-menu-button {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(131, 230, 207, 0.28);
    border-radius: 50%;
    color: var(--accent);
    background: rgba(4, 14, 24, 0.58);
    box-shadow: 0 0 0 rgba(131, 230, 207, 0);
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease, background 150ms ease;
}

.user-menu-button:hover,
.user-menu-button:focus-visible,
.user-menu-button.is-active,
.user-menu.is-open .user-menu-button {
    border-color: rgba(131, 230, 207, 0.7);
    background: rgba(131, 230, 207, 0.1);
    box-shadow: 0 0 24px rgba(131, 230, 207, 0.22);
}

.user-menu-button:hover,
.user-menu-button:focus-visible {
    transform: translateY(-1px);
}

.user-avatar,
.user-avatar img,
.user-avatar-fallback {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.user-avatar {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(131, 230, 207, 0.12);
}

.user-avatar img {
    object-fit: cover;
}

.user-avatar-fallback {
    display: grid;
    place-items: center;
    color: #061611;
    background: linear-gradient(135deg, #9cf0dd, #52cdb8);
    font-size: 15px;
    font-weight: 800;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    z-index: 1200;
    min-width: 210px;
    padding: 9px;
    border: 1px solid rgba(131, 230, 207, 0.24);
    border-radius: 8px;
    background: rgba(4, 13, 22, 0.96);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.48), 0 0 30px rgba(95, 214, 191, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.user-menu.is-open .user-dropdown,
.user-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.user-dropdown-link {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 0 11px;
    border: 0;
    border-radius: 6px;
    color: rgba(246, 251, 255, 0.88);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.user-dropdown-link:hover,
.user-dropdown-link:focus-visible {
    color: var(--accent);
    background: rgba(131, 230, 207, 0.09);
}

.user-dropdown-divider {
    height: 1px;
    margin: 8px 4px;
    background: rgba(172, 231, 226, 0.14);
}

.user-dropdown-form {
    margin: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 0 22px;
    font-weight: 760;
    cursor: pointer;
}

.button-small {
    min-height: 48px;
    padding: 0 22px;
}

.site-nav > .button.button-small {
    border-radius: 999px;
}

.button-primary {
    color: #041511;
    background: linear-gradient(135deg, #8fe9d5, #5fd4bc);
    box-shadow: 0 14px 38px rgba(95, 212, 188, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: linear-gradient(135deg, #a0f2df, #6adfc7);
}

.button-ghost {
    color: var(--text);
    border-color: rgba(184, 232, 227, 0.26);
    background: rgba(6, 15, 25, 0.52);
}

.button-ghost:hover,
.button-ghost:focus-visible {
    border-color: rgba(131, 230, 207, 0.55);
    background: rgba(131, 230, 207, 0.08);
}

.mobile-nav-only {
    display: none;
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(131, 230, 207, 0.08);
    cursor: pointer;
}

.mobile-toggle-line {
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
}

.site-header.is-open .mobile-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .mobile-toggle-line:nth-child(2) {
    opacity: 0;
}

.site-header.is-open .mobile-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-toggle .icon-menu-close,
.site-header.is-open .mobile-toggle .icon-menu-open {
    display: none;
}

.site-header.is-open .mobile-toggle .icon-menu-close {
    display: block;
}

.discover-page {
    padding-bottom: 48px;
}

.discover-hero {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-bottom: 1px solid rgba(158, 220, 213, 0.08);
    background: #02080f;
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 8, 15, 0.98) 0%, rgba(2, 8, 15, 0.74) 31%, rgba(2, 8, 15, 0.08) 66%, rgba(2, 8, 15, 0.24) 100%),
        linear-gradient(180deg, rgba(2, 8, 15, 0.16), rgba(2, 8, 15, 0.92)),
        url("../images/discover-hero-earth.jpg") center 36% / cover no-repeat;
    transform: scale(1.01);
}

.hero-inner {
    position: relative;
    min-height: 210px;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(620px, 100%);
    padding: 22px 0 26px;
}

.hero-copy h1 {
    margin: 0 0 6px;
    font-size: clamp(48px, 6vw, 76px);
    line-height: 0.95;
    font-weight: 780;
}

.hero-copy p {
    max-width: 570px;
    margin: 0;
    color: var(--text);
    font-size: clamp(17px, 1.45vw, 21px);
    line-height: 1.42;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 20px;
    margin-top: -18px;
    position: relative;
    z-index: 2;
}

.stat-card,
.panel,
.trend-card,
.report-card,
.hotspot-card,
.activity-card,
.category-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(7, 20, 32, 0.82), rgba(4, 13, 22, 0.78));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.stat-card {
    min-height: 96px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    backdrop-filter: blur(16px);
}

.stat-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: var(--radius);
    color: var(--accent);
    background: radial-gradient(circle, rgba(131, 230, 207, 0.2), rgba(131, 230, 207, 0.05));
}

.stat-icon .icon {
    width: 30px;
    height: 30px;
}

.stat-card strong {
    display: block;
    font-size: 28px;
    line-height: 1;
}

.stat-card span:not(.stat-icon) {
    display: block;
    margin-top: 3px;
    color: var(--text);
    font-size: 15px;
}

.stat-card small {
    display: block;
    margin-top: 1px;
    color: var(--muted);
    font-size: 13px;
}

.discover-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(360px, 0.95fr);
    gap: 30px 34px;
    align-items: start;
    margin-top: 28px;
}

.panel {
    min-width: 0;
    padding: 24px;
    background:
        radial-gradient(circle at 12% 0%, rgba(131, 230, 207, 0.06), transparent 18rem),
        rgba(5, 15, 25, 0.78);
    backdrop-filter: blur(18px);
}

.panel-full {
    grid-column: 1 / -1;
}

.panel-main {
    grid-column: 1;
}

.panel-sidebar,
.side-panel {
    grid-column: 2;
}

.panel-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.panel-heading h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 760;
}

.panel-heading p {
    max-width: 640px;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 14px;
    white-space: nowrap;
}

.text-link:hover,
.text-link:focus-visible {
    color: #a5f5e5;
}

.text-link .icon {
    width: 14px;
    height: 14px;
}

.trend-grid,
.report-grid,
.hotspot-grid,
.activity-grid {
    position: relative;
    display: grid;
    gap: 18px;
}

.trend-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.discover-empty-state {
    grid-column: 1 / -1;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    border: 1px solid rgba(172, 231, 226, 0.14);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(131, 230, 207, 0.1), rgba(47, 140, 255, 0.06)),
        rgba(6, 15, 25, 0.72);
}

.discover-empty-state.compact {
    min-height: 118px;
}

.discover-empty-state h3 {
    margin: 0;
    font-size: 16px;
}

.discover-empty-state p {
    max-width: 520px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.trend-card,
.report-card,
.activity-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(5, 14, 23, 0.04), rgba(4, 12, 20, 0.86) 58%, rgba(3, 10, 17, 0.98)),
        var(--card-image) center / cover no-repeat;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.trend-card:hover,
.trend-card:focus-within,
.report-card:hover,
.report-card:focus-within,
.hotspot-card:hover,
.hotspot-card:focus-within,
.activity-card:hover,
.activity-card:focus-within {
    border-color: rgba(131, 230, 207, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 22px 58px rgba(0, 0, 0, 0.26);
    transform: translateY(-2px);
}

.trend-card {
    min-height: 250px;
    padding: 18px;
    display: flex;
    align-items: flex-end;
}

.trend-card::before,
.report-card::before,
.activity-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(4, 12, 20, 0.06) 0%, rgba(4, 12, 20, 0.32) 42%, rgba(4, 12, 20, 0.92) 100%),
        radial-gradient(circle at 22% 8%, rgba(131, 230, 207, 0.1), transparent 12rem);
}

.growth-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--accent);
    background: rgba(17, 101, 84, 0.55);
    font-size: 13px;
    font-weight: 760;
}

.card-copy h3,
.report-body h3,
.hotspot-card h3,
.activity-card h3,
.pattern-row h3,
.featured-investigation h3 {
    margin: 0;
    color: var(--text);
    font-size: 21px;
    line-height: 1.18;
    font-weight: 760;
}

.card-copy p,
.report-body p,
.hotspot-card p,
.activity-card p,
.featured-investigation p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.category-chip,
.mini-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    margin-top: 14px;
    border-radius: 999px;
    padding: 4px 8px;
    color: var(--accent);
    background: rgba(131, 230, 207, 0.13);
    font-size: 12px;
    line-height: 1.2;
}

.category-chip .icon {
    width: 14px;
    height: 14px;
}

.event-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.discover-card-badges {
    margin-bottom: 10px;
}

.event-badge {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border: 1px solid rgba(172, 231, 226, 0.18);
    border-radius: 999px;
    color: rgba(235, 247, 248, 0.92);
    background: rgba(4, 14, 24, 0.72);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.event-badge--community {
    color: #cdeeff;
    border-color: rgba(83, 178, 255, 0.34);
    background: rgba(40, 119, 184, 0.18);
}

.event-badge--historical {
    color: #e6d8ff;
    border-color: rgba(166, 92, 255, 0.42);
    background: rgba(94, 54, 151, 0.24);
}

.event-badge--featured {
    color: #fff0ba;
    border-color: rgba(230, 180, 65, 0.44);
    background: rgba(143, 98, 24, 0.22);
}

.event-badge--historical-date {
    color: #d8fff0;
    border-color: rgba(105, 214, 153, 0.4);
    background: rgba(41, 117, 81, 0.2);
}

.report-card-link {
    position: relative;
    z-index: 2;
    width: fit-content;
    margin-top: 12px;
}

.tone-other {
    --tone: var(--category-other);
}

.tone-ufo {
    --tone: var(--category-ufo);
}

.tone-ghost {
    --tone: var(--category-ghost);
}

.tone-cryptid {
    --tone: var(--category-cryptid);
}

.tone-ufo .category-chip,
.tone-ufo .mini-pill,
.tone-ufo.category-card em,
.tone-ufo .pattern-icon,
.tone-ufo.recap-icon,
.tone-ghost .category-chip,
.tone-ghost .mini-pill,
.tone-ghost.category-card em,
.tone-ghost .pattern-icon,
.tone-ghost.recap-icon,
.tone-cryptid .category-chip,
.tone-cryptid .mini-pill,
.tone-cryptid.category-card em,
.tone-cryptid .pattern-icon,
.tone-cryptid.recap-icon,
.tone-other .category-chip,
.tone-other .mini-pill,
.tone-other.category-card em,
.tone-other .pattern-icon,
.tone-other.recap-icon {
    color: var(--tone);
    background: color-mix(in srgb, var(--tone) 16%, transparent);
}

.carousel-button {
    position: absolute;
    right: -10px;
    top: 50%;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(172, 231, 226, 0.28);
    border-radius: 50%;
    background: rgba(5, 15, 25, 0.84);
    box-shadow: var(--shadow);
    transform: translateY(-50%) rotate(-90deg);
    cursor: pointer;
}

.carousel-button:hover,
.carousel-button:focus-visible {
    color: var(--accent);
    border-color: rgba(131, 230, 207, 0.55);
}

.report-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.report-grid-latest {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.report-grid-latest.is-single {
    grid-template-columns: minmax(0, min(440px, 100%));
}

.featured-cases-panel .report-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.archive-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

.report-card {
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
}

.latest-panel .report-card {
    min-height: 370px;
}

.archive-panel .report-card {
    min-height: 248px;
}

.archive-grid.is-single {
    grid-template-columns: 1fr;
}

.report-top,
.activity-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.report-top span,
.report-evidence span,
.activity-card span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text);
    font-size: 12px;
}

.bookmark-button {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.bookmark-button .icon {
    width: 20px;
    height: 20px;
}

.bookmark-button.is-saved {
    color: var(--accent);
}

.report-body {
    margin-top: auto;
}

.report-body h3 {
    font-size: 18px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.report-body p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.report-body time {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.report-evidence {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(172, 231, 226, 0.14);
}

.audio-strip {
    display: flex;
    align-items: end;
    gap: 3px;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(172, 231, 226, 0.14);
    color: var(--accent);
}

.audio-strip span {
    width: 3px;
    min-height: 10px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.8;
}

.audio-strip span:nth-child(2n) {
    min-height: 18px;
}

.audio-strip span:nth-child(3n) {
    min-height: 26px;
}

.audio-strip small {
    margin-left: auto;
    color: var(--text);
}

.pattern-list {
    display: grid;
    gap: 10px;
}

.pattern-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 108px;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(172, 231, 226, 0.16);
    border-radius: var(--radius);
    background: rgba(7, 20, 32, 0.62);
}

.pattern-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--tone);
    background: color-mix(in srgb, var(--tone) 16%, transparent);
}

.pattern-copy h3 {
    color: var(--tone);
    font-size: 15px;
}

.pattern-copy p {
    margin: 2px 0 0;
    color: var(--text);
    font-size: 13px;
}

.pattern-copy small {
    display: block;
    margin-top: 1px;
    color: var(--muted);
    font-size: 12px;
}

.sparkline {
    width: 108px;
    height: 34px;
}

.sparkline polyline {
    fill: none;
    stroke: var(--tone);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px color-mix(in srgb, var(--tone) 60%, transparent));
}

.panel-link {
    justify-content: flex-end;
    width: 100%;
    margin-top: 12px;
}

.hotspot-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.hotspot-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    padding: 14px;
    display: flex;
    align-items: flex-end;
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(5, 14, 23, 0.24), rgba(4, 12, 20, 0.92)),
        url("../images/discover-hotspot-map.jpg") center / cover no-repeat;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.hotspot-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at var(--hot-x) var(--hot-y), color-mix(in srgb, var(--tone) 48%, transparent), transparent 30%);
}

.hotspot-pulse {
    position: absolute;
    left: var(--hot-x);
    top: var(--hot-y);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--tone) 58%, transparent);
    background: radial-gradient(circle, var(--tone), transparent 58%);
    box-shadow: 0 0 26px color-mix(in srgb, var(--tone) 70%, transparent);
    transform: translate(-50%, -50%);
}

.hotspot-card h3 {
    font-size: 17px;
}

.hotspot-card small {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    font-size: 12px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.category-card {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 12px 8px;
    text-align: center;
    background: rgba(7, 20, 32, 0.62);
}

.category-card:hover,
.category-card:focus-visible {
    border-color: color-mix(in srgb, var(--tone) 64%, rgba(172, 231, 226, 0.18));
}

.category-card span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--tone);
    background: color-mix(in srgb, var(--tone) 18%, transparent);
}

.category-card strong {
    margin-top: 4px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.15;
}

.category-card small {
    color: var(--muted);
    font-size: 12px;
}

.category-card em {
    font-style: normal;
    color: var(--accent);
    font-size: 12px;
}

.activity-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.activity-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
}

.activity-top time {
    color: var(--accent);
    font-size: 12px;
}

.activity-card h3 {
    font-size: 16px;
}

.activity-card p {
    margin-top: 5px;
}

.activity-card span {
    margin-top: 10px;
    color: var(--muted);
}

.world-map {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid rgba(172, 231, 226, 0.14);
    background:
        radial-gradient(circle at 52% 45%, rgba(47, 140, 255, 0.14), transparent 13rem),
        linear-gradient(180deg, rgba(4, 12, 20, 0.16), rgba(4, 12, 20, 0.7)),
        url("../images/discover-hotspot-map.jpg") center / cover no-repeat;
}

.world-map::before {
    content: "";
    position: absolute;
    inset: 18px;
    opacity: 0.52;
    background:
        radial-gradient(ellipse at 23% 40%, rgba(72, 142, 177, 0.38) 0 9%, transparent 10%),
        radial-gradient(ellipse at 36% 61%, rgba(72, 142, 177, 0.32) 0 8%, transparent 9%),
        radial-gradient(ellipse at 53% 38%, rgba(72, 142, 177, 0.36) 0 12%, transparent 13%),
        radial-gradient(ellipse at 69% 46%, rgba(72, 142, 177, 0.3) 0 16%, transparent 17%),
        radial-gradient(ellipse at 84% 67%, rgba(72, 142, 177, 0.28) 0 7%, transparent 8%);
    filter: drop-shadow(0 0 14px rgba(47, 140, 255, 0.25));
}

.world-point {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: color-mix(in srgb, var(--tone) 72%, rgba(3, 10, 17, 0.8));
    box-shadow:
        0 0 0 12px color-mix(in srgb, var(--tone) 18%, transparent),
        0 0 34px color-mix(in srgb, var(--tone) 70%, transparent);
    font-weight: 780;
    transform: translate(-50%, -50%);
}

.world-empty-note {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: min(240px, calc(100% - 40px));
    padding: 14px 16px;
    border: 1px solid rgba(131, 230, 207, 0.2);
    border-radius: var(--radius);
    color: rgba(232, 240, 244, 0.82);
    text-align: center;
    background: rgba(3, 10, 17, 0.72);
    transform: translate(-50%, -50%);
}

.recap-panel {
    position: relative;
    display: grid;
    gap: 18px;
}

.compact-heading {
    margin-bottom: 0;
}

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

.recap-stat {
    min-width: 0;
    min-height: 138px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(172, 231, 226, 0.15);
    border-radius: var(--radius);
    background:
        linear-gradient(160deg, rgba(131, 230, 207, 0.08), rgba(47, 140, 255, 0.04)),
        rgba(7, 20, 32, 0.58);
}

.recap-stat > .icon,
.recap-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: var(--accent);
    background: rgba(131, 230, 207, 0.1);
}

.recap-stat .icon {
    padding: 13px;
}

.recap-stat strong,
.latest-approved-card strong {
    display: block;
    font-size: 30px;
    line-height: 1.02;
    overflow-wrap: anywhere;
}

.recap-stat span,
.latest-approved-card span {
    display: block;
    margin-top: 7px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.3;
}

.recap-stat small,
.latest-approved-card small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.recap-thumb {
    width: 118px;
    min-height: 92px;
    height: 100%;
    flex: 0 0 auto;
    border-radius: 6px;
    background: var(--recap-image, url("../images/discover-sedona-lights.jpg")) center / cover no-repeat;
}

.latest-approved-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(172, 231, 226, 0.15);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(131, 230, 207, 0.08), rgba(166, 92, 255, 0.06)),
        rgba(7, 20, 32, 0.58);
}

.latest-approved-card strong {
    margin-top: 5px;
    font-size: 20px;
    line-height: 1.15;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.latest-approved-card .text-link {
    margin-top: 10px;
}

.recap-link {
    justify-content: flex-end;
    width: 100%;
}

.featured-investigation {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.featured-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    border-radius: var(--radius);
    border: 1px solid rgba(172, 231, 226, 0.14);
    background:
        linear-gradient(180deg, rgba(5, 14, 23, 0.06), rgba(4, 12, 20, 0.4)),
        var(--featured-image, url("../images/discover-phoenix-lights.jpg")) center / cover no-repeat;
}

.featured-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-copy h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.featured-copy p {
    margin-bottom: 16px;
}

.featured-investigation .button {
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    padding: 0 16px;
    font-size: 14px;
}

.site-footer {
    padding: 12px 0 28px;
}

.footer-inner {
    width: min(calc(100% - 56px), var(--max));
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand-footer {
    font-size: 26px;
}

.brand-footer .brand-mark {
    width: 38px;
    height: 38px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    flex: 1;
}

.footer-inner p,
.footer-links {
    color: var(--muted);
    font-size: 13px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--accent);
}

.socials {
    display: flex;
    align-items: center;
    gap: 14px;
}

.socials a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    font-size: 11px;
}

.socials a:hover,
.socials a:focus-visible {
    color: var(--accent);
    border-color: var(--line-strong);
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
    max-width: min(360px, calc(100vw - 48px));
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: rgba(5, 15, 25, 0.95);
    box-shadow: var(--shadow);
    color: var(--text);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@supports not (background: color-mix(in srgb, red 50%, transparent)) {
    .pattern-icon,
    .category-card span,
    .world-point {
        background: rgba(131, 230, 207, 0.14);
    }
}

@media (max-width: 1240px) {
    .stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .discover-dashboard {
        grid-template-columns: minmax(0, 1fr);
    }

    .panel-main,
    .panel-sidebar,
    .side-panel,
    .panel-wide {
        grid-column: 1;
    }

    .report-grid,
    .hotspot-grid,
    .activity-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-grid-latest.is-single {
        grid-template-columns: minmax(0, min(480px, 100%));
    }

    .archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .recap-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1020px) {
    .header-inner {
        gap: 18px;
    }

    .site-nav {
        gap: 24px;
    }

    .header-actions {
        gap: 16px;
    }

    .trend-grid {
        grid-template-columns: 1fr;
    }

    .trend-card {
        min-height: 220px;
    }
}

@media (max-width: 860px) {
    :root {
        --header-h: 68px;
    }

    .page-shell,
    .header-inner,
    .footer-inner {
        width: min(calc(100% - 32px), var(--max));
    }

    .header-inner {
        min-height: var(--header-h);
    }

    .brand {
        gap: 12px;
        font-size: 20px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: rgba(5, 15, 25, 0.98);
        box-shadow: var(--shadow);
    }

    .site-header.is-open .site-nav {
        display: flex;
    }

    .site-nav > a,
    .site-nav .button,
    .nav-dropdown-button,
    .nav-link-button {
        width: 100%;
        min-height: 44px;
        justify-content: space-between;
        padding: 0 10px;
    }

    .site-nav > a.is-active::after {
        display: none;
    }

    .nav-dropdown-button {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        min-width: 0;
        margin-top: 6px;
        transform: none;
        box-shadow: none;
    }

    .nav-dropdown.is-open .dropdown-menu {
        transform: none;
    }

    .header-logout-form {
        width: 100%;
    }

    .desktop-user-menu {
        display: none;
    }

    .site-nav .mobile-nav-only {
        display: flex;
    }

    .mobile-logout-form {
        width: 100%;
        margin: 0;
    }

    .user-menu {
        width: 100%;
        display: grid;
        justify-items: start;
        padding: 8px 12px;
    }

    .user-dropdown {
        position: static;
        width: 100%;
        min-width: 0;
        display: none;
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }

    .user-menu.is-open .user-dropdown,
    .user-dropdown.is-open {
        display: grid;
        transform: none;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .discover-hero,
    .hero-inner {
        min-height: 190px;
    }

    .hero-media {
        background-position: 58% 42%;
    }

    .hero-copy {
        padding-top: 18px;
    }

    .stat-grid {
        grid-template-columns: 1fr;
        margin-top: 12px;
    }

    .stat-card {
        min-height: 82px;
    }

    .panel {
        padding: 14px;
    }

    .panel-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .report-grid,
    .hotspot-grid,
    .activity-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .report-card {
        min-height: 300px;
    }

    .hotspot-card,
    .activity-card {
        min-height: 190px;
    }

    .pattern-row {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .sparkline {
        grid-column: 2;
        width: 100%;
    }

    .world-map {
        min-height: 210px;
    }

    .recap-metric-grid {
        grid-template-columns: 1fr;
    }

    .latest-approved-card {
        grid-template-columns: 1fr;
    }

    .latest-approved-card .recap-thumb {
        width: 100%;
        height: 140px;
    }

    .featured-investigation {
        gap: 14px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 18px;
    }
}

@media (max-width: 520px) {
    .hero-copy h1 {
        font-size: 48px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
    }

    .stat-card strong {
        font-size: 24px;
    }

    .trend-card {
        min-height: 210px;
    }

    .panel-heading h2 {
        font-size: 21px;
    }

    .card-copy h3 {
        font-size: 20px;
    }

    .carousel-button {
        display: none;
    }
}
