﻿:root {
    --bg: #071117;
    --bg-soft: #0d1f29;
    --panel: rgba(10, 27, 36, 0.78);
    --panel-solid: #112a36;
    --line: rgba(139, 232, 255, 0.22);
    --line-bright: rgba(100, 222, 255, 0.6);
    --text: #edfaff;
    --muted: #94adb9;
    --accent: #27e1bb;
    --accent-2: #52a9ff;
    --accent-3: #ffc857;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    --page-width: 1420px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: "Microsoft JhengHei", "Noto Sans TC", "PingFang TC", Arial, sans-serif;
    background:
        radial-gradient(circle at 18% 12%, rgba(39, 225, 187, 0.18), transparent 28rem),
        radial-gradient(circle at 82% 4%, rgba(82, 169, 255, 0.18), transparent 26rem),
        linear-gradient(135deg, #071117 0%, #0a1b23 48%, #081015 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(139, 232, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 232, 255, 0.07) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.18));
}

body::after {
    content: "";
    position: fixed;
    right: clamp(1.2rem, 7vw, 8rem);
    bottom: clamp(1rem, 5vw, 5.5rem);
    width: min(34vw, 24rem);
    height: min(48vw, 34rem);
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 0 48%, rgba(39, 225, 187, 0.45) 48% 52%, transparent 52%),
        linear-gradient(116deg, transparent 0 47%, rgba(82, 169, 255, 0.28) 47% 49%, transparent 49%),
        linear-gradient(64deg, transparent 0 51%, rgba(82, 169, 255, 0.28) 51% 53%, transparent 53%),
        linear-gradient(102deg, transparent 0 45%, rgba(39, 225, 187, 0.2) 45% 47%, transparent 47%),
        linear-gradient(78deg, transparent 0 53%, rgba(39, 225, 187, 0.2) 53% 55%, transparent 55%),
        linear-gradient(to bottom, transparent 0 18%, rgba(82, 169, 255, 0.36) 18% 20%, transparent 20% 31%, rgba(82, 169, 255, 0.26) 31% 33%, transparent 33% 45%, rgba(82, 169, 255, 0.2) 45% 47%, transparent 47%),
        linear-gradient(to bottom, transparent 0 84%, rgba(39, 225, 187, 0.22) 84% 86%, transparent 86%);
    clip-path: polygon(47% 18%, 53% 18%, 62% 100%, 38% 100%);
    opacity: 0.72;
}

.site-shell::before {
    content: "";
    position: fixed;
    right: clamp(0.4rem, 5vw, 5.5rem);
    bottom: clamp(15rem, 30vw, 27rem);
    width: min(44vw, 31rem);
    height: min(24vw, 17rem);
    pointer-events: none;
    background:
        linear-gradient(120deg, transparent 0 35%, rgba(39, 225, 187, 0.22) 35% 36%, transparent 36% 100%),
        linear-gradient(60deg, transparent 0 64%, rgba(82, 169, 255, 0.2) 64% 65%, transparent 65% 100%),
        linear-gradient(105deg, transparent 0 41%, rgba(39, 225, 187, 0.16) 41% 42%, transparent 42% 100%),
        linear-gradient(75deg, transparent 0 58%, rgba(82, 169, 255, 0.16) 58% 59%, transparent 59% 100%);
    border-top: 1px solid rgba(39, 225, 187, 0.2);
    opacity: 0.72;
    transform: skewY(-5deg);
}

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

.site-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: clamp(1rem, 2.3vw, 2rem);
}

.site-header {
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    width: min(var(--page-width), 100%);
    min-height: 5.15rem;
    margin: 0 auto;
    padding: 0.85rem 1.05rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(14, 34, 44, 0.9), rgba(8, 21, 29, 0.82));
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.brand a {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 30rem;
}

.brand-icon {
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(39, 225, 187, 0.44);
    border-radius: 8px;
    object-fit: cover;
    background: rgba(39, 225, 187, 0.08);
    box-shadow: 0 0 18px rgba(39, 225, 187, 0.18);
}

.brand-text {
    font-size: clamp(1.6rem, 2vw, 2rem);
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
}

.mobile-menu-button {
    display: none;
}

.main-nav > ul {
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: max-content;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-item > a,
.nav-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.55rem;
    padding: 0 0.9rem;
    border: 0;
    border-radius: 6px;
    color: var(--muted);
    background: transparent;
    font: inherit;
    font-size: 0.94rem;
    white-space: nowrap;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.has-submenu > .nav-trigger::after {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    margin-left: 0.5rem;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-0.12rem) rotate(45deg);
    transition: transform 160ms ease;
}

.nav-item:hover > a,
.nav-item:hover > .nav-trigger,
.nav-item:focus-within > a,
.nav-item:focus-within > .nav-trigger,
.nav-item.active > a,
.nav-item.active > .nav-trigger {
    color: var(--text);
    background: rgba(82, 169, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(82, 169, 255, 0.2);
}

.nav-item:hover > .nav-trigger::after,
.nav-item:focus-within > .nav-trigger::after,
.nav-item.open > .nav-trigger::after {
    transform: translateY(0.1rem) rotate(225deg);
}

.submenu {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 50%;
    z-index: 2000;
    width: max-content;
    min-width: 12.5rem;
    margin: 0;
    padding: 0.45rem;
    list-style: none;
    border: 1px solid var(--line-bright);
    border-radius: 8px;
    background: rgba(8, 21, 29, 0.96);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -0.4rem);
    transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.submenu::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -0.36rem;
    width: 0.7rem;
    height: 0.7rem;
    border-left: 1px solid var(--line-bright);
    border-top: 1px solid var(--line-bright);
    background: rgba(8, 21, 29, 0.96);
    transform: translateX(-50%) rotate(45deg);
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu,
.has-submenu.open > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.submenu a {
    display: flex;
    align-items: center;
    min-height: 2.35rem;
    padding: 0 0.78rem;
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.92rem;
    white-space: nowrap;
}

.submenu a:hover,
.submenu a:focus,
.submenu a.current {
    color: var(--text);
    background: linear-gradient(90deg, rgba(39, 225, 187, 0.18), rgba(82, 169, 255, 0.08));
    outline: none;
}

.content-area {
    position: relative;
    z-index: 1;
    width: min(var(--page-width), 100%);
    min-height: clamp(26rem, 68vh, 46rem);
    margin: clamp(1.1rem, 3vw, 2rem) auto 0;
    border: 1px solid rgba(139, 232, 255, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(39, 225, 187, 0.06), transparent 32%),
        linear-gradient(225deg, rgba(82, 169, 255, 0.07), transparent 42%),
        rgba(6, 17, 23, 0.48);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.site-footer {
    width: min(var(--page-width), 100%);
    margin: clamp(1.1rem, 2.4vw, 2rem) auto 0;
    color: var(--muted);
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(14rem, 0.62fr) minmax(24rem, 1.38fr);
    gap: clamp(0.55rem, 1.5vw, 1rem);
    padding: clamp(0.85rem, 2vw, 1.25rem) 0;
}

.footer-brand-block,
.footer-notes {
    min-width: 0;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text);
    font-size: clamp(0.98rem, 1.4vw, 1.16rem);
    font-weight: 800;
}

.footer-logo {
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    border: 1px solid rgba(39, 225, 187, 0.44);
    border-radius: 8px;
    object-fit: cover;
    background: rgba(39, 225, 187, 0.08);
    box-shadow: 0 0 18px rgba(39, 225, 187, 0.18);
}

.footer-tagline {
    margin: 0.35rem 0 0 2.9rem;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.footer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2rem;
    padding: 0.4rem 0.68rem;
    border: 1px solid rgba(39, 225, 187, 0.32);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(39, 225, 187, 0.08);
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.footer-button:hover,
.footer-button:focus-visible {
    border-color: rgba(39, 225, 187, 0.62);
    background: rgba(39, 225, 187, 0.15);
    transform: translateY(-1px);
}

.footer-button-icon {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    object-fit: contain;
}

.footer-notes {
    display: grid;
    gap: 0.48rem;
    font-size: 0.78rem;
    line-height: 1.65;
}

.footer-notes p {
    margin: 0;
}

.footer-inline-link {
    color: var(--accent);
    font-weight: 800;
}

.footer-inline-link:hover,
.footer-inline-link:focus-visible {
    color: var(--accent-strong);
}

.footer-bottom {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    border-top: 1px solid rgba(139, 232, 255, 0.2);
    padding: 0.68rem 0 0;
    color: var(--muted);
    font-size: 0.76rem;
    text-align: center;
}

.footer-version {
    position: absolute;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-align: left;
}

.footer-version a {
    color: var(--accent);
    font-weight: 800;
}

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

.footer-center {
    display: grid;
    gap: 0.22rem;
    min-width: 0;
}

.footer-copyright,
.footer-visits {
    min-width: 0;
}

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

.footer-visits [data-visit-count] {
    color: var(--accent);
    font-weight: 800;
}

.footer-back-top {
    position: absolute;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.65rem;
    padding: 0.25rem 0.55rem;
    border: 1px solid rgba(39, 225, 187, 0.28);
    border-radius: 8px;
    color: var(--text);
    font-weight: 800;
    background: rgba(39, 225, 187, 0.07);
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.footer-back-top:hover,
.footer-back-top:focus-visible {
    border-color: rgba(39, 225, 187, 0.58);
    background: rgba(39, 225, 187, 0.14);
    transform: translateY(-1px);
}

.speed-map-page {
    display: flex;
    flex-direction: column;
    padding: clamp(1rem, 2vw, 1.35rem);
    overflow: hidden;
    min-height: clamp(32rem, calc(100vh - 8rem), 52rem);
}

.unavailable-page {
    display: grid;
    place-items: center;
    min-height: clamp(22rem, calc(100vh - 20rem), 34rem);
}

.unavailable-message {
    display: grid;
    place-items: center;
    width: min(100%, 36rem);
    min-height: 10rem;
    padding: 2rem;
    border: 1px solid rgba(139, 232, 255, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(39, 225, 187, 0.1), transparent 42%),
        rgba(6, 17, 23, 0.58);
    text-align: center;
}

.unavailable-message p {
    margin: 0;
    color: var(--accent);
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    font-weight: 900;
    letter-spacing: 0;
}

.speed-map-toolbar {
    flex: 0 0 auto;
}

.google-map-toolbar {
    margin-top: 0.35rem;
}

.regional-map-panel {
    display: grid;
    grid-template-columns: minmax(13.5rem, 0.5fr) minmax(18rem, 0.9fr);
    gap: clamp(0.85rem, 1.5vw, 1.15rem);
    align-items: stretch;
    margin-bottom: 1rem;
    padding: clamp(0.85rem, 1.5vw, 1.05rem);
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(39, 225, 187, 0.1), transparent 36%),
        linear-gradient(225deg, rgba(255, 200, 87, 0.08), transparent 42%),
        rgba(8, 23, 31, 0.76);
}

.regional-map-stage {
    position: relative;
    display: grid;
    min-height: clamp(15.5rem, 22vw, 21rem);
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(139, 232, 255, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(82, 169, 255, 0.1), rgba(39, 225, 187, 0.04)),
        rgba(5, 15, 21, 0.62);
}

.taiwan-region-map {
    width: min(100%, 16.5rem);
    height: 100%;
    min-height: 15rem;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.36));
}

.taiwan-county {
    fill: rgba(91, 124, 136, 0.6);
    stroke: rgba(237, 250, 255, 0.72);
    stroke-width: 1.25;
    vector-effect: non-scaling-stroke;
    cursor: pointer;
    transition: fill 160ms ease, stroke 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.taiwan-county:hover,
.taiwan-county:focus,
.taiwan-county.is-active {
    fill: var(--region-color, var(--accent));
    stroke: #f7fdff;
    filter: drop-shadow(0 0 9px var(--region-glow, rgba(39, 225, 187, 0.45)));
    outline: none;
}

.taiwan-region-map.has-active .taiwan-county:not(.is-active) {
    opacity: 0.34;
}

.drill-countdown-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: clamp(0.75rem, 2.2vw, 1.4rem);
    background: rgba(2, 8, 12, 0.72);
    backdrop-filter: blur(8px);
}

.drill-countdown-modal[hidden] {
    display: none;
}

.drill-countdown-card {
    width: min(100%, 50rem);
    padding: clamp(0.8rem, 1.9vw, 1.15rem);
    border: 1px solid rgba(139, 232, 255, 0.28);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 200, 87, 0.1), transparent 34%),
        linear-gradient(225deg, rgba(39, 225, 187, 0.08), transparent 42%),
        rgba(7, 18, 24, 0.96);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.45);
}

.drill-countdown-card h2 {
    margin: 0 0 0.7rem;
    color: var(--text);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.35;
    letter-spacing: 0;
}

.emergency-alert-card {
    width: min(100%, 42rem);
}

.emergency-alert-card h2 {
    color: #ffdf6f;
}

.emergency-alert-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.emergency-alert-icon {
    width: clamp(1.35rem, 2.7vw, 1.85rem);
    height: clamp(1.35rem, 2.7vw, 1.85rem);
    flex: 0 0 auto;
    object-fit: contain;
    animation: emergency-alert-flash 0.8s steps(2, start) infinite;
    filter: drop-shadow(0 0 8px rgba(255, 200, 87, 0.72));
}

@keyframes emergency-alert-flash {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.18;
        transform: scale(0.96);
    }
}

.emergency-alert-content {
    padding: clamp(0.9rem, 2vw, 1.2rem);
    border: 1px solid rgba(255, 200, 87, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 200, 87, 0.12), transparent 42%),
        rgba(5, 15, 21, 0.66);
}

.emergency-alert-content p {
    margin: 0;
    color: var(--text);
    font-size: clamp(1rem, 1.7vw, 1.12rem);
    font-weight: 700;
    line-height: 1.8;
}

.emergency-alert-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.drill-countdown-body {
    display: grid;
    grid-template-columns: minmax(12rem, 0.68fr) minmax(16rem, 1fr);
    gap: clamp(0.7rem, 1.5vw, 1rem);
    align-items: stretch;
}

.drill-map-stage {
    display: grid;
    min-height: clamp(13rem, 26vw, 18rem);
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(139, 232, 255, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(82, 169, 255, 0.08), rgba(255, 200, 87, 0.04)),
        rgba(5, 15, 21, 0.62);
}

.drill-countdown-map {
    width: min(100%, 12.5rem);
    min-height: 13rem;
}

.drill-countdown-map .taiwan-county {
    cursor: default;
    pointer-events: none;
}

.drill-countdown-map .taiwan-county.is-drill-area {
    fill: #ffc857;
    stroke: #fff8d8;
    filter: drop-shadow(0 0 10px rgba(255, 200, 87, 0.48));
}

.drill-countdown-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    min-height: 100%;
    padding: clamp(0.75rem, 1.5vw, 1rem);
    border: 1px solid rgba(139, 232, 255, 0.14);
    border-radius: 8px;
    background: rgba(5, 15, 21, 0.58);
}

.drill-countdown-note {
    margin: 0 0 0.1rem;
    color: var(--muted);
    font-size: clamp(0.8rem, 1.45vw, 0.9rem);
    line-height: 1.7;
}

.drill-countdown-note a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.drill-countdown-label {
    color: var(--muted);
    font-size: 0.86rem;
}

.drill-countdown-time {
    color: var(--accent);
    font-family: "DS-Digital", "Digital-7", "Share Tech Mono", "Orbitron", "Courier New", monospace;
    font-variant-numeric: tabular-nums;
    font-size: clamp(2.15rem, 5.8vw, 4.1rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-shadow:
        0 0 8px rgba(39, 225, 187, 0.52),
        0 0 18px rgba(39, 225, 187, 0.26);
}

.drill-countdown-close {
    display: block;
    min-width: 8rem;
    margin: 0.75rem auto 0;
    padding: 0.58rem 1.25rem;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #041017;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.drill-countdown-close:hover,
.drill-countdown-close:focus-visible {
    background: #8be8ff;
    outline: none;
}

.regional-map-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    min-height: 100%;
    padding: clamp(1rem, 2vw, 1.4rem);
    border-left: 1px solid rgba(139, 232, 255, 0.15);
}

.regional-map-info h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    letter-spacing: 0;
}

.regional-map-info p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.region-map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: fit-content;
    min-height: 2.7rem;
    margin-top: 0.35rem;
    padding: 0 1rem;
    border: 1px solid rgba(39, 225, 187, 0.42);
    border-radius: 6px;
    color: var(--text);
    font-weight: 700;
    background: linear-gradient(90deg, rgba(39, 225, 187, 0.22), rgba(82, 169, 255, 0.16));
    box-shadow: 0 14px 32px rgba(39, 225, 187, 0.12);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.region-map-link-icon {
    flex: 0 0 auto;
    width: 1.35rem;
    height: 1.35rem;
    object-fit: contain;
}

.region-map-link:hover,
.region-map-link:focus {
    border-color: rgba(237, 250, 255, 0.68);
    background: linear-gradient(90deg, rgba(39, 225, 187, 0.32), rgba(82, 169, 255, 0.24));
    outline: none;
    transform: translateY(-1px);
}

.speed-map-frame {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    height: clamp(42rem, 72vh, 58rem);
    min-height: 42rem;
    border: 0;
    border-radius: 6px;
}

.refarming-page {
    gap: 1rem;
}

.refarming-page .refarming-toolbar {
    margin-bottom: 0;
}

.refarming-map-section {
    display: grid;
    gap: 1rem;
}

.refarming-template {
    display: none;
}

.refarming-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    padding: 0.78rem 0.9rem;
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    background: rgba(8, 23, 31, 0.72);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.refarming-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    min-height: 1.45rem;
}

.refarming-legend i {
    width: 0.9rem;
    height: 0.9rem;
    border: 1px solid rgba(237, 250, 255, 0.45);
    border-radius: 3px;
}

.refarming-map-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.85rem, 1.6vw, 1.1rem);
}

.refarming-map-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.75rem;
    min-width: 0;
    padding: clamp(0.8rem, 1.5vw, 1rem);
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 69, 69, 0.1), transparent 36%),
        rgba(8, 23, 31, 0.76);
}

.refarming-map-card h2 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    color: var(--text);
    font-size: clamp(1rem, 1.5vw, 1.22rem);
    line-height: 1.35;
    letter-spacing: 0;
}

.refarming-map-card h2 img {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 95, 95, 0.28));
}

.refarming-map-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.7;
}

.refarming-map-stage {
    position: relative;
    display: grid;
    min-height: clamp(14.5rem, 22vw, 20rem);
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(139, 232, 255, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(82, 169, 255, 0.08), rgba(255, 69, 69, 0.035)),
        rgba(5, 15, 21, 0.58);
}

.refarming-map {
    width: min(100%, 13.5rem);
    min-height: 14.5rem;
}

.refarming-map .refarming-county {
    fill: transparent;
    cursor: default;
    transform-box: fill-box;
    transform-origin: center;
}

.refarming-map .refarming-county.status-wide,
.refarming-legend .level-wide {
    fill: #ff1f1f;
    background: #ff1f1f;
}

.refarming-map .refarming-county.status-partial,
.refarming-legend .level-partial {
    fill: #e03232;
    background: #e03232;
}

.refarming-map .refarming-county.status-limited,
.refarming-legend .level-limited {
    fill: #ad2d2d;
    background: #ad2d2d;
}

.refarming-map .refarming-county.status-spot,
.refarming-legend .level-spot {
    fill: #732727;
    background: #732727;
}

.refarming-map .refarming-county.status-closed,
.refarming-legend .level-closed {
    fill: #8f989d;
    background: #8f989d;
}

.refarming-map .refarming-county.status-none,
.refarming-legend .level-none {
    fill: #3d454a;
    background: #3d454a;
}

.refarming-map .refarming-county:hover,
.refarming-map .refarming-county:focus {
    stroke: #f7fdff;
    filter: drop-shadow(0 0 9px rgba(255, 75, 75, 0.36));
    outline: none;
    animation: refarming-county-pulse 1.8s ease-in-out infinite;
}

.refarming-map-tooltip {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    max-width: min(13rem, calc(100% - 1.5rem));
    padding: 0.42rem 0.58rem;
    border: 1px solid rgba(237, 250, 255, 0.45);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.35;
    background: rgba(7, 17, 23, 0.92);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
    opacity: 0;
    pointer-events: none;
    transform: translate(0.7rem, -120%);
    transition: opacity 180ms ease;
}

.refarming-map-tooltip.is-visible {
    opacity: 1;
}

@keyframes refarming-county-pulse {
    0%,
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 6px rgba(255, 75, 75, 0.24));
    }

    50% {
        opacity: 0.58;
        filter: drop-shadow(0 0 15px rgba(255, 75, 75, 0.72));
    }
}

.spectrum-page {
    padding: clamp(1rem, 2vw, 1.35rem);
}

.spectrum-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(139, 232, 255, 0.16);
}

.section-kicker,
.spectrum-updated {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.section-kicker {
    color: var(--accent);
    font-weight: 700;
}

.spectrum-toolbar h1,
.spectrum-toolbar h2 {
    margin: 0.15rem 0 0.2rem;
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    letter-spacing: 0;
}

.operator-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    min-width: min(100%, 28rem);
    margin: 0;
    padding: 0;
    border: 0;
}

.operator-filter legend {
    width: 100%;
    margin-bottom: 0.2rem;
    color: var(--muted);
    font-size: 0.85rem;
    text-align: right;
}

.operator-filter label {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-height: 2.35rem;
    padding: 0 0.75rem;
    border: 1px solid rgba(139, 232, 255, 0.2);
    border-radius: 6px;
    color: var(--text);
    background: rgba(6, 17, 23, 0.62);
    cursor: pointer;
    user-select: none;
}

.operator-filter input {
    accent-color: var(--accent);
}

.spectrum-board {
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    background: rgba(3, 12, 17, 0.42);
    overflow: hidden;
}

.spectrum-scroll {
    overflow: auto;
    padding: 1rem;
}

.spectrum-grid {
    display: grid;
    grid-template-columns: var(--spectrum-cols);
    grid-template-rows: var(--spectrum-rows);
    width: max-content;
    min-width: 100%;
    background-image:
        linear-gradient(rgba(139, 232, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 232, 255, 0.08) 1px, transparent 1px);
    background-size: 13.65px 24.3px;
}

.spectrum-cell {
    grid-row: var(--row) / span var(--row-span);
    grid-column: var(--col) / span var(--col-span);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    padding: 0.22rem 0.35rem;
    border: 0;
    color: #fff;
    background: transparent;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72);
    transition: filter 140ms ease, opacity 140ms ease, transform 140ms ease, background 140ms ease;
}

.spectrum-cell.label,
.spectrum-cell.axis-note,
.spectrum-cell.no-fill {
    color: var(--text);
    background: transparent;
    text-shadow: none;
}

.spectrum-cell.label {
    color: #dff8ff;
    font-size: 0.78rem;
    overflow-wrap: normal;
    word-break: keep-all;
}

.horizon-view-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.16rem 0.28rem;
    border: 1px solid rgba(39, 225, 187, 0.42);
    border-radius: 4px;
    color: var(--accent);
    background: rgba(39, 225, 187, 0.08);
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.15;
    text-decoration: none;
}

.horizon-view-link:hover,
.horizon-view-link:focus-visible {
    outline: none;
    border-color: rgba(39, 225, 187, 0.78);
    background: rgba(39, 225, 187, 0.16);
}

.spectrum-cell.axis-note {
    color: var(--muted);
    font-size: 0.68rem;
}

.spectrum-cell.slot-code {
    font-style: italic;
}

.spectrum-cell.unassigned,
.spectrum-cell.guard {
    color: #fff;
    background: var(--cell-bg, rgba(120, 128, 136, 0.55));
}

.operator-block,
.spectrum-cell.unassigned,
.spectrum-cell.guard {
    border: 1px solid rgba(255, 255, 255, 0.82);
    background: var(--cell-bg, rgba(120, 128, 136, 0.55));
}

.spectrum-page .operator-block.op-twm {
    color: #05090c;
    text-shadow: none;
}

.spectrum-cell.guard {
    background: #ff9b9b;
}

.spectrum-cell.legend-box {
    border: 1px solid rgba(255, 255, 255, 0.82);
    background: rgba(10, 27, 36, 0.72);
}

.spectrum-cell.compact-text {
    padding: 0.12rem 0.18rem;
    font-size: 0.56rem;
    line-height: 1.12;
}

.spectrum-notes {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    background: rgba(6, 17, 23, 0.42);
    color: var(--text);
    text-align: left;
}

.spectrum-notes h2 {
    margin: 0 0 0.55rem;
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 0;
}

.spectrum-notes ul {
    display: grid;
    gap: 0.38rem;
    margin: 0;
    padding-left: 1.2rem;
}

.spectrum-notes li {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.spectrum-table-page {
    width: min(var(--page-width), 100%);
    padding: clamp(1rem, 2vw, 1.35rem);
}

.table-toolbar {
    align-items: flex-start;
}

.allocation-table-board {
    width: 100%;
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    background: rgba(3, 12, 17, 0.42);
    overflow: hidden;
}

.allocation-table-scroll {
    overflow: auto;
    padding: 1rem;
}

.allocation-table {
    min-width: 1850px;
    border-collapse: collapse;
    color: var(--text);
    table-layout: fixed;
}

.allocation-table th,
.allocation-table td {
    height: 2.15rem;
    padding: 0.28rem 0.42rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: var(--cell-color, var(--text));
    background: var(--cell-bg, rgba(10, 27, 36, 0.72));
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.24;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
}

.allocation-table .table-head {
    color: #f2fbff;
    background: rgba(6, 17, 23, 0.95);
}

.allocation-table .table-head.has-fill {
    background: var(--cell-bg);
}

.allocation-table .top-row-no-border {
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-top-color: transparent;
    border-left-color: transparent;
    border-right-color: transparent;
    background: transparent;
}

.allocation-table .top-row-no-border + .table-cell:not(.top-row-no-border) {
    border-left-color: rgba(255, 255, 255, 0.55);
}

.allocation-table .outdoor-config-title {
    border-left-color: rgba(255, 255, 255, 0.85);
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.85);
}

.allocation-table .special-note-title {
    border: 1px solid rgba(255, 255, 255, 0.85);
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.allocation-table .has-fill {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.54);
}

.allocation-table .light-rule-cell {
    color: #111820;
    font-size: 0.64rem;
    line-height: 1.35;
    text-align: left;
    text-shadow: none;
}

.spectrum-table-page .allocation-table .has-fill.light-rule-cell {
    color: #fff;
    font-size: 0.74rem;
    line-height: 1.24;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.54);
}

.spectrum-table-page .allocation-table .has-fill.light-rule-cell.note-col {
    text-align: left;
}

.spectrum-table-page .allocation-table .frequency-compact {
    font-size: 0.64rem;
    line-height: 1.16;
}

.spectrum-table-page .allocation-table .frequency-micro {
    font-size: 0.56rem;
    line-height: 1.1;
}

.spectrum-table-page .allocation-table .table-text-compact {
    font-size: 0.6rem;
    line-height: 1.14;
}

.allocation-table .note-col {
    text-align: left;
}

.allocation-table .special-note-title.note-col {
    text-align: center;
}

.tac-enb-page {
    padding: clamp(1rem, 2vw, 1.35rem);
}

.speed-database-page {
    padding: clamp(1rem, 2vw, 1.35rem);
}

.speed-database-controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(11rem, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.9rem;
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    background: rgba(3, 12, 17, 0.42);
}

.speed-database-controls .operator-select {
    width: 100%;
    min-width: 0;
}

.speed-database-search {
    display: grid;
    grid-column: 1 / -1;
    gap: 0.25rem;
    margin: 0;
}

.speed-database-search-row {
    display: flex;
    gap: 0.6rem;
}

.speed-database-search-row .operator-select {
    flex: 1 1 auto;
}

.speed-database-search-button {
    flex: 0 0 auto;
    min-width: 5.5rem;
    height: 2.75rem;
    padding: 0 1rem;
    border: 1px solid rgba(39, 225, 187, 0.44);
    border-radius: 6px;
    color: #dffdf8;
    background: rgba(39, 225, 187, 0.14);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.speed-database-search-button:hover,
.speed-database-search-button:focus {
    border-color: rgba(39, 225, 187, 0.8);
    color: #ffffff;
    background: rgba(39, 225, 187, 0.24);
    outline: none;
}

.speed-database-board {
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    background: rgba(3, 12, 17, 0.42);
    overflow: hidden;
}

.speed-database-summary {
    display: flex;
    align-items: center;
    min-height: 2.8rem;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(139, 232, 255, 0.16);
    color: var(--muted);
    font-size: 0.9rem;
}

.speed-database-scroll {
    max-height: min(82vh, 72rem);
    overflow: auto;
}

.speed-database-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    color: var(--text);
    table-layout: fixed;
}

.speed-database-table th,
.speed-database-table td {
    width: 7.5rem;
    max-width: 7.5rem;
    padding: 0.48rem 0.52rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: left;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.speed-database-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    color: #f2fbff;
    background: rgba(6, 17, 23, 0.96);
    box-shadow: inset 0 -1px 0 rgba(139, 232, 255, 0.22);
}

.speed-database-table tbody tr:nth-child(odd) td {
    background: rgba(12, 31, 41, 0.58);
}

.speed-database-table tbody tr:nth-child(even) td {
    background: rgba(6, 17, 23, 0.5);
}

.speed-database-table tbody tr:hover td {
    background: rgba(39, 225, 187, 0.12);
}

.speed-database-table tbody tr.operator-cht td {
    color: #8fd0ff;
    text-shadow: 0 0 12px rgba(82, 169, 255, 0.34);
}

.speed-database-table tbody tr.operator-fet td {
    color: #ff9a9a;
    text-shadow: 0 0 12px rgba(255, 66, 66, 0.34);
}

.speed-database-table tbody tr.operator-twm td {
    color: #ffc166;
    text-shadow: 0 0 12px rgba(242, 159, 39, 0.34);
}

.speed-database-table tbody tr.operator-apt td {
    color: #89f2ad;
    text-shadow: 0 0 12px rgba(72, 214, 118, 0.32);
}

.speed-database-table tbody tr.operator-tstar td {
    color: #d8a6ff;
    text-shadow: 0 0 12px rgba(187, 124, 255, 0.34);
}

.speed-database-link {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    color: inherit;
    font-weight: 700;
}

.speed-database-link:hover,
.speed-database-link:focus {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(39, 225, 187, 0.7);
    text-underline-offset: 0.18rem;
    outline: none;
}

.speed-database-table th:nth-child(1),
.speed-database-table td:nth-child(1) {
    width: 20rem;
    min-width: 20rem;
    max-width: 20rem;
}

.speed-database-table th:nth-child(2),
.speed-database-table td:nth-child(2),
.speed-database-table th:nth-child(5),
.speed-database-table td:nth-child(5),
.speed-database-table th:nth-child(8),
.speed-database-table td:nth-child(8),
.speed-database-table th:nth-child(9),
.speed-database-table td:nth-child(9),
.speed-database-table th:nth-child(10),
.speed-database-table td:nth-child(10) {
    width: 8.5rem;
    min-width: 8.5rem;
    max-width: 8.5rem;
}

.speed-database-table th:nth-child(7),
.speed-database-table td:nth-child(7),
.speed-database-table th:nth-child(11),
.speed-database-table td:nth-child(11),
.speed-database-table th:nth-child(13),
.speed-database-table td:nth-child(13),
.speed-database-table th:nth-child(14),
.speed-database-table td:nth-child(14) {
    width: 11rem;
    min-width: 11rem;
    max-width: 11rem;
}

.speed-database-empty {
    height: 7rem;
    color: var(--muted);
    text-align: center !important;
    vertical-align: middle !important;
}

.tac-table {
    min-width: 1650px;
}

.tac-search-panel {
    display: grid;
    grid-template-columns: max-content minmax(20rem, 1fr);
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1rem;
}

.tac-search-form,
.tac-search-result {
    min-height: 4.2rem;
    border: 1px solid rgba(139, 232, 255, 0.18);
    border-radius: 8px;
    background: rgba(6, 17, 23, 0.56);
}

.tac-search-form {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem;
}

.tac-search-form label {
    color: var(--text);
    font-weight: 800;
    white-space: nowrap;
}

.tac-search-form input {
    flex: 0 0 7.2rem;
    width: 7.2rem;
    min-width: 7.2rem;
    height: 2.35rem;
    padding: 0 0.75rem;
    border: 1px solid rgba(139, 232, 255, 0.28);
    border-radius: 6px;
    color: var(--text);
    background: rgba(3, 11, 16, 0.72);
}

.tac-search-form button {
    height: 2.35rem;
    padding: 0 0.95rem;
    border: 1px solid rgba(43, 226, 201, 0.42);
    border-radius: 6px;
    color: #021414;
    background: var(--accent);
    font-weight: 900;
    cursor: pointer;
}

.tac-search-form button:hover,
.tac-search-form button:focus {
    filter: brightness(1.08);
}

.tac-search-result {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.1rem;
    padding: 0.85rem 1rem;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.7;
}

.tac-search-result.has-result {
    color: var(--text);
}

.tac-search-carrier.carrier-cht {
    color: #56a8ff;
}

.tac-search-carrier.carrier-fet {
    color: #ff5b5b;
}

.tac-search-carrier.carrier-twm {
    color: #ffb347;
}

.tac-table .empty-cell {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.08);
}

.tac-table .section-start-row {
    border-top-color: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.tac-table .section-left-border {
    border-left-color: rgba(255, 255, 255, 0.72);
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.72);
}

.tac-table .section-right-border {
    border-right-color: rgba(255, 255, 255, 0.72);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.72);
}

.tac-table .section-left-border.section-right-border {
    box-shadow:
        inset 1px 0 0 rgba(255, 255, 255, 0.72),
        inset -1px 0 0 rgba(255, 255, 255, 0.72);
}

.tac-table .section-start-row.section-left-border {
    box-shadow:
        inset 1px 0 0 rgba(255, 255, 255, 0.72),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.tac-table .section-start-row.section-right-border {
    box-shadow:
        inset -1px 0 0 rgba(255, 255, 255, 0.72),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.tac-table .section-start-row.section-left-border.section-right-border {
    box-shadow:
        inset 1px 0 0 rgba(255, 255, 255, 0.72),
        inset -1px 0 0 rgba(255, 255, 255, 0.72),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.tac-table .dense-number-cell {
    font-size: 0.64rem;
    line-height: 1.3;
}

.tac-table tbody tr:nth-child(6) th,
.tac-table tbody tr:nth-child(6) td {
    height: 0.68rem;
    padding-top: 0;
    padding-bottom: 0;
}

.tac-table tbody tr:nth-child(n + 8) th,
.tac-table tbody tr:nth-child(n + 8) td {
    height: 1.72rem;
    padding-top: 0.14rem;
    padding-bottom: 0.14rem;
}

.tac-table tbody tr:nth-child(n + 8) .dense-number-cell {
    line-height: 1.18;
}

.cid-page {
    display: grid;
    gap: 1.2rem;
}

.cid-section {
    display: grid;
    gap: 1rem;
}

.cid-section + .cid-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(139, 232, 255, 0.16);
}

.cid-section-heading {
    display: grid;
    gap: 0.25rem;
}

.cid-section-heading h2 {
    margin: 0;
    font-size: clamp(1.18rem, 2vw, 1.55rem);
    line-height: 1.35;
    letter-spacing: 0;
}

.cid-table {
    min-width: 1080px;
}

.cid-table col {
    width: 5.7rem !important;
}

.cid-table col:nth-child(1) {
    width: 2.6rem !important;
}

.cid-table col:nth-child(2) {
    width: 4.6rem !important;
}

.cid-table col:nth-child(3) {
    width: 5.8rem !important;
}

.cid-table col:nth-child(11) {
    width: 0.75rem !important;
}

.cid-table th,
.cid-table td {
    height: 1.72rem;
    padding: 0.16rem 0.24rem;
    font-size: 0.64rem;
    line-height: 1.18;
}

.cid-table .cid-meta-cell {
    font-size: 0.62rem;
}

.cid-table .cid-data-cell {
    font-size: 0.65rem;
}

.cid-table .cid-sa-cell {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
}

.cid-table .cid-operator-cell {
    width: 2.6rem;
    font-size: 0.82rem;
    line-height: 1.16;
}

.cid-table .cid-former-tstar-cell {
    font-size: 0.58rem;
    line-height: 1.15;
}

.cid-table .cid-tight-value {
    font-size: 0.56rem;
    white-space: nowrap;
}

.cid-table .cid-spacer-cell {
    min-width: 0;
    padding-right: 0;
    padding-left: 0;
    border-color: rgba(255, 255, 255, 0.08);
    background: transparent;
}

.cid-table .cid-spacer-cell + .table-cell {
    border-left-color: rgba(255, 255, 255, 0.72);
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.72);
}

.cid-table .empty-cell {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.08);
}

.cid-table .cid-carrier-meta-row > :not(.empty-cell):not(.cid-spacer-cell) {
    color: var(--cell-color, #fff);
    background: var(--carrier-row-bg);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.54);
}

.cid-table .cid-cht-row {
    --carrier-row-bg: #335692;
}

.cid-table .cid-twm-row {
    --carrier-row-bg: #BF9000;
}

.cid-table .cid-apt-row {
    --carrier-row-bg: #548235;
}

.cid-table .cid-separator-row td {
    height: 0.72rem;
    padding: 0;
    border-color: transparent;
    background: transparent;
}

.cid-notes {
    margin-top: 0;
}

.cid-section-legacy {
    opacity: 0.94;
}

.allocation-table tbody tr:hover > th:not(:empty),
.allocation-table tbody tr:hover > td:not(:empty),
.allocation-table tbody tr:hover > .has-fill,
.allocation-table tbody tr:hover > [style*="--cell-bg"] {
    animation: table-row-pulse 1.35s ease-in-out infinite alternate;
}

@keyframes table-row-pulse {
    from {
        filter: brightness(1);
        box-shadow: inset 0 0 0 rgba(39, 225, 187, 0);
    }

    to {
        filter: brightness(1.18) saturate(1.15);
        box-shadow: inset 0 0 0 2px rgba(39, 225, 187, 0.35);
    }
}

.operator-block:hover {
    z-index: 5;
    filter: saturate(1.35) brightness(1.18);
    animation: spectrum-pulse 680ms ease-in-out infinite alternate;
}

.spectrum-page.hide-cht .op-cht,
.spectrum-page.hide-fet .op-fet,
.spectrum-page.hide-twm .op-twm {
    color: rgba(230, 235, 238, 0.58);
    background: #454b50;
    border-color: rgba(210, 218, 224, 0.18);
    filter: grayscale(1) brightness(0.58);
    opacity: 0.72;
}

.spectrum-page.hide-cht .op-cht:hover,
.spectrum-page.hide-fet .op-fet:hover,
.spectrum-page.hide-twm .op-twm:hover {
    animation: none;
    filter: grayscale(1) brightness(0.72);
}

.speed-toolbar {
    gap: 1rem;
}

.max-speed-page {
    padding: clamp(1rem, 1.8vw, 1.35rem);
}

.speed-select-controls {
    display: flex;
    align-items: end;
    gap: 0.65rem;
    margin-left: auto;
}

.speed-select-group {
    display: grid;
    gap: 0.25rem;
    align-self: end;
}

.operator-select-label {
    color: var(--muted);
    font-size: 0.88rem;
}

.operator-select {
    align-self: end;
    min-width: 12rem;
    height: 2.75rem;
    padding: 0 0.9rem;
    border: 1px solid rgba(139, 232, 255, 0.22);
    border-radius: 6px;
    color: var(--text);
    background: rgba(6, 17, 23, 0.82);
    font: inherit;
}

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

.phone-combo-page {
    padding: clamp(1rem, 1.8vw, 1.35rem);
}

.phone-combo-toolbar .spectrum-updated {
    max-width: 70rem;
}

.phone-combo-source {
    margin: 0.55rem 0 0;
    color: #c9f7ff;
    font-size: 0.9rem;
    font-weight: 800;
}

.phone-brand-panel,
.phone-search-panel,
.phone-results-panel {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    background: rgba(6, 17, 23, 0.42);
}

.phone-combo-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.phone-combo-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.35rem;
    letter-spacing: 0;
}

.phone-brand-clear,
.phone-search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0 0.9rem;
    border: 1px solid rgba(39, 225, 187, 0.36);
    border-radius: 6px;
    color: var(--text);
    background: rgba(39, 225, 187, 0.12);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.phone-brand-clear:hover,
.phone-brand-clear:focus-visible,
.phone-search-form button:hover,
.phone-search-form button:focus-visible {
    outline: none;
    border-color: rgba(39, 225, 187, 0.72);
    background: rgba(39, 225, 187, 0.2);
}

.phone-brand-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.65rem;
}

.phone-brand-button {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 3.55rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    color: var(--text);
    background: rgba(3, 12, 17, 0.5);
    font: inherit;
    font-weight: 850;
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.phone-brand-button:hover,
.phone-brand-button:focus-visible,
.phone-brand-button.is-active {
    outline: none;
    border-color: rgba(82, 169, 255, 0.72);
    background: rgba(82, 169, 255, 0.16);
}

.phone-brand-button.is-active {
    box-shadow: inset 0 0 0 1px rgba(39, 225, 187, 0.35);
}

.phone-brand-logo,
.phone-brand-fallback {
    flex: 0 0 auto;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.95);
}

.phone-brand-logo {
    object-fit: cover;
    object-position: center;
}

.phone-brand-fallback {
    display: inline-grid;
    place-items: center;
    color: #0a1b23;
    font-size: 0.78rem;
    font-weight: 900;
}

.phone-brand-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.phone-search-form {
    display: grid;
    grid-template-columns: minmax(14rem, 1fr) auto;
    gap: 0.7rem;
}

.phone-search-form input {
    width: 100%;
    min-height: 2.75rem;
    padding: 0 0.9rem;
    border: 1px solid rgba(139, 232, 255, 0.22);
    border-radius: 6px;
    color: var(--text);
    background: rgba(6, 17, 23, 0.82);
    font: inherit;
}

.phone-search-form input:focus {
    outline: none;
    border-color: rgba(82, 169, 255, 0.72);
    box-shadow: 0 0 0 3px rgba(82, 169, 255, 0.14);
}

.phone-result-count {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 800;
    text-align: right;
}

.phone-results-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.9rem;
    margin-left: auto;
}

.phone-symbol-legend {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-right: 0.55rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.phone-symbol-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.phone-column-toggle-label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.phone-column-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.35rem;
    padding: 0.35rem 0 0.35rem 2.25rem;
    border: 0;
    border-radius: 0;
    color: var(--text);
    background: transparent;
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.phone-column-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.phone-column-toggle span::before,
.phone-column-toggle span::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.phone-column-toggle span::before {
    left: 0;
    width: 1.85rem;
    height: 1rem;
    border: 1px solid rgba(148, 173, 185, 0.44);
    border-radius: 999px;
    background: rgba(148, 173, 185, 0.22);
}

.phone-column-toggle span::after {
    left: 0.18rem;
    width: 0.68rem;
    height: 0.68rem;
    border-radius: 999px;
    background: rgba(237, 250, 255, 0.78);
}

.phone-column-toggle input:checked + span::before {
    border-color: rgba(39, 225, 187, 0.78);
    background: rgba(39, 225, 187, 0.45);
}

.phone-column-toggle input:checked + span::after {
    transform: translate(0.78rem, -50%);
    background: #edfaff;
}

.phone-column-toggle input:focus-visible + span::before {
    box-shadow: 0 0 0 3px rgba(82, 169, 255, 0.18);
}

.phone-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(139, 232, 255, 0.14);
    border-radius: 8px;
}

.phone-more-actions {
    display: flex;
    justify-content: center;
    margin-top: 0.85rem;
}

.phone-show-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0 1rem;
    border: 1px solid rgba(82, 169, 255, 0.4);
    border-radius: 8px;
    background: rgba(82, 169, 255, 0.12);
    color: var(--text);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 900;
    cursor: pointer;
}

.phone-show-more[hidden] {
    display: none;
}

.phone-show-more:hover,
.phone-show-more:focus-visible {
    outline: none;
    border-color: rgba(39, 225, 187, 0.72);
    background: rgba(39, 225, 187, 0.18);
}

.phone-help-notes {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(139, 232, 255, 0.14);
}

.phone-help-notes h3 {
    margin: 0 0 0.55rem;
    color: var(--text);
    font-size: 0.98rem;
    letter-spacing: 0;
}

.phone-help-notes ul {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding-left: 1.15rem;
}

.phone-help-notes li {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.phone-help-notes a {
    color: var(--accent);
    font-weight: 900;
}

.phone-help-notes a:hover,
.phone-help-notes a:focus-visible {
    color: var(--accent-strong);
}

.phone-help-icon-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    line-height: 1;
    vertical-align: -0.04em;
    white-space: nowrap;
}

.phone-help-icon-label .combo-icon {
    flex-basis: 0.92rem;
    width: 0.92rem;
    height: 0.92rem;
    font-size: 0.58rem;
}

@media (min-width: 981px) {
    .phone-combo-page .phone-table-wrap {
        overflow: visible;
    }
}

.phone-combo-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
    background: rgba(3, 12, 17, 0.3);
}

.phone-combo-page.hide-soc .soc-column {
    display: none;
}

.phone-combo-page.hide-n257 .n257-column {
    display: none;
}

.phone-combo-table th,
.phone-combo-table td {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.phone-combo-table th {
    white-space: normal;
}

.phone-combo-page .brand-column {
    width: 6.5%;
}

.phone-combo-page .model-column {
    width: 9.5%;
}

.phone-combo-page .soc-column {
    width: 7.5%;
}

.phone-combo-page .lte-column,
.phone-combo-page .nr-nsa-column {
    width: 6%;
}

.phone-combo-page .endc-column {
    width: 10.16%;
}

.phone-combo-page.hide-soc .endc-column {
    width: 12.66%;
}

.phone-combo-page.hide-n257 .endc-column {
    width: 12%;
}

.phone-combo-page.hide-soc.hide-n257 .endc-column {
    width: 12.5%;
}

.phone-combo-page .n257-column {
    width: 5.5%;
}

.phone-combo-page .note-column {
    width: 4.5%;
}

.phone-combo-page.hide-soc.hide-n257 .note-column {
    width: 10.5%;
}

td.n257-column .combo-value {
    white-space: nowrap;
}

.phone-combo-table th,
.phone-combo-table td {
    padding: 0.46rem 0.52rem;
    border: 1px solid rgba(139, 232, 255, 0.12);
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
    vertical-align: middle;
}

.phone-combo-table th {
    position: sticky;
    top: 0;
    z-index: 5;
    color: #c9f7ff;
    background: rgba(8, 21, 29, 0.92);
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
}

.phone-combo-table thead tr:nth-child(2) th {
    top: 2.05rem;
    z-index: 6;
}

.phone-combo-table .carrier-heading-cht {
    color: #52a9ff;
}

.phone-combo-table .carrier-heading-fet {
    color: #ff5151;
}

.phone-combo-table .carrier-heading-twm {
    color: #f29f27;
}

.phone-combo-table tbody tr:hover td {
    background: rgba(82, 169, 255, 0.06);
}

.phone-combo-table td:nth-child(1),
.phone-combo-table td:nth-child(2),
.phone-combo-table .soc-column {
    color: var(--text);
    font-weight: 800;
}

.phone-combo-table td:nth-child(1),
.phone-combo-table td:nth-child(4),
.phone-combo-table td:nth-child(5),
.phone-combo-table td:nth-child(6),
.phone-combo-table td:nth-child(7),
.phone-combo-table td:nth-child(8),
.phone-combo-table td:nth-child(9) {
    text-align: center;
}

.combo-value {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    min-width: 0;
}

.combo-value.is-multiline {
    display: grid;
    gap: 0.22rem;
}

.combo-line {
    display: flex;
    align-items: center;
    gap: 0.28rem;
}

.combo-value > span:last-child,
.combo-line > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.combo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1rem;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    color: #081015;
    font-size: 0.66rem;
    font-weight: 950;
    line-height: 1;
}

.combo-icon.is-good {
    background: #27e16e;
}

.combo-icon.is-warn {
    background: #ffc857;
}

.combo-icon.is-bad {
    background: #ff5151;
    color: #fff;
}

.combo-icon.is-unknown {
    background: rgba(148, 173, 185, 0.24);
    color: rgba(237, 250, 255, 0.68);
}

.combo-icon.is-mixed {
    background: #ffc857;
    color: #d61f2c;
}

.phone-empty-state {
    padding: 1.5rem;
    color: var(--muted);
    text-align: center;
}

.speed-calculator {
    --operator-color: #1f8fff;
    display: grid;
    grid-template-columns: minmax(20rem, 0.9fr) minmax(28rem, 1.1fr);
    gap: 1.2rem;
    margin-top: 1.25rem;
}

.speed-calculator[data-operator="fet"] {
    --operator-color: #ff4242;
}

.speed-calculator[data-operator="twm"] {
    --operator-color: #f29f27;
}

.speed-visual-panel,
.speed-control-panel {
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--operator-color), transparent 88%), transparent 48%),
        rgba(3, 12, 17, 0.46);
}

.speed-visual-panel {
    display: grid;
    place-items: center;
    min-height: 34rem;
    padding: 1.4rem;
}

.speed-result {
    display: grid;
    gap: 0.2rem;
    justify-items: center;
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 1.12rem;
    font-weight: 800;
}

.speed-result strong {
    color: var(--text);
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    line-height: 1;
    text-shadow: 0 0 28px color-mix(in srgb, var(--operator-color), transparent 45%);
}

#maxSpeedLabel {
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.25;
}

.ca-combination {
    color: var(--accent);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
}

.bandwidth-summary {
    color: #c9f7ff;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.35;
    text-align: center;
}

.speed-limit-note {
    max-width: 18rem;
    margin-top: 0.45rem;
    color: #ffd2a1;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
}

.speed-notes {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    background: rgba(6, 17, 23, 0.42);
    text-align: left;
}

.speed-notes h2 {
    margin: 0;
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 0;
}

.speed-notes-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
}

.speed-notes ul {
    display: grid;
    gap: 0.48rem;
    margin: 0;
    padding-left: 1.2rem;
}

.speed-notes li {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.ambr-section {
    margin-top: 1.25rem;
    padding: 1.1rem;
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    background: rgba(6, 17, 23, 0.42);
    text-align: left;
}

.ambr-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
}

.ambr-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.55rem;
    letter-spacing: 0;
}

.ambr-video-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.55rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid rgba(255, 82, 82, 0.38);
    border-radius: 6px;
    color: var(--text);
    background: rgba(58, 9, 12, 0.42);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.ambr-video-link img {
    width: 1.45rem;
    height: 1.45rem;
    object-fit: contain;
}

.ambr-video-link:hover,
.ambr-video-link:focus-visible {
    outline: none;
    border-color: rgba(255, 82, 82, 0.75);
    background: rgba(96, 13, 18, 0.58);
}

.ambr-intro {
    max-width: 62rem;
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.ambr-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.ambr-card {
    --ambr-color: var(--accent);
    overflow: hidden;
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(150deg, color-mix(in srgb, var(--ambr-color), transparent 88%), transparent 44%),
        rgba(3, 12, 17, 0.58);
}

.ambr-cht {
    --ambr-color: #1f8fff;
}

.ambr-fet {
    --ambr-color: #ff4242;
}

.ambr-twm {
    --ambr-color: #f29f27;
}

.ambr-card header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid rgba(139, 232, 255, 0.14);
}

.ambr-card header img {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 6px;
    object-fit: cover;
}

.ambr-card h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.18rem;
    letter-spacing: 0;
    text-align: center;
}

.ambr-table {
    display: grid;
}

.ambr-table-head,
.ambr-row {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.ambr-table-head span {
    padding: 0.55rem 0.7rem;
    color: var(--accent);
    background: rgba(3, 12, 17, 0.42);
    font-size: 0.82rem;
    font-weight: 800;
    text-align: center;
}

.ambr-table h4 {
    margin: 0;
    padding: 0.48rem 0.75rem;
    color: var(--text);
    background: color-mix(in srgb, var(--ambr-color), transparent 82%);
    font-size: 0.88rem;
    letter-spacing: 0;
    text-align: center;
}

.ambr-rate,
.ambr-plan {
    min-height: 4.75rem;
    padding: 0.65rem 0.7rem;
    border-top: 1px solid rgba(139, 232, 255, 0.12);
}

.ambr-rate {
    display: grid;
    grid-template-columns: 2.15rem minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    border-right: 1px solid rgba(139, 232, 255, 0.12);
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.25;
}

.ambr-rate img {
    width: 2.15rem;
    height: auto;
    filter: drop-shadow(0 0 10px color-mix(in srgb, var(--ambr-color), transparent 62%));
}

.ambr-row.is-retired .ambr-rate img {
    filter: grayscale(1) brightness(0.72);
    opacity: 0.62;
}

.ambr-rate strong {
    display: block;
    margin-top: 0.18rem;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.22;
}

.ambr-row.is-retired .ambr-rate,
.ambr-row.is-retired .ambr-rate strong {
    color: rgba(205, 213, 218, 0.58);
}

.ambr-plan {
    display: grid;
    align-content: center;
    gap: 0.22rem;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.35;
}

.ambr-plan span {
    display: flex;
    align-items: flex-start;
    gap: 0.38rem;
}

.ambr-plan span::before {
    content: "•";
    flex: 0 0 auto;
    color: var(--ambr-color);
    font-weight: 900;
    line-height: 1.25;
}

.ambr-extra-notes {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(139, 232, 255, 0.14);
    border-radius: 8px;
    background: rgba(3, 12, 17, 0.42);
    color: var(--muted);
    text-align: left;
}

.ambr-extra-notes h3 {
    margin: 0 0 0.45rem;
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 0;
}

.ambr-extra-notes p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
}

.ambr-note-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
    gap: 1rem;
    margin-top: 0.75rem;
}

.ambr-note-columns h4 {
    margin: 0 0 0.38rem;
    color: var(--text);
    font-size: 0.92rem;
    letter-spacing: 0;
}

.ambr-note-columns ul {
    display: grid;
    gap: 0.3rem;
    margin: 0;
    padding-left: 1.1rem;
}

.ambr-note-columns li {
    font-size: 0.86rem;
    line-height: 1.5;
}

.ambr-backend-note {
    margin-top: 0.75rem !important;
    color: #ffd2a1;
}

.base-station-hero {
    width: min(100%, 21rem);
    height: auto;
    color: var(--operator-color);
    filter: drop-shadow(0 0 24px color-mix(in srgb, var(--operator-color), transparent 58%));
}

.tower-core,
.tower-waves {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tower-core {
    stroke-width: 8;
}

.tower-core rect {
    fill: color-mix(in srgb, currentColor, transparent 20%);
    stroke-width: 5;
}

.tower-core circle {
    fill: rgba(3, 12, 17, 0.88);
}

.tower-waves {
    opacity: 0.42;
    stroke-width: 7;
    animation: station-wave 1.65s ease-in-out infinite alternate;
}

.maintenance-page {
    padding: clamp(1rem, 2vw, 1.35rem);
}

.maintenance-toolbar {
    align-items: center;
}

.maintenance-month-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.55rem;
}

.month-control,
.month-picker-label select {
    border: 1px solid rgba(139, 232, 255, 0.22);
    border-radius: 6px;
    color: var(--text);
    background: rgba(6, 17, 23, 0.72);
    font: inherit;
}

.month-control {
    display: inline-grid;
    place-items: center;
    width: 2.55rem;
    height: 2.55rem;
    padding: 0;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.month-control:disabled {
    color: rgba(230, 235, 238, 0.34);
    cursor: not-allowed;
}

.month-picker-label {
    display: grid;
    gap: 0.28rem;
    min-width: 7rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.year-picker-label {
    min-width: 8rem;
}

.month-picker-label select {
    min-height: 2.55rem;
    padding: 0 2.2rem 0 0.75rem;
}

.maintenance-workspace {
    display: grid;
    grid-template-columns: minmax(28rem, 0.82fr) minmax(24rem, 1fr);
    gap: 1rem;
    align-items: start;
}

.maintenance-calendar-shell {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}

.maintenance-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    color: var(--muted);
    font-size: 0.84rem;
}

.maintenance-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.maintenance-dot {
    display: inline-block;
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 999px;
    box-shadow: 0 0 12px currentColor;
}

.dot-cht {
    color: #52a9ff;
    background: #52a9ff;
}

.dot-fet {
    color: #ff5f65;
    background: #ff5f65;
}

.dot-twm {
    color: #ffad3d;
    background: #ffad3d;
}

.maintenance-weekdays,
.maintenance-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.maintenance-weekdays {
    gap: 0.28rem;
    color: var(--muted);
    font-size: 0.78rem;
    text-align: center;
}

.maintenance-calendar {
    gap: 0.28rem;
}

.maintenance-day {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: clamp(3.2rem, 5.2vw, 4.55rem);
    padding: 0.42rem;
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 6px;
    background: rgba(6, 17, 23, 0.55);
}

.maintenance-day.is-outside {
    opacity: 0.38;
    background: rgba(6, 17, 23, 0.28);
}

.maintenance-day.is-today {
    border-color: rgba(39, 225, 187, 0.65);
    box-shadow: inset 0 0 0 1px rgba(39, 225, 187, 0.18);
}

.maintenance-day-number {
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
}

.maintenance-day.is-outside .maintenance-day-number {
    color: var(--muted);
}

.maintenance-day-dots {
    display: flex;
    align-items: flex-end;
    gap: 0.3rem;
    min-height: 1.35rem;
    padding-top: 0.32rem;
}

.maintenance-dot-button {
    width: 0.78rem;
    height: 0.78rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 16px currentColor;
    cursor: pointer;
}

.maintenance-dot-button.is-active {
    outline: 2px solid var(--text);
    outline-offset: 3px;
}

.maintenance-dot-button:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 3px;
}

.maintenance-detail {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 9rem);
    overflow: auto;
    min-height: 22rem;
    padding: clamp(0.85rem, 1.6vw, 1.05rem);
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    background: rgba(3, 12, 17, 0.54);
}

.maintenance-detail-empty {
    margin: 0;
    color: var(--muted);
}

.maintenance-detail-heading {
    display: grid;
    gap: 0.28rem;
    margin-bottom: 0.9rem;
}

.maintenance-detail-heading h2 {
    margin: 0;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.maintenance-detail.is-cht .maintenance-detail-heading h2 {
    color: #52a9ff;
}

.maintenance-detail.is-fet .maintenance-detail-heading h2 {
    color: #ff5f65;
}

.maintenance-detail.is-twm .maintenance-detail-heading h2 {
    color: #ffad3d;
}

.maintenance-detail-heading span {
    color: var(--muted);
    font-size: 0.92rem;
}

.maintenance-notice-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.maintenance-notice {
    padding: 0.78rem;
    border: 1px solid rgba(139, 232, 255, 0.14);
    border-radius: 8px;
    color: var(--text);
    background: rgba(6, 17, 23, 0.58);
    font-size: 0.92rem;
    line-height: 1.65;
    white-space: pre-wrap;
}

.maintenance-detail.is-cht .maintenance-notice {
    color: #b9ddff;
    border-color: rgba(82, 169, 255, 0.28);
    background: rgba(82, 169, 255, 0.08);
}

.maintenance-detail.is-fet .maintenance-notice {
    color: #ffd0d2;
    border-color: rgba(255, 95, 101, 0.28);
    background: rgba(255, 95, 101, 0.08);
}

.maintenance-detail.is-twm .maintenance-notice {
    color: #ffe1ad;
    border-color: rgba(255, 173, 61, 0.3);
    background: rgba(255, 173, 61, 0.08);
}

.maintenance-source-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 1rem;
}

.source-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.85rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid currentColor;
    border-radius: 6px;
    font-weight: 700;
    text-align: center;
    background: color-mix(in srgb, currentColor, transparent 88%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor, transparent 72%);
    transition: background 150ms ease, transform 150ms ease;
}

.source-link:hover,
.source-link:focus {
    background: color-mix(in srgb, currentColor, transparent 78%);
    outline: none;
    transform: translateY(-1px);
}

.source-cht {
    color: #52a9ff;
}

.source-fet {
    color: #ff5f65;
}

.night-sleep-page {
    padding: clamp(1rem, 2vw, 1.35rem);
}

.night-sleep-toolbar {
    align-items: flex-start;
}

.sleep-time-panel {
    display: grid;
    grid-template-columns: 8.25rem minmax(0, 1fr);
    gap: clamp(1rem, 2vw, 1.4rem);
    align-items: center;
    margin-bottom: 1rem;
    padding: clamp(0.9rem, 1.8vw, 1.15rem);
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    background: rgba(3, 12, 17, 0.48);
}

.analog-clock {
    display: grid;
    justify-items: center;
    gap: 0.48rem;
    color: var(--text);
}

.clock-face {
    position: relative;
    width: 6.9rem;
    aspect-ratio: 1;
    border: 2px solid rgba(139, 232, 255, 0.52);
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(39, 225, 187, 0.16), transparent 34%),
        rgba(6, 17, 23, 0.78);
    box-shadow:
        inset 0 0 0 0.36rem rgba(82, 169, 255, 0.06),
        0 0 22px rgba(39, 225, 187, 0.12);
}

.clock-face::before {
    content: "";
    position: absolute;
    inset: 0.62rem;
    border: 1px dashed rgba(139, 232, 255, 0.24);
    border-radius: 50%;
}

.clock-mark {
    position: absolute;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
}

.mark-12 {
    top: 0.45rem;
    left: 50%;
    transform: translateX(-50%);
}

.mark-3 {
    top: 50%;
    right: 0.42rem;
    transform: translateY(-50%);
}

.mark-6 {
    bottom: 0.42rem;
    left: 50%;
    transform: translateX(-50%);
}

.mark-9 {
    top: 50%;
    left: 0.42rem;
    transform: translateY(-50%);
}

.clock-hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    width: 0.18rem;
    border-radius: 999px;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(var(--hand-rotation, 0deg));
}

.clock-hour {
    height: 1.9rem;
    background: #edfaff;
}

.clock-minute {
    height: 2.55rem;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(39, 225, 187, 0.44);
}

.clock-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 50%;
    background: var(--accent-3);
    box-shadow: 0 0 14px rgba(255, 200, 87, 0.48);
    transform: translate(-50%, -50%);
}

.analog-clock strong {
    min-width: 4.7rem;
    color: var(--accent);
    font-size: 1.15rem;
    text-align: center;
}

.sleep-slider-wrap {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}

.sleep-monitor-note {
    margin: 0 0 0.18rem;
    color: #c8dde5;
    font-size: 0.9rem;
    line-height: 1.72;
}

.sleep-slider-labels {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.sleep-slider-row {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
}

.sleep-play-button {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid rgba(39, 225, 187, 0.46);
    border-radius: 50%;
    color: var(--accent);
    background:
        radial-gradient(circle at 50% 50%, rgba(39, 225, 187, 0.18), transparent 58%),
        rgba(6, 17, 23, 0.78);
    box-shadow: 0 0 18px rgba(39, 225, 187, 0.16);
    cursor: pointer;
    transition: border-color 150ms ease, color 150ms ease, background 150ms ease, transform 150ms ease;
}

.sleep-play-button:hover,
.sleep-play-button:focus-visible,
.sleep-play-button.is-playing {
    border-color: rgba(237, 250, 255, 0.7);
    color: var(--text);
    background:
        radial-gradient(circle at 50% 50%, rgba(39, 225, 187, 0.28), transparent 62%),
        rgba(10, 31, 41, 0.86);
    outline: none;
    transform: translateY(-1px);
}

.sleep-play-icon {
    display: block;
    width: 0;
    height: 0;
    margin-left: 0.18rem;
    border-top: 0.46rem solid transparent;
    border-bottom: 0.46rem solid transparent;
    border-left: 0.72rem solid currentColor;
}

.sleep-play-button.is-playing .sleep-play-icon {
    width: 0.74rem;
    height: 0.9rem;
    margin-left: 0;
    border: 0;
    background:
        linear-gradient(90deg, currentColor 0 0.24rem, transparent 0.24rem 0.5rem, currentColor 0.5rem 0.74rem);
}

.sleep-slider-track {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}

.sleep-time-slider {
    width: 100%;
    margin: 0;
    accent-color: var(--accent);
}

.sleep-time-ticks {
    display: grid;
    grid-template-columns: repeat(33, 1fr);
    height: 0.7rem;
    padding: 0 0.35rem;
}

.sleep-time-ticks span {
    justify-self: center;
    width: 1px;
    height: 0.42rem;
    background: rgba(139, 232, 255, 0.38);
}

.sleep-time-ticks span:nth-child(4n + 1) {
    height: 0.7rem;
    background: rgba(237, 250, 255, 0.62);
}

.sleep-operators {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.75rem, 1.4vw, 1rem);
}

.sleep-operator-card {
    --operator-color: #52a9ff;
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--operator-color), transparent 68%);
    border-radius: 8px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--operator-color), transparent 90%), transparent 38%),
        rgba(6, 17, 23, 0.64);
    overflow: hidden;
}

.sleep-operator-card.is-fet {
    --operator-color: #ff5f65;
}

.sleep-operator-card.is-twm {
    --operator-color: #ffad3d;
}

.sleep-operator-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid rgba(139, 232, 255, 0.14);
}

.sleep-operator-card h2 {
    margin: 0;
    color: var(--operator-color);
    font-size: clamp(1.02rem, 1.5vw, 1.22rem);
    letter-spacing: 0;
}

.sleep-count {
    color: var(--muted);
    font-size: 0.8rem;
}

.sleep-operator-body {
    display: grid;
    grid-template-columns: minmax(6.8rem, 0.82fr) minmax(11rem, 1.28fr);
    gap: 0.8rem;
    align-items: center;
    min-width: 0;
    padding: 0.95rem;
}

.sleep-tower-wrap {
    display: grid;
    place-items: center;
    min-height: 15rem;
    opacity: var(--tower-brightness, 1);
    filter: saturate(var(--tower-brightness, 1));
    transition: opacity 180ms ease, filter 180ms ease;
}

.sleep-tower {
    display: block;
    width: min(100%, 8.8rem);
    max-height: 14rem;
    object-fit: contain;
    filter: drop-shadow(0 0 20px color-mix(in srgb, var(--operator-color), transparent 62%));
}

.sleep-band-list {
    display: grid;
    gap: 0.8rem;
    min-width: 0;
}

.sleep-operator-note {
    margin: 0.1rem 0.95rem 0.95rem;
    padding: 0.78rem 0.85rem;
    border-left: 3px solid var(--operator-color);
    border-radius: 0 6px 6px 0;
    color: #c8dde5;
    background: rgba(3, 12, 17, 0.42);
    font-size: 0.82rem;
    line-height: 1.72;
}

.sleep-band-row {
    display: grid;
    grid-template-columns: minmax(6.6rem, 7.4rem) minmax(0, 1fr) 2.75rem;
    gap: 0.55rem;
    align-items: center;
    min-width: 0;
}

.sleep-band-label {
    color: #dff8ff;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.25;
}

.sleep-bar {
    position: relative;
    height: 0.72rem;
    overflow: hidden;
    border: 1px solid rgba(139, 232, 255, 0.2);
    border-radius: 999px;
    background: rgba(1, 8, 12, 0.78);
}

.sleep-bar-fill {
    display: block;
    width: var(--sleep-value, 100%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--operator-color), color-mix(in srgb, var(--operator-color), white 36%));
    box-shadow: 0 0 14px color-mix(in srgb, var(--operator-color), transparent 52%);
    transition: width 180ms ease;
}

.sleep-zzz {
    width: 2.75rem;
    color: var(--accent-3);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0;
    opacity: 0;
    transform: translateY(0.18rem);
}

.sleep-zzz strong {
    font-size: 1.28em;
    font-weight: 950;
}

.sleep-band-row.is-sleeping .sleep-zzz {
    opacity: 1;
    animation: sleep-zzz 1.25s ease-in-out infinite;
}

.sleep-video-section {
    margin-top: 1.1rem;
    padding: clamp(0.9rem, 1.8vw, 1.15rem);
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    background: rgba(3, 12, 17, 0.44);
}

.sleep-video-section h2 {
    margin: 0 0 0.9rem;
    color: var(--text);
    font-size: clamp(1.18rem, 2vw, 1.55rem);
    letter-spacing: 0;
}

.sleep-video-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.75rem, 1.4vw, 1rem);
}

.sleep-video-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(139, 232, 255, 0.14);
    border-radius: 8px;
    background: rgba(6, 17, 23, 0.62);
    transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.sleep-video-card:hover,
.sleep-video-card:focus-visible {
    border-color: rgba(39, 225, 187, 0.52);
    background: rgba(10, 31, 41, 0.76);
    outline: none;
    transform: translateY(-2px);
}

.sleep-video-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: rgba(1, 8, 12, 0.7);
}

.sleep-video-card strong {
    padding: 0.72rem 0.78rem 0.82rem;
    color: #dff8ff;
    font-size: 0.92rem;
    line-height: 1.5;
}

@keyframes sleep-zzz {
    0% {
        opacity: 0.25;
        transform: translateY(0.2rem);
    }
    45% {
        opacity: 1;
    }
    100% {
        opacity: 0.25;
        transform: translateY(-0.28rem);
    }
}

.source-twm {
    color: #ffad3d;
}

.external-link-icon {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    border: 2px solid currentColor;
    border-top: 0;
    border-right: 0;
    vertical-align: -0.12em;
}

.external-link-icon::before {
    content: "";
    position: absolute;
    right: -0.12rem;
    top: -0.12rem;
    width: 0.64rem;
    height: 0.64rem;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.external-link-icon::after {
    content: "";
    position: absolute;
    right: -0.08rem;
    top: -0.08rem;
    width: 0.82rem;
    height: 2px;
    background: currentColor;
    transform: rotate(-45deg);
    transform-origin: right center;
}

.speed-control-panel {
    display: grid;
    gap: 1rem;
    align-content: start;
    padding: 1.15rem;
}

.speed-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.speed-fieldset legend {
    margin-bottom: 0.65rem;
    color: var(--text);
    font-weight: 700;
}

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

.band-group-title {
    grid-column: 1 / -1;
    margin-top: 0.2rem;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
}

.band-group-note {
    grid-column: 1 / -1;
    margin-top: -0.15rem;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.band-option-spacer {
    min-height: 2.85rem;
}

.band-option,
.quick-config-options label,
.segmented-options label,
.qam-toggle {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.85rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(139, 232, 255, 0.18);
    border-radius: 6px;
    color: var(--text);
    background: rgba(6, 17, 23, 0.58);
}

.band-option input,
.quick-config-options input,
.segmented-options input,
.qam-toggle input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--operator-color);
}

.band-option:has(input:checked),
.quick-config-options label:has(input:checked),
.segmented-options label:has(input:checked),
.qam-toggle:has(input:checked) {
    border-color: color-mix(in srgb, var(--operator-color), white 18%);
    background: color-mix(in srgb, var(--operator-color), transparent 84%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--operator-color), transparent 52%);
}

.speed-control-panel.is-quick-mode .band-option,
.speed-control-panel.is-quick-mode .segmented-options label,
.speed-control-panel.is-quick-mode .qam-toggle,
.segmented-options label:has(input:disabled),
.band-option.is-disabled {
    color: rgba(230, 235, 238, 0.45);
    background: rgba(6, 17, 23, 0.32);
    filter: grayscale(0.75);
    cursor: not-allowed;
}

.speed-hint {
    min-height: 1.25rem;
    margin: 0.65rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.speed-hint.is-warning {
    color: #ffd2a1;
}

.live-speed-page {
    padding: clamp(1rem, 1.8vw, 1.35rem);
}

.live-speed-test {
    display: grid;
    grid-template-columns: minmax(18rem, 0.95fr) minmax(24rem, 1.05fr);
    gap: 1.1rem;
    margin-top: 1.25rem;
}

.speedtest-client-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1.1rem;
}

.speedtest-client-info h2,
.tools-section-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    letter-spacing: 0;
}

.speedtest-client-info h2 {
    grid-column: 1 / -1;
}

.speedtest-client-info article {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 6px;
    background: rgba(3, 12, 17, 0.46);
}

.speedtest-client-info span {
    color: var(--muted);
    font-size: 0.86rem;
}

.speedtest-client-info strong {
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.35;
}

.external-speed-tools {
    margin-top: 1.25rem;
}

.tools-section-heading {
    display: grid;
    gap: 0.15rem;
    margin-bottom: 0.85rem;
}

.external-speed-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.external-speed-card {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem;
    min-height: 8.25rem;
    padding: 1rem;
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    color: var(--text);
    background:
        linear-gradient(145deg, rgba(39, 225, 187, 0.1), transparent 48%),
        rgba(3, 12, 17, 0.5);
    text-decoration: none;
}

.external-speed-card img {
    width: 3.25rem;
    height: 3.25rem;
    object-fit: contain;
    border-radius: 8px;
}

.tool-card-with-video {
    grid-template-columns: 1fr;
    align-items: stretch;
}

.tool-main-link {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem;
    color: inherit;
    text-decoration: none;
}

.tool-video-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    margin-left: 4.1rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(255, 95, 101, 0.34);
    border-radius: 6px;
    color: #ffb4b7;
    background: rgba(255, 95, 101, 0.08);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.tool-video-link:hover,
.tool-video-link:focus-visible {
    outline: none;
    border-color: rgba(255, 95, 101, 0.7);
    background: rgba(255, 95, 101, 0.14);
}

.tool-video-link img {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 0;
}

.external-speed-text {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.external-speed-card:hover,
.external-speed-card:focus-visible {
    outline: none;
    border-color: rgba(39, 225, 187, 0.62);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.external-speed-card strong {
    color: var(--text);
    font-size: 1.05rem;
}

.external-speed-card span {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.external-speed-card .tool-warning {
    color: #ff6b6b;
    font-weight: 700;
}

.speedtest-gauge,
.speedtest-results {
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(39, 225, 187, 0.12), transparent 42%),
        rgba(3, 12, 17, 0.52);
}

.speedtest-gauge {
    display: grid;
    place-items: center;
    gap: 1.25rem;
    min-height: 31rem;
    padding: clamp(1.1rem, 3vw, 2rem);
}

.speedtest-ring {
    --progress: 0deg;
    display: grid;
    place-items: center;
    width: min(76vw, 18.5rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        conic-gradient(var(--accent) var(--progress), rgba(139, 232, 255, 0.13) 0),
        radial-gradient(circle at 50% 50%, rgba(6, 17, 23, 0.96) 58%, rgba(39, 225, 187, 0.17) 59%, rgba(6, 17, 23, 0.9) 67%);
    box-shadow: 0 0 38px rgba(39, 225, 187, 0.16);
}

.speedtest-ring.is-running {
    animation: speedtest-glow 1.1s ease-in-out infinite alternate;
}

.speedtest-start {
    display: grid;
    place-items: center;
    gap: 0.35rem;
    width: 72%;
    aspect-ratio: 1;
    border: 1px solid rgba(139, 232, 255, 0.28);
    border-radius: 50%;
    color: var(--text);
    background:
        radial-gradient(circle at 50% 38%, rgba(39, 225, 187, 0.22), transparent 45%),
        rgba(6, 17, 23, 0.88);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.speedtest-start:hover,
.speedtest-start:focus-visible {
    outline: none;
    border-color: rgba(39, 225, 187, 0.72);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 0 4px rgba(39, 225, 187, 0.13);
}

.speedtest-start:disabled {
    cursor: wait;
    opacity: 0.82;
}

.speedtest-start-label {
    font-size: clamp(3.2rem, 8vw, 5.6rem);
    font-weight: 800;
    line-height: 0.95;
}

.speedtest-start-subtitle,
.speedtest-current span,
.speedtest-current small,
.speedtest-metric span,
.speedtest-metric small,
.speedtest-status {
    color: var(--muted);
}

.speedtest-start-subtitle {
    max-width: 8rem;
    font-size: 0.85rem;
    text-align: center;
}

.speedtest-current {
    display: grid;
    justify-items: center;
    gap: 0.1rem;
}

.speedtest-current strong {
    color: var(--text);
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1;
    text-shadow: 0 0 28px rgba(39, 225, 187, 0.28);
}

.speedtest-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    align-content: stretch;
    padding: 1rem;
}

.speedtest-metric {
    display: grid;
    align-content: center;
    min-height: 9rem;
    padding: 1rem;
    border: 1px solid rgba(139, 232, 255, 0.14);
    border-radius: 6px;
    background: rgba(6, 17, 23, 0.56);
}

.speedtest-metric strong {
    color: var(--text);
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.05;
}

.speedtest-progress {
    grid-column: 1 / -1;
    height: 0.65rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(139, 232, 255, 0.12);
}

.speedtest-progress span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.22s ease;
}

.speedtest-status {
    grid-column: 1 / -1;
    min-height: 1.35rem;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
}

.speedtest-status.is-error {
    color: #ffd2a1;
}

.segmented-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.quick-config-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 0.65rem;
}

.qam-toggle {
    justify-content: flex-start;
}

@keyframes station-wave {
    from {
        transform: translateX(-50%) scale(0.96);
    }

    to {
        transform: translateX(-50%) scale(1.04);
    }
}

@keyframes speedtest-glow {
    from {
        box-shadow: 0 0 32px rgba(39, 225, 187, 0.14);
    }

    to {
        box-shadow: 0 0 56px rgba(39, 225, 187, 0.32);
    }
}

@keyframes spectrum-pulse {
    from {
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 0 0 rgba(39, 225, 187, 0);
    }

    to {
        box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.68), 0 0 18px rgba(39, 225, 187, 0.42);
    }
}

.home-page {
    padding: clamp(1rem, 2vw, 1.35rem);
}

.scanning-center-page {
    width: min(var(--page-width), 100%);
    padding: clamp(1rem, 2vw, 1.35rem);
}

.scanning-center-page .spectrum-toolbar {
    align-items: stretch;
}

.scanning-center-page .spectrum-toolbar > div:first-child {
    min-width: 0;
    max-width: 58rem;
}

.scan-banner {
    flex: 0 0 clamp(15rem, 28vw, 25rem);
    height: clamp(5.2rem, 8vw, 7.2rem);
    margin-left: auto;
    overflow: hidden;
    border-radius: 6px;
    opacity: 0.9;
}

.scan-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 12%, #000 34%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 12%, #000 34%);
}

.unknown-frequency-panel {
    width: 100%;
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    background: rgba(3, 12, 17, 0.42);
    overflow: hidden;
}

.sa-rollout-panel {
    width: 100%;
    margin-bottom: 1.35rem;
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    background: rgba(3, 12, 17, 0.42);
    overflow: hidden;
}

.sa-rollout-scroll {
    overflow: auto;
    padding: 1rem;
}

.sa-rollout-table {
    width: 100%;
    min-width: 76rem;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.9rem;
}

.sa-rollout-table th,
.sa-rollout-table td {
    padding: 0.78rem 0.7rem;
    border-bottom: 1px solid rgba(139, 232, 255, 0.12);
    vertical-align: top;
    text-align: left;
}

.sa-rollout-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    text-align: center;
    color: #dff8ff;
    background: rgba(10, 27, 36, 0.97);
    font-size: 1rem;
    white-space: nowrap;
}

.sa-carrier-heading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.sa-carrier-heading img {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 4px;
    object-fit: contain;
}

.sa-rollout-table th:nth-child(1) {
    width: 8.5rem;
}

.sa-rollout-table th:nth-child(2) {
    width: 20rem;
}

.sa-rollout-table th:nth-child(3),
.sa-rollout-table th:nth-child(4),
.sa-rollout-table th:nth-child(5) {
    width: 17.5rem;
}

.sa-rollout-table tbody th[scope="row"] {
    vertical-align: middle;
    text-align: center;
    color: var(--accent);
    font-size: 1.08rem;
    font-weight: 850;
    line-height: 1.45;
}

.sa-rollout-table tbody tr:hover {
    background: rgba(82, 169, 255, 0.06);
}

.sa-reason-cell,
.sa-detail-cell {
    color: #d8eef6;
    line-height: 1.55;
}

.sa-detail-cell {
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--operator-color), transparent 76%) var(--progress),
        rgba(6, 17, 23, 0.34) var(--progress)
    );
}

.sa-detail-cell div + div {
    margin-top: 0.45rem;
}

.sa-detail-cell div {
    position: relative;
    padding-left: 0.95rem;
}

.sa-detail-cell div::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 0.12rem;
    width: 0.34rem;
    height: 0.34rem;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.72;
}

.sa-cht {
    --operator-color: #8fd0ff;
}

.sa-fet {
    --operator-color: #ff8a8a;
}

.sa-twm {
    --operator-color: #ffc166;
}

.sa-evidence-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.34);
    text-underline-offset: 0.18rem;
}

.sa-evidence-link:hover,
.sa-evidence-link:focus {
    color: #ffffff;
    text-decoration-color: currentColor;
}

.sa-empty {
    color: rgba(216, 238, 246, 0.48);
}

.arfcn-calculator {
    display: grid;
    grid-template-columns: minmax(14rem, max-content) minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(139, 232, 255, 0.14);
    background: rgba(6, 17, 23, 0.42);
}

.arfcn-calculator label {
    color: #dff8ff;
    font-size: 0.94rem;
    font-weight: 800;
}

.arfcn-calculator-controls {
    display: grid;
    grid-template-columns: minmax(11rem, 16rem) auto minmax(13rem, 1fr);
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.arfcn-calculator input {
    width: 100%;
    min-height: 2.55rem;
    padding: 0 0.75rem;
    border: 1px solid rgba(139, 232, 255, 0.22);
    border-radius: 6px;
    color: var(--text);
    background: rgba(3, 12, 17, 0.66);
    font: inherit;
    font-weight: 750;
}

.arfcn-calculator input:focus {
    border-color: rgba(39, 225, 187, 0.62);
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 225, 187, 0.12);
}

.arfcn-calculator button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.55rem;
    padding: 0 0.95rem;
    border: 1px solid rgba(39, 225, 187, 0.34);
    border-radius: 6px;
    color: var(--text);
    background: linear-gradient(90deg, rgba(39, 225, 187, 0.18), rgba(82, 169, 255, 0.14));
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.arfcn-calculator button:hover,
.arfcn-calculator button:focus {
    border-color: rgba(39, 225, 187, 0.62);
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 225, 187, 0.12);
}

.arfcn-calculator output {
    min-width: 0;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1.45;
}

.arfcn-calculator output.has-result {
    color: #7fffdc;
}

.arfcn-calculator output.is-error {
    color: #ffd2a1;
}

.unknown-frequency-scroll {
    overflow: auto;
    padding: 1rem;
}

.unknown-frequency-table {
    width: 100%;
    min-width: 72rem;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.unknown-frequency-table th,
.unknown-frequency-table td {
    padding: 0.82rem 0.75rem;
    border-bottom: 1px solid rgba(139, 232, 255, 0.12);
    vertical-align: top;
    text-align: left;
}

.unknown-frequency-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    color: #dff8ff;
    background: rgba(10, 27, 36, 0.97);
    font-size: 0.82rem;
    white-space: nowrap;
}

.unknown-frequency-table tbody tr {
    color: var(--frequency-row-color, var(--text));
    font-weight: 650;
}

.unknown-frequency-table tbody tr:hover {
    background: rgba(82, 169, 255, 0.08);
}

.unknown-frequency-table th:nth-child(1),
.unknown-frequency-table th:nth-child(2),
.unknown-frequency-table th:nth-child(3),
.unknown-frequency-table th:nth-child(4),
.unknown-frequency-table td:nth-child(1),
.unknown-frequency-table td:nth-child(2),
.unknown-frequency-table td:nth-child(3),
.unknown-frequency-table td:nth-child(4) {
    text-align: center;
    white-space: nowrap;
}

.unknown-frequency-table td:nth-child(5) {
    min-width: 12rem;
}

.unknown-frequency-table td:nth-child(6) {
    min-width: 24rem;
    color: inherit;
    line-height: 1.55;
    white-space: pre-line;
}

.frequency-row-cht {
    --frequency-row-color: #8fd0ff;
}

.frequency-row-fet {
    --frequency-row-color: #ff8a8a;
}

.frequency-row-twm {
    --frequency-row-color: #ffc166;
}

.frequency-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 5.4rem;
    color: #f7fdff;
    font-weight: 800;
}

.signal-panel {
    width: 100%;
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    background: rgba(3, 12, 17, 0.42);
    overflow: hidden;
}

.signal-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(139, 232, 255, 0.14);
    background: rgba(6, 17, 23, 0.42);
    color: #dff8ff;
    font-size: 0.86rem;
    font-weight: 800;
}

.signal-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    white-space: nowrap;
}

.legend-swatch {
    width: 0.9rem;
    height: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 3px;
}

.legend-level-1 {
    background: #007a3f;
}

.legend-level-2 {
    background: #0f5f35;
}

.legend-level-3 {
    background: #174429;
}

.legend-level-4 {
    background: #203427;
}

.legend-level-5 {
    background: #4b5358;
}

.signal-table-scroll {
    overflow: auto;
    padding: 1rem;
}

.signal-table {
    width: 100%;
    min-width: 76rem;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-size: 0.9rem;
}

.signal-table th,
.signal-table td {
    padding: 0.82rem 0.75rem;
    border-right: 1px solid rgba(139, 232, 255, 0.1);
    border-bottom: 1px solid rgba(139, 232, 255, 0.12);
    vertical-align: middle;
    text-align: left;
}

.signal-table th:last-child,
.signal-table td:last-child {
    border-right: 0;
}

.signal-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    color: #dff8ff;
    background: rgba(10, 27, 36, 0.97);
    font-size: 1.02rem;
    font-weight: 950;
    text-align: center;
    white-space: nowrap;
}

.signal-table thead th:nth-child(1) {
    width: 9.5rem;
}

.signal-table thead th:nth-child(2) {
    width: 13rem;
}

.signal-table thead th:nth-child(n+3) {
    width: 17.8rem;
}

.operator-heading {
    color: #ffffff;
    font-weight: 900;
}

.operator-heading::before {
    content: "";
    display: inline-block;
    width: 1.85rem;
    height: 1.85rem;
    margin-right: 0.55rem;
    vertical-align: middle;
    background: var(--operator-logo) center / contain no-repeat;
}

.operator-cht {
    --operator-logo: url("pic/CHT_icon.png");
    background: rgba(10, 27, 36, 0.97) !important;
}

.operator-fet {
    --operator-logo: url("pic/FET_icon.jpg");
    background: rgba(10, 27, 36, 0.97) !important;
}

.operator-twm {
    --operator-logo: url("pic/TWM_icon.png");
    background: rgba(10, 27, 36, 0.97) !important;
}

.operator-cht,
.signal-cht {
    --tower-icon: url("pic/CellTower_CHT.svg");
}

.operator-fet,
.signal-fet {
    --tower-icon: url("pic/CellTower_FET.svg");
}

.operator-twm,
.signal-twm {
    --tower-icon: url("pic/CellTower_TWM.svg");
}

.signal-category,
.signal-config {
    color: #dff8ff;
    background: rgba(7, 20, 28, 0.76);
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
    vertical-align: middle;
}

.signal-category {
    color: var(--accent);
}

.signal-config {
    color: #eafaff;
}

.signal-cell {
    position: relative;
    min-height: 4.35rem;
    padding-left: 3.9rem !important;
    color: #f4fff8;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.45;
}

.signal-cell::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0.9rem;
    width: 2.35rem;
    height: 3.45rem;
    transform: translateY(-50%);
    background: var(--tower-icon) center / contain no-repeat;
    filter: brightness(var(--tower-brightness, 1)) saturate(var(--tower-saturation, 1));
    opacity: var(--tower-opacity, 1);
}

.signal-cell.signal-level-1 {
    --tower-brightness: 1.18;
    --tower-opacity: 1;
    background: #007a3f;
}

.signal-cell.signal-level-2 {
    --tower-brightness: 0.86;
    --tower-opacity: 0.82;
    background: #0f5f35;
}

.signal-cell.signal-level-3 {
    --tower-brightness: 0.62;
    --tower-opacity: 0.62;
    background: #174429;
}

.signal-cell.signal-level-4 {
    --tower-brightness: 0.42;
    --tower-opacity: 0.43;
    background: #203427;
}

.signal-cell.signal-level-5 {
    --tower-brightness: 0.32;
    --tower-saturation: 0.35;
    --tower-opacity: 0.26;
    color: rgba(244, 250, 252, 0.78);
    background: #4b5358;
}

.signal-table tbody tr:hover .signal-category,
.signal-table tbody tr:hover .signal-config {
    background: rgba(14, 39, 53, 0.88);
}

.signal-table tbody tr:hover .signal-cell {
    filter: brightness(1.08);
}

.home-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(17rem, 0.7fr);
    align-items: stretch;
    gap: 1rem;
}

.home-panel {
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    background: rgba(3, 12, 17, 0.5);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.status-column {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
}

.telecom-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.25rem;
    padding: 0.35rem 1rem;
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    color: #dff8ff;
    background: rgba(3, 12, 17, 0.5);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0;
}

.statusbar-left {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.earthquake-status-button {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 1.34rem;
    height: 1.34rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    background: #687684;
    line-height: 1;
    cursor: help;
    box-shadow: 0 0 0 2px rgba(156, 170, 184, 0.08), 0 0 12px rgba(156, 170, 184, 0.32);
}

.earthquake-status-wave {
    display: block;
    width: 1.04rem;
    height: 0.82rem;
    overflow: visible;
}

.earthquake-status-wave path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.earthquake-status-button.is-online {
    border-color: rgba(255, 255, 255, 0.18);
    background: #18b966;
    box-shadow: 0 0 0 2px rgba(34, 224, 128, 0.11), 0 0 15px rgba(34, 224, 128, 0.5);
}

.earthquake-status-button.is-offline {
    background: #687684;
    box-shadow: 0 0 0 2px rgba(156, 170, 184, 0.08), 0 0 12px rgba(156, 170, 184, 0.32);
}

.status-line-link {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 1.28rem;
    height: 1.28rem;
    border-radius: 50%;
    color: inherit;
    line-height: 1;
}

.status-line-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.earthquake-status-button:hover,
.earthquake-status-button:focus-visible,
.status-line-link:hover,
.status-line-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 225, 187, 0.12);
}

.status-tooltip {
    position: absolute;
    left: 50%;
    top: calc(100% + 0.55rem);
    z-index: 20;
    width: max-content;
    max-width: min(18rem, 78vw);
    padding: 0.58rem 0.72rem;
    border: 1px solid rgba(139, 232, 255, 0.34);
    border-radius: 8px;
    color: var(--text);
    background: rgba(8, 21, 29, 0.98);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -0.25rem);
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
    pointer-events: none;
}

.status-tooltip::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -0.35rem;
    width: 0.58rem;
    height: 0.58rem;
    border-left: 1px solid rgba(139, 232, 255, 0.34);
    border-top: 1px solid rgba(139, 232, 255, 0.34);
    background: rgba(8, 21, 29, 0.98);
    transform: translateX(-50%) rotate(45deg);
}

.earthquake-status-button:hover .status-tooltip,
.earthquake-status-button:focus-visible .status-tooltip,
.earthquake-status-button.is-tooltip-open .status-tooltip,
.status-line-link:hover .status-tooltip,
.status-line-link:focus-visible .status-tooltip,
.status-line-link.is-tooltip-open .status-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.telecom-carrier {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.42rem;
    white-space: nowrap;
}

.signal-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 0.12rem;
    height: 0.9rem;
}

.signal-bars i {
    display: block;
    width: 0.22rem;
    border-radius: 2px 2px 0 0;
    background: #dff8ff;
    box-shadow: 0 0 10px rgba(139, 232, 255, 0.24);
}

.signal-bars i:nth-child(1) {
    height: 0.32rem;
}

.signal-bars i:nth-child(2) {
    height: 0.5rem;
}

.signal-bars i:nth-child(3) {
    height: 0.68rem;
}

.signal-bars i:nth-child(4) {
    height: 0.86rem;
}

.home-panel-heading {
    padding: 1rem 1rem 0;
}

.home-panel-heading h1,
.home-panel-heading h2 {
    margin: 0.15rem 0 0;
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    letter-spacing: 0;
}

.status-heading {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: clamp(0.85rem, 2.2vw, 1.6rem);
}

.status-board {
    display: grid;
    width: min(100%, 28rem);
    min-width: 28rem;
    margin: 0.8rem 1rem 0.75rem;
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(6, 17, 23, 0.5);
}

.status-panel {
    overflow-x: auto;
}

.status-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(7.2rem, 1fr));
}

.status-row > span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.2rem;
    padding: 0.48rem 0.55rem;
    border-right: 1px solid rgba(139, 232, 255, 0.12);
    border-bottom: 1px solid rgba(139, 232, 255, 0.12);
    text-align: center;
}

.status-row > span:last-child {
    border-right: 0;
}

.status-row:last-child > span {
    border-bottom: 0;
}

.status-header > span {
    gap: 0.38rem;
    min-height: 2.55rem;
    color: #dff8ff;
    font-weight: 800;
    background: rgba(82, 169, 255, 0.1);
}

.operator-icon {
    width: 1.18rem;
    height: 1.18rem;
    flex: 0 0 auto;
    border-radius: 4px;
    object-fit: contain;
}

.status-cell {
    gap: 0.45rem;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 700;
}

.status-report-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.7rem;
    min-height: 1.28rem;
    padding: 0 0.35rem;
    border: 1px solid rgba(139, 232, 255, 0.18);
    border-radius: 999px;
    color: #c9e9f4;
    background: rgba(139, 232, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.status-light {
    width: 0.86rem;
    height: 0.86rem;
    flex: 0 0 auto;
    border-radius: 999px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06), 0 0 18px var(--status-glow);
}

.status-green {
    --status-glow: rgba(34, 224, 128, 0.6);
    background: radial-gradient(circle at 35% 30%, #d9ffe9 0 18%, #35f08c 42%, #0fa15a 100%);
}

.status-yellow {
    --status-glow: rgba(255, 200, 87, 0.66);
    background: radial-gradient(circle at 35% 30%, #fff7cd 0 18%, #ffd75e 42%, #c28a10 100%);
}

.status-red {
    --status-glow: rgba(255, 78, 78, 0.66);
    background: radial-gradient(circle at 35% 30%, #ffd2d2 0 18%, #ff5757 42%, #b91c1c 100%);
}

.status-gray {
    --status-glow: rgba(156, 170, 184, 0.5);
    background: radial-gradient(circle at 35% 30%, #f2f5f7 0 15%, #9aa7b4 44%, #4b5563 100%);
}

.marquee-panel {
    display: flex;
    flex: 1 1 auto;
    min-height: 3.2rem;
    overflow: hidden;
}

.marquee-window {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 100%;
    overflow: hidden;
    padding: 0 0.9rem;
    background:
        linear-gradient(rgba(39, 225, 187, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(39, 225, 187, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 12% 28%, rgba(39, 225, 187, 0.13), transparent 18rem),
        rgba(1, 8, 10, 0.72);
    background-size: 12px 12px, 12px 12px, auto, auto;
}

.marquee-window::before,
.marquee-window::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 2.8rem;
    pointer-events: none;
}

.marquee-window::before {
    left: 0;
    background: linear-gradient(90deg, rgba(1, 8, 10, 0.95), transparent);
}

.marquee-window::after {
    right: 0;
    background: linear-gradient(270deg, rgba(1, 8, 10, 0.95), transparent);
}

.marquee-text {
    position: absolute;
    left: 0;
    margin: 0;
    color: #74ffd2;
    font-family: "Microsoft JhengHei", "Noto Sans TC", monospace;
    font-size: clamp(0.82rem, 1.25vw, 1rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
    text-shadow:
        0 0 8px rgba(39, 225, 187, 0.76),
        0 0 18px rgba(39, 225, 187, 0.42);
    will-change: transform;
}

.status-report-link {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-height: 2.4rem;
    margin: 0 0 0.08rem;
    padding: 0 0.8rem;
    border: 1px solid rgba(255, 90, 90, 0.42);
    border-radius: 6px;
    color: #ffd6d6;
    background: linear-gradient(90deg, rgba(255, 70, 70, 0.18), rgba(255, 130, 80, 0.08));
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
}

.youtube-panel {
    display: flex;
    flex-direction: column;
}

.youtube-links {
    display: grid;
    gap: 0.7rem;
    padding: 1rem;
}

.youtube-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 3.45rem;
    padding: 0 0.9rem;
    border: 1px solid rgba(255, 80, 80, 0.28);
    border-radius: 8px;
    color: #fff4f4;
    background: linear-gradient(135deg, rgba(255, 43, 43, 0.18), rgba(82, 169, 255, 0.07));
    font-weight: 800;
}

.youtube-link-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.youtube-icon {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
    object-fit: contain;
}

.status-report-link:hover,
.status-report-link:focus,
.youtube-links a:hover,
.youtube-links a:focus,
.home-news-link:hover,
.home-news-link:focus {
    color: #ffffff;
    border-color: rgba(39, 225, 187, 0.58);
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 225, 187, 0.12);
}

.status-report-link:hover,
.status-report-link:focus {
    border-color: rgba(255, 95, 101, 0.68);
    box-shadow: 0 0 0 3px rgba(255, 95, 101, 0.14);
}

.news-panel {
    margin-top: 1rem;
    overflow: hidden;
}

.news-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(139, 232, 255, 0.14);
}

.news-heading .spectrum-updated {
    text-align: right;
}

.home-news-scroll {
    overflow: auto;
}

.home-news-table {
    width: 100%;
    min-width: 68rem;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.home-news-table th,
.home-news-table td {
    padding: 0.82rem 0.75rem;
    border-bottom: 1px solid rgba(139, 232, 255, 0.12);
    vertical-align: top;
    text-align: left;
}

.home-news-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    color: #dff8ff;
    background: rgba(10, 27, 36, 0.97);
    font-size: 0.82rem;
    white-space: nowrap;
}

.home-news-table tbody tr {
    color: var(--operator-row-color, var(--text));
    font-weight: 600;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.36);
}

.home-news-table tbody tr:hover {
    background: rgba(82, 169, 255, 0.08);
}

.home-news-table td:nth-child(7) {
    min-width: 22rem;
    color: inherit;
    line-height: 1.55;
}

.home-news-table td:nth-child(2),
.home-news-table td:nth-child(5),
.home-news-table td:nth-child(6) {
    white-space: nowrap;
}

.home-news-table th:nth-child(1),
.home-news-table th:nth-child(2),
.home-news-table th:nth-child(3),
.home-news-table th:nth-child(4),
.home-news-table th:nth-child(5),
.home-news-table th:nth-child(6),
.home-news-table th:nth-child(7),
.home-news-table td:nth-child(1),
.home-news-table td:nth-child(3),
.home-news-table td:nth-child(4),
.home-news-table td:nth-child(5),
.home-news-table td:nth-child(6) {
    text-align: center;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    padding: 0 0.58rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #fff;
    background: var(--badge-bg, rgba(82, 169, 255, 0.18));
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.home-news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.38);
    text-underline-offset: 0.18rem;
}

.news-toggle-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    margin: 1rem auto;
    padding: 0 1.2rem;
    border: 1px solid rgba(39, 225, 187, 0.34);
    border-radius: 6px;
    color: var(--text);
    background: linear-gradient(90deg, rgba(39, 225, 187, 0.14), rgba(82, 169, 255, 0.12));
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.news-toggle-button:hover,
.news-toggle-button:focus {
    border-color: rgba(39, 225, 187, 0.62);
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 225, 187, 0.12);
}

.coverage-panel {
    margin-top: 1rem;
    overflow: hidden;
}

.coverage-heading {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(139, 232, 255, 0.14);
}

.coverage-heading > div:first-child {
    min-width: 0;
    max-width: 58rem;
}

.coverage-note {
    max-width: 56rem;
    margin: 0.55rem 0 0;
    color: rgba(226, 242, 255, 0.76);
    font-size: 0.86rem;
    line-height: 1.65;
}

.coverage-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: center;
    gap: 0.75rem;
    padding: 1rem;
}

.coverage-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 3.25rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid currentColor;
    border-radius: 8px;
    color: var(--coverage-color);
    background: color-mix(in srgb, var(--coverage-color), transparent 88%);
    font-weight: 800;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--coverage-color), transparent 74%);
}

.coverage-link > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.coverage-link:hover,
.coverage-link:focus {
    color: #ffffff;
    outline: none;
    background: color-mix(in srgb, var(--coverage-color), transparent 78%);
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--coverage-color), transparent 58%),
        0 0 0 3px color-mix(in srgb, var(--coverage-color), transparent 84%);
}

.coverage-cht {
    --coverage-color: #8fd0ff;
}

.coverage-fet {
    --coverage-color: #ff8a8a;
}

.coverage-twm {
    --coverage-color: #ffc166;
}

.coverage-banner {
    flex: 0 0 clamp(15rem, 28vw, 25rem);
    height: clamp(5.2rem, 8vw, 7.2rem);
    margin-left: auto;
    overflow: hidden;
    border-radius: 6px;
    opacity: 0.9;
    box-shadow:
        inset 0 0 0 1px rgba(139, 232, 255, 0.12),
        0 18px 40px rgba(0, 0, 0, 0.26);
}

.coverage-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 12%, #000 34%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 12%, #000 34%);
}

.impact-panel {
    margin-top: 1rem;
    padding: clamp(1.2rem, 3vw, 2rem);
    text-align: center;
    background:
        linear-gradient(135deg, rgba(39, 225, 187, 0.1), transparent 34%),
        linear-gradient(225deg, rgba(255, 200, 87, 0.09), transparent 38%),
        rgba(3, 12, 17, 0.52);
}

.impact-panel p {
    max-width: 68rem;
    margin: 0 auto;
    color: #eafaff;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: 800;
    line-height: 1.55;
    white-space: nowrap;
}

.impact-value {
    display: inline-block;
    min-width: 4.2ch;
    margin: 0 0.16em;
    color: #7fffdc;
    font-size: clamp(2rem, 4.6vw, 3.8rem);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-shadow: 0 0 24px rgba(39, 225, 187, 0.34);
    vertical-align: -0.18em;
}

.impact-number,
.impact-plus {
    color: inherit;
    font: inherit;
    line-height: inherit;
}

.publicity-panel {
    margin-top: 1rem;
    overflow: hidden;
}

.publicity-heading {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(139, 232, 255, 0.14);
}

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

.publicity-card {
    display: grid;
    grid-template-columns: minmax(12rem, 42%) minmax(0, 1fr);
    gap: clamp(0.85rem, 1.8vw, 1.15rem);
    min-height: 13rem;
    padding: 0.9rem;
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(39, 225, 187, 0.08), transparent 46%),
        rgba(3, 12, 17, 0.54);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
    perspective: 900px;
}

.publicity-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 11rem;
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 6px;
    object-fit: cover;
    background: rgba(7, 17, 23, 0.9);
    box-shadow:
        0 18px 34px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    filter: saturate(1.05) contrast(1.02);
    transform: rotateY(-5deg) rotateX(2deg);
    transform-origin: center;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
    mask-image: linear-gradient(135deg, transparent 0, #000 0.7rem, #000 calc(100% - 0.7rem), transparent 100%);
}

.publicity-card:nth-child(even) img {
    transform: rotateY(5deg) rotateX(2deg);
}

.publicity-card:hover img {
    box-shadow:
        0 22px 42px rgba(0, 0, 0, 0.34),
        0 0 22px rgba(39, 225, 187, 0.12);
    filter: saturate(1.1) contrast(1.04);
    transform: rotateY(0) rotateX(0) translateY(-2px);
}

.publicity-card-content {
    display: grid;
    align-content: start;
    gap: 0.6rem;
    min-width: 0;
}

.publicity-card h3 {
    margin: 0;
    color: #e8fbff;
    font-size: clamp(1.02rem, 1.8vw, 1.25rem);
    line-height: 1.42;
    letter-spacing: 0;
}

.publicity-highlight {
    color: #ffc857;
    text-shadow: 0 0 18px rgba(255, 200, 87, 0.22);
}

.publicity-card p {
    margin: 0;
    color: #bfd3dc;
    font-size: 0.94rem;
    line-height: 1.72;
}

.project-video-list {
    display: grid;
    gap: 0.9rem;
}

.project-video-card {
    display: grid;
    grid-template-columns: minmax(14rem, 21rem) minmax(0, 1fr);
    gap: clamp(0.95rem, 2vw, 1.35rem);
    width: 100%;
    min-height: 12.25rem;
    padding: clamp(0.85rem, 2vw, 1.05rem);
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(39, 225, 187, 0.1), transparent 48%),
        rgba(3, 12, 17, 0.54);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.project-video-thumb {
    --project-video-border: rgba(139, 232, 255, 0.28);
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    align-self: start;
    overflow: hidden;
    border: 3px solid var(--project-video-border);
    border-radius: 6px;
    background: rgba(7, 17, 23, 0.9);
    box-shadow: 0 0 0 1px rgba(3, 12, 17, 0.72), 0 14px 30px rgba(0, 0, 0, 0.18);
}

.project-video-thumb.software {
    --project-video-border: #27e1bb;
}

.project-video-thumb.field-test {
    --project-video-border: #ffc857;
}

.project-video-thumb.technology {
    --project-video-border: #52a9ff;
}

.project-video-thumb.briefing {
    --project-video-border: #ff5f65;
}

.project-video-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.34));
    pointer-events: none;
}

.project-video-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-video-thumb[href]:hover,
.project-video-thumb[href]:focus-visible {
    outline: none;
    border-color: var(--project-video-border);
    box-shadow: 0 0 0 2px rgba(247, 253, 255, 0.14), 0 16px 32px rgba(0, 0, 0, 0.26);
}

.project-video-content {
    display: grid;
    align-content: start;
    gap: 0.65rem;
    min-width: 0;
}

.project-video-content h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.08rem, 2vw, 1.32rem);
    line-height: 1.45;
    letter-spacing: 0;
}

.project-video-content h2 a {
    display: inline;
    color: inherit;
    text-decoration: none;
}

.project-video-content h2 a .external-link-icon,
.hsr-project-body h3 a .external-link-icon {
    margin-left: 0.38rem;
}

.project-video-content h2 a:hover,
.project-video-content h2 a:focus-visible {
    outline: none;
    color: var(--accent);
}

.project-video-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.project-video-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.22rem 0.62rem;
    border: 1px solid rgba(139, 232, 255, 0.18);
    border-radius: 999px;
    color: #dffcff;
    background: rgba(82, 169, 255, 0.16);
    font-weight: 700;
}

.project-video-badge.software {
    color: #d9fff4;
    background: rgba(39, 225, 187, 0.16);
}

.project-video-badge.field-test {
    color: #fff0c7;
    background: rgba(255, 200, 87, 0.18);
}

.project-video-badge.technology {
    color: #dcecff;
    background: rgba(82, 169, 255, 0.18);
}

.project-video-badge.briefing {
    color: #ffe5e5;
    background: rgba(255, 95, 101, 0.16);
}

.project-video-meta time {
    color: var(--muted);
}

.project-video-content p {
    margin: 0;
    color: #bfd3dc;
    font-size: 0.95rem;
    line-height: 1.72;
}

.hsr-project-page {
    display: grid;
    gap: 1.15rem;
    width: min(var(--page-width), 100%);
    padding: clamp(1rem, 2vw, 1.35rem);
}

.hsr-project-toolbar {
    align-items: stretch;
}

.hsr-project-toolbar > div:first-child {
    min-width: 0;
    max-width: 58rem;
}

.hsr-project-section {
    display: grid;
    gap: 0.85rem;
}

.hsr-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 0.2rem;
}

.hsr-section-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    line-height: 1.25;
    letter-spacing: 0;
}

.hsr-section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
    text-align: right;
}

.hsr-project-list {
    display: grid;
    gap: 0.8rem;
}

.hsr-project-card {
    display: grid;
    grid-template-columns: minmax(13rem, 18rem) minmax(0, 1fr);
    gap: clamp(0.9rem, 1.8vw, 1.25rem);
    min-height: 10.6rem;
    padding: clamp(0.82rem, 1.8vw, 1rem);
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(82, 169, 255, 0.08), transparent 48%),
        rgba(3, 12, 17, 0.54);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.hsr-project-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    align-self: start;
    overflow: hidden;
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 6px;
    background: rgba(7, 17, 23, 0.9);
}

.hsr-project-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hsr-project-thumb:hover,
.hsr-project-thumb:focus-visible {
    outline: none;
    border-color: rgba(39, 225, 187, 0.62);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.hsr-project-body {
    display: grid;
    align-content: start;
    gap: 0.85rem;
    min-width: 0;
}

.hsr-project-body h3 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.02rem, 1.8vw, 1.22rem);
    line-height: 1.45;
    letter-spacing: 0;
}

.hsr-project-body h3 a {
    color: inherit;
    text-decoration: none;
}

.hsr-project-body h3 a:hover,
.hsr-project-body h3 a:focus-visible {
    outline: none;
    color: var(--accent);
}

.hsr-project-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.hsr-project-operator {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    padding: 0.12rem 0.55rem;
    border: 1px solid color-mix(in srgb, var(--route-color) 50%, transparent);
    border-radius: 999px;
    color: var(--route-color);
    background: color-mix(in srgb, var(--route-color) 14%, transparent);
    font-weight: 700;
}

.hsr-route {
    position: relative;
    display: grid;
    gap: 0.45rem;
    padding: 0.35rem 0.1rem 0;
    min-width: 0;
    --route-color: #edfaff;
    --route-start: 0%;
    --route-end: 100%;
}

.hsr-route-track {
    position: relative;
    height: 0.36rem;
    margin: 0 0.55rem;
    border-radius: 999px;
    background: rgba(139, 232, 255, 0.18);
}

.hsr-route-segment {
    position: absolute;
    top: 50%;
    left: var(--route-start);
    width: max(calc(var(--route-end) - var(--route-start)), 0.36rem);
    height: 0.36rem;
    border-radius: 999px;
    background: var(--route-color);
    box-shadow: 0 0 18px color-mix(in srgb, var(--route-color) 42%, transparent);
    transform: translateY(-50%);
}

.hsr-route-stations {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: start;
}

.hsr-route-station {
    display: grid;
    justify-items: center;
    gap: 0.32rem;
    min-width: 0;
    color: #8ca8b6;
}

.hsr-route-dot {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 50%;
    background: rgba(139, 232, 255, 0.42);
    box-shadow: 0 0 0 0.16rem rgba(7, 17, 23, 0.95);
}

.hsr-route-station.is-active {
    color: #f4fbff;
}

.hsr-route-station.is-active .hsr-route-dot {
    background: var(--route-color);
    box-shadow:
        0 0 0 0.16rem rgba(7, 17, 23, 0.95),
        0 0 14px color-mix(in srgb, var(--route-color) 54%, transparent);
}

.hsr-route-label {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 0.82rem;
    line-height: 1.2;
    text-align: center;
}

.hsr-toggle-button {
    justify-self: center;
    min-width: 10rem;
}

.merge-zone-list {
    display: grid;
    gap: 1rem;
}

.merge-zone-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    min-width: max-content;
    margin: 0;
    padding: 0.36rem;
    border: 1px solid rgba(139, 232, 255, 0.18);
    border-radius: 8px;
    background: rgba(6, 17, 23, 0.62);
}

.merge-zone-switch label {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.merge-zone-switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.merge-zone-switch span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0 1.15rem;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--muted);
    font-size: 1.02rem;
    font-weight: 800;
    white-space: nowrap;
}

.merge-zone-switch input:checked + span {
    color: var(--text);
    border-color: rgba(255, 181, 71, 0.46);
    background: rgba(255, 181, 71, 0.16);
}

.merge-zone-switch label:nth-child(2) input:checked + span {
    border-color: rgba(255, 95, 101, 0.5);
    background: rgba(255, 95, 101, 0.16);
}

.merge-zone-switch input:focus-visible + span {
    outline: 2px solid rgba(139, 232, 255, 0.56);
    outline-offset: 2px;
}

.merge-zone-card {
    --merge-accent: #ffb547;
    --merge-glow: rgba(255, 181, 71, 0.18);
    overflow: hidden;
    border: 1px solid rgba(139, 232, 255, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, var(--merge-glow), transparent 48%),
        linear-gradient(180deg, rgba(15, 35, 45, 0.86), rgba(4, 13, 18, 0.74));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.merge-zone-card-fet {
    --merge-accent: #ff5f65;
    --merge-glow: rgba(255, 95, 101, 0.2);
}

.merge-zone-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.95rem, 2vw, 1.35rem);
    min-height: clamp(6.2rem, 9.5vw, 8.2rem);
    padding: clamp(0.75rem, 1.6vw, 1rem);
}

.merge-zone-copy {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.merge-zone-kicker {
    margin: 0;
    color: var(--merge-accent);
    font-size: 0.86rem;
    font-weight: 800;
}

.merge-zone-copy h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    line-height: 1.2;
    letter-spacing: 0;
}

.merge-zone-copy p:last-child {
    max-width: 34rem;
    margin: 0;
    color: #bfd3dc;
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    line-height: 1.5;
}

.merge-zone-image {
    position: relative;
    flex: 0 0 clamp(10rem, 18vw, 16rem);
    height: clamp(6.2rem, 9.5vw, 8.2rem);
    margin-left: auto;
    overflow: hidden;
    border-radius: 6px;
    opacity: 0.9;
}

.merge-zone-image::after {
    display: none;
}

.merge-zone-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 12%, #000 34%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 12%, #000 34%);
}

.merge-phase-overview {
    padding: 0 clamp(0.75rem, 1.6vw, 1rem) 0.85rem;
}

.merge-phase-overview-track {
    display: flex;
    align-items: center;
    gap: 0.34rem;
    overflow-x: auto;
    padding: 0.76rem;
    border: 1px solid rgba(139, 232, 255, 0.12);
    border-radius: 8px;
    background: rgba(3, 12, 17, 0.38);
}

.merge-phase-overview-step {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    color: var(--muted);
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.merge-phase-overview-dot {
    display: inline-grid;
    width: 2.8rem;
    height: 2.8rem;
    place-items: center;
    border: 1px solid var(--phase-dot-color, rgba(139, 232, 255, 0.28));
    border-radius: 999px;
    color: #f7fdff;
    background: rgba(6, 17, 23, 0.88);
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0 18px var(--phase-dot-glow, rgba(139, 232, 255, 0.14));
}

.merge-phase-overview-step.is-complete {
    --phase-dot-color: #35f08c;
    --phase-dot-glow: rgba(53, 240, 140, 0.24);
}

.merge-phase-overview-step.is-active {
    --phase-dot-color: #ffd75e;
    --phase-dot-glow: rgba(255, 215, 94, 0.28);
}

.merge-phase-overview-step.is-pending {
    --phase-dot-color: #73828d;
    --phase-dot-glow: rgba(115, 130, 141, 0.16);
}

.merge-phase-overview-arrow {
    color: rgba(139, 232, 255, 0.34);
    font-size: 0.78rem;
    font-weight: 900;
}

.merge-phase-overview-step:hover .merge-phase-overview-dot,
.merge-phase-overview-step:focus-visible .merge-phase-overview-dot {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px var(--phase-dot-glow, rgba(139, 232, 255, 0.14));
}

.merge-phase-overview-step:focus-visible {
    outline: none;
}

.merge-zone-timeline {
    display: grid;
    gap: 0;
    padding: 0 clamp(0.75rem, 1.6vw, 1rem) clamp(0.9rem, 1.8vw, 1.1rem);
}

.merge-phase-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(6.8rem, 0.16fr) minmax(0, 1fr);
    gap: clamp(0.8rem, 1.8vw, 1.25rem);
    min-width: 0;
    scroll-margin-top: 1rem;
}

.merge-phase-marker {
    position: relative;
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 0.5rem;
    padding: 1.05rem 0.2rem;
    text-align: center;
}

.merge-phase-card:not(:last-child) .merge-phase-marker::after {
    content: "";
    position: absolute;
    top: 4.55rem;
    bottom: -1.15rem;
    left: 50%;
    width: 1px;
    background: linear-gradient(180deg, var(--merge-accent), rgba(139, 232, 255, 0.16));
    opacity: 0.62;
}

.merge-phase-code {
    position: relative;
    z-index: 1;
    display: inline-grid;
    width: 4.1rem;
    height: 4.1rem;
    place-items: center;
    border: 1px solid var(--merge-accent);
    border-radius: 999px;
    color: var(--merge-accent);
    background: rgba(5, 15, 21, 0.92);
    font-size: 1.2rem;
    line-height: 1;
    box-shadow: 0 0 0 5px rgba(5, 15, 21, 0.74), 0 0 24px var(--merge-glow);
}

.merge-phase-period {
    display: grid;
    gap: 0.25rem;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.merge-phase-period span {
    color: #dff8ff;
    font-weight: 800;
}

.merge-phase-body {
    display: grid;
    gap: 0.82rem;
    min-width: 0;
    padding: 1rem 0 1rem;
    border-bottom: 1px solid rgba(139, 232, 255, 0.12);
}

.merge-phase-card:last-child .merge-phase-body {
    border-bottom: 0;
}

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

.merge-tower-card {
    display: grid;
    grid-template-columns: 4.3rem minmax(0, 1fr);
    gap: 0.72rem;
    align-items: start;
    min-width: 0;
    padding: 0.76rem;
    border: 1px solid rgba(139, 232, 255, 0.14);
    border-radius: 8px;
    background: rgba(3, 12, 17, 0.42);
}

.merge-tower-visual {
    display: grid;
    min-height: 6rem;
    place-items: center;
}

.merge-tower-visual img {
    display: block;
    width: 4rem;
    max-height: 6rem;
    object-fit: contain;
}

.merge-tower-body {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}

.merge-tower-body h4,
.merge-phase-note h4,
.merge-video-list h4 {
    margin: 0;
    color: #edfaff;
    font-size: 0.9rem;
    letter-spacing: 0;
}

.merge-band-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.36rem;
}

.merge-band {
    display: inline-flex;
    align-items: center;
    min-height: 1.82rem;
    padding: 0.18rem 0.48rem;
    border: 1px solid rgba(139, 232, 255, 0.16);
    border-radius: 6px;
    color: var(--band-color, #dff8ff);
    background: rgba(8, 21, 29, 0.74);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.25;
}

.merge-band.tone-orange {
    --band-color: #ffb547;
}

.merge-band.tone-purple {
    --band-color: #c594ff;
}

.merge-band.tone-red {
    --band-color: #ff747a;
}

.merge-band.tone-green {
    --band-color: #7ff0ad;
}

.merge-band.tone-blue {
    --band-color: #6abaff;
}

.merge-band.tone-gray {
    --band-color: #aeb8c2;
}

.merge-band.border-orange {
    border-color: #ffb547;
    box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.18);
}

.merge-band.border-purple {
    border-color: #c594ff;
    box-shadow: inset 0 0 0 1px rgba(197, 148, 255, 0.18);
}

.merge-band.border-green {
    border-color: #7ff0ad;
    box-shadow: inset 0 0 0 1px rgba(127, 240, 173, 0.18);
}

.merge-band.is-struck {
    color: #97a3ad;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    opacity: 0.75;
}

.merge-phase-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.merge-phase-note,
.merge-video-list {
    display: grid;
    align-content: start;
    gap: 0.48rem;
    min-width: 0;
    padding: 0.78rem;
    border: 1px solid rgba(139, 232, 255, 0.12);
    border-radius: 8px;
    background: rgba(8, 23, 31, 0.48);
}

.merge-phase-note p,
.merge-video-empty {
    margin: 0;
    color: #bfd3dc;
    font-size: 0.88rem;
    line-height: 1.65;
}

.merge-video-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
}

.merge-video-list h4,
.merge-video-empty {
    grid-column: 1 / -1;
}

.merge-video-card {
    display: grid;
    gap: 0.42rem;
    min-width: 0;
    color: #dffcff;
}

.merge-video-card:hover,
.merge-video-card:focus {
    color: var(--merge-accent);
    outline: none;
}

.merge-video-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(139, 232, 255, 0.15);
    border-radius: 6px;
    background: rgba(7, 17, 23, 0.9);
}

.merge-video-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.merge-video-title {
    display: -webkit-box;
    overflow: hidden;
    color: inherit;
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.42;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 760px) {
    .coverage-heading {
        align-items: stretch;
        flex-direction: column;
    }

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

    .coverage-banner {
        flex: 0 0 auto;
        width: 100%;
        height: clamp(6.2rem, 32vw, 8.2rem);
        margin-left: 0;
    }

    .impact-panel p {
        white-space: normal;
    }

    .merge-zone-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .merge-zone-image {
        flex: 0 0 auto;
        width: 100%;
        height: clamp(6.2rem, 32vw, 8.2rem);
        margin-left: 0;
    }

    .merge-phase-card {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .merge-phase-marker {
        justify-items: start;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        padding: 0.95rem 0 0.35rem;
        text-align: left;
    }

    .merge-phase-card:not(:last-child) .merge-phase-marker::after {
        display: none;
    }

    .merge-phase-period {
        justify-items: start;
    }

    .merge-zone-switch {
        width: 100%;
    }

    .merge-zone-switch label {
        flex: 1 1 0;
    }

    .merge-zone-switch span {
        width: 100%;
    }

    .merge-tower-grid,
    .merge-phase-notes {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 980px) {
    .site-header {
        align-items: center;
        flex-wrap: wrap;
    }

    .brand a {
        min-width: 0;
    }

    .mobile-menu-button {
        display: inline-grid;
        place-items: center;
        gap: 0.22rem;
        width: 2.45rem;
        height: 2.45rem;
        margin-left: auto;
        padding: 0;
        border: 1px solid rgba(139, 232, 255, 0.24);
        border-radius: 8px;
        background: rgba(82, 169, 255, 0.12);
        cursor: pointer;
    }

    .mobile-menu-button span {
        display: block;
        width: 1.1rem;
        height: 2px;
        border-radius: 999px;
        background: #dff8ff;
        transition: opacity 150ms ease, transform 150ms ease;
    }

    .mobile-menu-button:hover,
    .mobile-menu-button:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(39, 225, 187, 0.12);
    }

    .site-header.menu-open .mobile-menu-button span:nth-child(1) {
        transform: translateY(0.31rem) rotate(45deg);
    }

    .site-header.menu-open .mobile-menu-button span:nth-child(2) {
        opacity: 0;
    }

    .site-header.menu-open .mobile-menu-button span:nth-child(3) {
        transform: translateY(-0.31rem) rotate(-45deg);
    }

    .site-header.has-mobile-menu .main-nav {
        display: none;
        width: 100%;
    }

    .site-header.has-mobile-menu.menu-open .main-nav {
        display: block;
    }

    .main-nav > ul {
        display: grid;
        grid-template-columns: 1fr;
        min-width: 0;
        gap: 0.35rem;
        padding-top: 0.75rem;
    }

    .nav-item > a,
    .nav-trigger {
        width: 100%;
        justify-content: space-between;
    }

    .submenu {
        position: static;
        width: 100%;
        min-width: 0;
        max-height: 0;
        margin-top: 0;
        padding: 0 0.45rem;
        overflow: hidden;
        border-color: transparent;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        transition: max-height 180ms ease, margin-top 180ms ease, padding 180ms ease;
    }

    .has-submenu:hover > .submenu,
    .has-submenu:focus-within > .submenu {
        opacity: 0;
        visibility: hidden;
        transform: none;
    }

    .has-submenu.open > .submenu {
        max-height: 24rem;
        margin-top: 0.35rem;
        padding: 0.45rem;
        border-color: var(--line-bright);
        opacity: 1;
        visibility: visible;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    }

    .submenu::before {
        display: none;
    }

    .spectrum-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .regional-map-panel {
        grid-template-columns: 1fr;
    }

    .drill-countdown-body {
        grid-template-columns: 1fr;
    }

    .drill-map-stage {
        min-height: 12.5rem;
    }

    .drill-countdown-info {
        align-items: center;
        text-align: center;
    }

    .refarming-map-grid {
        grid-template-columns: 1fr;
    }

    .regional-map-info {
        border-top: 1px solid rgba(139, 232, 255, 0.15);
        border-left: 0;
    }

    .speed-select-controls {
        justify-content: flex-start;
        flex-wrap: wrap;
        margin-left: 0;
    }

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

    .operator-filter {
        justify-content: flex-start;
    }

    .operator-filter legend {
        text-align: left;
    }

    .tac-search-panel {
        grid-template-columns: 1fr;
    }

    .tac-search-form {
        flex-wrap: wrap;
    }

    .tac-search-form label {
        width: 100%;
    }

    .home-top-grid {
        grid-template-columns: 1fr;
    }

    .marquee-panel {
        flex: 0 0 auto;
        min-height: 3.2rem;
    }

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

    .publicity-card img {
        aspect-ratio: 16 / 9;
        height: auto;
        min-height: 0;
    }

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

    .footer-brand {
        align-items: flex-start;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
        text-align: left;
    }

    .footer-version {
        position: static;
    }

    .footer-back-top {
        position: static;
    }

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

    .scan-banner {
        display: none;
    }

    .arfcn-calculator,
    .arfcn-calculator-controls {
        grid-template-columns: 1fr;
    }

    .arfcn-calculator button {
        width: 100%;
    }

    .news-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .news-heading .spectrum-updated {
        text-align: left;
    }

    .speed-calculator {
        grid-template-columns: 1fr;
    }

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

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

    .live-speed-test {
        grid-template-columns: 1fr;
    }

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

    .project-video-card {
        grid-template-columns: minmax(12rem, 17rem) minmax(0, 1fr);
    }

    .hsr-project-card {
        grid-template-columns: minmax(11.5rem, 16rem) minmax(0, 1fr);
    }

    .speed-visual-panel {
        min-height: 28rem;
    }

    .maintenance-month-controls {
        justify-content: space-between;
    }

    .maintenance-workspace {
        grid-template-columns: 1fr;
    }

    .maintenance-detail {
        position: static;
        max-height: none;
        min-height: 12rem;
    }

    .sleep-operators {
        grid-template-columns: 1fr;
    }

    .sleep-operator-body {
        grid-template-columns: minmax(7rem, 0.42fr) minmax(12rem, 1fr);
    }

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

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

@media (max-width: 640px) {
    .site-shell {
        padding: 0.75rem;
    }

    .brand-text {
        font-size: 1.15rem;
        white-space: normal;
    }

    .speedtest-gauge {
        min-height: 26rem;
    }

    .regional-map-stage {
        min-height: 16rem;
    }

    .taiwan-region-map {
        min-height: 15rem;
    }

    .refarming-map-stage {
        min-height: 15rem;
    }

    .refarming-map {
        width: min(100%, 12.5rem);
    }

    .region-map-link {
        width: 100%;
    }

    .speedtest-client-info {
        grid-template-columns: 1fr;
    }

    .external-speed-grid {
        grid-template-columns: 1fr;
    }

    .speed-notes-heading,
    .ambr-heading,
    .phone-combo-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .phone-search-form {
        grid-template-columns: 1fr;
    }

    .phone-combo-table {
        min-width: 82rem;
    }

    .phone-results-actions {
        align-items: flex-start;
        flex-wrap: wrap;
        justify-content: flex-start;
        row-gap: 0.55rem;
    }

    .phone-symbol-legend {
        flex-basis: 100%;
        margin-right: 0;
    }

    .phone-result-count {
        text-align: left;
    }

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

    .ambr-table-head,
    .ambr-row {
        grid-template-columns: 1fr;
    }

    .ambr-rate {
        border-right: 0;
    }

    .ambr-note-columns {
        grid-template-columns: 1fr;
    }

    .project-video-card {
        grid-template-columns: 1fr;
    }

    .project-video-thumb {
        max-width: none;
    }

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

    .hsr-section-heading p {
        text-align: left;
    }

    .hsr-project-card {
        grid-template-columns: 1fr;
    }

    .hsr-route {
        overflow-x: auto;
        padding-bottom: 0.35rem;
    }

    .hsr-route-track,
    .hsr-route-stations {
        min-width: 28rem;
    }

    .speedtest-results {
        grid-template-columns: 1fr;
    }

    .speedtest-metric {
        min-height: 7.5rem;
    }

    .speed-database-controls {
        grid-template-columns: 1fr;
    }

    .quick-config-options,
    .segmented-options {
        grid-template-columns: 1fr;
    }

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

    .band-option {
        min-height: 2.55rem;
        padding: 0.48rem 0.52rem;
        gap: 0.38rem;
        font-size: 0.78rem;
    }

    .band-option input {
        width: 0.92rem;
        height: 0.92rem;
    }

    .band-option-spacer {
        min-height: 2.55rem;
    }

    .speed-visual-panel {
        min-height: 20rem;
        padding: 1rem;
    }

    .base-station-hero {
        width: min(100%, 12rem);
    }

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

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

    .maintenance-calendar-shell {
        overflow-x: auto;
        padding-bottom: 0.4rem;
    }

    .maintenance-weekdays,
    .maintenance-calendar {
        min-width: 30rem;
    }

    .maintenance-day {
        min-height: 3.8rem;
        padding: 0.4rem;
    }

    .maintenance-month-controls {
        align-items: stretch;
    }

    .month-picker-label {
        flex: 1;
        min-width: 0;
    }

    .sleep-time-panel {
        grid-template-columns: 1fr;
    }

    .analog-clock {
        justify-self: center;
    }

    .sleep-operator-body {
        grid-template-columns: 1fr;
    }

    .sleep-tower-wrap {
        min-height: 10rem;
    }

    .sleep-tower {
        height: auto;
        max-height: 10rem;
    }

    .sleep-band-row {
        grid-template-columns: minmax(5.8rem, 6.7rem) minmax(0, 1fr) 2.45rem;
        gap: 0.42rem;
    }

    .sleep-band-label {
        font-size: 0.78rem;
    }

    .sleep-video-grid {
        grid-template-columns: 1fr;
    }

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