:root {
    --bg: #ffffff;
    --sidebar: #f7faf9;
    --ink: #1e293b;
    --text: #475569;
    --muted: #64748b;
    --line: #e2e8f0;
    --soft-line: #f1f5f9;
    --link: #1d4ed8;
    --link-hover: #0f172a;
    --card: #ffffff;
    --accent: #0f766e;
    --accent-soft: #e6fffb;
    --warm: #b45309;
    --warm-soft: #fff7ed;
    --sidebar-width: 360px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--text);
    background:
        linear-gradient(90deg, rgba(15, 118, 110, 0.045), transparent 34%),
        var(--bg);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.page-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    height: 100vh;
    height: 100dvh;
    padding: clamp(16px, 2.15vh, 28px) 26px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 250, 249, 0.96)),
        var(--sidebar);
    border-right: 1px solid var(--line);
}

.profile-block {
    margin-bottom: clamp(10px, 1.45vh, 18px);
}

.profile-photo {
    display: block;
    width: clamp(96px, 15vh, 132px);
    height: clamp(96px, 15vh, 132px);
    margin-bottom: clamp(10px, 1.5vh, 16px);
    border-radius: 6px;
    object-fit: cover;
    object-position: 72% 82%;
    border: 1px solid var(--line);
    background: #e5e7eb;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-bottom: 7px;
}

.name-row h1 {
    margin-bottom: 0;
}

.profile-block h1 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: clamp(1.5rem, 3.1vh, 2rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: 0;
}

.signature-image {
    display: block;
    width: auto;
    height: clamp(25px, 3.65vh, 34px);
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: contrast(1.08);
    transform: translateY(-2px);
}

.profile-title,
.profile-affiliation {
    margin: 0;
    color: var(--muted);
    font-size: clamp(0.78rem, 1.55vh, 0.95rem);
    line-height: 1.35;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: clamp(7px, 1.1vh, 12px);
}

.profile-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 3px 7px;
    border: 1px solid rgba(15, 118, 110, 0.22);
    border-radius: 4px;
    background: var(--accent-soft);
    color: #115e59;
    font-size: clamp(0.62rem, 1.25vh, 0.72rem);
    font-weight: 800;
    line-height: 1;
}

.profile-affiliation {
    margin-top: 4px;
    color: var(--ink);
    font-weight: 600;
}

.profile-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 9px;
    margin: clamp(10px, 1.6vh, 16px) 0;
}

.profile-links a {
    display: flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    color: var(--text);
    font-size: clamp(0.7rem, 1.32vh, 0.84rem);
    line-height: 1.35;
    transition: color 0.15s ease, transform 0.15s ease;
}

.profile-links i {
    width: 14px;
    color: var(--muted);
    font-size: 0.86rem;
}

.profile-links a:hover,
.profile-links a:hover i {
    color: var(--link);
}

.profile-links a:hover {
    transform: translateX(2px);
}

.side-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    margin: clamp(8px, 1.3vh, 14px) 0;
    padding-top: clamp(8px, 1.3vh, 14px);
    border-top: 1px solid var(--line);
}

.side-nav a {
    width: fit-content;
    padding: 2px 0;
    color: var(--ink);
    font-size: clamp(0.72rem, 1.35vh, 0.88rem);
    font-weight: 700;
    border-bottom: 2px solid transparent;
}

.side-nav a:hover {
    color: var(--accent);
    border-bottom-color: rgba(15, 118, 110, 0.42);
    text-decoration: none;
}

.sidebar-note {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: clamp(7px, 1vh, 12px);
    padding-top: clamp(7px, 1vh, 12px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: clamp(0.64rem, 1.22vh, 0.78rem);
}

.sidebar-footer {
    margin-top: auto;
    color: #94a3b8;
    font-size: clamp(0.58rem, 1.05vh, 0.72rem);
}

.content {
    width: calc(100% - var(--sidebar-width));
    max-width: 1120px;
    margin-left: var(--sidebar-width);
    padding: 56px 72px 80px;
}

.content-section {
    margin-bottom: 62px;
    scroll-margin-top: 24px;
}

.content-section h2 {
    margin: 0 0 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--link);
    color: var(--ink);
    font-size: 1.72rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}

.content-section h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    margin-top: 10px;
    background: var(--accent);
}

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

.about-copy {
    max-width: 880px;
    font-size: 1.06rem;
}

.main-body p {
    margin: 0 0 1rem;
}

.main-body strong {
    color: var(--ink);
    font-weight: 700;
}

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

.record-card {
    display: grid;
    align-content: start;
    gap: 7px;
    min-height: 154px;
    padding: 18px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: 6px;
    background: var(--card);
    color: var(--text);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.record-card:hover {
    border-color: rgba(15, 118, 110, 0.38);
    color: var(--text);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
}

.record-card strong {
    color: var(--ink);
    font-size: 1.04rem;
    line-height: 1.35;
}

.record-card > span:last-child {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.record-kicker {
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.publication-list h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.35;
}

.pub-items {
    display: grid;
    gap: 15px;
    margin: 0 0 24px;
    padding-left: 1.3rem;
}

.pub-items li {
    padding-left: 0.2rem;
}

.pub-items em {
    color: var(--ink);
    font-style: italic;
}

.pub-links {
    display: block;
    margin-top: 4px;
    font-size: 0.92rem;
}

.experience-list {
    display: grid;
    gap: 26px;
}

.experience-group h3 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.35;
}

.experience-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    padding: 15px 0;
    border-top: 1px solid var(--line);
}

.experience-item h4 {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.35;
}

.experience-role {
    margin: 2px 0 7px;
    color: var(--accent);
    font-weight: 800;
}

.experience-item p {
    margin: 0;
}

.experience-item time {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
}

.sidebar-stats {
    margin: clamp(8px, 1.2vh, 14px) 0;
    padding-top: clamp(8px, 1.2vh, 14px);
    border-top: 1px solid var(--line);
}

.sidebar-stats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}

.sidebar-stats-header h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(0.82rem, 1.55vh, 0.98rem);
    line-height: 1.1;
}

.sidebar-stats-header span {
    color: var(--accent);
    font-size: clamp(0.58rem, 1.05vh, 0.68rem);
    font-weight: 800;
    text-transform: uppercase;
}

.mini-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 7px;
}

.mini-stats-grid div {
    min-width: 0;
    padding: 6px 7px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #ffffff;
}

.mini-stats-grid span,
.mini-stats-grid strong {
    display: block;
}

.mini-stats-grid span {
    color: var(--muted);
    font-size: clamp(0.52rem, 1vh, 0.62rem);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.mini-stats-grid strong {
    overflow: hidden;
    color: var(--ink);
    font-size: clamp(0.84rem, 1.75vh, 1.02rem);
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.visitor-earth-shell {
    overflow: hidden;
    border: 1px solid rgba(30, 41, 59, 0.8);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 48%, rgba(30, 64, 175, 0.2), transparent 36%),
        linear-gradient(180deg, #030712 0%, #07111f 62%, #020617 100%);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.16);
}

.sidebar-earth {
    border-radius: 7px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

.earth-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px 0;
    color: #dbeafe;
}

.sidebar-earth .earth-topbar {
    display: grid;
    gap: 5px;
    padding: 9px 10px 0;
}

.earth-topbar h3 {
    margin: 0 0 3px;
    color: #e0f2fe;
    font-size: 1.12rem;
    font-weight: 800;
}

.sidebar-earth .earth-topbar h3 {
    margin-bottom: 1px;
    font-size: clamp(0.78rem, 1.45vh, 0.9rem);
}

.earth-topbar p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.84rem;
    font-weight: 700;
}

.sidebar-earth .earth-topbar p {
    overflow: hidden;
    font-size: clamp(0.58rem, 1.05vh, 0.68rem);
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.earth-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 800;
}

.sidebar-earth .earth-metrics {
    gap: 5px 9px;
    font-size: clamp(0.56rem, 1.05vh, 0.66rem);
}

.earth-metrics strong {
    margin-left: 5px;
    color: #60a5fa;
}

.earth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 238px;
    gap: 18px;
    padding: 8px 16px 16px 22px;
}

.sidebar-earth .earth-layout {
    position: relative;
    display: block;
    height: clamp(176px, 28vh, 248px);
    padding: 0 9px 9px;
}

.earth-stage {
    position: relative;
    min-height: 520px;
}

.sidebar-earth .earth-stage {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
}

#visitor-earth-canvas {
    display: block;
    width: 100%;
    height: 520px;
}

.sidebar-earth #visitor-earth-canvas {
    height: 100%;
    border-radius: 6px;
    cursor: grab;
    touch-action: none;
}

.sidebar-earth #visitor-earth-canvas:active {
    cursor: grabbing;
}

.earth-tooltip {
    position: absolute;
    left: 50%;
    top: 14px;
    z-index: 2;
    display: none;
    max-width: calc(100% - 24px);
    padding: 5px 8px;
    border: 1px solid rgba(96, 165, 250, 0.42);
    border-radius: 5px;
    background: rgba(15, 23, 42, 0.86);
    color: #dbeafe;
    font-size: clamp(0.54rem, 1vh, 0.64rem);
    font-weight: 800;
    line-height: 1.15;
    pointer-events: none;
    text-align: center;
    transform: translateX(-50%);
    white-space: nowrap;
}

.earth-status {
    position: absolute;
    left: 0;
    right: 10px;
    bottom: 10px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.78rem;
}

.sidebar-earth .earth-status {
    left: 0;
    right: 0;
    bottom: 4px;
    display: block;
    overflow: hidden;
    color: rgba(226, 232, 240, 0.68);
    font-size: clamp(0.52rem, 0.95vh, 0.62rem);
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.earth-status span {
    min-width: 0;
}

.earth-status span:last-child {
    text-align: right;
}

.earth-recent-panel {
    max-height: 520px;
    overflow: hidden;
    padding: 8px 0 0;
}

.sidebar-earth .earth-recent-panel {
    display: none;
}

.earth-recent-panel h3 {
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 800;
}

.sidebar-earth .earth-recent-panel h3 {
    margin-bottom: 5px;
    padding-bottom: 4px;
    font-size: clamp(0.58rem, 1.05vh, 0.66rem);
}

.earth-visitor-list {
    display: grid;
    gap: 8px;
    max-height: 460px;
    overflow-y: auto;
    padding-right: 4px;
}

.sidebar-earth .earth-visitor-list {
    gap: 4px;
    max-height: 34px;
    overflow: hidden;
    padding-right: 0;
}

.earth-visitor-list p {
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
}

.sidebar-earth .earth-visitor-list p {
    font-size: clamp(0.54rem, 1vh, 0.62rem);
    line-height: 1.25;
}

.earth-visitor-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 43px;
    padding: 7px 8px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.62);
}

.sidebar-earth .earth-visitor-item {
    grid-template-columns: 27px minmax(0, 1fr) auto;
    gap: 5px;
    min-height: 34px;
    padding: 5px 6px;
}

.flag-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 18px;
    border-radius: 3px;
    background: linear-gradient(180deg, #ef4444 0 48%, #f8fafc 48% 54%, #1d4ed8 54% 100%);
    color: #ffffff;
    font-size: 0.52rem;
    font-weight: 800;
}

.sidebar-earth .flag-chip {
    width: 22px;
    height: 15px;
    font-size: 0.46rem;
}

.earth-visitor-meta {
    min-width: 0;
}

.earth-visitor-meta strong,
.earth-visitor-meta span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.earth-visitor-meta strong {
    color: #dbeafe;
    font-size: 0.76rem;
    line-height: 1.2;
}

.sidebar-earth .earth-visitor-meta strong {
    font-size: clamp(0.56rem, 1.05vh, 0.66rem);
}

.earth-visitor-meta span {
    color: #64748b;
    font-size: 0.7rem;
}

.sidebar-earth .earth-visitor-meta span,
.sidebar-earth .earth-visitor-time {
    font-size: clamp(0.5rem, 0.95vh, 0.58rem);
}

.repo-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: 6px;
    color: var(--muted);
    font-size: clamp(0.52rem, 1vh, 0.62rem);
    line-height: 1.25;
}

.repo-mini strong {
    color: var(--ink);
}

.repo-mini #repo_region_list,
.repo-mini #repo_updated_at {
    display: none;
}

.earth-visitor-time {
    color: #94a3b8;
    font-size: 0.68rem;
    white-space: nowrap;
}

.news-feed {
    display: grid;
    gap: 16px;
}

.news-source-panel,
.qzone-status,
.news-item {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
}

.news-source-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border-left: 3px solid var(--accent);
}

.news-source-panel h3,
.news-item h3 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 1.02rem;
}

.news-source-panel p,
.news-item p {
    margin: 0;
}

.news-body {
    white-space: pre-line;
}

.qq-emote {
    display: inline-block;
    width: 1.35em;
    height: 1.35em;
    margin: 0 0.08em;
    object-fit: contain;
    vertical-align: -0.28em;
}

.qq-emote-fallback {
    display: inline-block;
    margin: 0 0.08em;
    vertical-align: -0.08em;
}

.news-source-panel a,
.news-link {
    white-space: nowrap;
    font-weight: 700;
}

.qzone-status {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.qzone-status strong {
    flex: 0 0 auto;
    color: var(--ink);
    white-space: nowrap;
}

.news-list {
    display: grid;
    gap: 14px;
}

.news-item {
    padding: 16px 18px;
}

.news-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.news-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.news-images img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
}

.news-empty {
    color: var(--muted);
}

@media (max-width: 900px) {
    .page-shell {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .sidebar {
        position: static;
        height: auto;
        inset: auto;
        width: 100%;
        max-width: 100%;
        padding: 30px 24px;
        overflow: hidden;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .sidebar * {
        min-width: 0;
    }

    .profile-photo {
        width: 140px;
        height: 140px;
    }

    .side-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .content {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        padding: 36px 24px 64px;
        overflow-wrap: anywhere;
    }

    .content *,
    .news-feed *,
    .publication-list *,
    .experience-list *,
    .visitor-earth-shell * {
        min-width: 0;
    }

    .profile-title,
    .profile-affiliation,
    .profile-links a,
    .profile-links span,
    .main-body,
    .main-body p,
    .pub-items li,
    .experience-item,
    .experience-item p,
    .news-item,
    .news-item p,
    .qzone-status {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .experience-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }

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

    .record-card {
        min-height: 0;
    }

    .experience-item time {
        white-space: normal;
    }

    .news-source-panel {
        flex-wrap: wrap;
    }
}

@supports (width: 100dvw) {
    @media (max-width: 900px) {
        html,
        body,
        .page-shell,
        .sidebar,
        .content {
            width: 100dvw;
            max-width: 100dvw;
        }
    }
}

@media (max-height: 950px) and (min-width: 901px) {
    .sidebar {
        padding: 12px 24px;
    }

    .profile-photo {
        width: 82px;
        height: 82px;
        margin-bottom: 7px;
    }

    .profile-block {
        margin-bottom: 7px;
    }

    .profile-block h1 {
        font-size: 1.4rem;
    }

    .signature-image {
        height: 27px;
    }

    .profile-title,
    .profile-affiliation {
        font-size: 0.72rem;
    }

    .profile-badges {
        gap: 4px;
        margin-top: 6px;
    }

    .profile-badges span {
        min-height: 18px;
        padding: 2px 6px;
        font-size: 0.58rem;
    }

    .profile-links {
        gap: 4px 8px;
        margin: 8px 0;
    }

    .profile-links a {
        font-size: 0.66rem;
    }

    .side-nav {
        margin: 8px 0;
        padding-top: 8px;
    }

    .side-nav a {
        font-size: 0.68rem;
    }

    .sidebar-stats {
        margin: 7px 0;
        padding-top: 7px;
    }

    .mini-stats-grid div {
        padding: 4px 6px;
    }

    .sidebar-earth .earth-topbar {
        padding: 7px 9px 0;
    }

    .sidebar-earth .earth-stage,
    .sidebar-earth #visitor-earth-canvas {
        min-height: 0;
        width: 100%;
        height: 100%;
    }

    .sidebar-earth .earth-recent-panel,
    .repo-mini {
        display: none;
    }

    .sidebar-note {
        margin-top: 7px;
        padding-top: 7px;
        font-size: 0.62rem;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .content-section {
        margin-bottom: 46px;
    }

    .content-section h2 {
        font-size: 1.48rem;
    }

    .earth-layout {
        grid-template-columns: 1fr;
    }

    .earth-stage,
    #visitor-earth-canvas {
        min-height: 0;
        height: 380px;
    }

    .earth-status {
        position: static;
        display: grid;
        padding: 0 0 12px;
    }

    .earth-status span:last-child {
        text-align: left;
    }

    .profile-links {
        grid-template-columns: 1fr;
    }

    .profile-links a {
        width: auto;
    }

    .sidebar-earth {
        width: 100%;
        max-width: 100%;
    }

    .profile-title,
    .about-copy,
    .main-body {
        overflow-wrap: anywhere;
    }

    .sidebar-earth .earth-layout {
        padding: 0 9px 9px;
    }

    .sidebar-earth .earth-stage,
    .sidebar-earth #visitor-earth-canvas {
        min-height: 0;
        width: 100%;
        height: 100%;
    }

    .sidebar-earth .earth-status {
        position: absolute;
        display: block;
        padding: 0;
        text-align: center;
        white-space: normal;
    }

    .sidebar-earth .earth-recent-panel {
        max-height: 54px;
    }

    .sidebar-earth .earth-visitor-list {
        max-height: 38px;
        overflow: hidden;
    }
}

@media (max-width: 520px) {
    .page-shell,
    .sidebar,
    .content {
        width: 390px;
        max-width: 100%;
    }
}


/* MapMyVisitors globe */
.mapmyvisitors-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 11px 7px;
}

.mapmyvisitors-header h3 {
    margin: 0 0 2px;
    color: #e0f2fe;
    font-size: clamp(0.75rem, 1.38vh, 0.88rem);
    font-weight: 800;
    line-height: 1.25;
}

.mapmyvisitors-header p {
    margin: 0;
    color: #94a3b8;
    font-size: clamp(0.52rem, 0.98vh, 0.62rem);
    line-height: 1.3;
}

.mapmyvisitors-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #5eead4;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mapmyvisitors-live::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2dd4bf;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.14);
    content: "";
}

.mapmyvisitors-globe {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: clamp(190px, 29vh, 252px);
    padding: 2px 8px 10px;
    overflow: hidden;
    isolation: isolate;
}

.mapmyvisitors-globe > :not(script, noscript, .mapmyvisitors-status, .mapmyvisitors-fallback, .visitor-insights-button) {
    position: relative;
    z-index: 1;
    max-width: 100% !important;
}

.mapmyvisitors-globe iframe,
.mapmyvisitors-globe canvas,
.mapmyvisitors-globe svg {
    display: block;
    max-width: 100% !important;
}

.mapmyvisitors-globe #visitor-earth-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    cursor: grab;
    touch-action: none;
}

.mapmyvisitors-globe #visitor-earth-canvas:active {
    cursor: grabbing;
}

.mapmyvisitors-globe #visitor-earth-canvas:focus-visible {
    outline: 3px solid #facc15;
    outline-offset: -4px;
}

.mapmyvisitors-tracker {
    position: fixed !important;
    left: -10000px !important;
    top: 0 !important;
    width: 360px !important;
    height: 360px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip-path: inset(100%) !important;
    opacity: 0.001 !important;
    pointer-events: none !important;
    contain: layout paint style !important;
}

.mapmyvisitors-noscript {
    display: block;
    padding: 8px 10px;
    color: #bfdbfe;
    font-size: 0.68rem;
    text-align: center;
}

.mapmyvisitors-status {
    position: absolute;
    inset: 2px 8px 10px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 6px;
    background:
        radial-gradient(circle at 50% 45%, rgba(30, 64, 175, 0.38), transparent 42%),
        #030712;
    color: #cbd5e1;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.mapmyvisitors-globe.is-ready .mapmyvisitors-status {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.mapmyvisitors-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(147, 197, 253, 0.25);
    border-top-color: #60a5fa;
    border-radius: 50%;
    animation: mapmyvisitors-spin 800ms linear infinite;
}

.mapmyvisitors-fallback {
    position: relative;
    z-index: 4;
    display: inline-flex;
    max-width: 250px;
    padding: 10px 12px;
    border: 1px solid rgba(96, 165, 250, 0.42);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.86);
    color: #dbeafe;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

.mapmyvisitors-fallback:hover {
    color: #ffffff;
}

.mapmyvisitors-fallback[hidden] {
    display: none;
}

@keyframes mapmyvisitors-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mapmyvisitors-spinner {
        animation: none;
    }
}

@media (max-width: 900px) {
    .mapmyvisitors-globe {
        min-height: 280px;
    }
}

@media (max-width: 520px) {
    .mapmyvisitors-globe {
        min-height: 230px;
        padding-right: 5px;
        padding-left: 5px;
    }
}

.mapmyvisitors-status[hidden] {
    display: none;
}

@media (max-height: 950px) and (min-width: 901px) {
    .mapmyvisitors-globe {
        height: 24vh;
        min-height: 210px;
        max-height: 228px;
    }
}

.visitor-insights-button {
    position: absolute;
    right: 14px;
    bottom: 16px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(147, 197, 253, 0.55);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.82);
    color: #dbeafe;
    box-shadow: 0 5px 18px rgba(2, 6, 23, 0.36);
    backdrop-filter: blur(7px);
    transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.visitor-insights-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.visitor-insights-button:hover {
    border-color: #bfdbfe;
    background: rgba(29, 78, 216, 0.92);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.34);
}

.visitor-insights-button:active {
    transform: translateY(0) scale(0.94);
}

.visitor-insights-button:focus-visible {
    outline: 3px solid #facc15;
    outline-offset: 3px;
}

@media (max-height: 950px) and (min-width: 901px) {
    .visitor-insights-button {
        right: 12px;
        bottom: 12px;
        width: 30px;
        height: 30px;
    }
}

.mapmyvisitors-status.is-empty,
.mapmyvisitors-status.is-note {
    inset: auto 48px 14px 12px;
    display: block;
    padding: 7px 9px;
    border: 1px solid rgba(147, 197, 253, 0.24);
    background: rgba(2, 6, 23, 0.78);
    color: #cbd5e1;
    line-height: 1.35;
    text-align: left;
}

.mapmyvisitors-status.is-empty .mapmyvisitors-spinner,
.mapmyvisitors-status.is-note .mapmyvisitors-spinner {
    display: none;
}

.mapmyvisitors-globe.is-ready .mapmyvisitors-status.is-empty,
.mapmyvisitors-globe.is-ready .mapmyvisitors-status.is-note {
    visibility: visible;
    opacity: 1;
}
