/* ==============================================
   低空云路平台 v1.5 — Kimi Reference Design System
   Based on: Kimi_Agent_低空飞行平台UI改版
   Colors: #00d4ff cyan accent, glass panels, corner decorations
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&family=Orbitron:wght@400;500;600;700&display=swap');

:root {
    --bg-primary: #030810;
    --bg-gradient-center: radial-gradient(ellipse at 50% 45%, #0a1a35 0%, #060e1f 40%, #030810 75%);
    --panel-bg: rgba(8, 20, 45, 0.88);
    --panel-bg-hover: rgba(12, 30, 60, 0.92);
    --panel-border: rgba(0, 212, 255, 0.15);
    --panel-border-active: rgba(0, 212, 255, 0.6);
    --cyan: #00d4ff;
    --cyan-rgb: 0, 212, 255;
    --blue: #0080ff;
    --blue-rgb: 0, 128, 255;
    --danger: #ff4757;
    --success: #2ed573;
    --warning: #ffa502;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.42);
    --text-dim: rgba(255, 255, 255, 0.22);
    --text-cyan: #00d4ff;
    --font-cn: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-mono: "Orbitron", "D-DIN", "Roboto Mono", monospace;
    --backdrop-blur: blur(12px);
    --dot-grid: radial-gradient(circle, rgba(0, 212, 255, 0.06) 1px, transparent 1px);
    --divider: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.15), inset 0 0 20px rgba(0, 212, 255, 0.03);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Legacy compat */
    --accent: #00d4ff;
    --accent-rgb: 0, 212, 255;
    --text: rgba(255, 255, 255, 0.7);
    --text-bright: #ffffff;
    --border: rgba(0, 212, 255, 0.15);
    --border-hi: rgba(0, 212, 255, 0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-cn);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
}

#mars3dContainer { width: 100%; height: 100vh; }

/* 检测遮罩 */
.detecting-overlay {
    position: fixed; inset: 0; z-index: 9990;
    background: rgba(3, 8, 16, 0.92);
    display: none; align-items: center; justify-content: center;
    flex-direction: column; gap: 12px;
}
.detecting-overlay.active { display: flex; }
.detecting-spinner {
    width: 40px; height: 40px; border: 3px solid rgba(0,212,255,0.15);
    border-top-color: #00d4ff; border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.detecting-text { color: #00d4ff; font-size: 14px; font-weight: 500; }

/* ==============================================
   动画
   ============================================== */
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--cyan-rgb), 0.4); }
    50% { box-shadow: 0 0 0 5px rgba(var(--cyan-rgb), 0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateY(-50%) translateX(-20px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateY(-50%) translateX(20px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==============================================
   顶部导航条 — 匹配参考项目 Navbar.tsx
   ============================================== */
.top-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
    height: 52px; display: flex; align-items: center; padding: 0 24px;
    background: linear-gradient(180deg, rgba(3,8,16,0.95), rgba(6,16,35,0.9));
    border-bottom: 1px solid rgba(0, 212, 255, 0.12);
    backdrop-filter: blur(16px);
}

/* Bottom gradient line — matches reference */
.nav-bottom-line {
    position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0,212,255,0.3) 20%, rgba(0,212,255,0.5) 50%, rgba(0,212,255,0.3) 80%, transparent 100%);
    pointer-events: none;
}

/* Logo — hexagon SVG matching reference */
.nav-logo {
    width: 32px; height: 32px;
    position: relative; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.nav-logo-glow {
    position: absolute; inset: 0; border-radius: 8px;
    box-shadow: 0 0 8px rgba(0,212,255,0.3);
    pointer-events: none;
}

.sys-title {
    font-family: var(--font-cn);
    font-size: 18px; font-weight: 700; letter-spacing: 0.08em;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(0,212,255,0.2);
    margin-left: 12px; white-space: nowrap;
}

.nav-brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

/* Nav module tabs — matching reference bracket decoration style */
.nav-module {
    position: relative;
    padding: 8px 24px; border-radius: 4px 4px 0 0; border: none;
    background: transparent; color: rgba(255,255,255,0.35);
    font-size: 14px; font-weight: 500; letter-spacing: 0.03em;
    cursor: pointer; transition: all 0.3s ease; font-family: var(--font-cn);
    display: inline-flex; align-items: center; gap: 8px;
    flex: 0 0 auto;
    height: 100%;
    line-height: 1;
    white-space: nowrap;
}
.nav-module svg { flex: 0 0 auto; }
.nav-module:hover {
    color: rgba(255,255,255,0.6);
    background: rgba(0, 212, 255, 0.05);
}
.nav-module.active {
    color: #ffffff;
    font-weight: 600;
    background: rgba(0, 212, 255, 0.05);
}
/* Bracket decorations for active tab */
.nav-module.active .nav-bracket-left,
.nav-module.active .nav-bracket-right {
    display: block;
}
.nav-bracket-left, .nav-bracket-right {
    display: none; position: absolute; bottom: 0; pointer-events: none;
}
.nav-bracket-left {
    left: 4px; width: 8px; height: 8px;
    border-bottom: 2px solid #00d4ff; border-left: 2px solid #00d4ff;
    border-radius: 0 0 0 3px;
}
.nav-bracket-right {
    right: 4px; width: 8px; height: 8px;
    border-bottom: 2px solid #00d4ff; border-right: 2px solid #00d4ff;
    border-radius: 0 0 3px 0;
}
/* Glow underline for active tab */
.nav-module.active::after {
    content: '';
    position: absolute; bottom: 0; left: 12px; right: 12px; height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    box-shadow: 0 0 8px rgba(0,212,255,0.5);
    pointer-events: none;
}
.nav-module:disabled { opacity: 0.3; cursor: not-allowed; }

/* Nav right actions — matching reference bell/settings/user */
.nav-actions {
    display: flex; align-items: center; gap: 16px; margin-left: auto;
}
.nav-action-btn {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.12);
    background: rgba(0, 212, 255, 0.06);
    color: rgba(255,255,255,0.6);
    font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s ease; position: relative;
}
.nav-action-btn:hover {
    background: rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.3);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(0,212,255,0.15);
}
/* Notification red dot */
.nav-notif-dot {
    position: absolute; top: 6px; right: 6px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #ff4757;
    border: 2px solid #030810;
    box-shadow: 0 0 6px rgba(255,71,87,0.5);
    animation: pulseDot 2s ease infinite;
    pointer-events: none;
}
/* User avatar border */
.nav-user-btn {
    border: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 8px rgba(0,212,255,0.1);
}
.nav-user-btn:hover {
    border-color: #00d4ff;
    box-shadow: 0 0 12px rgba(0,212,255,0.25);
}

.nav-user-wrap {
    position: relative;
}

.nav-user-btn {
    width: auto;
    min-width: 92px;
    padding: 0 10px 0 6px;
    gap: 7px;
    border-radius: 18px;
}

.nav-user-avatar {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 212, 255, .22), rgba(0, 128, 255, .14));
    border: 1px solid rgba(0, 212, 255, .36);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.nav-user-avatar.large {
    width: 34px;
    height: 34px;
    font-size: 14px;
    flex: 0 0 34px;
}

.nav-user-name {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 10020;
    width: 210px;
    padding: 10px;
    display: none;
    border: 1px solid rgba(0, 212, 255, .18);
    border-radius: 8px;
    background: rgba(8, 20, 45, .96);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .45), inset 0 0 24px rgba(0, 212, 255, .04);
    backdrop-filter: blur(16px);
}

.user-dropdown.open {
    display: block;
    animation: fadeIn .18s ease;
}

.user-dropdown-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.user-dropdown-head strong,
.user-dropdown-head em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-head strong {
    color: #fff;
    font-size: 13px;
}

.user-dropdown-head em {
    margin-top: 3px;
    color: rgba(0, 212, 255, .78);
    font-size: 11px;
    font-style: normal;
}

.user-dropdown-item {
    width: 100%;
    height: 34px;
    margin-top: 8px;
    border: 1px solid rgba(255, 71, 87, .18);
    border-radius: 6px;
    background: rgba(255, 71, 87, .07);
    color: rgba(255, 255, 255, .78);
    cursor: pointer;
    transition: all .2s ease;
}

.user-dropdown-item:hover {
    border-color: rgba(255, 71, 87, .42);
    color: #fff;
    background: rgba(255, 71, 87, .14);
}

.login-page {
    position: fixed;
    inset: 0;
    z-index: 30000;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 38%, rgba(0, 128, 255, .18), transparent 34%),
        radial-gradient(circle at 18% 72%, rgba(0, 212, 255, .12), transparent 28%),
        linear-gradient(180deg, rgba(3, 8, 16, .98), rgba(4, 12, 27, .98));
}

.login-orbit {
    position: absolute;
    width: 620px;
    height: 620px;
    border: 1px solid rgba(0, 212, 255, .08);
    border-radius: 50%;
    box-shadow: inset 0 0 80px rgba(0, 212, 255, .03);
}

.login-orbit::before,
.login-orbit::after {
    content: "";
    position: absolute;
    inset: 72px;
    border: 1px dashed rgba(0, 212, 255, .12);
    border-radius: 50%;
}

.login-orbit::after {
    inset: 152px;
    border-style: solid;
    opacity: .55;
}

.login-card {
    position: relative;
    width: 420px;
    padding: 30px;
    border: 1px solid rgba(0, 212, 255, .18);
    border-radius: 8px;
    background: rgba(8, 20, 45, .88);
    box-shadow: var(--shadow-elevated), 0 0 52px rgba(0, 128, 255, .12);
    backdrop-filter: blur(18px);
    animation: fadeIn .28s ease;
}

.login-mark {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(0, 212, 255, .06);
    box-shadow: 0 0 18px rgba(0, 212, 255, .1);
}

.login-title,
.login-subtitle,
.login-field,
.login-error,
.login-submit {
    position: relative;
    z-index: 1;
}

.login-title {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    letter-spacing: .08em;
}

.login-subtitle {
    margin: 6px 0 22px;
    color: rgba(0, 212, 255, .76);
    font-size: 12px;
    text-align: center;
}

.login-field {
    margin-bottom: 13px;
}

.login-field label {
    display: block;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, .54);
    font-size: 12px;
}

.login-field input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(0, 212, 255, .16);
    border-radius: 6px;
    outline: none;
    background: rgba(0, 212, 255, .045);
    color: #fff;
    font-size: 13px;
    transition: all .2s ease;
}

.login-field input:focus {
    border-color: rgba(0, 212, 255, .5);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, .08);
}

.login-error {
    display: none;
    min-height: 30px;
    margin: 2px 0 12px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 71, 87, .22);
    border-radius: 6px;
    background: rgba(255, 71, 87, .08);
    color: #ff8b96;
    font-size: 12px;
}

.login-submit {
    width: 100%;
    height: 42px;
    border: 1px solid rgba(0, 212, 255, .38);
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(0, 212, 255, .2), rgba(0, 128, 255, .24));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.login-submit:hover {
    border-color: rgba(0, 212, 255, .65);
    box-shadow: 0 0 18px rgba(0, 212, 255, .16);
}

.login-submit:disabled {
    opacity: .45;
    cursor: wait;
}

/* ==============================================
   SciFi Panel — 匹配参考项目 SciFiPanel.tsx
   ============================================== */
.scifi-panel {
    position: relative; overflow: hidden; border-radius: var(--radius-lg);
    background: rgba(8, 20, 45, 0.85);
    border: 1px solid rgba(0, 212, 255, 0.15);
    box-shadow: inset 0 0 40px rgba(0, 212, 255, 0.03), 0 0 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
}

/* Dot grid texture */
.scifi-panel .dot-grid {
    position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
    background-image: radial-gradient(circle, rgba(0, 212, 255, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Corner decorations */
.scifi-corner { position: absolute; pointer-events: none; z-index: 2; width: 12px; height: 12px; }
.scifi-corner-tl { top: 0; left: 0; border-top: 2px solid #00d4ff; border-left: 2px solid #00d4ff; border-radius: 2px 0 0 0; filter: drop-shadow(0 0 4px rgba(0,212,255,0.6)); }
.scifi-corner-tr { top: 0; right: 0; border-top: 2px solid #00d4ff; border-right: 2px solid #00d4ff; border-radius: 0 2px 0 0; filter: drop-shadow(0 0 4px rgba(0,212,255,0.6)); }
.scifi-corner-bl { bottom: 0; left: 0; border-bottom: 2px solid #00d4ff; border-left: 2px solid #00d4ff; border-radius: 0 0 0 2px; filter: drop-shadow(0 0 4px rgba(0,212,255,0.6)); }
.scifi-corner-br { bottom: 0; right: 0; border-bottom: 2px solid #00d4ff; border-right: 2px solid #00d4ff; border-radius: 0 0 2px 0; filter: drop-shadow(0 0 4px rgba(0,212,255,0.6)); }

/* Panel header bar */
.scifi-header {
    position: relative; display: flex; align-items: center; gap: 8px;
    padding: 0 16px; height: 40px; flex-shrink: 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.12);
}
.scifi-header-accent {
    width: 3px; height: 16px; flex-shrink: 0;
    background: linear-gradient(180deg, #00d4ff, #0080ff);
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(0,212,255,0.4);
}
.scifi-header-icon {
    color: #00d4ff;
    filter: drop-shadow(0 0 4px rgba(0,212,255,0.4));
    font-size: 14px; display: flex;
}
.scifi-header-title {
    flex: 1;
    font-size: 15px; font-weight: 600;
    color: #00d4ff; letter-spacing: 0.04em;
}
.scifi-header-dots {
    display: flex; align-items: center; gap: 4px;
}
.scifi-header-dots .dot-line {
    width: 24px; height: 1px;
    background: linear-gradient(90deg, rgba(0,212,255,0.4), transparent);
}
.scifi-header-dots .dot-circle {
    width: 3px; height: 3px; border-radius: 50%;
    background: rgba(0,212,255,0.4);
}

.scifi-content {
    position: relative; padding: 16px;
    overflow-y: auto; overflow-x: hidden;
}
.scifi-content.no-padding {
    padding: 0;
}

/* ==============================================
   导航居中 Tabs
   ============================================== */
.nav-center-tabs {
    display: flex; align-items: center; justify-content: center;
    position: absolute; left: 50%; transform: translateX(-50%);
    top: 0; height: 100%;
    max-width: calc(100vw - 460px);
    white-space: nowrap;
}

@media (max-width: 1600px) {
    .top-nav { padding: 0 18px; }
    .nav-module { padding: 8px 16px; gap: 6px; }
    .nav-actions { gap: 10px; }
}

@media (max-width: 1366px) {
    .top-nav { padding: 0 12px; }
    .sys-title { margin-left: 8px; font-size: 16px; }
    .nav-module { padding: 8px 10px; gap: 5px; font-size: 13px; }
    .nav-center-tabs { max-width: calc(100vw - 390px); }
    .nav-actions { gap: 7px; }
    .nav-action-btn { width: 32px; height: 32px; }
    .nav-user-btn { width: auto; min-width: 84px; }
}

@media (max-width: 1180px) {
    .sys-title { font-size: 14px; }
    .nav-module { padding: 8px 9px; }
    .nav-module svg { display: none; }
    .nav-center-tabs { max-width: calc(100vw - 300px); }
    .nav-user-name { display: none; }
    .nav-user-btn { width: 32px; min-width: 32px; padding: 0; }
}

/* ==============================================
   左侧工具面板 — SciFiPanel 样式
   ============================================== */
.left-panel {
    position: fixed; left: 16px; top: 60px; z-index: 9999;
    width: 340px;
    bottom: 40px;
    display: flex;
    animation: slideLeft 0.5s var(--ease-out-expo) both;
}

.left-panel-inner {
    display: flex; flex-direction: column; gap: 12px;
    width: 100%;
    min-height: 0;
}

/* Grid panel should align with the situation risk card height. */
.lp-grid-panel {
    flex: 0 0 calc((100vh - 112px) / 3);
    min-height: 218px;
    max-height: 300px;
    display: flex;
    flex-direction: column;
}

.left-panel .lp-airspace-section {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.left-panel .lp-airspace-section .scifi-content,
.left-panel .lp-airspace-section .scifi-panel {
    display: flex; flex-direction: column; min-height: 0;
}
.left-panel .lp-airspace-list {
    flex: 1; overflow-y: auto; min-height: 0;
}

/* Grid ops section */
.lp-grid-section {
    padding: 12px 16px;
}
.lp-grid-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 10px 14px 12px;
}
.lp-grid-op-block {
    position: relative;
    padding: 8px 10px 10px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(0, 212, 255, 0.11);
}
.lp-grid-op-block::before {
    content: '';
    position: absolute;
    left: 10px;
    top: -1px;
    width: 42px;
    height: 1px;
    background: linear-gradient(90deg, rgba(0,212,255,0.65), transparent);
}
.lp-grid-op-delete {
    border-color: rgba(255, 71, 87, 0.16);
    background: rgba(255, 71, 87, 0.025);
}
.lp-grid-op-delete::before {
    background: linear-gradient(90deg, rgba(255,71,87,0.65), transparent);
}
.lp-grid-op-reaggregate {
    border-color: rgba(245, 182, 66, 0.18);
    background: rgba(245, 182, 66, 0.025);
}
.lp-grid-op-reaggregate::before {
    background: linear-gradient(90deg, rgba(245,182,66,0.7), transparent);
}
.lp-grid-op-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    line-height: 1;
}
.lp-grid-op-title span {
    color: #00d4ff;
    font-weight: 600;
}
.lp-grid-op-title small {
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 400;
}
.lp-grid-op-title.danger span {
    color: #ff6673;
}
.lp-grid-op-title.reaggregate span {
    color: #f5b642;
}
.lp-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.lp-grid-op-generate .lp-grid-row {
    grid-template-columns: 1fr 1fr minmax(74px, 0.78fr);
}
.lp-grid-row button {
    width: 100%;
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
}
.lp-grid-resume-btn {
    padding-left: 8px;
    padding-right: 8px;
}
.grid-delete-confirm-copy {
    border: 1px solid rgba(255, 71, 87, 0.18);
    border-radius: var(--radius-md);
    padding: 12px;
    background: rgba(255, 71, 87, 0.05);
}
.grid-delete-confirm-copy strong {
    display: block;
    color: #ff6673;
    font-size: 15px;
    margin-bottom: 8px;
}
.grid-delete-confirm-copy p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.7;
}
.white-move-resume-modal {
    max-width: 440px;
}
.white-move-resume-modal h3 {
    color: #f5b642;
}
.white-move-resume-copy {
    border: 1px solid rgba(245, 182, 66, 0.22);
    border-radius: var(--radius-md);
    padding: 14px;
    background: rgba(245, 182, 66, 0.055);
}
.white-move-resume-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.white-move-resume-head strong {
    color: #f5b642;
    font-size: 15px;
}
.white-move-resume-head span {
    flex-shrink: 0;
    border: 1px solid rgba(0, 212, 255, 0.28);
    border-radius: var(--radius-sm);
    padding: 3px 7px;
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.06);
    font-size: 11px;
}
.white-move-resume-copy p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.7;
}
.white-move-resume-progress {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.white-move-resume-progress-track {
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
}
.white-move-resume-progress-track i {
    display: block;
    width: 0;
    height: 100%;
    background: #00d4ff;
    transition: width 0.2s ease;
}
.white-move-resume-progress b {
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.grid-reaggregate-confirm-copy {
    border: 1px solid rgba(245, 182, 66, 0.2);
    border-radius: var(--radius-md);
    padding: 12px;
    background: rgba(245, 182, 66, 0.055);
}
.grid-reaggregate-confirm-copy strong {
    display: block;
    color: #f5b642;
    font-size: 15px;
    margin-bottom: 8px;
}
.grid-reaggregate-confirm-copy p {
    margin: 0 0 12px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.7;
}
.grid-reaggregate-level-row {
    display: grid;
    grid-template-columns: 82px 1fr;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 12px;
}

/* Airspace management section */
.lp-airspace-section {
    padding: 0;
}
.lp-airspace-tabs {
    display: flex; gap: 1px; padding: 0 12px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    padding-bottom: 8px; margin-bottom: 0;
}
.lp-airspace-tab {
    flex: 1; padding: 5px 2px; text-align: center;
    font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.42);
    cursor: pointer; transition: all 0.2s ease;
    border: 1px solid transparent; background: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-cn);
    display: flex; align-items: center; justify-content: center; gap: 3px;
    white-space: nowrap;
}
.lp-airspace-tab svg { flex-shrink: 0; }
.lp-airspace-tab:hover { color: var(--text-secondary); background: rgba(0,212,255,0.03); }
.lp-airspace-tab.active {
    color: #00d4ff; font-weight: 600;
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.2);
}
.lp-airspace-tab .tab-count {
    font-size: 9px;
    color: rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.04);
    padding: 0 4px; border-radius: 8px; font-weight: 600;
}
.lp-airspace-tab.active .tab-count {
    color: #00d4ff;
    background: rgba(0,212,255,0.12);
}

.lp-airspace-toolbar {
    display: flex; align-items: center; gap: 8px; padding: 10px 16px;
    width: 100%; box-sizing: border-box;
    border-bottom: 1px solid rgba(0, 212, 255, 0.08);
}
.lp-search-box {
    display: flex; align-items: center; gap: 6px;
    height: 36px; padding: 0 10px;
    background: rgba(0, 212, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
}
.lp-search-box:focus-within {
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0,212,255,0.1);
    background: rgba(0,212,255,0.06);
}
.lp-search-box input {
    flex: 1; min-width: 0; border: none; background: none; outline: none;
    color: var(--text-secondary); font-size: 13px;
    font-family: var(--font-cn); height: 100%;
}
.lp-search-box input::placeholder { color: var(--text-dim); }

/* Remove old .lp-airspace-search */

.lp-airspace-list {
    overflow-y: auto; padding: 8px 16px 16px;
}

/* Airspace card item — Kimi reference style */
.airspace-card {
    padding: 8px 10px; border-radius: var(--radius-md);
    border: 1px solid rgba(0, 128, 255, 0.08);
    border-left-width: 3px;
    background: rgba(0, 128, 255, 0.03);
    margin-bottom: 6px;
    transition: all 0.25s ease;
    cursor: pointer;
}
.airspace-card:hover {
    background: rgba(0, 128, 255, 0.06);
    border-color: rgba(0, 128, 255, 0.18);
    transform: translateX(2px);
    box-shadow: 0 0 16px rgba(0,128,255,0.06);
}
.airspace-card.active {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.35);
    box-shadow: 0 0 18px rgba(0,212,255,0.12);
}
.airspace-card.type-nofly { border-left-color: #ff4757; }
.airspace-card.type-controlled { border-left-color: #ff8c1a; }
.airspace-card.type-temporary { border-left-color: #ffd43b; }
.airspace-card.type-obstacle { border-left-color: #8b5cf6; }
.airspace-card.hidden-elem { opacity: 0.4; }
.airspace-card.hidden-elem:hover { transform: translateX(2px); }
.airspace-card-row1 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.airspace-card-name { font-size: 12px; color: #ffffff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.airspace-card-badges { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.airspace-card-tag {
    font-size: 10px; padding: 1px 6px; border-radius: 3px;
    color: #8b5cf6; background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.2);
}
.airspace-card-status {
    font-size: 10px; padding: 2px 8px; border-radius: 9999px;
    display: inline-flex; align-items: center; gap: 4px;
    border: 1px solid transparent; font-weight: 500;
}
.airspace-card-status::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.airspace-card-status.active {
    color: #2ed573; background: rgba(46,213,115,0.12); border-color: rgba(46,213,115,0.2);
}
.airspace-card-status.active::before {
    background: #2ed573; box-shadow: 0 0 4px #2ed573;
}
.airspace-card-status.inactive {
    color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1);
}
.airspace-card-status.inactive::before {
    background: rgba(255,255,255,0.4); box-shadow: 0 0 4px rgba(255,255,255,0.3);
}
.airspace-card-status.lifted { color: #00d4ff; background: rgba(0,212,255,0.12); border-color: rgba(0,212,255,0.2); }
.airspace-card-status.lifted::before { background: #00d4ff; box-shadow: 0 0 4px #00d4ff; }
.airspace-card-row2 { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; font-size: 10px; color: rgba(255,255,255,0.35); }
.airspace-card-area {
    font-size: 10px; color: #00d4ff;
    background: rgba(0,212,255,0.08);
    padding: 1px 5px; border-radius: 3px;
}
.airspace-card-row3 { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: rgba(255,255,255,0.42); }
.airspace-card-actions {
    display: flex; gap: 4px; margin-top: 5px; padding-top: 5px;
    border-top: 1px solid rgba(255,255,255,0.05);
    pointer-events: none;
}
.airspace-card-actions button {
    display: flex; align-items: center; gap: 3px;
    padding: 3px 8px; border-radius: 3px;
    font-size: 11px; font-family: var(--font-cn);
    cursor: pointer; transition: all 0.2s ease;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    pointer-events: auto;
}
.airspace-card-actions button:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
.airspace-card-actions .act-edit { color: #00d4ff; background: rgba(0,212,255,0.08); border-color: rgba(0,212,255,0.2); }
.airspace-card-actions .act-edit:hover { background: rgba(0,212,255,0.15); }
.airspace-card-actions .act-danger { color: #ff4757; background: rgba(255,71,87,0.08); border-color: rgba(255,71,87,0.2); margin-left: auto; }
.airspace-card-actions .act-danger:hover { background: rgba(255,71,87,0.15); }
.airspace-card-actions .act-toggle { font-size: 11px; }
.airspace-card-actions .act-toggle.on { color: #2ed573; border-color: rgba(46,213,115,0.2); background: rgba(46,213,115,0.08); }
.airspace-card-actions .act-toggle.off { color: #ffa502; border-color: rgba(255,165,2,0.2); background: rgba(255,165,2,0.08); }
.airspace-card-vis {
    display: flex; align-items: center; gap: 3px; cursor: pointer;
    font-size: 11px; color: rgba(255,255,255,0.5);
    padding: 3px 6px; border-radius: 3px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.2s ease;
    pointer-events: auto;
}
.airspace-card-vis:hover { background: rgba(255,255,255,0.06); }
.airspace-card-vis.hidden { color: rgba(255,255,255,0.25); }

.airspace-card-actions button {
    padding: 4px 10px; border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 212, 255, 0.12);
    background: transparent; color: var(--text-muted);
    font-size: 11px; cursor: pointer;
    transition: all 0.25s ease; font-family: var(--font-cn);
    white-space: nowrap;
}
.airspace-card-actions button:hover {
    color: var(--text-secondary);
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.06);
}
.airspace-card-actions .act-danger { color: #ff4757; border-color: rgba(255,71,87,0.2); }
.airspace-card-actions .act-danger:hover { background: rgba(255,71,87,0.08); border-color: rgba(255,71,87,0.35); }
.airspace-card-actions .act-toggle { color: #ffa502; border-color: rgba(255,165,2,0.2); }
.airspace-card-actions .act-toggle:hover { background: rgba(255,165,2,0.08); border-color: rgba(255,165,2,0.35); }

/* Legacy left panel button styles for backward compat */
.lp-btn {
    display: flex; align-items: center; gap: 8px;
    width: 100%; padding: 8px 12px; border-radius: var(--radius-md);
    border: 1px solid transparent; background: transparent;
    color: var(--text-secondary); font-size: 13px; cursor: pointer;
    transition: all 0.25s ease; font-family: var(--font-cn);
    text-align: left; overflow: hidden;
}
.lp-btn:hover {
    color: #ffffff;
    background: rgba(0, 212, 255, 0.06);
    border-color: rgba(0, 212, 255, 0.15);
}
.lp-btn:active { transform: scale(0.97); }
.lp-btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }
.lp-btn:disabled:hover { background: transparent; border-color: transparent; color: var(--text-secondary); }

.lp-btn-icon { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }
.lp-badge {
    margin-left: auto;
    background: rgba(0, 212, 255, 0.12); color: #00d4ff;
    font-size: 10px; font-weight: 600;
    padding: 1px 8px; border-radius: 10px;
    font-family: var(--font-mono);
    min-width: 20px; text-align: center;
    animation: badgePulse 2.5s ease-in-out infinite;
}

/* ==============================================
   抽屉式信息栏
   ============================================== */
.drawer {
    position: fixed; left: 368px; z-index: 9998;
    top: 64px;
    width: 280px; max-height: 460px;
    display: none; flex-direction: column;
    animation: fadeIn 0.35s var(--ease-out-expo) forwards;
}
.drawer.open { display: flex; }

.drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px; height: 40px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.12);
}
.drawer-title {
    font-size: 14px; color: #00d4ff; font-weight: 600;
    letter-spacing: 0.04em;
}
.drawer-close {
    background: none; border: none; color: var(--text-muted);
    font-size: 18px; cursor: pointer; padding: 0 4px;
    transition: all 0.25s ease; border-radius: 4px;
}
.drawer-close:hover { color: #ffffff; background: rgba(255,255,255,0.05); }

.drawer-toolbar {
    display: flex; gap: 6px; padding: 10px 16px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.06);
}
.drawer-search { padding: 8px 16px; }
.drawer-search input {
    width: 100%; height: 36px; padding: 0 12px;
    background: rgba(0, 212, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-md);
    color: var(--text-secondary); font-size: 13px; font-family: var(--font-cn);
    outline: none; transition: all 0.25s ease;
}
.drawer-search input:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0,212,255,0.1), inset 0 0 8px rgba(0,212,255,0.03);
    background: rgba(0,212,255,0.06);
}

.drawer-list { flex: 1; overflow-y: auto; padding: 8px 16px 16px; }

.drawer-item {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; border-radius: var(--radius-md);
    border: 1px solid rgba(0, 212, 255, 0.08);
    background: rgba(0, 212, 255, 0.03);
    margin-bottom: 6px; transition: all 0.25s ease;
    cursor: default; position: relative; overflow: hidden;
}
.drawer-item::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
    background: #00d4ff; opacity: 0; transition: opacity 0.25s ease;
}
.drawer-item:hover {
    border-color: rgba(0, 212, 255, 0.2);
    background: rgba(0, 212, 255, 0.06);
    transform: translateX(2px);
}
.drawer-item:hover::before { opacity: 1; }
.drawer-item.disabled { opacity: 0.4; }
.drawer-item.disabled:hover { transform: none; }
.drawer-item-info { flex: 1; min-width: 0; }
.drawer-item-name { font-size: 12px; color: var(--text-primary); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-item-desc { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.drawer-item-actions { display: flex; gap: 4px; flex-shrink: 0; }
.drawer-item-actions button {
    padding: 3px 8px; border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 212, 255, 0.12);
    background: transparent; color: var(--text-muted);
    font-size: 10px; cursor: pointer;
    transition: all 0.25s ease; font-family: var(--font-cn);
}
.drawer-item-actions button:hover { color: var(--text-secondary); border-color: rgba(0,212,255,0.3); background: rgba(0,212,255,0.06); }
.drawer-item-actions .act-danger { color: #ff4757; border-color: rgba(255,71,87,0.2); }
.drawer-item-actions .act-danger:hover { background: rgba(255,71,87,0.08); border-color: rgba(255,71,87,0.35); }
.drawer-item-actions .act-toggle { color: #ffa502; border-color: rgba(255,165,2,0.2); }
.drawer-item-actions .act-toggle:hover { background: rgba(255,165,2,0.08); border-color: rgba(255,165,2,0.35); }

/* ==============================================
   右侧悬浮按钮 — SciFiPanel 样式
   ============================================== */
.right-toolbar {
    position: fixed; right: 16px; top: 64px; z-index: 9999;
    display: flex; flex-direction: column; gap: 4px;
    padding: 6px;
}
body.situation-active .right-toolbar {
    right: 378px;
}
body.ai-analysis-active .right-toolbar {
    display: none;
}

.rt-btn {
    width: 40px; height: 40px; border-radius: var(--radius-md);
    border: 1px solid transparent; background: transparent;
    color: var(--text-muted); font-size: 16px; cursor: pointer;
    transition: all 0.25s ease;
    display: flex; align-items: center; justify-content: center;
}
.rt-btn:hover {
    background: rgba(0, 212, 255, 0.08);
    color: #00d4ff;
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 10px rgba(0,212,255,0.1);
}
.rt-btn:active { transform: scale(0.9); }
.rt-btn.active {
    background: rgba(0, 212, 255, 0.12);
    color: #00d4ff;
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 16px rgba(0,212,255,0.12), inset 0 0 8px rgba(0,212,255,0.04);
}
.rt-btn.has-layer { color: #168dff; text-shadow: 0 0 10px rgba(22,141,255,.7); }
.rt-btn:disabled {
    color: rgba(116, 145, 158, .26);
    cursor: not-allowed;
    filter: grayscale(1);
}
.rt-btn:disabled:hover {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}
.place-search-panel {
    display: none;
    position: fixed;
    right: 68px;
    top: 68px;
    z-index: 9998;
    width: 320px;
    padding: 12px;
    border-radius: var(--radius-lg);
}
body.situation-active .place-search-panel { right: 430px; }
.place-search-panel.active {
    display: block;
    animation: fadeIn 0.35s var(--ease-out-expo) forwards;
}
.place-search-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 72px;
    gap: 8px;
}
.place-search-row input {
    width: 100%;
    height: 36px;
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-radius: 6px;
    background: rgba(0, 20, 40, 0.62);
    color: var(--text-primary);
    padding: 0 10px;
    outline: none;
}
.place-search-results {
    position: relative;
    z-index: 1;
    max-height: 260px;
    overflow: auto;
    margin-top: 10px;
}
.place-search-item {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: 6px;
    background: rgba(0, 212, 255, 0.05);
    color: var(--text-secondary);
    padding: 8px 10px;
    margin-bottom: 6px;
    cursor: pointer;
}
.place-search-item:hover {
    color: var(--text-primary);
    border-color: rgba(0, 212, 255, 0.38);
    background: rgba(0, 212, 255, 0.12);
}
.place-search-name { font-size: 12px; line-height: 1.35; }
.place-search-coord { margin-top: 4px; font-size: 10px; color: var(--text-muted); }
.admin-region-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.admin-region-toolbar .sf-btn-secondary {
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
}
.admin-region-toolbar span {
    color: var(--text-muted);
    font-size: 11px;
}

/* 航线气象工具 */
.weather-panel {
    width: 322px;
    color: var(--text-secondary);
}
.weather-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}
.weather-panel-head h4 {
    margin: 0 0 3px;
    color: #14d9ff;
    font-size: 15px;
    letter-spacing: 0;
}
.weather-panel-head > div > span {
    color: var(--text-dim);
    font-size: 10px;
}
.weather-forecast-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(53, 232, 145, .18);
    border-radius: 4px;
    background: rgba(5, 41, 48, .72);
}
.weather-forecast-badge em { color: #7bcbb0; font-size: 9px; font-style: normal; white-space: nowrap; }
.weather-live-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #35e891;
    box-shadow: 0 0 0 4px rgba(53, 232, 145, .12), 0 0 10px rgba(53, 232, 145, .65);
    animation: weatherLivePulse 1.8s ease-out infinite;
}
.weather-route-card {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 9px;
    min-height: 58px;
    margin-bottom: 8px;
    padding: 8px 9px;
    overflow: hidden;
    border: 1px solid rgba(20, 217, 255, .24);
    border-left: 2px solid #14d9ff;
    border-radius: 5px;
    background: linear-gradient(90deg, rgba(4, 45, 73, .92), rgba(4, 25, 47, .78));
    box-shadow: inset 0 0 24px rgba(20, 217, 255, .04);
}
.weather-route-card::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20, 217, 255, .8), transparent);
    animation: weatherRouteSweep 2.6s linear infinite;
}
.weather-route-card.empty { border-color: rgba(129, 166, 180, .16); border-left-color: #527787; background: rgba(4, 25, 47, .62); }
.weather-route-card.empty::after { display: none; }
.weather-route-signal { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 23px; }
.weather-route-signal i { width: 3px; background: #14d9ff; box-shadow: 0 0 7px rgba(20,217,255,.72); animation: weatherSignal 1.1s ease-in-out infinite alternate; }
.weather-route-signal i:nth-child(1) { height: 8px; animation-delay: -.7s; }
.weather-route-signal i:nth-child(2) { height: 17px; animation-delay: -.35s; }
.weather-route-signal i:nth-child(3) { height: 12px; }
.weather-route-card.empty .weather-route-signal i { background: #527787; box-shadow: none; animation-play-state: paused; }
.weather-route-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.weather-route-copy span { color: #668c9b; font-size: 9px; }
.weather-route-copy b { overflow: hidden; color: #e7fbff; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.weather-route-copy small { overflow: hidden; color: #79a4b3; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.weather-route-card > strong { color: #14d9ff; font-size: 17px; font-weight: 600; text-align: right; text-shadow: 0 0 12px rgba(20,217,255,.5); }
.weather-wide-btn { width: 100%; margin-top: 8px; }
.weather-scan-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden; }
.weather-scan-btn > span { width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.weather-scan-btn:not(:disabled) > span { animation: weatherScanDot 1.4s ease-in-out infinite; }
.weather-scan-btn.scanning::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 55px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    animation: weatherButtonSweep 1.15s linear infinite;
}
.weather-divider { display: flex; align-items: center; gap: 8px; margin: 15px 0 9px; color: #6e9bab; font-size: 10px; }
.weather-divider::after { content: ''; height: 1px; flex: 1; background: rgba(20,217,255,.13); }
.weather-forecast-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-bottom: 7px; }
.weather-forecast-picker label { display: grid; gap: 4px; color: var(--text-muted); font-size: 10px; }
.weather-forecast-picker select {
    width: 100%;
    height: 32px;
    padding: 0 26px 0 9px;
    color: #d7f6fc;
    border: 1px solid rgba(20,217,255,.22);
    border-radius: 4px;
    outline: none;
    background: rgba(5,27,51,.92);
    font-family: inherit;
    font-size: 11px;
}
.weather-field { display: grid; grid-template-columns: 92px 1fr; align-items: center; margin-bottom: 7px; font-size: 11px; }
.weather-field > span { color: var(--text-muted); }
.weather-field > div,
.weather-limit-grid label { position: relative; }
.weather-field input,
.weather-limit-grid input {
    width: 100%;
    height: 31px;
    box-sizing: border-box;
    padding: 0 9px;
    color: #d7f6fc;
    border: 1px solid rgba(20,217,255,.2);
    border-radius: 4px;
    outline: none;
    background: rgba(5, 27, 51, .88);
    font-family: inherit;
    font-size: 11px;
}
.weather-field div input,
.weather-limit-grid input { padding-right: 34px; }
.weather-field em,
.weather-limit-grid em { position: absolute; right: 8px; top: 9px; color: #557f8e; font-style: normal; font-size: 9px; pointer-events: none; }
.weather-limit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.weather-limit-grid label { display: grid; gap: 4px; color: var(--text-muted); font-size: 10px; }
.weather-assessment-empty { margin-top: 9px; padding: 10px; border: 1px dashed rgba(129, 166, 180, .2); color: var(--text-dim); text-align: center; font-size: 10px; }
.weather-assessment { display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 12px; margin-top: 10px; padding: 10px; background: rgba(4, 25, 47, .8); border: 1px solid rgba(20,217,255,.13); }
.weather-risk-state { --weather-risk-state-color: #35e891; display: flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 9px; border: 1px solid color-mix(in srgb, var(--weather-risk-state-color) 35%, transparent); border-radius: 4px; color: var(--weather-risk-state-color); background: color-mix(in srgb, var(--weather-risk-state-color) 9%, transparent); font-size: 10px; white-space: nowrap; }
.weather-risk-state i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.weather-risk-copy { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.weather-risk-copy b { color: #35e891; font-size: 14px; }
.weather-risk-copy span { color: var(--text-muted); font-size: 10px; white-space: normal; }
.weather-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 8px; }
.weather-metrics > div { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 7px; min-height: 45px; padding: 7px 8px; border: 1px solid rgba(20,217,255,.11); background: rgba(4,25,47,.95); }
.weather-metrics span { color: var(--text-dim); font-size: 9px; }
.weather-metrics b { color: #d7f6fc; font-size: 10px; }
.weather-metrics > div > i { grid-column: 1 / -1; height: 3px; overflow: hidden; background: rgba(255,255,255,.07); }
.weather-metrics > div > i > u { display: block; width: 0; height: 100%; background: var(--metric-color); box-shadow: 0 0 7px var(--metric-color); transition: width .45s ease; }
.weather-metrics .wind { --metric-color: #22d3ee; }
.weather-metrics .crosswind { --metric-color: #a78bfa; }
.weather-metrics .rain { --metric-color: #38bdf8; }
.weather-metrics .visibility { --metric-color: #35e891; }
.weather-legend { display: flex; justify-content: space-between; margin-top: 10px; font-size: 9px; }
.weather-legend span::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 1px; background: currentColor; }
.weather-legend .safe { color: #35e891; }
.weather-legend .attention { color: #ffd166; }
.weather-legend .warning { color: #ff922b; }
.weather-legend .danger { color: #ff4757; }
.weather-risk-timeline { margin-top: 9px; padding: 8px 9px; border: 1px solid rgba(20,217,255,.12); background: rgba(4,25,47,.8); }
.weather-timeline-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; font-size: 9px; }
.weather-timeline-head span { color: #88b5c4; }
.weather-timeline-head b { color: #d4f7ff; font-weight: 500; }
.weather-timeline-track { display: flex; align-items: flex-end; gap: 2px; height: 32px; }
.weather-timeline-track i { flex: 1; min-width: 2px; height: var(--risk-height); max-height: 100%; background: var(--risk-color); box-shadow: 0 0 6px color-mix(in srgb, var(--risk-color) 55%, transparent); opacity: .82; transition: height .25s ease, opacity .2s ease; }
.weather-timeline-track i:hover { opacity: 1; }
.weather-panel-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 8px; }
.weather-panel-actions button { width: 30px; height: 28px; padding: 0; color: #78a7b8; border: 1px solid rgba(20,217,255,.16); border-radius: 4px; background: rgba(4,25,47,.86); cursor: pointer; }
.weather-panel-actions button:hover { color: #14d9ff; border-color: rgba(20,217,255,.4); }
.weather-status { color: #5f8796; font-size: 9px; line-height: 1.5; }
.mars3d-popup-content-wrapper:has(.weather-map-popup) { padding: 0; overflow: hidden; border: 1px solid rgba(0,212,255,.34); border-radius: 8px; background: rgba(8,20,45,.96); box-shadow: 0 0 40px rgba(0,212,255,.12), 0 16px 64px rgba(0,0,0,.5); backdrop-filter: blur(18px); }
.mars3d-popup-content-wrapper:has(.weather-map-popup) .mars3d-popup-content { margin: 0; max-height: 76vh; }
.mars3d-popup:has(.weather-map-popup) .mars3d-popup-close-button { top: 12px; right: 12px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; color: rgba(255,255,255,.52); background: rgba(255,255,255,.05); font-size: 16px; line-height: 1; }
.mars3d-popup:has(.weather-map-popup) .mars3d-popup-close-button:hover { color: #ff6b7a; border-color: rgba(255,71,87,.3); background: rgba(255,71,87,.15); }
.mars3d-popup:has(.weather-map-popup) .mars3d-popup-tip { background: rgba(8,20,45,.96); }
.weather-map-popup { --weather-risk-color: #35e891; position: relative; width: 420px; box-sizing: border-box; padding: 16px 20px 18px; color: #d7f6fc; font-family: var(--font-cn); font-size: 14px; }
.weather-map-popup::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, #00d4ff 14px, transparent 14px) 0 0 / 50% 2px no-repeat, linear-gradient(to bottom, #00d4ff 14px, transparent 14px) 0 0 / 2px 50% no-repeat, linear-gradient(to left, #00d4ff 14px, transparent 14px) 100% 0 / 50% 2px no-repeat, linear-gradient(to bottom, #00d4ff 14px, transparent 14px) 100% 0 / 2px 50% no-repeat, linear-gradient(to right, #00d4ff 14px, transparent 14px) 0 100% / 50% 2px no-repeat, linear-gradient(to top, #00d4ff 14px, transparent 14px) 0 100% / 2px 50% no-repeat, linear-gradient(to left, #00d4ff 14px, transparent 14px) 100% 100% / 50% 2px no-repeat, linear-gradient(to top, #00d4ff 14px, transparent 14px) 100% 100% / 2px 50% no-repeat; }
.weather-popup-head { display: flex; align-items: center; justify-content: space-between; min-height: 32px; padding-right: 36px; padding-bottom: 12px; border-bottom: 1px solid rgba(0,212,255,.13); }
.weather-popup-head > span { display: flex; align-items: center; gap: 9px; }
.weather-popup-head > span > i { width: 8px; height: 8px; border-radius: 50%; background: var(--weather-risk-color); box-shadow: 0 0 10px var(--weather-risk-color); }
.weather-popup-head b { color: #00d4ff; font-size: 17px; font-weight: 600; }
.weather-popup-risk-level { min-width: 64px; padding: 5px 9px; border: 1px solid color-mix(in srgb, var(--weather-risk-color) 38%, transparent); border-radius: 4px; color: var(--weather-risk-color); background: color-mix(in srgb, var(--weather-risk-color) 9%, transparent); font-size: 13px; font-style: normal; text-align: center; }
.weather-popup-code { margin: 11px 0; overflow: hidden; color: #7da2b0; font-family: Consolas, monospace; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.weather-popup-forecast { margin-bottom: 10px; padding: 10px 12px 12px; border: 1px solid rgba(0,212,255,.14); background: rgba(0,212,255,.035); }
.weather-popup-forecast-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.weather-popup-forecast-head span { color: #bdefff; font-size: 13px; font-weight: 600; }
.weather-popup-forecast-head small { color: #668b9a; font-size: 11px; }
.weather-popup-forecast-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.weather-popup-forecast-fields label { display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 7px; color: #789dab; font-size: 12px; }
.weather-popup-forecast-fields select { width: 100%; height: 36px; padding: 0 30px 0 10px; border: 1px solid rgba(0,212,255,.2); border-radius: 5px; outline: none; color: #d9f8ff; background-color: rgba(5,27,51,.96); font-family: inherit; font-size: 13px; cursor: pointer; }
.weather-popup-forecast-fields select:focus { border-color: #00d4ff; box-shadow: 0 0 10px rgba(0,212,255,.1); }
.weather-popup-forecast-fields select option { color: #d9f8ff; background: #0a1a35; }
.weather-popup-refresh-state { display: none; align-items: center; gap: 8px; min-height: 32px; margin-top: 9px; padding: 0 10px; border: 1px solid rgba(0,212,255,.2); color: #9eeeff; background: rgba(0,212,255,.06); font-size: 12px; }
.weather-popup-refresh-state i { width: 13px; height: 13px; flex: 0 0 auto; border: 2px solid rgba(0,212,255,.22); border-top-color: #00d4ff; border-radius: 50%; animation: weatherPopupLoading .72s linear infinite; }
.weather-map-popup.is-refreshing .weather-popup-refresh-state,
.weather-map-popup.is-refresh-error .weather-popup-refresh-state { display: flex; }
.weather-map-popup.is-refreshing .weather-popup-forecast-fields { opacity: .58; }
.weather-map-popup.is-refresh-error .weather-popup-refresh-state { color: #ff9bad; border-color: rgba(255,77,109,.32); background: rgba(255,77,109,.08); }
.weather-map-popup.is-refresh-error .weather-popup-refresh-state i { display: none; }
.weather-popup-wind { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid rgba(34,211,238,.14); background: rgba(5,36,56,.68); }
.weather-popup-compass { position: relative; width: 44px; height: 44px; border: 1px solid rgba(34,211,238,.35); border-radius: 50%; box-shadow: inset 0 0 12px rgba(34,211,238,.1); }
.weather-popup-compass::before { content: 'N'; position: absolute; top: 1px; left: 50%; color: #588591; font-size: 6px; transform: translateX(-50%); }
.weather-popup-compass::after { content: ''; position: absolute; top: 6px; bottom: 6px; left: 50%; border-left: 1px dashed rgba(255,255,255,.12); }
.weather-popup-compass i { position: absolute; inset: 7px; z-index: 1; transform-origin: center; }
.weather-popup-compass i::before { content: ''; position: absolute; top: 1px; left: 11px; border-right: 5px solid transparent; border-bottom: 15px solid #22d3ee; border-left: 5px solid transparent; filter: drop-shadow(0 0 4px #22d3ee); }
.weather-popup-compass i::after { content: ''; position: absolute; top: 15px; left: 15px; width: 2px; height: 11px; background: #22d3ee; }
.weather-popup-wind > span { display: grid; gap: 5px; }
.weather-popup-wind small { color: #7196a3; font-size: 11px; }
.weather-popup-wind b { color: #dffaff; font-size: 15px; }
.weather-popup-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.weather-popup-metric { --popup-metric-color: #22d3ee; display: grid; grid-template-columns: 24px 1fr; gap: 4px 8px; align-items: center; min-height: 54px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.08); background: rgba(3,22,39,.66); }
.weather-popup-metric.crosswind { --popup-metric-color: #a78bfa; }
.weather-popup-metric.gust { --popup-metric-color: #f59e0b; }
.weather-popup-metric.rain { --popup-metric-color: #38bdf8; }
.weather-popup-symbol { position: relative; width: 20px; height: 20px; color: var(--popup-metric-color); }
.weather-popup-metric.wind .weather-popup-symbol::before,
.weather-popup-metric.gust .weather-popup-symbol::before { content: ''; position: absolute; top: 4px; left: 0; width: 14px; height: 6px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: skewX(-24deg); }
.weather-popup-metric.crosswind .weather-popup-symbol::before { content: '↔'; position: absolute; top: -4px; left: 0; font-size: 19px; line-height: 1; }
.weather-popup-metric.rain .weather-popup-symbol::before { content: ''; position: absolute; top: 1px; left: 4px; width: 8px; height: 11px; border: 2px solid currentColor; border-radius: 8px 8px 9px 9px; transform: rotate(45deg); }
.weather-popup-metric span { display: grid; gap: 2px; }
.weather-popup-metric small { color: #698c99; font-size: 10px; }
.weather-popup-metric b { color: #e7fbff; font-size: 14px; }
.weather-popup-metric b em { color: #708f9b; font-size: 10px; font-style: normal; font-weight: 400; }
.weather-popup-metric > u { grid-column: 1 / -1; height: 3px; overflow: hidden; background: rgba(255,255,255,.07); text-decoration: none; }
.weather-popup-metric > u > s { display: block; height: 100%; background: var(--popup-metric-color); box-shadow: 0 0 6px var(--popup-metric-color); text-decoration: none; }
.weather-popup-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.weather-popup-extra > span { display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 9px; color: #789aa7; border: 1px solid rgba(255,255,255,.07); font-size: 11px; }
.weather-popup-extra b { margin-left: auto; color: #d7f6fc; font-size: 12px; }
.weather-popup-extra i { position: relative; width: 12px; height: 12px; }
.weather-popup-extra .visibility i { border: 1px solid #35e891; border-radius: 8px 2px; transform: rotate(45deg); }
.weather-popup-extra .visibility i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 4px; height: 4px; border-radius: 50%; background: #35e891; }
.weather-popup-extra .temperature i { width: 5px; height: 10px; margin-left: 3px; border: 1px solid #ff7b72; border-radius: 4px; }
.weather-popup-extra .temperature i::after { content: ''; position: absolute; bottom: -2px; left: -2px; width: 7px; height: 7px; border-radius: 50%; background: #ff7b72; }
.weather-popup-time { display: grid; grid-template-columns: 15px 1fr auto; align-items: center; gap: 7px; margin-top: 10px; padding-top: 10px; color: #7799a6; border-top: 1px solid rgba(255,255,255,.08); font-size: 11px; }
.weather-popup-time i { width: 10px; height: 10px; border: 1px solid #22d3ee; border-radius: 50%; }
.weather-popup-time b { color: #bceefa; font-size: 12px; }
@media (max-width: 640px) {
    .weather-map-popup { width: min(400px, calc(100vw - 36px)); padding: 14px 16px 16px; }
    .weather-popup-forecast-head small { display: none; }
    .weather-popup-forecast-fields { grid-template-columns: 1fr; }
}
.weather-map-node {
    --wx-color: #14d9ff;
    position: relative;
    display: grid;
    grid-template-columns: auto auto;
    align-items: baseline;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding-top: 17px;
    box-sizing: border-box;
    color: #f2fdff;
    font-family: 'DIN Alternate', 'Bahnschrift', sans-serif;
    text-align: center;
    filter: drop-shadow(0 0 8px color-mix(in srgb, var(--wx-color) 55%, transparent));
    pointer-events: auto;
}
.weather-map-node-ring { position: absolute; inset: 6px; border: 1px solid var(--wx-color); border-radius: 50%; box-shadow: inset 0 0 12px color-mix(in srgb, var(--wx-color) 30%, transparent); animation: weatherNodePulse 1.8s ease-out infinite; }
.weather-map-node-arrow { position: absolute; top: 3px; left: 23px; width: 8px; height: 18px; transform-origin: 50% 24px; }
.weather-map-node-arrow::before { content: ''; position: absolute; top: 0; left: 3px; width: 2px; height: 15px; background: var(--wx-color); box-shadow: 0 0 7px var(--wx-color); }
.weather-map-node-arrow::after { content: ''; position: absolute; top: 0; left: 0; width: 7px; height: 7px; border-top: 2px solid var(--wx-color); border-left: 2px solid var(--wx-color); transform: rotate(45deg); }
.weather-map-node b { z-index: 1; font-size: 13px; line-height: 1; }
.weather-map-node small { z-index: 1; margin-left: 2px; color: #8fb8c5; font-size: 7px; }
.weather-map-node em { position: absolute; right: -15px; bottom: 0; padding: 2px 4px; color: #b8edff; border: 1px solid rgba(20,217,255,.24); border-radius: 3px; background: rgba(3,17,32,.86); font-size: 7px; font-style: normal; white-space: nowrap; }
@keyframes weatherLivePulse { 0%,100% { box-shadow: 0 0 0 3px rgba(53,232,145,.12), 0 0 8px rgba(53,232,145,.55); } 50% { box-shadow: 0 0 0 6px rgba(53,232,145,0), 0 0 14px rgba(53,232,145,.8); } }
@keyframes weatherRouteSweep { from { transform: translateX(-70%); } to { transform: translateX(70%); } }
@keyframes weatherSignal { from { transform: scaleY(.55); opacity: .55; } to { transform: scaleY(1); opacity: 1; } }
@keyframes weatherScanDot { 0%,100% { transform: scale(.72); opacity: .55; } 50% { transform: scale(1.25); opacity: 1; } }
@keyframes weatherButtonSweep { from { left: -60px; } to { left: calc(100% + 10px); } }
@keyframes weatherNodePulse { 0% { transform: scale(.72); opacity: .95; } 75%,100% { transform: scale(1.18); opacity: 0; } }
@keyframes weatherPopupLoading { to { transform: rotate(360deg); } }
.admin-region-list {
    max-height: 310px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.admin-region-item {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 9px;
    border-radius: 6px;
    border: 1px solid rgba(0, 212, 255, 0.12);
    background: rgba(0, 212, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.admin-region-item:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.24);
}
.admin-region-item.active {
    border-color: rgba(0, 212, 255, 0.42);
    background: rgba(0, 212, 255, 0.1);
}
.admin-region-swatch {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    box-shadow: 0 0 8px currentColor;
}
.admin-region-name {
    min-width: 0;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-region-state {
    color: var(--text-muted);
    font-size: 10px;
}
.admin-region-item.active .admin-region-state {
    color: #00d4ff;
}
.admin-region-empty {
    padding: 10px 0;
    color: var(--text-muted);
    font-size: 12px;
}
.flyable-region-panel { width: 286px; }
.flyable-region-panel h4 { margin: 0 0 12px; color: #00d4ff; font-size: 15px; }
.flyable-mode-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-bottom: 10px; }
.flyable-mode-switch label { position: relative; display: flex; align-items: center; justify-content: center; height: 34px; border: 1px solid rgba(0,212,255,.16); border-radius: 5px; color: var(--text-muted); background: rgba(5,27,51,.72); cursor: pointer; transition: .2s ease; }
.flyable-mode-switch label:hover { color: #bdefff; border-color: rgba(0,212,255,.34); }
.flyable-mode-switch label.active { color: #00d4ff; border-color: rgba(0,212,255,.62); background: rgba(0,212,255,.11); box-shadow: inset 0 0 18px rgba(0,212,255,.05); }
.flyable-mode-switch input { position: absolute; opacity: 0; pointer-events: none; }
.flyable-mode-switch span { font-size: 12px; }
.flyable-region-summary { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; min-height: 32px; margin-bottom: 9px; padding: 0 8px; border-left: 2px solid #168dff; background: rgba(22,141,255,.06); }
.flyable-region-summary span { color: #769baa; font-size: 10px; line-height: 1.45; }
.flyable-region-summary button { padding: 0; border: 0; color: #58b7ff; background: transparent; font-family: inherit; font-size: 10px; cursor: pointer; }
.flyable-region-summary button:hover { color: #9bd6ff; }
.flyable-region-list { display: flex; max-height: 322px; overflow: auto; flex-direction: column; gap: 6px; padding-right: 2px; }
.flyable-region-item { display: grid; grid-template-columns: 14px minmax(0,1fr) auto; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 7px 9px; border: 1px solid rgba(22,141,255,.14); border-radius: 5px; color: var(--text-secondary); background: rgba(22,141,255,.035); font-family: inherit; text-align: left; cursor: pointer; transition: .2s ease; }
.flyable-region-item:hover { border-color: rgba(54,169,255,.36); background: rgba(22,141,255,.08); }
.flyable-region-item.active { border-color: rgba(54,169,255,.68); color: #e4f6ff; background: rgba(22,141,255,.14); }
.flyable-region-swatch { width: 10px; height: 10px; border: 1px solid #79c7ff; border-radius: 2px; background: #168dff; box-shadow: 0 0 8px rgba(22,141,255,.75); }
.flyable-region-name { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.flyable-region-state { color: #62869a; font-size: 10px; }
.flyable-region-item.active .flyable-region-state { color: #58b7ff; }
.flyable-region-status { min-height: 30px; margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(0,212,255,.1); color: #62869a; font-size: 10px; line-height: 1.5; }
.flyable-region-status.error { color: #ff738b; }
.route-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.route-mode-switch label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-radius: 6px;
    background: rgba(0, 212, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
}
.route-mode-switch input { position: absolute; opacity: 0; pointer-events: none; }
.route-mode-switch label span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
}
.route-mode-switch label:has(input:checked) {
    color: #00d4ff;
    border-color: rgba(0, 212, 255, 0.55);
    background: rgba(0, 212, 255, 0.13);
    box-shadow: inset 0 0 14px rgba(0, 212, 255, 0.08);
}

/* ==============================================
   右侧弹出面板 — SciFiPanel 样式
   ============================================== */
.right-panel {
    position: fixed; right: 68px; z-index: 9998;
    display: none; top: 68px;
    min-width: 240px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}
body.situation-active .right-panel {
    right: 430px;
}
.right-panel.open {
    display: block;
    animation: fadeIn 0.35s var(--ease-out-expo) forwards;
}

.right-panel h4 {
    font-size: 14px; color: #00d4ff; font-weight: 600;
    margin-bottom: 12px; padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.12);
    letter-spacing: 0.04em;
}
.right-panel .fp-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.right-panel .fp-row:last-child { margin-bottom: 0; }

/* Situation dashboard */
.situation-panel {
    position: fixed;
    top: 60px;
    bottom: 40px;
    z-index: 9997;
    width: 350px;
    pointer-events: auto;
}
.situation-left { left: 16px; }
.situation-right { right: 16px; }
.situation-panel-inner {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: 1fr 2fr;
    gap: 12px;
}
.situation-card {
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.situation-card .scifi-header { flex-shrink: 0; }
.situation-switch {
    margin-left: auto;
    display: flex;
    gap: 4px;
    position: relative;
    z-index: 1;
}
.situation-switch button {
    height: 24px;
    padding: 0 9px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,212,255,0.18);
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
}
.situation-switch button.active {
    color: #00d4ff;
    background: rgba(0,212,255,0.12);
    border-color: rgba(0,212,255,0.38);
}
.situation-center-stats {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9996;
    display: grid;
    grid-template-columns: repeat(4, 132px);
    gap: 8px;
}
.situation-stat {
    height: 58px;
    border: 1px solid rgba(0,212,255,0.18);
    background: rgba(2,10,22,0.76);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px rgba(0,0,0,0.32);
}
.situation-stat span {
    color: var(--text-muted);
    font-size: 11px;
}
.situation-stat strong {
    color: #00d4ff;
    font-size: 24px;
    line-height: 1.1;
}
.situation-stat.safe strong { color: #2ed573; }
.situation-stat.risk strong { color: #ff4757; }
.situation-risk-grid,
.situation-approval-grid,
.situation-metric-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 6px;
    padding: 8px 14px;
}
.situation-risk-grid { grid-template-columns: 1.15fr 1fr 1fr; }
.situation-metric-grid { grid-template-columns: 1fr 1fr; }
.situation-approval-grid { grid-template-columns: 1fr 1fr; }
.situation-approval-card .situation-approval-grid { padding-bottom: 4px; }
.route-stat-panel {
    overflow: hidden;
}
.route-stat-panel .situation-metric-grid {
    padding-bottom: 4px;
}
.route-panel-mark {
    position: absolute;
    z-index: 3;
    width: 18px;
    height: 18px;
    pointer-events: none;
}
.route-panel-mark::before,
.route-panel-mark::after {
    content: "";
    position: absolute;
    background: linear-gradient(90deg, rgba(0,212,255,0), rgba(0,212,255,0.9));
    box-shadow: 0 0 8px rgba(0,212,255,0.42);
}
.route-panel-mark::before { width: 18px; height: 1px; }
.route-panel-mark::after { width: 1px; height: 18px; }
.route-panel-mark.mark-tl { top: 5px; left: 5px; }
.route-panel-mark.mark-tl::before { top: 0; left: 0; }
.route-panel-mark.mark-tl::after { top: 0; left: 0; background: linear-gradient(180deg, rgba(0,212,255,0.9), rgba(0,212,255,0)); }
.route-panel-mark.mark-tr { top: 5px; right: 5px; transform: rotate(90deg); }
.route-panel-mark.mark-bl { bottom: 5px; left: 5px; transform: rotate(-90deg); }
.route-panel-mark.mark-br { bottom: 5px; right: 5px; transform: rotate(180deg); }
.route-panel-code {
    position: absolute;
    z-index: 3;
    top: 8px;
    right: 28px;
    height: 16px;
    min-width: 28px;
    padding: 0 6px;
    border: 1px solid rgba(0,212,255,0.28);
    border-radius: 2px;
    color: rgba(0,212,255,0.78);
    background: rgba(0,212,255,0.055);
    font-family: var(--font-mono);
    font-size: 9px;
    line-height: 15px;
    text-align: center;
    letter-spacing: 0;
}
.route-today-strip {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 0 14px 9px;
}
.route-today-item {
    min-height: 28px;
    border: 1px solid rgba(46,213,115,0.15);
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, rgba(46,213,115,0.075), rgba(0,212,255,0.035));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 8px;
}
.route-today-item span {
    color: var(--text-muted);
    font-size: 10px;
    white-space: nowrap;
}
.route-today-item b {
    color: #76eea0;
    font-family: var(--font-mono);
    font-size: 15px;
    line-height: 1;
}
.situation-big-number {
    grid-row: span 2;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,71,87,0.22);
    background: rgba(255,71,87,0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px;
}
.situation-big-number span,
.sit-kv span {
    color: var(--text-muted);
    font-size: 10px;
}
.situation-big-number strong {
    color: #ff4757;
    font-size: 28px;
    line-height: 1;
}
.sit-kv {
    min-width: 0;
    border: 1px solid rgba(0,212,255,0.1);
    background: rgba(0,212,255,0.035);
    border-radius: var(--radius-sm);
    padding: 5px 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.sit-kv b {
    color: #00d4ff;
    font-size: 14px;
}
.situation-bars {
    position: relative;
    z-index: 1;
    padding: 0 14px 10px;
}
.situation-approval-card #sitTaskBars {
    max-height: 82px;
    overflow-y: auto;
    padding-right: 8px;
}
.situation-approval-card #sitTaskBars::-webkit-scrollbar { width: 5px; }
.situation-approval-card #sitTaskBars::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: rgba(0,212,255,0.28);
}
.situation-approval-card #sitTaskBars::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.04);
    border-radius: 99px;
}
.sit-bar {
    display: grid;
    grid-template-columns: 54px 1fr 28px;
    gap: 7px;
    align-items: center;
    margin-top: 5px;
    font-size: 10px;
    color: var(--text-muted);
}
.sit-bar div {
    height: 6px;
    border-radius: 99px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}
.sit-bar i {
    display: block;
    height: 100%;
    border-radius: 99px;
}
.sit-bar b { text-align: right; color: var(--text-secondary); }
.situation-tabs { padding-top: 2px; }
.situation-filter-bar {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 14px 8px;
    border-bottom: 1px solid rgba(0,212,255,0.08);
}
.situation-filter-bar button {
    height: 24px;
    padding: 0 9px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,212,255,0.13);
    background: rgba(0,212,255,0.035);
    color: var(--text-muted);
    font-size: 10px;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.situation-filter-bar button:hover {
    border-color: rgba(0,212,255,0.32);
    color: var(--text-secondary);
    background: rgba(0,212,255,0.075);
}
.situation-filter-bar button.active {
    border-color: rgba(0,212,255,0.55);
    color: #00d4ff;
    background: rgba(0,212,255,0.13);
    box-shadow: 0 0 12px rgba(0,212,255,0.08);
}
.situation-message-list {
    flex: 1;
    min-height: 0;
}
.situation-message {
    border-left: 3px solid #00d4ff;
    border-radius: var(--radius-md);
    border-top: 1px solid rgba(0,212,255,0.1);
    border-right: 1px solid rgba(0,212,255,0.1);
    border-bottom: 1px solid rgba(0,212,255,0.1);
    padding: 8px 9px;
    margin-bottom: 7px;
    cursor: pointer;
    background: rgba(0,212,255,0.035);
}
.situation-message.warning,
.situation-message.medium { border-left-color: #ffa502; background: rgba(255,165,2,0.045); }
.situation-message.high,
.situation-message.danger { border-left-color: #ff4757; background: rgba(255,71,87,0.055); }
.situation-message div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.situation-message b { color: var(--text-secondary); font-size: 12px; }
.situation-message span { color: var(--text-muted); font-size: 10px; }
.situation-message p {
    color: var(--text-dim);
    font-size: 11px;
    margin-top: 4px;
    line-height: 1.45;
}
.situation-flight-card {
    position: relative;
    border-left: 3px solid #2ed573;
    border-radius: var(--radius-md);
    border-top: 1px solid rgba(0,212,255,0.1);
    border-right: 1px solid rgba(0,212,255,0.1);
    border-bottom: 1px solid rgba(0,212,255,0.1);
    padding: 8px 9px;
    margin-bottom: 7px;
    cursor: pointer;
    background: rgba(46,213,115,0.04);
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.sfc-approval-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 2;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.4;
}
.sfc-approval-badge.approval-approved {
    color: #2ed573;
    background: rgba(46,213,115,0.1);
    border-color: rgba(46,213,115,0.28);
}
.sfc-approval-badge.approval-rejected,
.sfc-approval-badge.approval-none {
    color: #ff6b81;
    background: rgba(255,71,87,0.1);
    border-color: rgba(255,71,87,0.3);
}
.sfc-approval-badge.approval-pending {
    color: #ffa502;
    background: rgba(255,165,2,0.1);
    border-color: rgba(255,165,2,0.28);
}
.record-approval-badge.approval-approved {
    color: #2ed573 !important;
    background: rgba(46,213,115,0.1) !important;
    border-color: rgba(46,213,115,0.28) !important;
}
.record-approval-badge.approval-rejected,
.record-approval-badge.approval-none {
    color: #ff6b81 !important;
    background: rgba(255,71,87,0.1) !important;
    border-color: rgba(255,71,87,0.3) !important;
}
.record-approval-badge.approval-pending {
    color: #ffa502 !important;
    background: rgba(255,165,2,0.1) !important;
    border-color: rgba(255,165,2,0.28) !important;
}
.situation-flight-card:hover {
    transform: translateX(2px);
    border-color: rgba(0,212,255,0.28);
    background: rgba(0,212,255,0.055);
}
.situation-flight-card.medium,
.situation-flight-card.warning { border-left-color: #ffa502; background: rgba(255,165,2,0.045); }
.situation-flight-card.high,
.situation-flight-card.danger { border-left-color: #ff4757; background: rgba(255,71,87,0.055); }
.sfc-head,
.sfc-meta,
.sfc-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.sfc-head { padding-right: 62px; }
.sfc-head b {
    min-width: 0;
    color: var(--text-secondary);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sfc-head span {
    flex: 0 0 auto;
    color: #2ed573;
    font-size: 10px;
}
.situation-flight-card.medium .sfc-head span,
.situation-flight-card.warning .sfc-head span { color: #ffa502; }
.situation-flight-card.high .sfc-head span,
.situation-flight-card.danger .sfc-head span { color: #ff4757; }
.sfc-meta {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 10px;
}
.sfc-meta span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}
.sfc-grid {
    margin-top: 7px;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.055);
}
.sfc-grid span {
    color: var(--text-dim);
    font-size: 10px;
}
.sfc-grid b {
    color: var(--text-secondary);
    font-weight: 600;
}
.situation-chart-title {
    position: relative;
    z-index: 1;
    padding: 6px 14px 4px;
    color: var(--text-muted);
    font-size: 11px;
}
.situation-reject-chart {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 12px;
    padding: 3px 14px 9px;
    align-items: center;
}
.situation-donut {
    position: relative;
    width: 106px;
    height: 106px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 0 22px rgba(0,0,0,0.4), 0 0 22px rgba(0,212,255,0.07);
}
.situation-donut svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.situation-donut::before {
    content: '';
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(7,18,32,0.96), rgba(6,12,24,0.96));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 0 16px rgba(0,0,0,0.45);
}
.situation-donut-core {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-content: center;
    text-align: center;
}
.situation-donut-core b {
    color: #ff6b7a;
    font-size: 22px;
    line-height: 1;
}
.situation-donut-core span {
    color: var(--text-muted);
    font-size: 10px;
    margin-top: 3px;
}
.situation-reason-row {
    display: grid;
    grid-template-columns: 8px minmax(48px, 1fr) 32px 24px;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 10px;
    min-height: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.045);
}
.situation-reason-row:last-child { border-bottom: 0; }
.situation-reason-row i {
    width: 7px;
    height: 7px;
    border-radius: 2px;
}
.situation-reason-row span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.situation-reason-row em {
    color: var(--text-dim);
    font-style: normal;
    text-align: right;
}
.situation-reason-row b { color: var(--text-secondary); text-align: right; }
.situation-detail-text {
    margin-top: 12px;
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,212,255,0.12);
    color: var(--text-secondary);
    background: rgba(0,212,255,0.04);
    line-height: 1.65;
    font-size: 12px;
}

/* Element visibility items */
.element-vis-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; margin-bottom: 4px;
    border-radius: var(--radius-sm);
    cursor: pointer; font-size: 12px;
    color: var(--text-dim); transition: all 0.2s ease;
}
.element-vis-item:hover { background: rgba(0,212,255,0.06); }
.element-vis-item.active { color: var(--text-secondary); }
.ev-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
    opacity: 0.25; transition: opacity 0.2s;
}
.element-vis-item.active .ev-dot { opacity: 1; }

.target-vis-item {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 8px 10px;
    margin-top: 8px;
    border: 1px solid rgba(114, 218, 217, 0.22);
    border-radius: var(--radius-md);
    background: rgba(5, 18, 24, 0.58);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}
.target-vis-item:hover {
    border-color: rgba(114, 218, 217, 0.55);
    background: rgba(8, 32, 42, 0.78);
    color: var(--text-primary);
}
.target-vis-item.active {
    border-color: rgba(80, 220, 255, 0.68);
    background: linear-gradient(135deg, rgba(24, 92, 112, 0.42), rgba(8, 24, 32, 0.72));
    box-shadow: 0 0 18px rgba(80, 220, 255, 0.16) inset;
    color: var(--text-secondary);
}
.target-vis-icon {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(114, 218, 217, 0.26);
    border-radius: 50%;
    color: #72dad9;
    background: rgba(114, 218, 217, 0.08);
}
.target-vis-text { display: grid; gap: 2px; min-width: 0; }
.target-vis-text strong { font-size: 13px; font-weight: 600; line-height: 1.1; }
.target-vis-text em {
    font-size: 11px; line-height: 1.1; font-style: normal;
    color: var(--text-dim);
}
.target-vis-state {
    min-width: 34px; font-size: 11px;
    color: var(--text-dim); text-align: right;
}
.target-vis-item.active .target-vis-state { color: #50dcff; }

.target-source-status {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 212, 255, 0.12);
    background: rgba(0, 212, 255, 0.04);
    color: var(--text-dim);
    font-size: 11px;
    line-height: 1.45;
}

/* datetime-local styling */
input.fp-datetime {
    width: 100%; padding: 6px 10px; border-radius: var(--radius-md);
    border: 1px solid rgba(0,212,255,0.2); background: rgba(0,212,255,0.04);
    color: var(--text-secondary); font-size: 12px; font-family: 'Noto Sans SC',sans-serif;
    cursor: pointer; outline: none; transition: border-color 0.2s;
}
input.fp-datetime:hover { border-color: rgba(0,212,255,0.4); }
input.fp-datetime:focus { border-color: rgba(0,212,255,0.6); box-shadow: 0 0 0 2px rgba(0,212,255,0.1); }
input.fp-datetime::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) hue-rotate(160deg); cursor: pointer;
}

/* ==============================================
   复选项（网格类型）
   ============================================== */
.check-item {
    display: flex; align-items: center; gap: 8px; padding: 6px 4px;
    cursor: pointer; font-size: 12px; color: var(--text-muted);
    transition: all 0.25s ease; border-radius: var(--radius-sm);
}
.check-item:hover { color: var(--text-secondary); background: rgba(0,212,255,0.04); }
.check-item input[type="checkbox"] { width: 14px; height: 14px; accent-color: #00d4ff; cursor: pointer; }
.check-item .dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }

/* ==============================================
   通用按钮 — Sci-Fi 按钮 (sf-btn)
   ============================================== */

/* Primary — cyan gradient */
.sf-btn-primary, .fp-btn.primary {
    height: 36px; padding: 0 20px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 128, 255, 0.15));
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: var(--radius-md);
    color: #00d4ff; font-size: 13px; font-weight: 500; font-family: var(--font-cn);
    cursor: pointer; transition: all 0.25s ease;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    white-space: nowrap;
}
.sf-btn-primary:hover, .fp-btn.primary:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(0, 128, 255, 0.25));
    border-color: #00d4ff;
    box-shadow: 0 0 16px rgba(0,212,255,0.2);
}

/* Secondary — white */
.sf-btn-secondary, .fp-btn {
    height: 36px; padding: 0 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    color: var(--text-secondary); font-size: 13px; font-weight: 500; font-family: var(--font-cn);
    cursor: pointer; transition: all 0.25s ease;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    white-space: nowrap;
}
.sf-btn-secondary:hover, .fp-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}
.sf-btn-secondary:disabled, .sf-btn-primary:disabled, .sf-btn-danger:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.sf-btn-secondary:disabled:hover, .sf-btn-primary:disabled:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); box-shadow: none; }
.sf-btn-primary:disabled:hover { background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 128, 255, 0.15)); border-color: rgba(0, 212, 255, 0.35); box-shadow: none; }

/* Danger */
.sf-btn-danger, .fp-btn.danger {
    height: 36px; padding: 0 20px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: var(--radius-md);
    color: #ff4757; font-size: 13px; font-weight: 500; font-family: var(--font-cn);
    cursor: pointer; transition: all 0.25s ease;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    white-space: nowrap;
}
.sf-btn-danger:hover, .fp-btn.danger:hover {
    background: rgba(255, 71, 87, 0.2);
    box-shadow: 0 0 16px rgba(255,71,87,0.2);
}
.sf-btn-danger:disabled:hover {
    background: rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.3);
    box-shadow: none;
}

/* Green */
.sf-btn-green {
    height: 36px; padding: 0 20px;
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.3);
    border-radius: var(--radius-md);
    color: #2ed573; font-size: 13px; font-weight: 500; font-family: var(--font-cn);
    cursor: pointer; transition: all 0.25s ease;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    white-space: nowrap;
}
.sf-btn-green:hover {
    background: rgba(46, 213, 115, 0.2);
    box-shadow: 0 0 16px rgba(46,213,115,0.2);
}

.fp-btn:active { transform: scale(0.96); }
.fp-btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }

/* Sci-Fi Input */
.sf-input, .fp-select {
    height: 36px; padding: 0 12px;
    background: rgba(0, 212, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-md);
    color: var(--text-secondary); font-size: 13px; font-family: var(--font-cn);
    outline: none; transition: all 0.25s ease; width: 100%;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.sf-input::placeholder, .fp-select::placeholder { color: var(--text-dim); }
.sf-input:focus, .fp-select:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0,212,255,0.1), inset 0 0 8px rgba(0,212,255,0.03);
}
select.sf-input, .fp-select {
    padding-right: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.35)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}
select.sf-input option, .fp-select option {
    background: #0a1a35;
    color: var(--text-secondary);
    padding: 6px 12px;
}
.sf-input:focus, .fp-select:focus {
    background: rgba(0,212,255,0.06);
}

/* Legacy btn compat */
.btn {
    padding: 8px 18px; border-radius: var(--radius-md); border: none;
    cursor: pointer; font-size: 13px; font-family: var(--font-cn);
    font-weight: 500; transition: all 0.25s ease; letter-spacing: 0.3px;
}
.btn-primary {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 128, 255, 0.2));
    border: 1px solid rgba(0, 212, 255, 0.35);
    color: #00d4ff;
}
.btn-primary:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 128, 255, 0.3));
    border-color: #00d4ff; box-shadow: 0 0 16px rgba(0,212,255,0.2);
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.3; color: var(--text-muted); cursor: not-allowed; transform: none; }
.btn-success {
    background: rgba(46, 213, 115, 0.1); color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.3);
}
.btn-success:hover { background: rgba(46, 213, 115, 0.2); }
.btn-danger {
    background: rgba(255, 71, 87, 0.1); color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
}
.btn-danger:hover { background: rgba(255, 71, 87, 0.2); box-shadow: 0 0 16px rgba(255,71,87,0.2); }
.btn-secondary {
    background: rgba(255, 255, 255, 0.05); color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255,255,255,0.2); }

/* ==============================================
   Panel Divider
   ============================================== */
.panel-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    margin: 8px 0;
}

/* ==============================================
   设置面板
   ============================================== */
.settings-panel {
    position: fixed; top: 52px; right: 0; width: 300px;
    max-height: calc(100vh - 52px); z-index: 9998;
    transform: translateX(100%); transition: transform 0.35s var(--ease-out-expo);
    overflow-y: auto;
}
.settings-panel.open { transform: translateX(0); }
.settings-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px 12px; border-bottom: 1px solid rgba(0, 212, 255, 0.12);
}
.settings-panel-header h4 {
    font-size: 14px; color: #00d4ff; font-weight: 600;
}
.settings-close {
    background: none; border: none; color: var(--text-muted);
    font-size: 20px; cursor: pointer; padding: 0 4px;
    transition: color 0.25s ease;
}
.settings-close:hover { color: #ffffff; }
.settings-section { padding: 16px 18px; }
.settings-label { font-size: 11px; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }
.settings-radios { display: flex; flex-direction: column; gap: 8px; }
.settings-radio {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: var(--radius-md); cursor: pointer;
    border: 1px solid rgba(0, 212, 255, 0.08);
    background: rgba(0, 212, 255, 0.03);
    transition: all 0.25s ease;
}
.settings-radio:hover { border-color: rgba(0,212,255,0.25); background: rgba(0,212,255,0.06); }
.settings-radio.active { border-color: rgba(0,212,255,0.4); background: rgba(0,212,255,0.08); box-shadow: 0 0 16px rgba(0,212,255,0.06); }
.settings-radio input[type="radio"] { display: none; }
.settings-radio-dot {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(0,212,255,0.2); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.25s ease;
}
.settings-radio.active .settings-radio-dot { border-color: #00d4ff; }
.settings-radio.active .settings-radio-dot::after {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: #00d4ff; box-shadow: 0 0 6px #00d4ff;
}
.settings-radio-info { display: flex; flex-direction: column; }
.settings-radio-name { font-size: 13px; color: var(--text-primary); }
.settings-radio-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ==============================================
   版本标识
   ============================================== */
.version-tag {
    position: fixed; left: 16px; top: 60px; z-index: 9999;
    font-family: var(--font-mono); font-size: 10px; font-weight: 600;
    color: rgba(0, 212, 255, 0.25); letter-spacing: 1px;
    pointer-events: none; text-transform: uppercase;
}

/* ==============================================
   右侧信息面板
   ============================================== */
.side-panel {
    position: fixed; top: 68px; right: 68px; width: 280px; z-index: 9998;
    max-height: calc(100vh - 110px);
    overflow-y: auto; padding: 16px;
    transform: translateX(110%); transition: transform 0.35s var(--ease-out-expo);
}
.side-panel.open { transform: translateX(0); }

.panel-section { margin-bottom: 16px; }
.panel-section h4 {
    font-size: 14px; font-weight: 600;
    color: #00d4ff; margin-bottom: 10px; padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.12);
    letter-spacing: 0.04em;
    display: flex; align-items: center;
}
.panel-subsection {
    margin-top: 8px;
    padding: 10px;
    border: 1px solid rgba(0,212,255,0.08);
    border-radius: 6px;
    background: rgba(0,212,255,0.025);
}

.info-row {
    display: flex; justify-content: space-between; padding: 4px 0; font-size: 12px;
}
.info-row .label { color: var(--text-muted); }
.info-row .value {
    color: var(--text-secondary); text-align: right; max-width: 60%;
    word-break: break-all; font-variant-numeric: tabular-nums;
}

/* ==============================================
   底部状态栏
   ============================================== */
.status-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    height: 34px; display: flex; align-items: center; padding: 0 18px;
    font-size: 11px; color: var(--text-muted); gap: 16px;
}
.status-bar::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(0,212,255,0.3) 50%, transparent 95%);
}
.icp-link {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    z-index: 2; color: rgba(180, 215, 230, 0.68); text-decoration: none;
    font-size: 11px; letter-spacing: 0; white-space: nowrap;
}
.icp-link:hover {
    color: #00d4ff;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.35);
}

/* ==============================================
   提示条
   ============================================== */
.toast-bar {
    position: fixed; top: 60px; left: 50%; transform: translateX(-50%); z-index: 10001;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.95), rgba(0, 128, 255, 0.95));
    color: #fff; padding: 9px 24px; border-radius: var(--radius-md);
    font-size: 13px; font-weight: 500; display: none;
    box-shadow: 0 4px 24px rgba(0,212,255,0.35);
}
.draw-tip {
    position: fixed; top: 60px; left: 50%; transform: translateX(-50%); z-index: 9998;
    background: linear-gradient(135deg, rgba(255, 165, 2, 0.95), rgba(255, 130, 0, 0.95));
    color: #fff; padding: 9px 24px; border-radius: var(--radius-md);
    font-size: 13px; font-weight: 500; display: none;
    box-shadow: 0 4px 20px rgba(255,165,2,0.3);
}

/* ==============================================
   弹窗
   ============================================== */
/* Modal — Kimi Dialog Design System */
@keyframes fade-in-scale {
    0% { opacity: 0; transform: scale(0.97); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes modal-enter {
    0% { opacity: 0; transform: scale(0.95) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 20000;
    background: rgba(3, 8, 16, 0.7); display: none;
    align-items: center; justify-content: center;
    padding-right: 80px;
    backdrop-filter: blur(4px);
    animation: fade-in-scale 0.2s ease both;
}
.modal-overlay.active { display: flex; }
.modal {
    position: relative; overflow: hidden;
    background: rgba(8, 20, 45, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-lg);
    width: 420px; max-width: 90vw; max-height: 80vh;
    box-shadow: 0 0 40px rgba(0,212,255,0.1), 0 16px 64px rgba(0,0,0,0.5);
    animation: modal-enter 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* Corner decorations — 用 outline + box-shadow 实现四角发光 */
.modal::before {
    content: '';
    position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: var(--radius-lg);
    background:
        /* top-left */ linear-gradient(to right, #00d4ff 12px, transparent 12px) 0 0 / 50% 2px no-repeat,
        linear-gradient(to bottom, #00d4ff 12px, transparent 12px) 0 0 / 2px 50% no-repeat,
        /* top-right */ linear-gradient(to left, #00d4ff 12px, transparent 12px) 100% 0 / 50% 2px no-repeat,
        linear-gradient(to bottom, #00d4ff 12px, transparent 12px) 100% 0 / 2px 50% no-repeat,
        /* bottom-left */ linear-gradient(to right, #00d4ff 12px, transparent 12px) 0 100% / 50% 2px no-repeat,
        linear-gradient(to top, #00d4ff 12px, transparent 12px) 0 100% / 2px 50% no-repeat,
        /* bottom-right */ linear-gradient(to left, #00d4ff 12px, transparent 12px) 100% 100% / 50% 2px no-repeat,
        linear-gradient(to top, #00d4ff 12px, transparent 12px) 100% 100% / 2px 50% no-repeat;
    filter: drop-shadow(0 0 4px rgba(0,212,255,0.5));
    pointer-events: none; z-index: 2;
}
/* Header */
.modal h3 {
    display: flex; align-items: center; justify-content: space-between;
    height: 48px; padding: 0 20px; margin: 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.12);
    font-size: 15px; font-weight: 600; color: #00d4ff;
    letter-spacing: 0.03em;
}
.modal h3 .modal-close {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.42);
    cursor: pointer; font-size: 14px; line-height: 1;
    transition: all 0.2s ease;
}
.modal h3 .modal-close:hover {
    background: rgba(255, 71, 87, 0.15);
    border-color: rgba(255, 71, 87, 0.3);
    color: #ff4757;
}
/* Body */
.modal-body {
    padding: 16px 20px;
    overflow-y: auto;
    max-height: calc(80vh - 48px - 56px);
}
.modal .info-row { margin-bottom: 6px; }
.modal .form-group { margin-bottom: 12px; }
.modal .form-group label {
    display: block; font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 4px;
    font-weight: 400; letter-spacing: 0;
}
.modal .form-group input,
.modal .form-group select {
    width: 100%; height: 36px; padding: 0 12px;
    background: rgba(0, 212, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-md);
    color: var(--text-secondary); font-size: 13px; font-family: var(--font-cn);
    outline: none; transition: all 0.25s ease;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.modal .form-group select {
    padding-right: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.35)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}
.modal .form-group select option {
    background: #0a1a35; color: var(--text-secondary);
}
.modal .form-group input:focus,
.modal .form-group select:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0,212,255,0.1), inset 0 0 8px rgba(0,212,255,0.03);
    background: rgba(0,212,255,0.06);
}
.modal-inline-error {
    min-height: 34px;
    padding: 8px 10px;
    margin-top: 4px;
    border: 1px solid rgba(255, 77, 109, 0.45);
    border-radius: var(--radius-md);
    background: rgba(255, 77, 109, 0.1);
    color: #ff9bad;
    font-size: 12px;
    line-height: 18px;
}
.init-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.init-mode-option {
    margin: 0;
    cursor: pointer;
}
.init-mode-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.init-mode-option span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid rgba(0, 212, 255, 0.16);
    border-radius: var(--radius-md);
    background: rgba(0, 212, 255, 0.04);
    color: var(--text-muted);
    transition: all 0.2s ease;
}
.init-mode-option strong {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}
.init-mode-option em {
    color: rgba(255,255,255,0.42);
    font-size: 11px;
    font-style: normal;
}
.init-mode-option:hover span {
    border-color: rgba(0, 212, 255, 0.32);
    background: rgba(0, 212, 255, 0.07);
}
.init-mode-option input:checked + span {
    border-color: rgba(0, 212, 255, 0.58);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.16), rgba(0, 128, 255, 0.08));
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.12), inset 0 0 12px rgba(0, 212, 255, 0.05);
}
.init-mode-option input:checked + span strong {
    color: #8be9ff;
}
.grid-generation-mode-modal {
    width: 520px;
}
.grid-area-source-modal {
    width: 540px;
}
.grid-generation-mode-modal .modal-body {
    padding: 18px 20px 16px;
}
.grid-area-source-modal .modal-body {
    padding: 18px 20px 16px;
}
.mode-summary {
    min-height: 34px;
    padding: 8px 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 212, 255, 0.16);
    border-radius: var(--radius-md);
    background: rgba(0, 212, 255, 0.05);
    color: rgba(210, 235, 245, 0.72);
    font-size: 12px;
    line-height: 18px;
}
.grid-generation-level {
    margin-bottom: 12px;
}
.grid-generation-level label {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}
.grid-generation-mode-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.grid-area-source-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.grid-generation-mode-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(112px, 132px) 1fr auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 64px;
    padding: 12px 14px;
    border: 1px solid rgba(0, 212, 255, 0.16);
    border-radius: var(--radius-md);
    background: rgba(0, 212, 255, 0.04);
    color: var(--text-secondary);
    font-family: var(--font-cn);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.grid-generation-mode-card strong {
    color: #8be9ff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    white-space: nowrap;
}
.grid-generation-mode-card span {
    color: rgba(215, 236, 245, 0.68);
    font-size: 12px;
    line-height: 18px;
}
.grid-generation-mode-card em {
    min-width: 62px;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
    font-style: normal;
    text-align: center;
    white-space: nowrap;
}
.grid-generation-mode-card.primary {
    border-color: rgba(0, 212, 255, 0.34);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.11), rgba(0, 128, 255, 0.05));
}
.grid-generation-mode-card.moving {
    border-color: rgba(46, 213, 115, 0.28);
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.09), rgba(0, 212, 255, 0.04));
}
.grid-generation-mode-card:hover,
.grid-generation-mode-card:focus-visible {
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(0, 212, 255, 0.56);
    background: rgba(0, 212, 255, 0.09);
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.12);
}
.grid-generation-mode-card.moving:hover,
.grid-generation-mode-card.moving:focus-visible {
    border-color: rgba(46, 213, 115, 0.52);
    box-shadow: 0 0 18px rgba(46, 213, 115, 0.12);
}
.grid-city-picker {
    margin-top: 12px;
    border: 1px solid rgba(0, 212, 255, 0.14);
    border-radius: var(--radius-md);
    background: rgba(0, 20, 34, 0.42);
    overflow: hidden;
}
.grid-city-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    color: rgba(220, 242, 250, 0.82);
    font-size: 12px;
}
.grid-city-picker-head span {
    color: #8be9ff;
    font-weight: 600;
}
.grid-city-picker-head small {
    color: var(--text-dim);
    font-size: 11px;
}
.grid-province-select-row {
    display: grid;
    grid-template-columns: 86px 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.08);
}
.grid-province-select-row label {
    color: rgba(215, 236, 245, 0.62);
    font-size: 12px;
}
.grid-province-select-row select {
    width: 100%;
    height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-radius: var(--radius-md);
    background: rgba(0, 212, 255, 0.045);
    color: var(--text-secondary);
    font-family: var(--font-cn);
    font-size: 12px;
    outline: none;
}
.grid-province-select-row select:focus {
    border-color: rgba(0, 212, 255, 0.58);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.08);
}
.grid-province-select-row select option {
    background: #071426;
    color: var(--text-secondary);
}
.grid-city-area-list {
    max-height: 260px;
    overflow-y: auto;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.grid-city-area-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: var(--radius-sm);
    background: rgba(0, 212, 255, 0.035);
    color: var(--text-secondary);
    font-family: var(--font-cn);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}
.grid-city-area-item:hover {
    border-color: rgba(0, 212, 255, 0.42);
    background: rgba(0, 212, 255, 0.08);
}
.grid-city-area-item strong {
    font-size: 13px;
    font-weight: 600;
    color: rgba(230, 248, 255, 0.9);
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.grid-city-area-item em {
    font-size: 11px;
    font-style: normal;
    color: var(--text-dim);
    min-width: 48px;
    text-align: right;
}
.grid-city-empty {
    grid-column: 1 / -1;
    padding: 16px 10px;
    color: var(--text-dim);
    font-size: 12px;
    text-align: center;
}
/* Footer */
.modal .btn-row {
    display: flex; gap: 8px; justify-content: flex-end;
    padding: 0 20px; height: 56px; align-items: center;
    border-top: 1px solid rgba(0, 212, 255, 0.08);
}

/* ==============================================
   进度条
   ============================================== */
.progress-bar {
    width: 100%; height: 4px;
    background: rgba(0, 212, 255, 0.06); border-radius: 2px;
    margin: 8px 0; overflow: hidden;
}
.progress-bar .fill {
    height: 100%; border-radius: 2px;
    background: linear-gradient(90deg, #00d4ff, #0080ff);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(0,212,255,0.4);
}

/* ==============================================
   安全检测
   ============================================== */
.safety-verdict { text-align: center; padding: 18px; margin-bottom: 14px; border-radius: var(--radius-lg); }
.safety-verdict.pass { background: rgba(46, 213, 115, 0.06); border: 1px solid rgba(46, 213, 115, 0.15); }
.safety-verdict.warn { background: rgba(255, 165, 2, 0.06); border: 1px solid rgba(255, 165, 2, 0.15); }
.safety-verdict.fail { background: rgba(255, 71, 87, 0.06); border: 1px solid rgba(255, 71, 87, 0.15); }
.safety-verdict .icon { font-size: 32px; margin-bottom: 6px; }
.safety-verdict .text { font-family: var(--font-mono); font-size: 18px; font-weight: 700; }
.safety-stats { display: flex; gap: 8px; margin-bottom: 14px; }
.safety-stat {
    flex: 1; text-align: center; padding: 10px; border-radius: var(--radius-md);
    background: rgba(0, 212, 255, 0.03); border: 1px solid rgba(0, 212, 255, 0.08);
}
.safety-stat .num { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: #00d4ff; }
.safety-stat .lbl { font-size: 10px; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
.safety-msg { font-size: 12px; color: var(--text-secondary); padding: 8px 0; border-bottom: 1px solid rgba(0,212,255,0.12); }
.ai-risk-panel {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(0,212,255,0.24);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(0,212,255,0.08), rgba(6,18,34,0.36));
  box-shadow: inset 0 0 18px rgba(0,212,255,0.04);
}
.ai-risk-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #00d4ff;
  font-size: 14px;
  font-weight: 700;
}
.ai-risk-title span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
}
.ai-risk-section {
  margin-top: 10px;
}
.ai-risk-section h5 {
  margin: 0 0 6px;
  color: var(--text-secondary);
  font-size: 12px;
}
.ai-risk-section p,
.ai-risk-section li {
  color: var(--text-primary);
  font-size: 12px;
  line-height: 1.65;
}
.ai-risk-section p {
  margin: 0;
}
.ai-risk-section ul {
  margin: 0;
  padding-left: 18px;
}
.ai-risk-loading,
.ai-risk-note {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.6;
}
.ai-risk-note {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.safety-legend { display: flex; gap: 14px; margin-top: 12px; font-size: 11px; color: var(--text-muted); }
.safety-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }

/* ==============================================
   航线服务
   ============================================== */
.route-stat-item {
    background: rgba(0,212,255,0.03); border: 1px solid rgba(0,212,255,0.08);
    border-radius: var(--radius-md); padding: 8px 10px; text-align: center;
}
.route-stat-label { font-size: 10px; color: var(--text-dim); margin-bottom: 2px; }
.route-stat-value { font-size: 20px; font-weight: 700; font-family: var(--font-mono); line-height: 1.2; }

.route-card {
    cursor: pointer;
}
.route-card.active {
    border-color: rgba(0,212,255,0.36);
    background: rgba(0,212,255,0.07);
    box-shadow: 0 0 16px rgba(0,212,255,0.08);
}
.route-card .airspace-card-name {
    min-width: 0;
}
.route-card .airspace-card-badges {
    max-width: 52%;
}
.route-card-tag.remote {
    color: #ffa502;
    background: rgba(255,165,2,0.12);
    border-color: rgba(255,165,2,0.2);
}
.route-card-tag.auto {
    color: #00d4ff;
    background: rgba(0,212,255,0.12);
    border-color: rgba(0,212,255,0.2);
}
.route-card-tag.planned {
    color: #2ed573;
    background: rgba(46,213,115,0.12);
    border-color: rgba(46,213,115,0.2);
}

.record-filter-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    padding: 8px 12px 2px;
}

.record-filter-grid select {
    min-width: 0;
    height: 30px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,212,255,0.16);
    background: rgba(0,12,28,0.72);
    color: var(--text-secondary);
    font-size: 11px;
    padding: 0 6px;
    outline: none;
}

.record-card {
    cursor: pointer;
}

.record-card.active {
    border-color: rgba(0,212,255,0.38);
    background: rgba(0,212,255,0.07);
    box-shadow: 0 0 18px rgba(0,212,255,0.1);
}

.record-card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 8px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-dim);
    font-size: 10px;
}

.record-risk-row {
    display: flex;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
}

.record-risk-row div {
    min-width: 0;
    flex: 1;
}

.record-risk-row b {
    color: var(--text-primary);
    font-size: 12px;
}

.record-risk-row em {
    float: right;
    color: var(--text-dim);
    font-size: 10px;
    font-style: normal;
}

.record-risk-row p {
    margin: 3px 0 0;
    color: var(--text-muted);
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 航线编辑抽屉 — 从左侧滑出覆盖在面板上 */
.route-drawer {
    position: fixed; top: 60px; left: 356px; bottom: 40px; width: 320px; z-index: 9999;
    overflow: hidden;
    transform: translateX(-340px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out-expo), opacity 0.3s ease;
    display: flex; flex-direction: column;
}
.route-drawer.open { transform: translateX(0); opacity: 1; pointer-events: auto; }
.route-drawer-inner {
    flex: 1; overflow-y: auto; padding: 14px;
    position: relative; z-index: 1;
}
.route-drawer-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.route-drawer-header h3 { font-size: 14px; color: #ffffff; font-weight: 600; }
.route-drawer .form-group { margin-bottom: 10px; }
.route-drawer .form-group label { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.route-drawer .form-group input {
    width: 100%; height: 36px; padding: 0 12px;
    background: rgba(0, 212, 255, 0.04); border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-md); color: var(--text-secondary);
    font-size: 12px; font-family: var(--font-cn); outline: none;
    transition: all 0.25s ease;
}
.route-drawer .form-group input:focus { border-color: #00d4ff; box-shadow: 0 0 10px rgba(0,212,255,0.1); }
.route-drawer .form-group select {
    width: 100%; height: 36px; padding: 0 12px;
    background: rgba(0, 212, 255, 0.04); border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-md); color: var(--text-secondary);
    font-size: 12px; font-family: var(--font-cn); outline: none;
}

.airspace-whitelist-section { margin-top: 12px; }
.airspace-whitelist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.airspace-whitelist-head h4 { margin: 0; }
.airspace-whitelist-head .sf-btn-primary {
  height: 26px;
  padding: 0 10px;
  font-size: 11px;
}
.airspace-whitelist-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.airspace-whitelist-empty {
  padding: 12px;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 6px;
  color: rgba(255,255,255,0.38);
  font-size: 11px;
  text-align: center;
}
.airspace-whitelist-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 6px 8px;
  padding: 9px 10px;
  border: 1px solid rgba(0,212,255,0.14);
  border-left: 3px solid rgba(0,212,255,0.55);
  border-radius: 6px;
  background: rgba(4,18,30,0.62);
}
.awl-main { min-width: 0; }
.awl-rid {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.awl-meta,
.awl-note {
  margin-top: 3px;
  color: rgba(255,255,255,0.48);
  font-size: 10px;
  line-height: 1.35;
}
.awl-note { color: rgba(255,255,255,0.36); }
.awl-status {
  align-self: start;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 10px;
  color: rgba(255,255,255,0.7);
}
.awl-status.active { color: #2ed573; border-color: rgba(46,213,115,0.28); background: rgba(46,213,115,0.1); }
.awl-status.pending { color: #00d4ff; border-color: rgba(0,212,255,0.28); background: rgba(0,212,255,0.08); }
.awl-status.expired,
.awl-status.disabled { color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); }
.awl-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.awl-actions button {
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(0,212,255,0.18);
  border-radius: 4px;
  background: rgba(0,212,255,0.06);
  color: #00d4ff;
  font-size: 10px;
  cursor: pointer;
}
.awl-actions button:hover { background: rgba(0,212,255,0.12); }
.awl-actions button.danger {
  color: #ff4757;
  border-color: rgba(255,71,87,0.2);
  background: rgba(255,71,87,0.06);
}
.airspace-whitelist-modal { max-width: 460px; }
.airspace-whitelist-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.airspace-whitelist-actions button {
  min-width: 84px;
  height: 32px;
}
.airspace-whitelist-error {
  display: none;
  margin-top: 6px;
  color: #ff6b81;
  font-size: 12px;
  line-height: 1.4;
}
.wp-item {
    display: flex; align-items: center; gap: 6px; padding: 7px 10px;
    border: 1px solid rgba(0,212,255,0.08); border-radius: var(--radius-md);
    margin-bottom: 4px; background: rgba(0,212,255,0.03); font-size: 11px;
    transition: all 0.25s ease;
}
.wp-item:hover { border-color: rgba(0,212,255,0.2); }
.wp-item .wp-idx { color: #00d4ff; font-weight: 600; min-width: 20px; font-family: var(--font-mono); }
.wp-item .wp-coord { color: var(--text-muted); flex: 1; }
.wp-item .wp-alt {
    width: 55px; height: 28px; padding: 0 6px; border-radius: var(--radius-md);
    border: 1px solid rgba(0,212,255,0.15); background: rgba(0,212,255,0.04);
    color: var(--text-secondary); font-size: 11px; font-family: var(--font-cn);
    text-align: center; outline: none;
}
.wp-item .wp-alt:focus { border-color: #00d4ff; }
.wp-item .wp-del { color: #ff4757; cursor: pointer; padding: 0 4px; font-size: 14px; }

/* ==============================================
   悬浮飞行控制条
   ============================================== */
.sim-flight-bar {
    position: fixed; bottom: 44px; left: 50%; transform: translateX(-50%); z-index: 10000;
    border-radius: var(--radius-lg); padding: 10px 20px;
    min-width: 540px;
    display: none;
}
.sim-flight-bar.open { display: block; }

/* ==============================================
   Cesium 覆盖
   ============================================== */
.cesium-viewer { position: absolute !important; }
.cesium-viewer-bottom { display: none !important; }

/* ==============================================
   滚动条 — 匹配参考项目
   ============================================== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.2); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 212, 255, 0.35); }
* { scrollbar-width: thin; scrollbar-color: rgba(0, 212, 255, 0.2) transparent; }

/* ==============================================
   Miscellaneous overrides for existing HTML
   ============================================== */
.lp-section { padding: 6px 0; }
.lp-section + .lp-section { border-top: none; margin-top: 0; padding-top: 6px; }
.lp-section-title {
    font-size: 11px; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 1px; padding: 0 12px 6px; font-weight: 600;
    font-family: var(--font-cn);
}

/* Old left-panel compat */
.left-panel .lp-section .lp-btn {
    padding: 8px 12px;
}

/* tb-btn compat */
.tb-btn {
    padding: 4px 10px; border-radius: var(--radius-md);
    border: 1px solid rgba(0, 212, 255, 0.2); background: transparent;
    color: #00d4ff; font-size: 11px; cursor: pointer;
    font-family: var(--font-cn); transition: all 0.25s ease;
}
.tb-btn:hover { background: rgba(0,212,255,0.08); border-color: rgba(0,212,255,0.35); }

/* ==========================================
   飞行审批模块样式
   ========================================== */

/* 审批卡片 */
.approval-card {
    cursor: pointer;
}
.approval-card:hover {
    cursor: pointer;
}
.approval-no {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: var(--font-monospace, monospace);
}
.approval-card-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.approval-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* 审批状态标签 */
.approval-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid currentColor;
    border-color: rgba(0,0,0,0.15);
}

/* 请求类型标签 */
.approval-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 212, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid rgba(0, 212, 255, 0.1);
}

/* 风险条目 */
.approval-risk-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-secondary);
    padding: 3px 0;
}
.risk-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 快捷拒绝理由按钮 */
.approval-quick-reason {
    display: inline-block;
    padding: 4px 8px;
    font-size: 10px;
    color: var(--text-muted);
    background: rgba(255, 79, 87, 0.06);
    border: 1px solid rgba(255, 79, 87, 0.15);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.approval-quick-reason:hover {
    background: rgba(255, 79, 87, 0.12);
    border-color: rgba(255, 79, 87, 0.3);
    color: #ff6b7a;
}

.approval-map-popup {
    min-width: 210px;
    max-width: 260px;
    padding: 10px 12px;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(8,20,45,0.96), rgba(4,12,28,0.94));
    border: 1px solid rgba(0,212,255,0.28);
    box-shadow: 0 10px 30px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.74);
    font-family: var(--font-cn);
    pointer-events: none;
}
.approval-map-popup.danger {
    border-color: rgba(255,79,87,0.34);
    background: linear-gradient(180deg, rgba(48,18,26,0.96), rgba(22,8,16,0.94));
}
.approval-map-popup .amp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}
.approval-map-popup .amp-no {
    font-size: 12px;
    color: #ffffff;
    font-weight: 700;
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.approval-map-popup .amp-status {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(0,212,255,0.22);
    color: #00d4ff;
    background: rgba(0,212,255,0.1);
    flex-shrink: 0;
}
.approval-map-popup.danger .amp-status {
    color: #ff7d86;
    border-color: rgba(255,79,87,0.28);
    background: rgba(255,79,87,0.1);
}
.approval-map-popup .amp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 10px;
    font-size: 11px;
    line-height: 1.45;
}
.approval-map-popup .amp-label {
    color: rgba(255,255,255,0.35);
}
.approval-map-popup .amp-value {
    color: rgba(255,255,255,0.82);
}
.approval-map-popup .amp-foot {
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 10px;
    color: rgba(255,255,255,0.45);
}

.settings-auth-block {
    position: relative;
    z-index: 1;
    margin: 12px 14px 0;
    padding: 12px;
    border: 1px solid rgba(0, 212, 255, .12);
    border-radius: 8px;
    background: rgba(0, 212, 255, .04);
}

.settings-auth-title {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    font-weight: 600;
}

.settings-auth-row {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .05);
    background: transparent;
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
    font-family: var(--font-cn);
    text-align: left;
}

.settings-auth-row:first-of-type {
    border-top: 0;
}

.settings-auth-row em {
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .38);
    font-size: 10px;
    font-style: normal;
}

.settings-auth-row.active {
    color: #fff;
}

.settings-auth-row.active em {
    background: rgba(46, 213, 115, .12);
    color: #2ed573;
}

.settings-auth-row.action {
    cursor: pointer;
}

.settings-auth-row.action:hover {
    color: #fff;
}

.settings-auth-row.action:hover em {
    background: rgba(0, 212, 255, .12);
    color: #00d4ff;
}

.auth-admin-mask {
    position: fixed;
    inset: 0;
    z-index: 26000;
    align-items: center;
    justify-content: center;
    background: rgba(0, 5, 10, .72);
    backdrop-filter: blur(8px);
}

.auth-admin-panel {
    position: relative;
    width: min(1120px, calc(100vw - 44px));
    height: min(720px, calc(100vh - 92px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, .18);
    border-radius: 8px;
    background: rgba(8, 20, 45, .94);
    box-shadow: 0 18px 56px rgba(0, 0, 0, .55), inset 0 0 42px rgba(0, 212, 255, .035);
}

.auth-admin-head,
.auth-admin-tabs,
.auth-admin-content {
    position: relative;
    z-index: 1;
}

.auth-admin-head {
    height: 72px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 212, 255, .1);
}

.auth-admin-head h3 {
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
}

.auth-admin-head p {
    margin-top: 4px;
    color: rgba(255, 255, 255, .42);
    font-size: 12px;
}

.auth-admin-tabs {
    height: 44px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.auth-admin-tabs button {
    height: 30px;
    padding: 0 14px;
    border: 1px solid rgba(0, 212, 255, .12);
    border-radius: 6px;
    background: rgba(255, 255, 255, .035);
    color: rgba(255, 255, 255, .55);
    cursor: pointer;
}

.auth-admin-tabs button.active {
    border-color: rgba(0, 212, 255, .42);
    background: rgba(0, 212, 255, .1);
    color: #00d4ff;
}

.auth-admin-content {
    flex: 1;
    min-height: 0;
    padding: 16px;
}

.auth-admin-roles {
    height: 100%;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 14px;
}

.auth-role-list,
.auth-permission-editor,
.auth-card {
    min-height: 0;
    border: 1px solid rgba(0, 212, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .035);
}

.auth-role-list {
    padding: 10px;
    overflow-y: auto;
}

.auth-role-card,
.auth-user-card {
    width: 100%;
    border: 1px solid rgba(0, 212, 255, .1);
    border-radius: 7px;
    background: rgba(0, 212, 255, .035);
    color: rgba(255, 255, 255, .68);
    cursor: pointer;
    text-align: left;
    transition: all .18s ease;
}

.auth-role-card {
    min-height: 78px;
    padding: 11px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.auth-role-card:hover,
.auth-role-card.active,
.auth-user-card:hover {
    border-color: rgba(0, 212, 255, .38);
    background: rgba(0, 212, 255, .08);
}

.auth-role-card strong {
    color: #fff;
    font-size: 14px;
}

.auth-role-card span {
    color: rgba(255, 255, 255, .42);
    font-size: 12px;
    line-height: 1.4;
}

.auth-role-card em {
    color: rgba(0, 212, 255, .78);
    font-size: 11px;
    font-style: normal;
}

.auth-permission-editor {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.auth-permission-head {
    height: 64px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.auth-permission-head h4 {
    color: #fff;
    font-size: 15px;
}

.auth-permission-head p {
    margin-top: 3px;
    color: rgba(255, 255, 255, .38);
    font-size: 12px;
}

.auth-permission-tree {
    flex: 1;
    min-height: 0;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    overflow-y: auto;
}

.auth-permission-group {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 7px;
    background: rgba(0, 0, 0, .12);
}

.auth-permission-item {
    min-height: 30px;
    display: grid;
    grid-template-columns: 18px minmax(70px, 1fr) minmax(80px, auto);
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
}

.auth-permission-item.module {
    margin-bottom: 6px;
    color: #fff;
    font-weight: 600;
}

.auth-permission-item input {
    accent-color: #00d4ff;
}

.auth-permission-item em {
    overflow: hidden;
    color: rgba(255, 255, 255, .25);
    font-size: 10px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-permission-children {
    padding-left: 9px;
    border-left: 1px solid rgba(0, 212, 255, .1);
}

.auth-city-permission-group {
    grid-column: 1 / -1;
    padding: 12px;
    border-color: rgba(0, 212, 255, .16);
    background: linear-gradient(135deg, rgba(0, 212, 255, .055), rgba(0, 0, 0, .16));
}

.auth-city-permission-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.auth-city-permission-head span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.auth-city-permission-head strong {
    color: #fff;
    font-size: 13px;
}

.auth-city-permission-head em {
    color: rgba(255, 255, 255, .38);
    font-size: 11px;
    font-style: normal;
}

.auth-city-permission-head b {
    flex: 0 0 auto;
    padding: 3px 8px;
    border: 1px solid rgba(0, 212, 255, .22);
    border-radius: 6px;
    color: #00d4ff;
    font-size: 11px;
    font-weight: 500;
    background: rgba(0, 212, 255, .06);
}

.auth-city-permission-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.auth-city-permission-actions button {
    height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(0, 212, 255, .16);
    border-radius: 6px;
    color: rgba(255, 255, 255, .74);
    background: rgba(255, 255, 255, .045);
    cursor: pointer;
}

.auth-city-permission-actions button:hover {
    border-color: rgba(0, 212, 255, .42);
    color: #00d4ff;
}

.auth-city-permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
    gap: 8px;
}

.auth-city-permission-item {
    min-height: 42px;
    padding: 7px 8px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 7px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 7px;
    color: rgba(255, 255, 255, .72);
    background: rgba(0, 0, 0, .14);
}

.auth-city-permission-item input {
    grid-row: 1 / 3;
    accent-color: #00d4ff;
}

.auth-city-permission-item span,
.auth-city-permission-item em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-city-permission-item span {
    font-size: 12px;
}

.auth-city-permission-item em {
    color: rgba(255, 255, 255, .3);
    font-size: 10px;
    font-style: normal;
}

.auth-admin-users {
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 14px;
}

.auth-card {
    padding: 14px;
    overflow: hidden;
}

.auth-card-title {
    margin-bottom: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.auth-user-list {
    height: calc(100% - 28px);
    overflow-y: auto;
}

.auth-user-card {
    min-height: 58px;
    margin-bottom: 8px;
    padding: 9px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.auth-user-card i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 212, 255, .1);
    border: 1px solid rgba(0, 212, 255, .26);
    color: #fff;
    font-style: normal;
}

.auth-user-card span {
    min-width: 0;
}

.auth-user-card strong,
.auth-user-card em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-user-card strong {
    color: #fff;
    font-size: 13px;
}

.auth-user-card em {
    margin-top: 3px;
    color: rgba(255, 255, 255, .36);
    font-size: 11px;
    font-style: normal;
}

.auth-user-card b {
    color: rgba(0, 212, 255, .78);
    font-size: 11px;
    font-weight: 500;
}

.auth-user-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.auth-user-form label {
    color: rgba(255, 255, 255, .48);
    font-size: 12px;
}

.auth-user-form input,
.auth-user-form select {
    width: 100%;
    height: 36px;
    margin-top: 6px;
    padding: 0 10px;
    border: 1px solid rgba(0, 212, 255, .16);
    border-radius: 6px;
    outline: none;
    background: rgba(0, 212, 255, .045);
    color: rgba(255, 255, 255, .82);
}

.auth-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.auth-empty {
    padding: 18px;
    color: rgba(255, 255, 255, .35);
    text-align: center;
}

.airspace-import-modal {
    max-width: 440px;
}

.kml-mode-radio {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 34px;
}

.kml-mode-radio label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    font-size: 13px;
}

.kml-mode-radio input {
    margin: 0;
    accent-color: #00d4ff;
    cursor: pointer;
}

.kml-file-box {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px dashed rgba(0, 212, 255, 0.35);
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.045);
    cursor: pointer;
    transition: all .2s ease;
}

.kml-file-box:hover {
    border-color: rgba(0, 212, 255, 0.65);
    background: rgba(0, 212, 255, 0.075);
}

.kml-file-box strong,
.kml-file-box span {
    display: block;
}

.kml-file-box strong {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.kml-file-box span {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 11px;
}

.kml-import-hint {
    padding: 9px 10px;
    border: 1px solid rgba(255, 212, 59, 0.18);
    border-radius: 6px;
    background: rgba(255, 212, 59, 0.055);
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    line-height: 1.55;
}

/* Unified select style: aligned with editable policy grid/approval controls */
select {
    width: 100%;
    min-width: 0;
    height: 36px !important;
    padding: 0 34px 0 12px !important;
    border: 1px solid rgba(0, 212, 255, 0.15) !important;
    border-radius: 6px !important;
    outline: none !important;
    background-color: rgba(0, 212, 255, 0.04) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(0,212,255,0.68)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 14px !important;
    color: rgba(255, 255, 255, 0.72) !important;
    font-family: var(--font-cn) !important;
    font-size: 13px !important;
    line-height: 36px;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

select:hover {
    border-color: rgba(0, 212, 255, 0.4) !important;
    color: rgba(255, 255, 255, 0.86) !important;
}

select:focus {
    border-color: rgba(0, 212, 255, 0.78) !important;
    background-color: rgba(0, 212, 255, 0.06) !important;
    box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.12), 0 0 14px rgba(0, 212, 255, 0.12), inset 0 0 10px rgba(0, 212, 255, 0.03) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

select:disabled {
    opacity: .48;
    cursor: not-allowed;
}

select option {
    background: #08142d;
    color: rgba(255, 255, 255, 0.78);
}

.record-filter-grid select,
.auth-user-form select,
.route-drawer .form-group select {
    background-color: rgba(0, 212, 255, 0.04) !important;
    border-color: rgba(0, 212, 255, 0.15) !important;
}
/* AI analysis module */
.ai-analysis-page {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 18px;
    pointer-events: auto;
    padding: 18px 24px 24px;
    background: var(--bg-gradient-center, #030810);
}

.ai-analysis-side,
.ai-analysis-main {
    min-height: 0;
    position: relative;
    overflow: hidden;
    background: rgba(8, 20, 45, 0.88);
    border: 1px solid rgba(0, 212, 255, 0.15);
    box-shadow: var(--glow-cyan);
    backdrop-filter: blur(18px);
}

.ai-analysis-side > *:not(.dot-grid):not(.scifi-corner),
.ai-analysis-main > *:not(.dot-grid):not(.scifi-corner) {
    position: relative;
    z-index: 1;
}

.ai-analysis-side {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-analysis-main {
    padding: 20px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 16px;
}

.ai-side-head,
.ai-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.22);
    padding-bottom: 14px;
}

.ai-side-head h3,
.ai-chat-head h2 {
    margin: 4px 0 0;
    color: var(--cyan);
    letter-spacing: 0;
}

.ai-kicker {
    color: rgba(170, 204, 222, 0.68);
    font-size: 11px;
    letter-spacing: 0;
    font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
}

.ai-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid rgba(0, 212, 255, 0.45);
    background: rgba(0, 212, 255, 0.08);
    color: var(--cyan);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.ai-provider-pill {
    min-width: 72px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 212, 255, 0.35);
    color: var(--text-secondary);
    background: rgba(0, 212, 255, 0.08);
    text-align: center;
    font-size: 13px;
}

.ai-side-section {
    min-height: 0;
}

.ai-history-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ai-side-title {
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 10px;
}

.ai-template-list,
.ai-history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai-history-list {
    overflow: auto;
    padding-right: 4px;
}

.ai-template-item,
.ai-history-item {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(0, 128, 255, 0.08);
    background: rgba(0, 128, 255, 0.03);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 10px;
    cursor: pointer;
    transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.ai-template-item {
    position: relative;
    min-height: 78px;
    padding: 10px 76px 10px 12px;
    border-left: 3px solid #00d4ff;
}

.ai-template-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ai-template-actions {
    position: absolute;
    top: 11px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ai-template-action {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-sm);
    background: rgba(0, 212, 255, 0.08);
    color: #00d4ff;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.ai-template-action svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ai-template-action:hover {
    border-color: rgba(0, 212, 255, 0.45);
    background: rgba(0, 212, 255, 0.15);
    color: var(--cyan);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.14);
}

.ai-template-action.delete {
    border-color: rgba(255, 71, 87, 0.28);
    background: rgba(255, 71, 87, 0.08);
    color: #ff4757;
    font-size: 17px;
    line-height: 1;
}

.ai-template-action.delete:hover {
    border-color: rgba(255, 71, 87, 0.45);
    background: rgba(255, 71, 87, 0.15);
    color: #ff6f8d;
    box-shadow: 0 0 12px rgba(255, 71, 87, 0.18);
}

.ai-history-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-history-item.empty {
    cursor: default;
}

.ai-history-item-main {
    min-width: 0;
    flex: 1;
}

.ai-history-delete {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 74, 103, 0.55);
    border-radius: 5px;
    background: rgba(255, 74, 103, 0.05);
    color: #ff4f72;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.ai-history-delete:hover {
    border-color: rgba(255, 74, 103, 0.9);
    background: rgba(255, 74, 103, 0.16);
    color: #ff6f8d;
    box-shadow: 0 0 12px rgba(255, 74, 103, 0.18);
}

.ai-template-item:hover,
.ai-history-item:hover,
.ai-history-item.active {
    border-color: rgba(0, 128, 255, 0.18);
    background: rgba(0, 128, 255, 0.06);
    transform: translateX(2px);
    box-shadow: 0 0 16px rgba(0,128,255,0.06);
}

.ai-history-item.empty:hover {
    border-color: rgba(0, 212, 255, 0.22);
    background: rgba(4, 23, 42, 0.72);
}

.ai-template-item strong,
.ai-history-item strong {
    display: block;
    color: var(--cyan);
    margin-bottom: 5px;
}

.ai-template-item span,
.ai-history-item span {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.45;
}

.ai-template-item.custom {
    border-color: rgba(57, 229, 140, 0.32);
}

.ai-template-item.custom strong::after {
    content: '自定义';
    display: inline-flex;
    align-items: center;
    height: 18px;
    margin-left: 8px;
    padding: 0 7px;
    border-radius: 999px;
    border: 1px solid rgba(57, 229, 140, 0.36);
    color: #39e58c;
    font-size: 11px;
    font-weight: 700;
}

.ai-template-edit-modal textarea {
    width: 100%;
    resize: vertical;
    min-height: 118px;
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 6px;
    background: rgba(1, 13, 24, 0.86);
    color: var(--text-primary);
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.55;
    outline: none;
}

.ai-template-edit-modal textarea:focus {
    border-color: rgba(0, 212, 255, 0.72);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.1);
}

.ai-template-item strong {
    display: block;
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-template-item span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ai-template-item.custom {
    border-color: rgba(0, 128, 255, 0.08);
    border-left: 3px solid #00d4ff;
    background: rgba(0, 128, 255, 0.03);
}

.ai-template-item:hover,
.ai-template-item.custom:hover {
    border-left-color: #00d4ff;
}

.ai-template-item.custom strong::after {
    content: '自定义';
    display: inline-flex;
    align-items: center;
    height: 18px;
    margin-left: 8px;
    padding: 0 7px;
    border-radius: 999px;
    border: 1px solid rgba(57, 229, 140, 0.36);
    color: #39e58c;
    font-size: 10px;
    font-weight: 700;
    vertical-align: 1px;
}

.ai-chat-messages {
    min-height: 0;
    overflow: auto;
    padding-right: 6px;
}

.ai-message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 14px;
}

.ai-message.user {
    align-items: flex-end;
}

.ai-bubble {
    width: min(860px, 88%);
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-radius: 8px;
    padding: 14px;
    background: rgba(4, 21, 39, 0.82);
    color: var(--text-primary);
    line-height: 1.65;
    white-space: pre-wrap;
}

.ai-message.user .ai-bubble {
    width: auto;
    max-width: 720px;
    background: rgba(0, 212, 255, 0.14);
    border-color: rgba(0, 212, 255, 0.45);
}

.ai-message-meta {
    width: min(860px, 88%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-height: 22px;
    padding: 5px 4px 0;
    color: rgba(185, 205, 220, 0.72);
    opacity: 0;
    transform: translateY(-2px);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.ai-message:hover .ai-message-meta,
.ai-message:focus-within .ai-message-meta {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ai-message.user .ai-message-meta {
    width: auto;
    max-width: 720px;
}

.ai-message-time {
    font-size: 12px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ai-copy-btn,
.ai-template-add-btn {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    color: rgba(185, 205, 220, 0.78);
    background: transparent;
    cursor: pointer;
    transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.ai-copy-btn svg,
.ai-template-add-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ai-copy-btn:hover,
.ai-copy-btn.copied,
.ai-template-add-btn:hover {
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.12);
}

.ai-copy-btn:active,
.ai-template-add-btn:active {
    transform: scale(0.94);
}

.ai-visual-block {
    margin-top: 12px;
    border-top: 1px solid rgba(0, 212, 255, 0.16);
    padding-top: 12px;
}

.ai-visual-title {
    color: var(--cyan);
    font-weight: 700;
    margin-bottom: 10px;
}

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

.ai-metric {
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-radius: 6px;
    background: rgba(0, 212, 255, 0.07);
    padding: 12px;
}

.ai-metric b {
    display: block;
    color: var(--cyan);
    font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
    font-size: 24px;
}

.ai-metric span {
    color: var(--text-secondary);
    font-size: 12px;
}

.ai-scope-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ai-scope-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-radius: 6px;
    background: rgba(0, 212, 255, 0.06);
    padding: 9px 11px;
}

.ai-scope-item span {
    color: var(--text-secondary);
    font-size: 12px;
}

.ai-scope-item b {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}

.ai-confirmation {
    border: 1px solid rgba(255, 184, 0, 0.26);
    border-radius: 6px;
    background: rgba(255, 184, 0, 0.07);
    padding: 12px;
}

.ai-confirmation p {
    margin: 0 0 6px;
    color: var(--text-primary);
    line-height: 1.55;
}

.ai-confirmation span {
    color: rgba(255, 216, 128, 0.9);
    font-size: 12px;
}

.ai-chart {
    width: 100%;
    height: 240px;
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-radius: 6px;
    background: rgba(1, 14, 28, 0.5);
}

.ai-fallback-bars {
    display: flex;
    align-items: flex-end;
    height: 220px;
    gap: 6px;
    padding: 14px;
}

.ai-fallback-bar {
    flex: 1;
    min-width: 8px;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.95), rgba(0, 212, 255, 0.18));
    border-radius: 4px 4px 0 0;
}

.ai-table-wrap {
    overflow: auto;
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-radius: 6px;
}

.ai-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.ai-table th,
.ai-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.12);
    text-align: left;
    color: var(--text-primary);
    font-size: 13px;
}

.ai-table th {
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.08);
}

.ai-route-overview {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.ai-route-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ai-info-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.12);
    padding: 8px 0;
}

.ai-info-row span:first-child {
    color: var(--text-secondary);
}

.ai-info-row span:last-child {
    color: var(--text-primary);
    text-align: right;
}

.ai-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 12px;
}

.ai-confirm-btn {
    min-height: 44px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 14px;
}

.ai-confirm-btn strong {
    font-size: 14px;
    font-weight: 700;
}

.ai-confirm-btn span {
    font-size: 11px;
    color: rgba(210, 236, 255, 0.72);
}

.ai-business-summary {
    display: flex;
    align-items: baseline;
    gap: 10px;
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-radius: 6px;
    background: rgba(0, 212, 255, 0.07);
    padding: 12px 14px;
}

.ai-business-summary strong {
    color: var(--cyan);
    font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
    font-size: 26px;
}

.ai-business-summary span,
.ai-business-scope span {
    color: var(--text-secondary);
    font-size: 13px;
}

.ai-business-scope {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 12px;
}

.ai-business-scope span {
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.06);
    padding: 5px 10px;
}

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

.ai-flight-card {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(130px, 0.6fr);
    gap: 6px 14px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-left: 3px solid #2ed573;
    border-radius: 6px;
    background: rgba(2, 20, 36, 0.76);
    color: var(--text-primary);
    padding: 12px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.ai-flight-card:hover {
    border-color: rgba(0, 212, 255, 0.55);
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-1px);
}

.ai-flight-card.risk-medium { border-left-color: #ffa502; }
.ai-flight-card.risk-high { border-left-color: #ff4757; }

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

  .ai-entity-summary {
      margin: 0 0 10px;
      color: var(--text-secondary);
      font-size: 12px;
      line-height: 1.6;
  }

  .ai-entity-pagination {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 12px;
      color: var(--text-secondary);
      font-size: 12px;
  }

  .ai-entity-pagination button {
      min-width: 68px;
      height: 30px;
      border: 1px solid rgba(0, 212, 255, 0.42);
      border-radius: 4px;
      background: rgba(0, 212, 255, 0.08);
      color: var(--cyan);
      cursor: pointer;
  }

  .ai-entity-pagination button:hover:not(:disabled) {
      background: rgba(0, 212, 255, 0.16);
  }

  .ai-entity-pagination button:disabled {
      opacity: 0.42;
      cursor: not-allowed;
  }

.ai-entity-item {
    border: 1px solid rgba(0, 212, 255, 0.16);
    border-radius: 6px;
    background: rgba(2, 15, 29, 0.42);
    overflow: hidden;
}

.ai-entity-card {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border: 0;
    border-left: 3px solid rgba(0, 212, 255, 0.82);
    background: rgba(2, 20, 36, 0.76);
    color: var(--text-primary);
    padding: 12px;
    text-align: left;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.ai-entity-card:hover,
.ai-entity-card.active {
    background: rgba(0, 212, 255, 0.1);
}

.ai-entity-card strong {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-entity-card span {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-entity-card b {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 600;
}

.ai-entity-expand {
    padding: 0 12px 12px;
}

.ai-entity-detail {
    display: block;
}

.ai-flight-card div {
    min-width: 0;
}

.ai-flight-card strong,
.ai-flight-card b {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-flight-card b {
    color: #ffcc55;
}

.ai-flight-card span {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-flight-empty,
.ai-flight-loading {
    border: 1px solid rgba(0, 212, 255, 0.16);
    border-radius: 6px;
    color: var(--text-secondary);
    background: rgba(2, 15, 29, 0.55);
    padding: 16px;
    text-align: center;
}

.ai-flight-detail {
    margin-top: 12px;
}

.ai-flight-detail-card {
    border: 1px solid rgba(0, 212, 255, 0.24);
    border-radius: 6px;
    background: rgba(2, 15, 29, 0.68);
    padding: 12px;
}

.ai-entity-analysis {
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-left: 3px solid rgba(0, 212, 255, 0.85);
    border-radius: 6px;
    background: rgba(0, 212, 255, 0.06);
    padding: 10px 12px;
    margin: 10px 0;
}

.ai-entity-analysis strong {
    display: block;
    color: var(--cyan);
    font-size: 13px;
    margin-bottom: 5px;
}

.ai-entity-analysis p {
    margin: 0;
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.7;
}

.ai-entity-analysis em {
    display: inline-block;
    color: var(--text-secondary);
    font-style: normal;
    font-size: 12px;
    margin-left: 4px;
}

.ai-place-name {
    color: #9be7ff;
    font-weight: 600;
}

.ai-flight-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.ai-flight-detail-head strong {
    color: var(--cyan);
    font-size: 15px;
}

.ai-flight-detail-head span {
    color: #9be7ff;
    font-size: 12px;
    border: 1px solid rgba(0, 212, 255, 0.24);
    border-radius: 999px;
    padding: 3px 9px;
}

.ai-mini-map {
    position: relative;
    height: 220px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.12), transparent 36%), rgba(1, 14, 28, 0.86);
}

.ai-real-map {
    min-height: 260px;
}

.ai-real-map .cesium-viewer,
.ai-real-map .cesium-widget,
.ai-real-map .cesium-widget canvas {
    width: 100% !important;
    height: 100% !important;
}

.ai-real-map .cesium-viewer-bottom,
.ai-real-map .cesium-viewer-toolbar,
.ai-real-map .cesium-credit-textContainer,
.ai-real-map .cesium-credit-logoContainer {
    display: none !important;
}

.ai-map-loading {
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--text-secondary);
    background: rgba(1, 14, 28, 0.72);
}

.ai-mini-map.empty {
    display: grid;
    place-items: center;
    color: var(--text-secondary);
}

.ai-mini-map svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ai-mini-map .track-shadow {
    fill: none;
    stroke: rgba(0, 0, 0, 0.5);
    stroke-width: 8;
}

.ai-mini-map .track-line {
    fill: none;
    stroke: #00d4ff;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ai-mini-map .start-dot { fill: #2ed573; stroke: #ffffff; stroke-width: 2; }
.ai-mini-map .end-dot { fill: #9be7ff; stroke: #ffffff; stroke-width: 2; }
.ai-mini-map .risk-dot { fill: #ff4757; stroke: #ffffff; stroke-width: 1.5; }

.ai-mini-map .map-tag {
    position: absolute;
    top: 10px;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    color: #dff8ff;
    background: rgba(0, 20, 36, 0.78);
    border: 1px solid rgba(0, 212, 255, 0.22);
}

.ai-mini-map .map-tag.start { left: 10px; }
.ai-mini-map .map-tag.end { right: 10px; }

.ai-flight-desc p {
    margin: 10px 0;
    color: var(--text-primary);
    line-height: 1.65;
}

.ai-flight-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ai-flight-facts div {
    border: 1px solid rgba(0, 212, 255, 0.14);
    border-radius: 6px;
    background: rgba(0, 212, 255, 0.05);
    padding: 8px 10px;
}

.ai-flight-facts span {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
}

.ai-flight-facts b {
    display: block;
    color: var(--text-primary);
    margin-top: 3px;
    font-size: 13px;
}

.ai-chat-input-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 12px;
    align-items: end;
    border-top: 1px solid rgba(0, 212, 255, 0.22);
    padding-top: 14px;
}

.ai-input-field {
    position: relative;
    min-width: 0;
}

.ai-chat-input-wrap textarea {
    width: 100%;
    min-height: 96px;
    resize: none;
    border: 1px solid rgba(0, 212, 255, 0.32);
    border-radius: 6px;
    background: rgba(2, 15, 29, 0.88);
    color: var(--text-primary);
    padding: 12px 58px 12px 14px;
    outline: none;
    line-height: 1.55;
}

.ai-chat-input-wrap textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.18);
}

.ai-voice-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 212, 255, 0.34);
    border-radius: 6px;
    background: rgba(0, 212, 255, 0.08);
    color: var(--cyan);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.ai-voice-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ai-voice-btn:hover {
    border-color: var(--cyan);
    background: rgba(0, 212, 255, 0.16);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.18);
}

.ai-voice-btn.listening {
    color: #ffcf33;
    border-color: rgba(255, 207, 51, 0.65);
    background: rgba(255, 207, 51, 0.13);
    box-shadow: 0 0 0 4px rgba(255, 207, 51, 0.08), 0 0 16px rgba(255, 207, 51, 0.22);
}

.ai-voice-btn.listening::after {
    content: "";
    position: absolute;
    inset: -5px;
    border: 1px solid rgba(255, 207, 51, 0.36);
    border-radius: 8px;
    animation: aiVoicePulse 1.2s ease-out infinite;
}

.ai-voice-btn:disabled {
    color: rgba(148, 163, 184, 0.72);
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(148, 163, 184, 0.06);
    cursor: not-allowed;
    box-shadow: none;
}

@keyframes aiVoicePulse {
    0% {
        opacity: 0.85;
        transform: scale(0.9);
    }
    100% {
        opacity: 0;
        transform: scale(1.22);
    }
}

.ai-send-btn {
    height: 64px;
}

.ai-empty {
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--text-secondary);
    text-align: center;
}

.ai-empty strong {
    display: block;
    color: var(--cyan);
    font-size: 22px;
    margin-bottom: 8px;
}

@media (max-width: 1100px) {
    .ai-analysis-page {
        grid-template-columns: 340px minmax(0, 1fr);
        left: 12px;
        right: 12px;
    }
    .ai-route-overview {
        grid-template-columns: 1fr;
    }
    .ai-route-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .ai-analysis-page {
        top: 70px;
        grid-template-columns: 1fr;
    }
    .ai-analysis-side {
        display: none;
    }
    .ai-chat-input-wrap {
        grid-template-columns: 1fr;
    }
}
