:root,
html[data-theme="dark"] {
    --bg-0: #020617;
    --bg-1: #0f172a;
    --bg-2: #111827;
    --surface: rgba(15, 23, 42, 0.86);
    --surface-strong: rgba(2, 6, 23, 0.92);
    --surface-soft: rgba(30, 41, 59, 0.60);
    --surface-hover: rgba(30, 41, 59, 0.86);
    --border: rgba(148, 163, 184, 0.16);
    --border-strong: rgba(77, 141, 255, 0.35);
    --text: #e5eefb;
    --text-strong: #ffffff;
    --muted: #93a4bc;
    --muted-strong: #c2cfdf;
    --accent: #4d8dff;
    --accent-strong: #bfd7ff;
    --accent-soft: rgba(77, 141, 255, 0.14);
    --warm-soft: rgba(29, 78, 216, 0.12);
    --success: #22c55e;
    --success-soft: rgba(34, 197, 94, 0.12);
    --danger: #ef4444;
    --input: rgba(2, 6, 23, 0.72);
    --graph-bg: #f8fafc;
    --shadow: 0 24px 60px rgba(2, 6, 23, 0.34);
    --shadow-soft: 0 14px 32px rgba(2, 6, 23, 0.24);
}

html[data-theme="light"] {
    --bg-0: #eef3f8;
    --bg-1: #dde7f2;
    --bg-2: #f8fafc;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-strong: rgba(255, 255, 255, 0.96);
    --surface-soft: rgba(235, 242, 249, 0.92);
    --surface-hover: rgba(224, 235, 247, 0.98);
    --border: rgba(17, 39, 70, 0.12);
    --border-strong: rgba(17, 39, 70, 0.22);
    --text: #10213b;
    --text-strong: #07152a;
    --muted: #506784;
    --muted-strong: #344c6a;
    --accent: #165dff;
    --accent-strong: #0b4ce0;
    --accent-soft: rgba(22, 93, 255, 0.12);
    --warm-soft: rgba(192, 135, 48, 0.12);
    --success: #16835c;
    --success-soft: rgba(22, 131, 92, 0.1);
    --danger: #d63d57;
    --input: rgba(244, 248, 252, 0.94);
    --graph-bg: #ffffff;
    --shadow: 0 28px 60px rgba(40, 68, 104, 0.14);
    --shadow-soft: 0 14px 32px rgba(40, 68, 104, 0.1);
}

* {
    box-sizing: border-box;
    border-radius: 0 !important;
}

*::before,
*::after {
    border-radius: 0 !important;
}

html {
    min-width: 320px;
    min-height: 100%;
    scroll-behavior: smooth;
}

body#body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    display: block;
    overflow-x: hidden;
    color: var(--text);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    background:
        radial-gradient(circle at top right, rgba(77, 141, 255, 0.16), transparent 30%),
        radial-gradient(circle at bottom left, rgba(29, 78, 216, 0.12), transparent 28%),
        linear-gradient(135deg, var(--bg-0), var(--bg-1) 48%, var(--bg-2));
    background-attachment: fixed;
}

body#body::before,
body#body::after {
    display: none;
}

body#body::before {
    top: 6rem;
    right: 5vw;
    width: 22rem;
    height: 22rem;
    background: rgba(106, 167, 255, 0.13);
}

body#body::after {
    bottom: 3rem;
    left: 2vw;
    width: 18rem;
    height: 18rem;
    background: rgba(242, 193, 120, 0.1);
}

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

a:hover {
    color: var(--text-strong);
}

button,
input,
select {
    font: inherit;
}

button,
a,
input,
select {
    outline-color: var(--accent);
}

img {
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.7rem 0.95rem;
    border: 1px solid var(--accent);
    border-radius: 0;
    color: var(--text-strong);
    background: var(--surface-strong);
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.sidebar {
    position: fixed;
    z-index: 80;
    inset: 0 auto 0 0;
    width: 290px;
    height: 100vh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    color: var(--text);
    border-right: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.96));
    box-shadow: 18px 0 44px rgba(2, 6, 23, 0.24);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 220ms ease;
}

.sidebar-header {
    position: relative;
    height: auto;
    min-height: 92px;
    padding: 1.15rem 1.1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.sidebar-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.42;
}

.brand-lockup {
    min-width: 0;
    width: 100%;
    display: grid;
    gap: 0.34rem;
    color: var(--text);
}

.brand-lockup:hover {
    color: var(--text);
}

.brand-logo {
    display: block;
    width: 174px;
    height: auto;
    max-height: 44px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 0 22px rgba(106, 167, 255, 0.15));
}

.brand-product,
.sidebar-label,
.hero-eyebrow,
.section-eyebrow,
.footer-kicker {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.brand-product {
    padding-left: 0.18rem;
    color: var(--muted);
    font-size: 0.69rem;
    font-weight: 650;
}

.sidebar-menu {
    position: static;
    width: auto;
    min-height: 0;
    padding: 1rem 0.72rem 1.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}

.sidebar-label {
    margin: 0 0.55rem 0.62rem;
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 700;
}

.sidebar-menu br,
.sidebar-menu > .logo {
    display: none;
}

.sidebar .filter-label,
.sidebar .hierarchy-label {
    display: block;
    margin: 0 0 0.42rem;
    color: var(--muted);
    font-size: 0.73rem;
    font-weight: 650;
}

.sidebar .filter-text,
.sidebar .hierarchy-popup {
    margin: 0 0.38rem 0.9rem;
}

.sidebar .filter-text {
    position: relative;
}

.sidebar .filter-text::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0.72rem;
    width: 0.78rem;
    height: 0.78rem;
    border: 1.5px solid var(--muted);
    border-radius: 0;
    transform: translateY(-60%);
    opacity: 0.8;
    pointer-events: none;
}

.sidebar .filter-text::after {
    content: "";
    position: absolute;
    top: calc(50% + 0.28rem);
    left: 1.39rem;
    width: 0.38rem;
    height: 1.5px;
    background: var(--muted);
    transform: rotate(45deg);
    transform-origin: left center;
    opacity: 0.8;
    pointer-events: none;
}

.sidebar .filter-text input,
.sidebar .hierarchy-popup select {
    width: 100%;
    min-height: 42px;
    padding: 0.62rem 0.72rem;
    border: 1px solid var(--border);
    border-radius: 0;
    color: var(--text);
    background: var(--input);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.02);
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.sidebar .filter-text input {
    padding-left: 2.18rem;
}

.sidebar .filter-text input::placeholder {
    color: var(--muted);
}

.sidebar .filter-text input:focus,
.sidebar .hierarchy-popup select:focus {
    border-color: var(--accent);
    background: var(--surface-soft);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.sidebar ul.menu {
    margin: 0;
    padding: 0;
    display: block;
    list-style: none;
}

.sidebar ul.menu.home-menu {
    margin-bottom: 0.25rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid var(--border);
}

.sidebar ul.menu li {
    position: relative;
    margin: 0.13rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    transition: background 150ms ease, color 150ms ease;
}

.sidebar ul.menu li.menuopen,
.sidebar ul.menu li:hover,
.sidebar ul.menu li.menuactive {
    border: 0;
    color: var(--text-strong);
    background: var(--surface-hover);
}

.sidebar ul.menu li.menuactive {
    box-shadow: inset 2px 0 var(--accent);
}

.sidebar ul.menu li a,
.sidebar ul.menu li a.menulinkactive {
    min-height: 39px;
    padding: 0.56rem 0.68rem;
    display: flex;
    align-items: center;
    color: var(--muted-strong);
    font-size: 0.83rem;
    font-weight: 540;
    line-height: 1.3;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.sidebar ul.menu li:hover > a,
.sidebar ul.menu li.menuopen > a,
.sidebar ul.menu li.menuactive > a,
.sidebar ul.menu li a.menulinkactive {
    color: var(--text-strong);
}

.sidebar ul.menu li.menuopen > a::after {
    content: "";
    width: 0.38rem;
    height: 0.38rem;
    margin-left: auto;
    border-right: 1.5px solid var(--muted);
    border-bottom: 1.5px solid var(--muted);
    transform: rotate(45deg) translateY(-0.12rem);
}

.sidebar ul.menu li ul {
    margin: 0 0.22rem 0.35rem;
    padding: 0.2rem 0 0.22rem 0.62rem;
    border-left: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
}

.sidebar ul.menu li ul li a,
.sidebar ul.menu li ul li a.menulinkactive {
    min-height: 34px;
    padding-top: 0.43rem;
    padding-bottom: 0.43rem;
    font-size: 0.78rem;
}

.sidebar-footer {
    padding: 0.9rem 1.05rem 1.05rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    background: rgba(3, 11, 20, 0.18);
}

html[data-theme="light"] .sidebar-footer {
    background: rgba(255, 255, 255, 0.24);
}

.sidebar-footer p {
    margin: 0.38rem 0 0;
    font-size: 0.71rem;
    line-height: 1.45;
}

.engine-state {
    display: flex;
    align-items: center;
    gap: 0.48rem;
    color: var(--muted-strong);
    font-size: 0.72rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.status-dot {
    position: relative;
    width: 0.48rem;
    height: 0.48rem;
    flex: 0 0 auto;
    border-radius: 0;
    background: var(--success);
    box-shadow: 0 0 0 0.22rem var(--success-soft);
}

.status-dot::after {
    content: "";
    position: absolute;
    inset: -0.25rem;
    border: 1px solid var(--success);
    border-radius: 0;
    opacity: 0;
    animation: status-pulse 2.4s ease-out infinite;
}

@keyframes status-pulse {
    0% { transform: scale(0.65); opacity: 0.5; }
    75%, 100% { transform: scale(1.6); opacity: 0; }
}

.sidebar-backdrop {
    position: fixed;
    z-index: 70;
    inset: 0;
    display: none;
    border: 0;
    background: rgba(1, 7, 15, 0.64);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.page-shell {
    min-height: 100vh;
    margin-left: 290px;
    transition: margin-left 220ms ease;
}

.navbar {
    position: fixed;
    z-index: 60;
    top: 0;
    right: 0;
    left: 290px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.35rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    background: rgba(2, 6, 23, 0.86);
    box-shadow: 0 12px 36px rgba(2, 6, 23, 0.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-shadow: none;
    transition: left 220ms ease;
}

.navbar-start,
.navbar-actions {
    display: flex;
    align-items: center;
}

.navbar-start {
    min-width: 0;
    gap: 0.7rem;
}

.navbar-actions {
    gap: 0.5rem;
}

.navbar .navbar-menu,
.navbar .navbar-refresh,
.navbar .navbar-user {
    position: static;
    height: auto;
    display: block;
    border: 0;
    padding: 0;
    line-height: normal;
}

a#menu-button,
.theme-toggle {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 0;
    color: var(--muted-strong);
    background: var(--surface-soft);
    opacity: 1;
    transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

a#menu-button {
    position: relative;
    overflow: hidden;
    text-indent: -9999px;
    background-image: none;
}

a#menu-button::before,
a#menu-button::after,
a#menu-button span::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 17px;
    height: 1.5px;
    border-radius: 0;
    background: currentColor;
    transform: translateX(-50%);
}

a#menu-button::before { top: 14px; }
a#menu-button span::before { top: 20px; }
a#menu-button::after { top: 26px; }

a#menu-button:hover,
.theme-toggle:hover {
    border-color: var(--border-strong);
    color: var(--text-strong);
    background: var(--surface-hover);
}

a#menu-button:active,
.theme-toggle:active {
    transform: translateY(1px);
}

.mobile-brand {
    display: none;
    color: var(--text-strong);
    font-size: 0.91rem;
    font-weight: 720;
    letter-spacing: -0.02em;
}

.mobile-brand span {
    color: var(--muted);
    font-weight: 520;
}

.utility-link,
#refresh-button {
    min-height: 38px;
    padding: 0.55rem 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    border: 1px solid transparent;
    border-radius: 0;
    color: var(--muted-strong);
    font-size: 0.78rem;
    font-weight: 620;
    white-space: nowrap;
    transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.utility-link:hover,
#refresh-button:hover {
    border-color: var(--border);
    color: var(--text-strong);
    background: var(--surface-soft);
}

#refresh-button::before {
    content: "";
    width: 0.44rem;
    height: 0.44rem;
    border-radius: 0;
    background: var(--success);
    box-shadow: 0 0 0 0.2rem var(--success-soft);
}

#refresh-button[data-state="paused"]::before {
    background: var(--danger);
    box-shadow: 0 0 0 0.2rem rgba(255, 120, 135, 0.12);
}

.theme-toggle {
    padding: 0;
    cursor: pointer;
}

.language-switch {
    height: 38px;
    padding: 3px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--surface-soft);
}

.language-switch button {
    min-width: 31px;
    height: 30px;
    padding: 0 0.42rem;
    border: 0;
    border-radius: 0;
    color: var(--muted);
    background: transparent;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.67rem;
    font-weight: 720;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.language-switch button:hover {
    color: var(--text-strong);
}

.language-switch button[aria-pressed="true"] {
    color: var(--text-strong);
    background: var(--surface-hover);
    box-shadow: inset 0 0 0 1px var(--border);
}

.theme-icon {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-icon-sun,
html[data-theme="light"] .theme-icon-moon {
    display: none;
}

html[data-theme="light"] .theme-icon-sun {
    display: block;
}

.main {
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: 96px clamp(1rem, 2.4vw, 2.5rem) 2rem;
    display: block;
    color: var(--text);
}

.hero,
.telemetry-surface,
.footer {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.72));
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero::before,
.telemetry-surface::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-strong), transparent);
    opacity: 0.48;
}

.hero {
    padding: clamp(1.15rem, 2.6vw, 2rem);
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(440px, 0.9fr);
    gap: 1.4rem;
    align-items: end;
    border-radius: 0;
}

.hero-copy {
    min-width: 0;
}

.hero-eyebrow,
.section-eyebrow,
.footer-kicker {
    margin: 0;
    color: var(--accent-strong);
    font-size: 0.68rem;
    font-weight: 720;
}

.hero h1,
.overview > h1 {
    margin: 0;
    color: var(--text-strong);
    font-weight: 740;
    letter-spacing: -0.045em;
}

.hero h1 {
    max-width: 820px;
    margin-top: 0.56rem;
    font-size: clamp(1.75rem, 3.2vw, 3.25rem);
    line-height: 1.04;
    overflow-wrap: anywhere;
}

.hero h2 {
    max-width: 760px;
    margin: 0.72rem 0 0;
    color: var(--muted-strong);
    font-size: clamp(0.88rem, 1.25vw, 1.02rem);
    font-weight: 430;
    line-height: 1.62;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
}

.metric {
    min-width: 0;
    min-height: 82px;
    padding: 0.84rem 0.9rem;
    display: grid;
    align-content: center;
    gap: 0.14rem;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--surface-soft);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.metric-value {
    overflow: hidden;
    color: var(--text-strong);
    font-size: clamp(0.9rem, 1.3vw, 1.08rem);
    font-weight: 720;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metric-label {
    color: var(--muted);
    font-size: 0.71rem;
    font-weight: 550;
}

.telemetry-surface {
    margin-top: 1rem;
    padding: clamp(1rem, 2.2vw, 1.6rem);
    border-radius: 0;
}

.surface-heading {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
}

.surface-heading h2 {
    margin: 0.28rem 0 0;
    color: var(--text-strong);
    font-size: clamp(1.12rem, 2vw, 1.42rem);
    font-weight: 710;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.surface-note {
    max-width: 430px;
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.5;
    text-align: right;
}

.landing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
}

.landing-grid[hidden] {
    display: none;
}

.landing-card {
    min-width: 0;
    min-height: 112px;
    padding: 1rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.88rem;
    border: 1px solid var(--border);
    border-radius: 0;
    color: var(--text);
    background: var(--surface-soft);
    box-shadow: var(--shadow-soft);
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.landing-card:hover {
    border-color: var(--border-strong);
    color: var(--text);
    background: var(--surface-hover);
    transform: translateY(-2px);
}

.landing-index {
    color: var(--accent-strong);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.landing-copy {
    min-width: 0;
    display: grid;
    gap: 0.32rem;
}

.landing-copy strong {
    color: var(--text-strong);
    font-size: 0.92rem;
    line-height: 1.3;
}

.landing-copy small {
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.5;
}

.landing-arrow {
    color: var(--muted);
    font-size: 0.94rem;
    transition: color 160ms ease, transform 160ms ease;
}

.landing-card:hover .landing-arrow {
    color: var(--accent-strong);
    transform: translate(2px, -2px);
}

.overview,
.details {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.82rem;
}

.overview:empty,
.details:empty {
    display: none;
}

.overview:not(:empty) + .details:not(:empty) {
    margin-top: 0.82rem;
}

.overview > h1 {
    margin: 0.25rem 0 0.2rem;
    font-size: clamp(1.16rem, 2vw, 1.52rem);
    line-height: 1.25;
}

.main .panel,
.main .panel-no-border {
    width: 100%;
    min-width: 0;
    margin: 0;
    display: block;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 0;
    color: var(--text);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.5));
    box-shadow: var(--shadow-soft);
}

.main .panel-no-border {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

html[data-theme="light"] .sidebar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 243, 248, 0.96));
}

html[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.88);
}

html[data-theme="light"] .hero,
html[data-theme="light"] .telemetry-surface,
html[data-theme="light"] .footer {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84));
}

html[data-theme="light"] .main .panel,
html[data-theme="light"] .main .panel-no-border {
    background: var(--surface-soft);
}

html[data-theme="light"] .main .panel-no-border {
    background: transparent;
}

.main .panel-heading,
.main .panel-heading-no-border {
    min-height: 46px;
    padding: 0.7rem 0.9rem;
    display: flex;
    align-items: center;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: rgba(106, 167, 255, 0.05);
    box-shadow: none;
}

.main .panel-heading-no-border {
    border-bottom-color: transparent;
    background: transparent;
}

.main .panel-heading h2,
.main .panel-heading-no-border h2 {
    margin: 0;
    padding: 0;
    color: var(--text-strong);
    font-size: 0.86rem;
    font-weight: 680;
    line-height: 1.35;
}

.main .panel-body {
    width: 100%;
    min-width: 0;
    padding: 0.72rem;
    overflow-x: auto;
    color: var(--text);
    background: var(--graph-bg);
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}

.main .panel-body > a {
    width: 100%;
    display: block;
}

.main .panel-body img,
.img-responsive {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.main .panel-body #zoom {
    width: auto;
    max-width: 100%;
}

#range_form {
    margin: 0.72rem 0 0;
    padding: 0.78rem;
    border: 1px solid rgba(17, 39, 70, 0.14);
    border-radius: 0;
    color: #233956;
    background: #eef3f8;
}

#range_form p {
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.46rem;
    font-size: 0.78rem;
    font-weight: 600;
}

#range_form input[type="text"] {
    min-height: 36px;
    padding: 0.4rem 0.58rem;
    border: 1px solid #b8c6d8;
    border-radius: 0;
    color: #10213b;
    background: #ffffff;
}

#range_form input[type="submit"] {
    min-height: 36px;
    padding: 0.42rem 0.72rem;
    border: 1px solid #165dff;
    border-radius: 0;
    color: #ffffff;
    background: #165dff;
    cursor: pointer;
}

#range_form input[type="submit"]:hover {
    background: #0b4ce0;
}

.footer {
    margin-top: 1rem;
    padding: 1.15rem 1.25rem;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1.2rem;
    border-radius: 0;
    color: var(--muted);
}

.footer p {
    margin: 0.22rem 0 0;
    display: block;
    font-size: 0.77rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.42rem;
}

.footer-links a {
    padding: 0.42rem 0.58rem;
    border-radius: 0;
    color: var(--muted-strong);
    font-size: 0.74rem;
    font-weight: 620;
}

.footer-links a:hover {
    color: var(--text-strong);
    background: var(--surface-soft);
}

.footer-meta {
    display: grid;
    justify-items: end;
    gap: 0.2rem;
    text-align: right;
}

.footer small {
    font-size: 0.68rem;
    line-height: 1.4;
}

.footer a {
    color: var(--muted-strong);
}

.footer a:hover {
    color: var(--text-strong);
}

body.sidebar-hidden .sidebar {
    transform: translateX(-100%);
}

body.sidebar-hidden .page-shell {
    margin-left: 0;
}

body.sidebar-hidden .navbar {
    left: 0;
}

@media (min-width: 1180px) {
    .overview,
    .details {
        justify-items: stretch;
    }

    .overview .panel,
    .details .panel {
        max-width: 1120px;
    }
}

@media (max-width: 1180px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .metric {
        min-height: 74px;
    }

    .footer {
        grid-template-columns: 1fr auto;
    }

    .footer-meta {
        grid-column: 1 / -1;
        justify-items: start;
        text-align: left;
    }
}

@media (max-width: 960px) {
    .sidebar {
        width: min(320px, 88vw);
        transform: translateX(-101%);
    }

    .page-shell {
        margin-left: 0;
    }

    .navbar {
        left: 0;
    }

    body.sidebar-visible .sidebar {
        transform: translateX(0);
    }

    body.sidebar-visible .sidebar-backdrop {
        display: block;
    }

    body.sidebar-hidden .sidebar {
        transform: translateX(-101%);
    }

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

    .main {
        padding-top: 88px;
    }
}

@media (max-width: 720px) {
    .navbar {
        height: 62px;
        padding: 0 0.72rem;
    }

    a#menu-button,
    .theme-toggle {
        width: 39px;
        height: 39px;
    }

    .language-switch {
        height: 39px;
    }

    .utility-link-optional {
        display: none;
    }

    .utility-link,
    #refresh-button {
        min-height: 36px;
        padding: 0.48rem 0.58rem;
        font-size: 0.72rem;
    }

    .main {
        padding: 78px 0.7rem 1rem;
    }

    .hero,
    .telemetry-surface,
    .footer {
        border-radius: 0;
    }

    .hero {
        padding: 1.05rem;
    }

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

    .metric {
        min-height: 68px;
        padding: 0.68rem 0.72rem;
    }

    .telemetry-surface {
        padding: 0.76rem;
    }

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

    .surface-heading {
        align-items: start;
        flex-direction: column;
    }

    .surface-note {
        max-width: none;
        text-align: left;
    }

    .main .panel-body {
        padding: 0.42rem;
    }

    .footer {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .footer-meta {
        grid-column: auto;
    }
}

@media (max-width: 540px) {
    .mobile-brand span,
    .utility-link,
    #refresh-button {
        display: none;
    }

    .navbar-actions {
        margin-left: auto;
    }

    .hero h1 {
        font-size: 1.68rem;
    }

    .hero-metrics {
        gap: 0.45rem;
    }

    .metric-value {
        font-size: 0.86rem;
    }

    #range_form p {
        align-items: stretch;
        flex-direction: column;
    }

    #range_form input[type="text"],
    #range_form input[type="submit"] {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .sidebar,
    .navbar,
    .sidebar-backdrop,
    .hero-metrics,
    .surface-heading,
    .footer {
        display: none !important;
    }

    .page-shell,
    .main {
        width: 100%;
        margin: 0;
        padding: 0;
    }
}
