/* T-ranno CITY — 전체 스타일 (index에서 분리) */

    :root {
      --bg-0: #02100f;
      --bg-1: #041a18;
      --bg-2: #072320;
      --bg-3: #0d302c;
      --line-1: rgba(31, 196, 181, 0.12);
      --line-2: rgba(31, 196, 181, 0.28);
      --cyan: #1fc4b5;
      --cyan-soft: #5fd3c6;
      --mint: #74cfa9;
      --yellow: #e8cf58;
      --amber: #e2a45c;
      --pink: #e25984;
      --text-0: #d7e9e7;
      --text-1: rgba(215, 233, 231, 0.72);
      --text-2: rgba(215, 233, 231, 0.45);
      --text-3: rgba(215, 233, 231, 0.28);
    }
    * { box-sizing: border-box; }
    html, body {
      margin: 0; padding: 0; height: 100%;
      font-family: 'Noto Sans KR', 'Inter', sans-serif;
      background: var(--bg-0);
      color: var(--text-0);
      -webkit-font-smoothing: antialiased;
    }

    /* 배경 그리드 + 비네트 */
    body::before {
      content: '';
      position: fixed; inset: 0; z-index: 0; pointer-events: none;
      background:
        linear-gradient(transparent 0, transparent calc(100% - 1px), rgba(31,196,181,0.04) 100%) 0 0 / 100% 32px,
        linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(31,196,181,0.04) 100%) 0 0 / 32px 100%,
        radial-gradient(ellipse at 50% 100%, rgba(31,196,181,0.06), transparent 60%);
    }

    .app {
      display: flex; height: 100vh; overflow: hidden; position: relative; z-index: 1;
    }

    /* ── 왼쪽 사이드바 ── */
    /* UBES Phase 8.4: 사이드바 폭을 CSS 변수로 분리 → JS 리사이저가 조절 */
    :root { --sidebar-width: 200px; }
    .sidebar {
      width: var(--sidebar-width);
      flex-shrink: 0;
      background:
        linear-gradient(180deg, rgba(31,196,181,0.03), transparent 30%),
        #02110f;
      border-right: 1px solid var(--line-1);
      display: flex; flex-direction: column;
      position: relative;
    }
    .sidebar::after {
      content: '';
      position: absolute; top: 0; right: -1px; width: 1px; height: 100%;
      background: linear-gradient(180deg, transparent, var(--cyan) 20%, var(--cyan) 80%, transparent);
      opacity: 0.25;
    }

    /* ── 사이드바 ↔ 채팅 리사이저 (col-resizer와 동일 디자인) ── */
    .sidebar-resizer {
      width: 5px;
      flex-shrink: 0;
      cursor: col-resize;
      background: transparent;
      position: relative;
      z-index: 5;
      transition: background 0.15s;
    }
    .sidebar-resizer::before {
      content: '';
      position: absolute;
      left: 50%; top: 0; bottom: 0;
      width: 1px;
      background: var(--line-1);
      transform: translateX(-50%);
    }
    .sidebar-resizer:hover,
    .sidebar-resizer.dragging {
      background: rgba(31, 196, 181, 0.12);
    }
    .sidebar-resizer:hover::before,
    .sidebar-resizer.dragging::before {
      background: var(--cyan);
      box-shadow: 0 0 6px var(--cyan);
    }

    .brand {
      padding: 14px 13px 11px;
      border-bottom: 1px solid var(--line-1);
      display: flex; align-items: baseline; gap: 7px;
    }
    .brand-mark {
      font-family: 'Noto Sans KR', 'Inter', sans-serif;
      font-size: 16px; font-weight: 800;
      letter-spacing: -0.4px;
      color: var(--text-0);
      text-shadow: 0 0 14px rgba(31, 196, 181, 0.55);
    }
    .brand-mark .dot { color: var(--cyan); }
    .brand-sub {
      font-family: 'JetBrains Mono', monospace;
      font-size: 8px; letter-spacing: 2px;
      color: var(--cyan); font-weight: 500;
      padding: 1px 5px;
      border: 1px solid var(--line-2);
      border-radius: 3px;
      background: rgba(31,196,181,0.06);
    }

    .new-chat {
      margin: 10px 10px 3px;
      padding: 8px 10px;
      background: linear-gradient(180deg, rgba(31,196,181,0.12), rgba(31,196,181,0.04));
      border: 1px solid var(--line-2);
      border-radius: 6px;
      color: var(--cyan-soft);
      font-family: inherit;
      font-size: 11px; font-weight: 500;
      cursor: pointer;
      display: flex; align-items: center; gap: 6px;
      transition: all 0.18s ease;
      letter-spacing: -0.1px;
    }
    .new-chat:hover {
      background: linear-gradient(180deg, rgba(31,196,181,0.22), rgba(31,196,181,0.08));
      border-color: var(--cyan);
      color: var(--text-0);
      box-shadow: 0 0 0 1px rgba(31,196,181,0.4), 0 6px 20px -6px rgba(31,196,181,0.5);
    }
    .new-chat svg { stroke: var(--cyan); }

    .log-section-label {
      padding: 12px 14px 4px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px; letter-spacing: 1.2px;
      color: var(--text-3); text-transform: uppercase;
      font-weight: 600;
      display: flex; align-items: center; gap: 6px;
    }
    .log-section-label::after {
      content: ''; flex: 1; height: 1px;
      background: linear-gradient(90deg, var(--line-1), transparent);
    }

    .log-list { flex: 1; overflow-y: auto; padding: 0 6px 9px; }
    .log-list::-webkit-scrollbar { width: 5px; }
    .log-list::-webkit-scrollbar-thumb { background: rgba(31,196,181,0.18); border-radius: 3px; }
    .log-list::-webkit-scrollbar-track { background: transparent; }

    .log-item {
      padding: 6px 9px; margin: 1px 0;
      border-radius: 5px; border: 1px solid transparent;
      font-size: 11px;
      color: var(--text-1);
      cursor: pointer;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      transition: all 0.15s ease;
      display: flex; align-items: center; gap: 6px;
      position: relative;
    }
    .log-item::before {
      content: ''; width: 3px; height: 3px; border-radius: 50%;
      background: var(--text-3); flex-shrink: 0;
      transition: all 0.15s ease;
    }
    .log-item:hover {
      background: rgba(31,196,181,0.05);
      color: var(--text-0);
    }
    .log-item:hover::before { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
    .log-item.active {
      background: linear-gradient(90deg, rgba(31,196,181,0.14), transparent);
      border-color: var(--line-2);
      color: var(--text-0);
    }
    .log-item.active::before { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
    .log-item .log-time {
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px;
      color: var(--text-3);
      flex-shrink: 0; margin-left: auto;
    }

    .sidebar-footer {
      border-top: 1px solid var(--line-1);
      padding: 10px 10px;
      min-height: 50px;
      display: flex; align-items: center; gap: 8px;
      font-size: 11px; color: var(--text-2);
      background: rgba(31,196,181,0.03);
    }
    .user-avatar {
      width: 26px; height: 26px; border-radius: 5px;
      background: linear-gradient(135deg, var(--cyan), var(--mint));
      display: flex; align-items: center; justify-content: center;
      color: var(--bg-0); font-weight: 700; font-size: 11px;
      flex-shrink: 0;
      box-shadow: 0 0 12px rgba(31, 196, 181, 0.5);
    }
    .user-meta strong {
      display: block;
      color: var(--text-0); font-weight: 500; font-size: 11px;
    }
    .user-meta span { font-size: 9px; color: var(--text-2); }

    /* ── 중앙: 채팅 ── */
    .chat-col {
      flex: 1; min-width: 0;
      display: flex; flex-direction: column;
      background: var(--bg-1);
      border-right: 1px solid var(--line-1);
      position: relative;
    }
    .chat-header {
      height: 42px; flex-shrink: 0;
      padding: 0 18px;
      display: flex; align-items: center; justify-content: space-between;
      border-bottom: 1px solid var(--line-1);
      background: var(--bg-1);
      position: relative;
    }
    .chat-header::after {
      content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
      background: linear-gradient(90deg, transparent, var(--cyan) 50%, transparent);
      opacity: 0.4;
    }
    .chat-title {
      font-size: 12px; font-weight: 600;
      color: var(--text-0);
      display: flex; align-items: center; gap: 9px;
      letter-spacing: -0.1px;
    }
    .chat-title .live-dot {
      width: 6px; height: 6px; border-radius: 50%;
      background: var(--mint);
      box-shadow: 0 0 8px var(--mint);
      animation: pulse 1.6s ease-in-out infinite;
    }
    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.55; transform: scale(0.9); }
    }
    .chat-title .badge {
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px; padding: 2px 6px;
      background: rgba(232, 207, 88, 0.08);
      color: var(--yellow);
      border: 1px solid rgba(232,207,88,0.3);
      border-radius: 3px;
      font-weight: 600; letter-spacing: 1.2px;
    }
    .chat-actions { display: flex; gap: 6px; }
    .chip-btn {
      padding: 4px 9px;
      border: 1px solid var(--line-2);
      border-radius: 3px;
      background: rgba(31,196,181,0.04);
      color: var(--text-1);
      font-family: inherit; font-size: 10px;
      cursor: pointer;
      transition: all 0.15s;
      letter-spacing: -0.1px;
    }
    .chip-btn:hover {
      border-color: var(--cyan);
      color: var(--cyan);
      box-shadow: 0 0 12px -2px rgba(31,196,181,0.4);
    }

    .chat-body {
      flex: 1; overflow-y: auto;
      padding: 20px 22px;
      background:
        radial-gradient(ellipse at 50% 0%, rgba(31,196,181,0.06), transparent 60%),
        var(--bg-1);
    }
    .chat-body::-webkit-scrollbar { width: 8px; }
    .chat-body::-webkit-scrollbar-thumb { background: rgba(31,196,181,0.18); border-radius: 4px; }
    .chat-body::-webkit-scrollbar-track { background: transparent; }

    .welcome { max-width: 540px; margin: 26px auto 0; text-align: center; }
    .welcome-eyebrow {
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px; letter-spacing: 2.4px;
      color: var(--cyan); font-weight: 600;
      margin-bottom: 10px;
      display: inline-flex; align-items: center; gap: 6px;
    }
    .welcome-eyebrow::before, .welcome-eyebrow::after {
      content: ''; width: 22px; height: 1px;
      background: linear-gradient(90deg, transparent, var(--cyan));
    }
    .welcome-eyebrow::after { background: linear-gradient(90deg, var(--cyan), transparent); }
    .welcome-title {
      font-family: 'Noto Sans KR', 'Inter', sans-serif;
      font-size: 28px; font-weight: 800;
      color: var(--text-0);
      letter-spacing: -1px;
      margin: 0 0 9px;
      text-shadow: 0 0 24px rgba(31, 196, 181, 0.35);
    }
    .welcome-title .city {
      background: linear-gradient(90deg, var(--cyan), var(--mint));
      -webkit-background-clip: text; background-clip: text;
      -webkit-text-fill-color: transparent;
      font-weight: 700;
    }
    .welcome-sub {
      font-size: 12px;
      color: var(--text-1);
      line-height: 1.6;
      margin-bottom: 22px;
    }
    .example-grid {
      display: grid; grid-template-columns: 1fr 1fr; gap: 7px;
      margin-top: 12px;
    }
    .example-card {
      text-align: left; padding: 10px 12px;
      border: 1px solid var(--line-1);
      border-radius: 6px;
      background:
        linear-gradient(180deg, rgba(31,196,181,0.04), transparent),
        var(--bg-2);
      cursor: pointer;
      transition: all 0.18s ease;
      font-family: inherit;
      position: relative; overflow: hidden;
    }
    .example-card::before {
      content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
      background: var(--cyan); transform: scaleY(0); transform-origin: top;
      transition: transform 0.2s ease;
    }
    .example-card:hover {
      border-color: var(--line-2);
      transform: translateY(-2px);
      box-shadow: 0 6px 24px -8px rgba(31,196,181,0.4);
    }
    .example-card:hover::before { transform: scaleY(1); }
    .example-card .tag {
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px; letter-spacing: 1.2px;
      color: var(--yellow);
      font-weight: 600; margin-bottom: 4px;
    }
    .example-card .q {
      font-size: 11px; color: var(--text-0);
      line-height: 1.5;
    }

    /* UBES Phase 8.9: 채팅 row 폭을 600px 고정 → 채팅 칼럼의 95%로 확장.
       chat-col이 좁아지면 따라 축소, 넓어지면 따라 확장. */
    .message {
      display: flex; gap: 9px; margin-bottom: 16px;
      max-width: 95%;
    }
    .message.bot  { margin-right: auto; margin-left: 0; }
    .message.user { margin-left: auto;  margin-right: 0; flex-direction: row-reverse; }
    .msg-avatar {
      width: 26px; height: 26px; border-radius: 5px;
      flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      font-size: 11px; font-weight: 700;
      font-family: 'Noto Sans KR', 'Inter', sans-serif;
    }
    .message.bot .msg-avatar {
      background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
      border: 1px solid var(--line-2);
      color: var(--cyan);
      box-shadow: 0 0 14px rgba(31,196,181,0.25);
    }
    .message.user .msg-avatar {
      background: linear-gradient(135deg, var(--cyan), var(--mint));
      color: var(--bg-0);
      box-shadow: 0 0 14px rgba(31,196,181,0.4);
    }
    .msg-bubble {
      padding: 9px 12px;
      border-radius: 8px;
      /* UBES Phase 8.21: 채팅 글자 12px → 14px (+2px) */
      font-size: 14px; line-height: 1.55;
      /* UBES Phase 8.10: 내용에 맞춰 동적 크기.
         - width:max-content → 짧은 메시지는 작게, 긴 메시지는 가장 긴 줄 폭만큼.
         - max-width:100% → row(.message, 채팅 칼럼 95%) 안에서 wrap. */
      width: max-content;
      max-width: 100%;
      min-width: 0;
      /* UBES Phase 5: LLM 응답의 \n을 줄바꿈으로 렌더, 긴 단어/URL은 줄바꿈 */
      white-space: pre-wrap;
      word-break: break-word;
    }
    .message.bot .msg-bubble {
      background: var(--bg-2);
      border: 1px solid var(--line-1);
      color: var(--text-0);
    }
    .message.user .msg-bubble {
      background: linear-gradient(135deg, rgba(31,196,181,0.18), rgba(116,207,169,0.1));
      border: 1px solid var(--line-2);
      color: var(--text-0);
    }

    .composer {
      flex-shrink: 0;
      /* GR Phase 2.5: 좌우 여백 최소화 (18px → 4px) */
      padding: 5px 4px 6px;
      background: var(--bg-1);
      border-top: 1px solid var(--line-1);
    }
    .composer-box {
      display: flex; align-items: center; gap: 8px;
      padding: 3px 5px 3px 10px;
      border: 1px solid var(--line-1);
      border-radius: 8px;
      background: var(--bg-2);
      transition: all 0.18s ease;
    }
    .composer-box:focus-within {
      border-color: var(--cyan);
      box-shadow: 0 0 0 2px rgba(31,196,181,0.15), 0 0 18px -6px rgba(31,196,181,0.5);
    }
    .composer textarea {
      flex: 1; border: none; outline: none; resize: none;
      font-family: inherit;
      /* UBES Phase 8.21: 입력창도 12px → 14px (+2px), 채팅 본문과 통일 */
      font-size: 14px;
      color: var(--text-0);
      padding: 3px 2px;
      max-height: 80px; line-height: 1.4;
      background: transparent;
    }
    .composer textarea::placeholder { color: var(--text-3); }
    .send-btn {
      flex-shrink: 0;
      width: 24px; height: 24px;
      border-radius: 6px; border: none;
      background: linear-gradient(135deg, var(--cyan), var(--mint));
      color: var(--bg-0);
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: all 0.18s ease;
      box-shadow: 0 0 12px -2px rgba(31,196,181,0.5);
    }
    .send-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 0 18px -2px rgba(31,196,181,0.8);
    }
    .composer-hint {
      text-align: center;
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px; letter-spacing: 0.4px;
      color: var(--text-3);
      margin-top: 3px;
    }

    /* ── 오른쪽: 지도 ── */
    .map-col {
      width: var(--map-width, 44%); min-width: 360px;
      flex-shrink: 0;
      position: relative;
      background: var(--bg-0);
      display: flex; flex-direction: column;
    }
    .map-stage {
      position: relative;
      flex: 0 0 56%;
      min-height: 120px;
    }
    #map { position: absolute; inset: 0; }

    /* 지도 ↔ 인사이트 패널 사이 리사이저 */
    .pane-resizer {
      flex: 0 0 6px;
      position: relative;
      cursor: row-resize;
      background: var(--bg-1);
      border-top: 1px solid var(--line-2);
      border-bottom: 1px solid var(--line-1);
      z-index: 6;
      transition: background 0.15s ease;
    }
    .pane-resizer::before {
      content: '';
      position: absolute;
      left: 50%; top: 50%;
      transform: translate(-50%, -50%);
      width: 44px; height: 3px;
      border-radius: 2px;
      background: var(--line-2);
      transition: background 0.15s ease, width 0.15s ease;
    }
    .pane-resizer:hover {
      background: rgba(31,196,181,0.06);
    }
    .pane-resizer:hover::before,
    .pane-resizer.dragging::before {
      background: var(--cyan);
      width: 64px;
      box-shadow: 0 0 10px rgba(31,196,181,0.6);
    }
    .pane-resizer.dragging {
      background: rgba(31,196,181,0.1);
    }
    body.resizing-pane { cursor: row-resize; user-select: none; }
    body.resizing-pane iframe, body.resizing-pane #map { pointer-events: none; }

    /* ── 지도 하단: 인사이트 + 랭킹 패널 ── */
    .insight-pane {
      flex: 1 1 44%;
      min-height: 0;
      overflow-y: auto;
      padding: 0 10px 14px;
      background:
        linear-gradient(180deg, rgba(31,196,181,0.04), transparent 30%),
        var(--bg-1);
      position: relative;
    }
    .insight-pane::-webkit-scrollbar { width: 6px; }
    .insight-pane::-webkit-scrollbar-thumb { background: rgba(31,196,181,0.18); border-radius: 3px; }
    .insight-pane::-webkit-scrollbar-track { background: transparent; }

    /* 자치구 · 동 셀렉터 (sticky 상단) */
    .region-selector {
      position: sticky; top: 0; z-index: 5;
      margin: 0 -10px 10px; padding: 7px 10px;
      background: rgba(2, 16, 15, 0.95);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--line-2);
      display: flex; align-items: center; gap: 6px;
    }
    .region-selector .rs-go {
      flex-shrink: 0;
      min-width: 56px;
      padding: 6px 14px;
      border: none;
      border-radius: 4px;
      background: linear-gradient(135deg, var(--cyan), var(--mint));
      color: var(--bg-0);
      font-family: inherit; font-size: 11px; font-weight: 700;
      letter-spacing: 0.3px;
      cursor: pointer;
      transition: all 0.15s ease;
      box-shadow: 0 0 10px -2px rgba(31,196,181,0.5);
      display: inline-flex; align-items: center; gap: 4px;
    }
    .region-selector .rs-go svg {
      width: 11px; height: 11px;
      stroke: var(--bg-0); stroke-width: 2.5;
      fill: none;
    }
    .region-selector .rs-go:hover {
      transform: translateY(-1px);
      box-shadow: 0 0 18px -2px rgba(31,196,181,0.85);
    }
    .region-selector .rs-go:active { transform: translateY(0); }
    .region-selector .rs-go.dirty {
      animation: gopulse 1.2s ease-in-out infinite;
    }
    @keyframes gopulse {
      0%, 100% { box-shadow: 0 0 10px -2px rgba(31,196,181,0.5); }
      50%      { box-shadow: 0 0 22px 1px rgba(31,196,181,1); }
    }
    .region-selector select {
      max-width: 130px;
    }
    .region-selector .rs-label {
      font-family: 'JetBrains Mono', monospace;
      font-size: 8px; letter-spacing: 1.2px;
      color: var(--text-3); font-weight: 600;
      text-transform: uppercase;
    }
    .region-selector select {
      flex: 1; min-width: 0;
      padding: 4px 8px;
      background: var(--bg-2);
      border: 1px solid var(--line-1);
      border-radius: 4px;
      color: var(--text-0);
      font-family: inherit; font-size: 10px;
      outline: none;
      cursor: pointer;
      transition: border-color 0.15s ease;
    }
    .region-selector select:focus,
    .region-selector select:hover { border-color: var(--cyan); }
    .region-selector option { background: var(--bg-2); color: var(--text-0); }
    .region-selector .rs-status {
      flex-shrink: 0;
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px;
      padding: 2px 6px;
      border-radius: 3px;
      letter-spacing: 0.5px;
    }
    .region-selector .rs-status.real {
      color: var(--bg-0);
      background: var(--cyan);
      font-weight: 600;
    }
    .region-selector .rs-status.demo {
      color: var(--text-2);
      background: rgba(215,233,231,0.06);
      border: 1px solid var(--line-1);
    }
    /* 데이터 없음 placeholder */
    .nodata-card {
      padding: 14px 12px;
      border: 1px dashed var(--line-2);
      border-radius: 6px;
      background: rgba(2, 16, 15, 0.4);
      color: var(--text-2);
      font-size: 11px;
      text-align: center;
      margin-bottom: 10px;
    }
    .nodata-card strong { color: var(--cyan); display: block; margin-bottom: 4px; font-size: 12px; }

    .pane-section-label {
      font-family: 'JetBrains Mono', monospace;
      font-size: 8px; letter-spacing: 1.5px; text-transform: uppercase;
      color: var(--text-3); font-weight: 600;
      margin: 3px 0 6px;
      display: flex; align-items: center; gap: 6px;
    }
    .pane-section-label::after {
      content: ''; flex: 1; height: 1px;
      background: linear-gradient(90deg, var(--line-1), transparent);
    }
    .pane-section-label .accent {
      color: var(--cyan);
      font-family: 'Inter', sans-serif; font-weight: 700;
      letter-spacing: 0;
    }

    .insight-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 6px;
      margin-bottom: 10px;
    }
    .insight-card {
      position: relative;
      padding: 8px 9px 8px 11px;
      border: 1px solid var(--line-2);
      border-radius: 6px;
      background:
        linear-gradient(180deg, rgba(31,196,181,0.05), transparent 60%),
        var(--bg-2);
      overflow: hidden;
      transition: all 0.18s ease;
      cursor: default;
    }
    .insight-card::before {
      content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
      background: var(--cyan);
    }
    .insight-card.cyan::before   { background: var(--cyan); }
    .insight-card.mint::before   { background: var(--mint); }
    .insight-card.yellow::before { background: var(--yellow); }
    .insight-card.amber::before  { background: var(--amber); }
    .insight-card.pink::before   { background: var(--pink); }
    .insight-card .ins-tag {
      font-family: 'JetBrains Mono', monospace;
      font-size: 8px; letter-spacing: 1.2px;
      color: var(--text-3); font-weight: 600;
      margin-bottom: 3px;
      text-transform: uppercase;
    }
    .insight-card .ins-title {
      font-size: 11px; font-weight: 600;
      color: var(--text-0); letter-spacing: -0.1px;
      margin-bottom: 3px; line-height: 1.3;
    }
    .insight-card .ins-body {
      font-size: 10px; color: var(--text-1);
      line-height: 1.5;
    }
    .insight-card .ins-body em {
      font-style: normal; color: var(--cyan); font-weight: 600;
    }

    /* 랭킹 테이블 */
    .ranking-table {
      border: 1px solid var(--line-1);
      border-radius: 6px;
      background: var(--bg-2);
      overflow: hidden;
    }
    .ranking-header {
      display: flex; align-items: center; gap: 6px;
      padding: 6px 9px;
      background: rgba(31,196,181,0.04);
      border-bottom: 1px solid var(--line-1);
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px; letter-spacing: 1.2px;
      color: var(--text-2); text-transform: uppercase;
    }
    .ranking-header strong {
      color: var(--text-0); font-weight: 600;
      font-family: 'Noto Sans KR', sans-serif;
      font-size: 10px; letter-spacing: -0.1px;
    }
    .ranking-header .unit-pill {
      margin-left: auto;
      padding: 1px 6px;
      border: 1px solid var(--line-2);
      border-radius: 999px;
      color: var(--cyan); font-size: 8px;
    }
    .ranking-row {
      display: grid;
      grid-template-columns: 18px 1fr 70px 44px;
      gap: 7px; align-items: center;
      padding: 5px 9px;
      border-bottom: 1px solid var(--line-1);
      font-size: 10px;
      cursor: pointer;
      transition: background 0.12s ease;
    }
    .ranking-row:last-child { border-bottom: none; }
    .ranking-row:hover {
      background: rgba(31,196,181,0.06);
    }
    .ranking-row .rank-no {
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px;
      color: var(--text-3); font-weight: 600;
    }
    .ranking-row .rank-name {
      color: var(--text-0);
      letter-spacing: -0.1px;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .ranking-row .rank-bar {
      height: 4px; border-radius: 2px;
      background: rgba(31,196,181,0.08);
      overflow: hidden;
    }
    .ranking-row .rank-bar .fill {
      display: block; height: 100%;
      background: var(--cyan);
      box-shadow: 0 0 6px rgba(31,196,181,0.5);
      border-radius: 2px;
    }
    .ranking-row .rank-val {
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px;
      color: var(--text-0); text-align: right;
      font-weight: 600;
    }
    .ranking-row.top-1 .rank-no    { color: var(--cyan); }
    .ranking-row.top-1 .rank-bar .fill { background: var(--cyan); }
    .ranking-row.top-2 .rank-bar .fill { background: var(--mint); }
    .ranking-row.top-3 .rank-bar .fill { background: var(--yellow); }

    /* ── 온톨로지 KG 뷰어 (TBox/ABox) ── */
    .ontology-overlay {
      position: absolute;
      top: 60px; left: 0; right: 0; bottom: 0;
      z-index: 12;
      background:
        radial-gradient(ellipse at 50% 30%, rgba(31,196,181,0.06), transparent 65%),
        rgba(2, 16, 15, 0.97);
      backdrop-filter: blur(10px);
      display: none;
      flex-direction: column;
    }
    .ontology-overlay.active { display: flex; }

    .kg-header {
      flex-shrink: 0;
      padding: 12px 14px 10px;
      border-bottom: 1px solid var(--line-1);
      display: flex; flex-direction: column; gap: 8px;
    }
    .kg-header-top {
      display: flex; align-items: center; gap: 10px;
    }
    .kg-title {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px; letter-spacing: 2px;
      color: var(--cyan); font-weight: 600;
      display: flex; align-items: center; gap: 8px;
    }
    .kg-title .v {
      padding: 2px 7px;
      background: rgba(31,196,181,0.08);
      border: 1px solid var(--line-2);
      border-radius: 3px;
      color: var(--cyan-soft); letter-spacing: 1.5px; font-size: 9px;
    }
    .kg-tabs {
      display: flex; gap: 2px; padding: 3px;
      background: rgba(4, 26, 24, 0.6);
      border: 1px solid var(--line-2);
      border-radius: 999px;
      margin-left: auto;
    }
    .kg-tab {
      padding: 5px 14px;
      border: none; background: transparent;
      border-radius: 999px;
      font-family: inherit; font-size: 11px; font-weight: 500;
      color: var(--text-1); cursor: pointer;
      letter-spacing: -0.1px;
      transition: all 0.15s ease;
    }
    .kg-tab:hover { color: var(--text-0); }
    .kg-tab.active {
      background: var(--cyan);
      color: var(--bg-0); font-weight: 600;
      box-shadow: 0 0 12px -2px rgba(31,196,181,0.6);
    }

    .kg-toolbar {
      display: flex; gap: 8px; align-items: center;
      flex-wrap: wrap;
    }
    .kg-search {
      flex: 1; min-width: 140px;
      padding: 6px 10px;
      background: var(--bg-2);
      border: 1px solid var(--line-1);
      border-radius: 6px;
      color: var(--text-0); font-family: inherit; font-size: 12px;
      outline: none;
      transition: border-color 0.15s ease;
    }
    .kg-search:focus { border-color: var(--cyan); }
    .kg-search::placeholder { color: var(--text-3); }
    .kg-meta {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px; color: var(--text-2);
      letter-spacing: 0.5px;
      white-space: nowrap;
    }
    .kg-meta strong { color: var(--cyan); font-weight: 600; }

    .kg-canvas-wrap {
      flex: 1; position: relative; min-height: 0;
      overflow: hidden;
    }
    .kg-canvas-wrap canvas { display: block; }
    .kg-fg-host {
      position: absolute; inset: 0; z-index: 1;
    }

    .kg-legend {
      position: absolute; left: 12px; bottom: 12px; z-index: 2;
      pointer-events: none;
      display: flex; flex-direction: column; gap: 4px;
      padding: 8px 10px;
      background: rgba(4, 26, 24, 0.8);
      backdrop-filter: blur(8px);
      border: 1px solid var(--line-1);
      border-radius: 6px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px; color: var(--text-1);
      letter-spacing: 0.5px;
    }
    .kg-legend .row { display: flex; align-items: center; gap: 6px; }
    .kg-legend .sw {
      width: 8px; height: 8px; border-radius: 50%;
      box-shadow: 0 0 6px currentColor;
    }

    .kg-detail {
      position: absolute; right: 12px; top: 12px; z-index: 3;
      width: 220px; max-height: 60%;
      overflow-y: auto;
      padding: 10px 12px;
      background: rgba(4, 26, 24, 0.92);
      backdrop-filter: blur(12px);
      border: 1px solid var(--line-2);
      border-radius: 8px;
      box-shadow: 0 8px 28px -8px rgba(0,0,0,0.6);
      display: none;
    }
    .kg-detail.show { display: block; }
    .kg-detail .close {
      position: absolute; top: 6px; right: 8px;
      background: transparent; border: none; cursor: pointer;
      color: var(--text-3); font-size: 14px;
      line-height: 1;
    }
    .kg-detail .close:hover { color: var(--cyan); }
    .kg-detail h4 {
      font-size: 12px; color: var(--text-0);
      margin: 0 0 4px; padding-right: 16px;
      letter-spacing: -0.1px;
      word-break: break-all;
    }
    .kg-detail .kg-type {
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px; letter-spacing: 1px;
      color: var(--cyan); margin-bottom: 8px;
      text-transform: uppercase;
    }
    .kg-detail .kv {
      display: grid; grid-template-columns: 70px 1fr; gap: 4px;
      font-size: 10.5px; padding: 3px 0;
      border-top: 1px solid var(--line-1);
    }
    .kg-detail .kv .k {
      color: var(--text-3);
      font-family: 'JetBrains Mono', monospace; font-size: 9px;
      letter-spacing: 0.5px;
    }
    .kg-detail .kv .vv {
      color: var(--text-1);
      word-break: break-all;
    }

    .kg-status {
      position: absolute; inset: 0; z-index: 4;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      gap: 8px;
      color: var(--text-2); font-size: 12px;
      text-align: center; padding: 20px;
    }
    .kg-status .spinner {
      width: 28px; height: 28px; border-radius: 50%;
      border: 2px solid var(--line-1);
      border-top-color: var(--cyan);
      animation: kgspin 0.9s linear infinite;
    }
    @keyframes kgspin { to { transform: rotate(360deg); } }
    .kg-status code {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      color: var(--cyan-soft);
      background: rgba(31,196,181,0.06);
      padding: 2px 6px; border-radius: 3px;
      border: 1px solid var(--line-2);
    }

    /* ── 지도 상단: 솔리드 탭 바 (2행) ── */
    .map-tabs-bar {
      position: absolute;
      top: 0; left: 0; right: 0;
      z-index: 25;
      background: rgba(2, 16, 15, 0.92);
      backdrop-filter: blur(16px) saturate(160%);
      -webkit-backdrop-filter: blur(16px) saturate(160%);
      border-bottom: 1px solid var(--line-2);
      display: flex; flex-direction: column;
      overflow: visible;
    }
    .map-tabs-bar::after {
      content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
      background: linear-gradient(90deg, transparent, var(--cyan) 50%, transparent);
      opacity: 0.4;
    }
    /* UBES Phase 8.24: 상단 탭바 글자 +2px, 행 높이도 30→36px */
    .map-tabs-row {
      display: flex; align-items: stretch;
      height: 36px;
      padding: 0 3px;
      overflow: visible;
      position: relative;
    }
    .map-tabs-row + .map-tabs-row {
      border-top: 1px solid var(--line-1);
    }
    .map-tabs-row .row-label {
      flex-shrink: 0;
      display: inline-flex; align-items: center;
      padding: 0 8px 0 6px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px; letter-spacing: 1.2px;
      color: var(--text-3); font-weight: 600;
      text-transform: uppercase;
      border-right: 1px solid var(--line-1);
      margin-right: 3px;
    }
    .tab-btn {
      flex-shrink: 0;
      height: 100%;
      padding: 0 10px;
      border: none; background: transparent;
      color: var(--text-1);
      font-family: inherit; font-size: 12px; font-weight: 500;
      letter-spacing: -0.1px;
      cursor: pointer;
      display: inline-flex; align-items: center; gap: 5px;
      position: relative;
      white-space: nowrap;
      transition: color 0.15s ease, background 0.15s ease;
    }
    .tab-btn svg {
      width: 14px; height: 14px;
      stroke: currentColor;
    }
    .tab-btn:hover {
      color: var(--text-0);
      background: rgba(31, 196, 181, 0.04);
    }
    .tab-btn.active {
      color: var(--cyan);
      background: rgba(31, 196, 181, 0.08);
    }
    .tab-btn.active::after {
      content: '';
      position: absolute; left: 6px; right: 6px; bottom: 0;
      height: 2px;
      background: var(--cyan);
      box-shadow: 0 0 8px var(--cyan), 0 0 14px rgba(31,196,181,0.5);
    }

    /* ── 위성 (satellite) 모드 — OpenSenseWorks globe takeover ─────────────
       When the 위성 button is clicked, _enterSatelliteMode() adds the
       'satellite-mode' class to .map-col. We hide everything inside that
       column EXCEPT the first map-tabs-row (the VIEW row containing the
       위성 button itself, so the user can switch back). The map-stage
       stretches to fill the now-available vertical space, giving our
       sensor-map iframe the full height of the column. */
    .map-col.satellite-mode .map-tabs-row + .map-tabs-row { display: none; }
    .map-col.satellite-mode .pane-resizer                 { display: none; }
    .map-col.satellite-mode .insight-pane                 { display: none; }
    .map-col.satellite-mode .map-stage                    { flex: 1 1 auto; }
    /* 위성 모드 진입 시 지도 위의 검색바/범례도 숨김 — 우리 globe 안에
       자체 UI가 있고, parent의 Mapbox UI는 더이상 보이는 지도와 무관 */
    .map-col.satellite-mode .map-bld-search,
    .map-col.satellite-mode .map-cat-legend,
    .map-col.satellite-mode .map-info-panel { display: none; }

    /* LAYER 행 범례 — UBES Phase 8.24: 폰트 +2px, bar 두께/폭 키움 */
    .layer-legend {
      margin-left: auto;
      display: inline-flex; align-items: center; gap: 6px;
      padding: 0 8px 0 10px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 10.5px; color: var(--text-2);
      letter-spacing: 0.5px;
      border-left: 1px solid var(--line-1);
      flex-shrink: 0;
      white-space: nowrap;
    }
    .layer-legend .ll-title {
      color: var(--text-3); font-weight: 600;
      text-transform: uppercase; letter-spacing: 1px;
      font-size: 10.5px;
    }
    .layer-legend .ll-bar {
      display: inline-block;
      width: 90px; height: 8px;
      border-radius: 4px;
      box-shadow: 0 0 6px rgba(31,196,181,0.25) inset;
    }
    .layer-legend .ll-bar.age {
      background: linear-gradient(90deg, #5fd3c6 0%, #74cfa9 18%, #e8cf58 38%, #e2a45c 62%, #e25984 100%);
    }
    .layer-legend .ll-bar.eui {
      background: linear-gradient(90deg, #5fd3c6 0%, #74cfa9 24%, #e8cf58 44%, #e2a45c 68%, #e25984 100%);
    }
    .layer-legend .ll-bar.tree {
      background: #74cfa9;
      box-shadow: 0 0 8px rgba(116,207,169,0.6);
    }
    .layer-legend .ll-bar.gfa {
      background: linear-gradient(90deg, #5fd3c6 0%, #e8cf58 50%, #e25984 100%);
    }
    /* UBES Phase 8.24: 외기환경(UHI) 범례 — rio-tiler 기본 turbo cmap에 근사 */
    .layer-legend .ll-bar.air-temp {
      background: linear-gradient(90deg,
        #30123b 0%, #4575b4 20%, #1bcfd4 40%,
        #abdda4 55%, #fee08b 70%, #fdae61 85%, #a50026 100%);
    }
    .layer-legend .ll-min,
    .layer-legend .ll-max {
      color: var(--text-1);
    }
    /* UBES Phase 8.23/8.24: scalar 범례 — tick 라벨, +2px 글자 */
    .layer-legend .ll-scale {
      display: inline-flex; flex-direction: column; gap: 2px;
      vertical-align: middle;
    }
    .layer-legend .ll-scale .ll-bar-wide {
      width: 180px; height: 10px; border-radius: 5px;
      box-shadow: 0 0 6px rgba(31,196,181,0.18) inset;
      position: relative;
    }
    /* scalar/choropleth 전용 grid 레이아웃 — title·color bar·hint 가 같은 row, ticks 는 color bar 바로 아래 정렬 */
    .layer-legend .ll-grid {
      display: inline-grid;
      grid-template-columns: auto 180px auto;
      column-gap: 6px;
      row-gap: 2px;
      align-items: center;
      vertical-align: middle;
    }
    .layer-legend .ll-grid .ll-bar-wide {
      width: 180px; height: 10px; border-radius: 5px;
      box-shadow: 0 0 6px rgba(31,196,181,0.18) inset;
      position: relative;
      grid-column: 2;
      grid-row: 1;
    }
    .layer-legend .ll-grid .ll-title {
      grid-column: 1; grid-row: 1;
      white-space: nowrap;
    }
    .layer-legend .ll-grid .ll-range-hint {
      grid-column: 3; grid-row: 1;
      margin-left: 0;
    }
    .layer-legend .ll-grid .ll-ticks {
      grid-column: 2; grid-row: 2;
    }
    .layer-legend .ll-ticks {
      display: flex;
      width: 180px;
      font-size: 10px;
      color: var(--text-1);
      font-family: 'JetBrains Mono', monospace;
      font-variant-numeric: tabular-nums;   /* 숫자 폭 균일 */
      line-height: 1;
    }
    /* 모든 tick을 동일 폭으로 균등 분할 → 색 바의 stop 위치와 시각 중심 일치 */
    .layer-legend .ll-tick {
      flex: 1 1 0;
      text-align: center;
      padding: 0 1px;
      white-space: nowrap;
    }
    .layer-legend .ll-tick:first-child { text-align: left; }
    .layer-legend .ll-tick:last-child  { text-align: right; }
    /* 분위수 범례 보조: 실제 min/max 표기 (saturate 인지) */
    .layer-legend .ll-range-hint {
      font-size: 10px;
      color: var(--text-3);
      font-family: 'JetBrains Mono', monospace;
      margin-left: 6px;
      letter-spacing: 0;
    }
    .layer-legend .ll-nodata {
      display: inline-flex; align-items: center; gap: 3px;
      padding-left: 4px;
      color: var(--text-3);
    }
    .layer-legend .ll-nodata::before {
      content: ''; width: 8px; height: 8px;
      background: #2a3533; border-radius: 2px;
      display: inline-block;
    }

    /* 에너지 탭 hover 시 연도 드롭다운 */
    .tab-with-years {
      position: relative;
      display: inline-flex;
    }
    .year-dropdown {
      position: absolute;
      top: calc(100% + 4px); left: 0;
      z-index: 30;
      display: none;
      flex-direction: row;
      gap: 3px;
      padding: 3px;
      background: rgba(4, 26, 24, 0.96);
      backdrop-filter: blur(14px);
      border: 1px solid var(--line-2);
      border-radius: 5px;
      box-shadow: 0 6px 18px -6px rgba(0,0,0,0.7);
    }
    .year-dropdown::before {
      content: '';
      position: absolute;
      top: -7px; left: 14px;
      width: 0; height: 0;
      border-left: 5px solid transparent;
      border-right: 5px solid transparent;
      border-bottom: 6px solid rgba(4, 26, 24, 0.96);
      filter: drop-shadow(0 -1px 0 var(--line-2));
    }
    .tab-with-years:hover .year-dropdown,
    .year-dropdown:hover {
      display: flex;
    }
    .year-dropdown button {
      padding: 4px 10px;
      background: transparent; border: 1px solid transparent;
      border-radius: 3px;
      color: var(--text-1);
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px; font-weight: 600;
      letter-spacing: 0.3px;
      cursor: pointer;
      transition: all 0.12s ease;
      white-space: nowrap;
    }
    .year-dropdown button:hover {
      background: rgba(31,196,181,0.1);
      color: var(--cyan);
    }
    .year-dropdown button.active {
      background: var(--cyan);
      color: var(--bg-0);
      box-shadow: 0 0 8px -2px rgba(31,196,181,0.6);
    }
    .year-dropdown button.unavailable {
      color: var(--text-3);
      cursor: not-allowed;
      opacity: 0.4;
    }
    .year-dropdown button.unavailable:hover {
      background: transparent;
      color: var(--text-3);
    }

    /* 지도 우측 정보 패널 — 인사이트 영역으로 이동 (숨김) */
    .map-info-panel {
      display: none !important;
      position: absolute;
      top: 70px; right: 10px;
      z-index: 10;
      flex-direction: column; gap: 6px;
      width: 200px;
      padding: 9px;
      background: rgba(2, 16, 15, 0.88);
      backdrop-filter: blur(22px) saturate(180%);
      -webkit-backdrop-filter: blur(22px) saturate(180%);
      border: 1px solid var(--line-2);
      border-radius: 12px;
      box-shadow:
        0 0 0 1px rgba(31, 196, 181, 0.05) inset,
        0 16px 44px -10px rgba(0, 0, 0, 0.6),
        0 6px 18px -8px rgba(31, 196, 181, 0.25);
    }
    .map-info-panel::before {
      content: '';
      position: absolute; left: 0; right: 0; top: 0; height: 1px;
      background: linear-gradient(90deg, transparent, var(--cyan) 50%, transparent);
      opacity: 0.5;
    }
    .panel-header {
      display: flex; align-items: center; gap: 6px;
      padding: 1px 1px 5px;
      border-bottom: 1px solid var(--line-1);
      margin-bottom: 1px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 8px; letter-spacing: 1.2px;
      color: var(--text-2); text-transform: uppercase;
      cursor: grab;
      user-select: none;
      -webkit-user-select: none;
    }
    .panel-header::before {
      content: '⋮⋮';
      letter-spacing: -2px;
      color: var(--text-3);
      font-size: 12px;
      transform: translateY(-1px);
    }
    .map-info-panel.dragging .panel-header { cursor: grabbing; }
    .map-info-panel.dragging {
      box-shadow:
        0 0 0 1px var(--cyan) inset,
        0 24px 60px -8px rgba(0, 0, 0, 0.7),
        0 0 28px -4px rgba(31, 196, 181, 0.55);
    }
    .panel-header .dot {
      width: 6px; height: 6px; border-radius: 50%;
      background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
    }
    .panel-header strong {
      color: var(--text-0); font-weight: 600;
      font-family: 'Noto Sans KR', sans-serif;
      font-size: 11px; letter-spacing: -0.1px;
    }
    .panel-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5px;
    }
    .stat-card {
      background: rgba(4, 26, 24, 0.82);
      backdrop-filter: blur(14px);
      border: 1px solid var(--line-2);
      border-radius: 5px;
      padding: 7px 9px;
      box-shadow: 0 6px 18px -10px rgba(31,196,181,0.3);
      min-width: 0;
    }
    .stat-card .stat-label {
      font-family: 'Noto Sans KR','Inter',sans-serif;
      font-size: 11px; letter-spacing: 0.3px;
      font-weight: 500;
      color: #ffffff;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .stat-card .stat-value {
      font-family: 'Noto Sans KR', 'Inter', sans-serif;
      font-size: 14px; font-weight: 700;
      letter-spacing: -0.5px;
      margin-top: 2px;
      display: flex; align-items: baseline; gap: 2px;
      min-width: 0;
    }
    .stat-card .stat-value .unit {
      font-size: 8px; font-weight: 500; color: var(--text-2);
    }
    .stat-card .stat-formula {
      margin-top: 3px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 7.5px;
      color: var(--text-3);
      letter-spacing: -0.1px;
      line-height: 1.25;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .stat-card.cyan .stat-value { color: var(--cyan); text-shadow: 0 0 10px rgba(31,196,181,0.5); }
    .stat-card.yellow .stat-value { color: var(--yellow); text-shadow: 0 0 10px rgba(232,207,88,0.45); }
    .stat-card.mint .stat-value { color: var(--mint); text-shadow: 0 0 10px rgba(116,207,169,0.45); }
    .stat-card.amber .stat-value { color: var(--amber); text-shadow: 0 0 10px rgba(226,164,92,0.45); }
    .stat-card.pink .stat-value { color: var(--pink); text-shadow: 0 0 10px rgba(226,89,132,0.45); }

    /* 차트 카드 */
    .panel-chart {
      background: rgba(4, 26, 24, 0.82);
      backdrop-filter: blur(14px);
      border: 1px solid var(--line-2);
      border-radius: 5px;
      padding: 8px 10px;
      box-shadow: 0 6px 18px -10px rgba(31,196,181,0.3);
    }
    .panel-chart-title {
      font-family: 'Noto Sans KR', 'Inter', sans-serif;
      font-size: 11px; letter-spacing: -0.1px;
      font-weight: 600;
      color: var(--text-1);
      margin-bottom: 6px;
      display: flex; justify-content: space-between; align-items: center;
    }
    .panel-chart-title .pct {
      font-family: 'Noto Sans KR', 'Inter', sans-serif; font-weight: 600;
      color: var(--cyan); font-size: 10px; letter-spacing: -0.1px;
    }
    .bar-row {
      display: flex; align-items: center; gap: 5px;
      margin: 3px 0;
      font-size: 9px; color: var(--text-1);
    }
    .bar-row .lbl {
      width: 52px; flex-shrink: 0;
      font-size: 9px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .bar-row .bar {
      display: block;
      flex: 1; height: 5px;
      background: rgba(31,196,181,0.08);
      border-radius: 2px; overflow: hidden;
      position: relative;
    }
    .bar-row .bar .fill {
      display: block;
      height: 100%;
      border-radius: 2px;
      transition: width 0.5s ease;
    }
    .bar-row .val {
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px;
      color: var(--text-0);
      width: 30px; text-align: right;
      flex-shrink: 0;
    }

    /* 미니 라인 차트 */
    .mini-line { width: 100%; height: 40px; }
    .mini-line path.area { fill: rgba(31,196,181,0.12); }
    .mini-line path.line { fill: none; stroke: var(--cyan); stroke-width: 1.5; }
    .mini-line circle { fill: var(--cyan); }

    /* 다중 시리즈 에너지 차트 */
    .ec-wrap {
      position: relative;
      margin-top: 4px;
    }
    .ec-svg {
      width: 100%; height: 130px;
      display: block;
    }
    .ec-svg .ec-grid { stroke: rgba(215,233,231,0.05); stroke-width: 0.5; }
    .ec-svg .ec-axis { stroke: rgba(215,233,231,0.18); stroke-width: 0.6; }
    .ec-svg .ec-xlabel {
      fill: rgba(215,233,231,0.6);
      font-size: 8.5px;
      font-family: 'Noto Sans KR', 'Inter', sans-serif;
      font-weight: 500;
      letter-spacing: -0.1px;
    }
    .ec-svg .ec-ylabel {
      font-size: 9.5px;
      font-family: 'Noto Sans KR', 'Inter', sans-serif;
      font-weight: 500;
      letter-spacing: -0.1px;
      opacity: 0.9;
    }
    .ec-svg .ec-hover { cursor: crosshair; }
    .ec-svg .ec-hover.active rect { fill: rgba(31,196,181,0.05); }
    .ec-svg .ec-vline {
      stroke: var(--cyan);
      stroke-width: 0.7;
      stroke-dasharray: 3 2;
      opacity: 0;
      transition: opacity 0.1s;
    }
    .ec-svg .ec-vline.show { opacity: 0.8; }
    .ec-svg .ec-pt-active {
      stroke: #02100f;
      stroke-width: 1;
    }

    .ec-legend {
      display: flex; gap: 10px; flex-wrap: wrap;
      margin-top: 4px; padding: 0 4px;
      font-family: 'Noto Sans KR', 'Inter', sans-serif;
      font-size: 10px; color: var(--text-2);
      font-weight: 500;
      letter-spacing: -0.1px;
    }
    .ec-legend .dot {
      display: inline-block; width: 9px; height: 9px;
      border-radius: 50%; margin-right: 4px;
      vertical-align: middle;
      box-shadow: 0 0 6px currentColor;
    }
    .ec-tooltip {
      position: absolute;
      pointer-events: none;
      padding: 7px 10px;
      background: rgba(4, 26, 24, 0.95);
      backdrop-filter: blur(10px);
      border: 1px solid var(--line-2);
      border-radius: 5px;
      font-size: 10.5px;
      color: var(--text-0);
      box-shadow: 0 6px 18px -6px rgba(0,0,0,0.7);
      z-index: 5;
      white-space: nowrap;
      transform: translate(-50%, -100%);
      transition: opacity 0.12s ease;
      opacity: 0;
    }
    .ec-tooltip.show { opacity: 1; }
    .ec-tooltip .tt-month {
      font-family: 'Noto Sans KR', 'Inter', sans-serif;
      font-size: 10px; color: var(--cyan);
      letter-spacing: -0.1px; font-weight: 700;
      margin-bottom: 4px;
    }
    .ec-tooltip .tt-row {
      display: flex; justify-content: space-between; gap: 12px;
      font-size: 10.5px;
    }
    .ec-tooltip .tt-row .lbl { color: var(--text-2); }
    .ec-tooltip .tt-row .val { font-weight: 600; }

    /* Mapbox 컨트롤 다크 톤 보정 + 탭 바 아래로 밀기 */
    .maplibregl-ctrl-top-right {
      top: 66px !important;
    }
    .maplibregl-ctrl-group {
      background: rgba(4, 26, 24, 0.85) !important;
      border: 1px solid var(--line-2) !important;
    }
    .maplibregl-ctrl-group button { filter: invert(1) hue-rotate(170deg); }

    @media (max-width: 1280px) {
      .map-col { width: var(--map-width, 42%); }
      .map-side-stats { width: 150px; }
    }
    /* GR Phase 8: 구 레이아웃용 980px 지도 숨김 규칙 제거 —
       관제 대시보드에서는 어떤 폭에서도 지도가 중심 */

    /* ── Mapbox 팝업 다크 톤 (건물/공기온도/가로수 등 공용) ── */
    .maplibregl-popup-content {
      background: rgba(4, 26, 24, 0.96) !important;
      border: 1px solid var(--line-2) !important;
      border-radius: 6px !important;
      color: var(--text-0) !important;
      box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(31,196,181,0.05) !important;
      font-family: 'Noto Sans KR','Inter',sans-serif !important;
      overflow: hidden;
    }
    /* 공기온도 등 자체 헤더가 있는 팝업은 padding 0 (인라인 스타일이 내부 padding 처리) */
    .maplibregl-popup-content:has(> div > div[style*="border-bottom"]) { padding: 0 !important; }
    .maplibregl-popup-anchor-top      .maplibregl-popup-tip { border-bottom-color: rgba(4, 26, 24, 0.96) !important; }
    .maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
    .maplibregl-popup-anchor-top-right .maplibregl-popup-tip { border-bottom-color: rgba(4, 26, 24, 0.96) !important; }
    .maplibregl-popup-anchor-bottom   .maplibregl-popup-tip { border-top-color:    rgba(4, 26, 24, 0.96) !important; }
    .maplibregl-popup-anchor-bottom-left  .maplibregl-popup-tip,
    .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip { border-top-color: rgba(4, 26, 24, 0.96) !important; }
    .maplibregl-popup-anchor-left     .maplibregl-popup-tip { border-right-color:  rgba(4, 26, 24, 0.96) !important; }
    .maplibregl-popup-anchor-right    .maplibregl-popup-tip { border-left-color:   rgba(4, 26, 24, 0.96) !important; }
    .maplibregl-popup-close-button {
      color: var(--text-2) !important;
      font-size: 16px !important;
      padding: 2px 7px !important;
    }
    .maplibregl-popup-close-button:hover { color: var(--cyan) !important; background: transparent !important; }

    /* ── 건물/가로수 정보 카드 (Mapbox popup용 + 드래그 카드 공용) ── */
    .bld-admin-popup,
    .bld-admin-card {
      font-family: 'Noto Sans KR','Inter',sans-serif;
      min-width: 220px;
    }
    /* 드래그 가능한 플로팅 카드 (건물 행정정보 전용) */
    .bld-admin-card {
      position: absolute;
      /* GR Phase 4.5: 탭바(2행 ~73px) 아래에서 시작 + 스테이지 안에서 높이 제한 */
      top: 80px; left: 16px;
      z-index: 8;
      background: rgba(4, 26, 24, 0.96);
      border: 1px solid var(--line-2);
      border-radius: 6px;
      box-shadow: 0 6px 22px rgba(0,0,0,0.55), 0 0 0 1px rgba(31,196,181,0.05);
      overflow: hidden;
      backdrop-filter: blur(6px);
      /* 콘텐츠(가장 긴 행)에 맞춰 동적으로 너비 결정 — 한 줄에 다 보이도록 */
      width: max-content;
      max-width: 520px;
      /* 내용이 길어도 헤더(닫기 버튼)는 항상 보이고 본문만 스크롤 */
      display: flex; flex-direction: column;
      max-height: calc(100% - 96px);
    }
    .bld-admin-card .bld-card-body {
      overflow-y: auto; min-height: 0;
      scrollbar-width: thin;
    }
    .bld-admin-card .bld-card-body::-webkit-scrollbar { width: 5px; }
    .bld-admin-card .bld-card-body::-webkit-scrollbar-thumb { background: rgba(31,196,181,0.2); border-radius: 3px; }
    .bld-popup-header,
    .bld-card-header {
      display: flex; align-items: center; gap: 8px;
      padding: 7px 30px 7px 11px;
      background: linear-gradient(135deg, rgba(31,196,181,0.18), rgba(31,196,181,0.06));
      border-bottom: 1px solid rgba(31,196,181,0.25);
      position: relative;
    }
    .bld-card-header { cursor: move; user-select: none; }
    .bld-card-header.dragging { background: linear-gradient(135deg, rgba(31,196,181,0.28), rgba(31,196,181,0.1)); }
    .bld-header-icon { font-size: 12.5px; line-height: 1; }
    .bld-header-title {
      font-size: 12.5px; font-weight: 700; letter-spacing: 0.6px;
      color: var(--cyan); text-transform: uppercase;
    }
    .bld-card-close {
      position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
      width: 20px; height: 20px;
      background: transparent; border: 0; cursor: pointer;
      color: rgba(255,255,255,0.55); font-size: 12.5px; line-height: 1;
      border-radius: 3px;
    }
    .bld-card-close:hover { color: var(--cyan); background: rgba(31,196,181,0.1); }
    .bld-popup-body,
    .bld-card-body { padding: 4px 11px 8px; }
    .bld-row {
      display: grid;
      grid-template-columns: 18px 48px 1fr;
      align-items: center;
      gap: 6px;
      padding: 3px 0;
      border-bottom: 1px dashed rgba(255,255,255,0.06);
      font-size: 12.5px;
    }
    .bld-row:last-child { border-bottom: none; }
    .bld-row .bld-icon  { text-align: center; opacity: 0.85; font-size: 12.5px; }

    /* UBES Phase 8.5 (개정): 분석 탭 건물 카드 행 — 반응형 key-value 레이아웃.
       라벨 폭을 고정(64px)하지 않고 콘텐츠에 맞춰 자동 확장하며, 카드 폭이 좁아
       라벨+값이 한 줄에 안 들어가면 자동으로 줄바꿈(라벨 한 줄, 값 다음 줄). 동적
       metric 라벨(예: "음영지표 낮은 Top 10")이 강제로 가운데에서 잘려 두 줄로
       나뉘던 문제 해소. .bld-popup-body(아이콘 포함 구) 분기는 영향 받지 않음. */
    .bld-card-body .bld-row {
      display: flex;
      align-items: baseline;
      flex-wrap: wrap;
      column-gap: 12px;
      row-gap: 2px;
    }
    .bld-row .bld-label {
      color: rgba(255,255,255,0.5);
      font-size: 12.5px;
      font-weight: 500;
      letter-spacing: 0.3px;
    }
    .bld-card-body .bld-row .bld-label {
      flex: 0 0 auto;
      min-width: 60px;
      word-break: keep-all;       /* 한국어 단어 중간 끊김 방지 */
      white-space: normal;
    }
    .bld-row .bld-value {
      color: var(--text-0);
      font-size: 12.5px;
      font-weight: 500;
      white-space: nowrap;
    }
    .bld-card-body .bld-row .bld-value {
      flex: 1 1 auto;
      min-width: 0;
      text-align: right;
      white-space: normal;        /* 긴 값도 자연스럽게 wrap */
      word-break: break-word;
    }
    .bld-row .bld-value.is-highlight {
      color: #fff;
      font-size: 12.5px;
      font-weight: 700;
    }
    .bld-row .bld-value.is-mono {
      font-family: 'JetBrains Mono', monospace;
      font-size: 12.5px;
      color: rgba(255,255,255,0.78);
    }

    /* ── 지도 위 건물 ID 검색바 (오버레이) ── */
    .map-bld-search {
      position: absolute;
      top: 10px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 6;
      display: flex;
      gap: 4px;
      padding: 4px;
      background: rgba(4, 26, 24, 0.92);
      border: 1px solid var(--line-2);
      border-radius: 6px;
      box-shadow: 0 4px 14px rgba(0,0,0,0.45);
      backdrop-filter: blur(6px);
    }
    .map-bld-search input {
      width: 240px;
      padding: 5px 8px;
      background: rgba(0,0,0,0.35);
      border: 1px solid var(--line-1);
      border-radius: 4px;
      color: var(--text-0);
      font-size: 12px;
      outline: none;
    }
    .map-bld-search input::placeholder { color: var(--text-3); }
    .map-bld-search input:focus { border-color: var(--cyan); }
    .map-bld-search button {
      padding: 5px 12px;
      background: linear-gradient(180deg, rgba(31,196,181,0.22), rgba(31,196,181,0.08));
      border: 1px solid var(--line-2);
      border-radius: 4px;
      color: var(--text-0);
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.15s;
    }
    .map-bld-search button:hover { background: rgba(31,196,181,0.32); }
    .map-bld-search .clear-btn {
      padding: 5px 9px;
      background: transparent;
      color: var(--text-2);
      font-weight: 400;
    }

    /* ── 카테고리 범례 (BCTI 16타입 등) — 지도 위 floating 패널 ──
       UBES Phase 8.16: 내용 길이에 맞춰 동적 크기, 접기/펴기 토글. */
    .map-cat-legend {
      position: absolute;
      right: 12px;
      bottom: 16px;
      z-index: 7;
      background: rgba(4, 26, 24, 0.94);
      border: 1px solid rgba(31,196,181,0.25);
      border-radius: 6px;
      box-shadow: 0 6px 22px rgba(0,0,0,0.55);
      backdrop-filter: blur(6px);
      padding: 8px 10px 10px;
      font-family: 'Noto Sans KR', 'Inter', sans-serif;
      /* 내용 폭에 맞춤. 너무 크면 지도 폭의 60%까지만. */
      width: max-content;
      max-width: 60vw;
      pointer-events: auto;
    }
    .map-cat-legend.hidden { display: none; }
    /* 접힘 상태: 그리드 숨김, 헤더만 표시 (가능한 한 작게) */
    .map-cat-legend.collapsed { padding: 6px 10px; }
    .map-cat-legend.collapsed .map-cat-legend-grid { display: none; }
    .map-cat-legend.collapsed .map-cat-legend-header { margin-bottom: 0; }

    .map-cat-legend-header {
      font-size: 10.5px; font-weight: 700;
      color: var(--cyan);
      letter-spacing: 0.5px; text-transform: uppercase;
      margin-bottom: 6px;
      display: flex; align-items: center; gap: 8px;
    }
    .map-cat-legend-title { color: var(--text-0); font-weight: 600; letter-spacing: 0; text-transform: none; flex: 1; }
    .map-cat-legend-btn {
      width: 18px; height: 18px;
      background: transparent; border: 0;
      color: rgba(255,255,255,0.55); cursor: pointer;
      font-size: 12px; line-height: 1;
      padding: 0;
      display: flex; align-items: center; justify-content: center;
      border-radius: 3px;
    }
    .map-cat-legend-btn:hover { color: var(--cyan); background: rgba(31,196,181,0.08); }
    .map-cat-legend-grid {
      display: grid;
      grid-template-columns: repeat(4, max-content);   /* 컬럼이 내용 길이에 맞춰 늘어남 */
      gap: 5px 14px;
      align-items: center;
    }
    .map-cat-legend-cell {
      display: flex; align-items: center; gap: 5px;
      font-size: 10.5px; color: var(--text-1);
      white-space: nowrap;
    }
    .map-cat-legend-cell .swatch {
      width: 10px; height: 10px; border-radius: 2px;
      flex-shrink: 0;
      box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
    }
    .map-cat-legend-cell .code {
      font-family: 'JetBrains Mono', monospace;
      font-weight: 600;
      color: var(--text-0);
      font-size: 10.5px;
    }
    .map-cat-legend-cell .ko {
      color: rgba(255,255,255,0.62);
      font-size: 10px;
    }

    /* ── 채팅 / 지도 사이 리사이저 ── */
    .col-resizer {
      width: 5px;
      flex-shrink: 0;
      cursor: col-resize;
      background: transparent;
      position: relative;
      z-index: 5;
      transition: background 0.15s;
    }
    .col-resizer::before {
      content: '';
      position: absolute;
      left: 50%; top: 0; bottom: 0;
      width: 1px;
      background: var(--line-1);
      transform: translateX(-50%);
    }
    .col-resizer:hover,
    .col-resizer.dragging {
      background: rgba(31, 196, 181, 0.12);
    }
    .col-resizer:hover::before,
    .col-resizer.dragging::before {
      background: var(--cyan);
      box-shadow: 0 0 6px var(--cyan);
    }
    body.col-resizing { cursor: col-resize; user-select: none; }
    body.col-resizing iframe,
    body.col-resizing .maplibregl-map { pointer-events: none; }
    /* ══════════════════════════════════════════════════════════════
       GR Phase 1: 그린리모델링 평가 + 사후 모니터링 (M&V) 스타일
       ══════════════════════════════════════════════════════════════ */
    /* 범례 ramp — 예상 절감률 (낮음 mint → 높음 pink=우선) */
    .layer-legend .ll-bar.grsave {
      background: linear-gradient(90deg, #5fd3c6, #74cfa9, #e8cf58, #e2a45c, #e25984);
    }
    /* 범례 ramp — M&V 성능 달성률 (미달 pink → 초과달성 cyan) */
    .layer-legend .ll-bar.mvach {
      background: linear-gradient(90deg, #e25984, #e2a45c, #e8cf58, #74cfa9, #1fc4b5);
    }

    /* GR 탭 버튼 살짝 구분 (그린 포인트) */
    .layer-btn.gr-tab { position: relative; }
    .layer-btn.gr-tab::after {
      content: '';
      position: absolute; top: 4px; right: 4px;
      width: 4px; height: 4px; border-radius: 50%;
      background: var(--cyan);
      opacity: 0.55;
      box-shadow: 0 0 5px var(--cyan);
    }

    /* ── 파이프라인 스테퍼 (대상선정→진단→설계→시공→준공) ── */
    .gr-stepper {
      display: flex; align-items: stretch; gap: 4px;
      margin: 8px 0 4px;
    }
    .gr-step {
      flex: 1; min-width: 0;
      background: linear-gradient(180deg, rgba(31,196,181,0.05), rgba(31,196,181,0.015));
      border: 1px solid var(--line-1);
      border-radius: 5px;
      padding: 6px 4px 5px;
      text-align: center;
      position: relative;
      cursor: default;
      transition: border-color 0.15s;
    }
    .gr-step:hover { border-color: var(--line-2); }
    .gr-step + .gr-step::before {
      content: '›';
      position: absolute; left: -5px; top: 50%;
      transform: translateY(-50%);
      color: var(--text-3); font-size: 10px;
    }
    .gr-step .st-count {
      font-family: 'JetBrains Mono', monospace;
      font-size: 15px; font-weight: 700;
      color: var(--cyan-soft);
      line-height: 1.1;
    }
    .gr-step.hot .st-count { color: var(--yellow); text-shadow: 0 0 8px rgba(232,207,88,0.4); }
    .gr-step .st-label {
      font-size: 9px; color: var(--text-2);
      letter-spacing: -0.2px; margin-top: 2px;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .gr-step .st-pct {
      font-family: 'JetBrains Mono', monospace;
      font-size: 8px; color: var(--text-3); margin-top: 1px;
    }

    /* ── 에너지효율등급 배지 + 전/후 등급 분포 ── */
    .gr-grade {
      display: inline-block;
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px; font-weight: 700;
      padding: 1px 6px; border-radius: 3px;
      border: 1px solid currentColor;
      line-height: 1.5;
    }
    .gr-hist { margin-top: 6px; }
    .gr-hist-row {
      display: grid;
      grid-template-columns: 34px 1fr 1fr;
      align-items: center; gap: 6px;
      margin-bottom: 3px;
    }
    .gr-hist-row .g-lbl {
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px; color: var(--text-1); text-align: right;
    }
    .gr-hist-row .g-bar { position: relative; height: 9px; background: rgba(255,255,255,0.04); border-radius: 2px; overflow: hidden; }
    .gr-hist-row .g-bar .fill { position: absolute; top: 0; bottom: 0; border-radius: 2px; }
    .gr-hist-row .g-bar.pre  .fill { left: auto; right: 0; background: rgba(226,164,92,0.75); }
    .gr-hist-row .g-bar.post .fill { left: 0; background: rgba(31,196,181,0.75); box-shadow: 0 0 6px rgba(31,196,181,0.35); }
    .gr-hist-row .g-bar .cnt {
      position: absolute; top: -1px; font-family: 'JetBrains Mono', monospace;
      font-size: 8px; color: var(--text-2); line-height: 11px;
    }
    .gr-hist-row .g-bar.pre  .cnt { left: 3px; }
    .gr-hist-row .g-bar.post .cnt { right: 3px; }
    .gr-hist-head {
      display: grid; grid-template-columns: 34px 1fr 1fr; gap: 6px;
      font-size: 8px; letter-spacing: 1px; color: var(--text-3);
      font-family: 'JetBrains Mono', monospace;
      margin-bottom: 4px;
    }
    .gr-hist-head span:nth-child(2) { text-align: right; color: var(--amber); }
    .gr-hist-head span:nth-child(3) { color: var(--cyan); }

    /* ── 경제성 테이블 ── */
    .gr-econ {
      margin-top: 6px;
      border: 1px solid var(--line-1); border-radius: 6px;
      overflow: hidden;
      font-size: 10px;
    }
    .gr-econ .er {
      display: flex; justify-content: space-between; align-items: baseline;
      padding: 5px 9px;
      border-bottom: 1px solid var(--line-1);
      background: linear-gradient(180deg, rgba(31,196,181,0.02), transparent);
    }
    .gr-econ .er:last-child { border-bottom: 0; }
    .gr-econ .er .k { color: var(--text-2); }
    .gr-econ .er .v {
      font-family: 'JetBrains Mono', monospace; font-weight: 600;
      color: var(--text-0);
    }
    .gr-econ .er .v em { font-style: normal; color: var(--cyan); }

    /* ── M&V 모델 진단 배지 행 ── */
    .mv-model-row {
      display: flex; flex-wrap: wrap; gap: 4px;
      margin: 6px 0 2px;
    }
    .mv-chip {
      font-family: 'JetBrains Mono', monospace;
      font-size: 8.5px; letter-spacing: 0.3px;
      padding: 2px 7px; border-radius: 999px;
      border: 1px solid var(--line-2);
      color: var(--cyan-soft);
      background: rgba(31,196,181,0.05);
      white-space: nowrap;
    }
    .mv-chip.ok   { color: var(--mint); }
    .mv-chip.warn { color: var(--amber); border-color: rgba(226,164,92,0.4); background: rgba(226,164,92,0.06); }

    /* ── 알림 리스트 ── */
    .mv-alerts { margin-top: 4px; display: flex; flex-direction: column; gap: 3px; }
    .mv-alert {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 7px; align-items: center;
      /* GR Phase 3.5: 카드 높이 압축 */
      padding: 3px 8px;
      border: 1px solid var(--line-1);
      border-left-width: 3px;
      border-radius: 5px;
      background: rgba(255,255,255,0.015);
      cursor: pointer;
      transition: background 0.15s, border-color 0.15s;
    }
    .mv-alert:hover { background: rgba(31,196,181,0.05); }
    .mv-alert .a-sev {
      font-family: 'JetBrains Mono', monospace;
      font-size: 8px; font-weight: 700; letter-spacing: 1px;
      padding: 1px 5px; border-radius: 3px; border: 1px solid currentColor;
    }
    .mv-alert.crit { border-left-color: var(--pink); }
    .mv-alert.crit .a-sev { color: var(--pink); }
    .mv-alert.warn { border-left-color: var(--amber); }
    .mv-alert.warn .a-sev { color: var(--amber); }
    .mv-alert.info { border-left-color: var(--cyan); }
    .mv-alert.info .a-sev { color: var(--cyan); }
    .mv-alert .a-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
    .mv-alert .a-title {
      display: block; line-height: 1.25;
      font-size: 10.5px; color: var(--text-0); font-weight: 500;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .mv-alert .a-sub {
      display: block; line-height: 1.2;
      font-family: 'JetBrains Mono', monospace;
      /* GR Phase 3.4: 가독성 — 밝기·크기 상향 */
      font-size: 9.5px; color: var(--text-1); margin-top: 0;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .mv-alert .a-val {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px; font-weight: 700;
    }

    /* ── CUSUM / 정적 차트 공통 ── */
    .gr-svg-chart { width: 100%; display: block; }
    .gr-svg-chart .zero { stroke: rgba(215,233,231,0.25); stroke-dasharray: 3 3; stroke-width: 0.7; }
    .gr-svg-chart .grid { stroke: rgba(31,196,181,0.07); stroke-width: 0.6; }

    /* ── 건물 카드: GR 평가 리포트 섹션 ── */
    .bld-gr-section {
      margin-top: 8px;
      border-top: 1px dashed var(--line-2);
      padding-top: 7px;
    }
    .bld-gr-section .gr-sec-title {
      font-family: 'JetBrains Mono', monospace;
      font-size: 8.5px; letter-spacing: 1.6px;
      color: var(--cyan); margin-bottom: 5px;
      display: flex; align-items: center; gap: 6px;
    }
    .bld-gr-section .gr-sec-title::after {
      content: ''; flex: 1; height: 1px;
      background: linear-gradient(90deg, var(--line-2), transparent);
    }
    .gr-grade-flow {
      display: flex; align-items: center; gap: 7px;
      margin: 3px 0 6px;
    }
    .gr-grade-flow .arrow { color: var(--text-3); font-size: 11px; }
    .gr-measures { display: flex; flex-wrap: wrap; gap: 3px; margin: 4px 0; }
    .gr-measure-chip {
      font-size: 8.5px; padding: 2px 6px;
      border: 1px solid var(--line-1); border-radius: 999px;
      color: var(--text-1); background: rgba(31,196,181,0.04);
      font-family: 'JetBrains Mono', monospace;
    }
    .gr-measure-chip b { color: var(--cyan-soft); font-weight: 600; }
    .gr-gauge-wrap { margin: 5px 0 2px; }
    .gr-gauge-label {
      display: flex; justify-content: space-between;
      font-size: 8.5px; color: var(--text-2);
      font-family: 'JetBrains Mono', monospace;
      margin-bottom: 2px;
    }
    .gr-gauge {
      position: relative; height: 10px;
      background: rgba(255,255,255,0.05);
      border-radius: 3px; overflow: hidden;
    }
    .gr-gauge .g-pred {
      position: absolute; top: 0; bottom: 0; left: 0;
      background: rgba(232,207,88,0.35);
      border-right: 1px solid var(--yellow);
    }
    .gr-gauge .g-real {
      position: absolute; top: 2px; bottom: 2px; left: 0;
      background: linear-gradient(90deg, rgba(31,196,181,0.6), var(--cyan));
      border-radius: 2px;
      box-shadow: 0 0 7px rgba(31,196,181,0.5);
    }
    .gr-status-chip {
      display: inline-block;
      font-family: 'JetBrains Mono', monospace;
      font-size: 8.5px; font-weight: 600; letter-spacing: 0.5px;
      padding: 1px 7px; border-radius: 999px;
      border: 1px solid currentColor;
    }

    /* GR 인사이트 패널 내부 2열 스탯 소그리드 */
    .gr-stat-note {
      font-family: 'JetBrains Mono', monospace;
      /* GR Phase 3.4: 가독성 — 밝기·크기 상향 */
      font-size: 9px; color: var(--text-1);
      margin-top: 3px; letter-spacing: 0.2px;
    }

    /* ══════════════════════════════════════════════════════════════
       GR Phase 2: 관제 대시보드 레이아웃
       (상단 헤더바 · 좌측 대형 지도 · 우측 패널 컬럼 · 하단 패널 스트립)
       ══════════════════════════════════════════════════════════════ */
    .app.dash { flex-direction: column; }

    /* ── 상단 헤더바 ── */
    .topbar {
      height: 46px; flex-shrink: 0;
      display: flex; align-items: center; gap: 14px;
      padding: 0 16px;
      background:
        linear-gradient(180deg, rgba(31,196,181,0.06), transparent 65%),
        var(--bg-1);
      border-bottom: 1px solid var(--line-2);
      position: relative; z-index: 30;
    }
    .topbar::after {
      content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
      background: linear-gradient(90deg, transparent, var(--cyan) 50%, transparent);
      opacity: 0.35;
    }
    .tb-left { display: flex; align-items: center; gap: 9px; min-width: 300px; }
    /* GR Phase 2.1: 실제 로고 이미지 (logo_trim.png — logo.png 여백 크롭본) */
    .tb-logo-img {
      height: 27px; width: auto;
      display: block;
      filter: drop-shadow(0 1px 3px rgba(0,0,0,0.55));
      user-select: none;
      -webkit-user-drag: none;
    }
    .tb-logo-sub {
      font-family: 'JetBrains Mono', monospace;
      font-size: 8px; letter-spacing: 2px;
      color: var(--cyan); font-weight: 500;
      padding: 1px 5px;
      border: 1px solid var(--line-2);
      border-radius: 3px;
      background: rgba(31,196,181,0.06);
    }
    .tb-mode {
      font-family: 'JetBrains Mono', monospace;
      font-size: 8px; letter-spacing: 1.6px;
      color: var(--text-3);
    }
    .tb-center { flex: 1; text-align: center; min-width: 0; }
    .tb-title {
      display: inline-flex; align-items: center; gap: 12px;
      font-size: 13px; font-weight: 600; letter-spacing: 2.5px;
      color: var(--text-0);
      white-space: nowrap;
    }
    .tb-title::before, .tb-title::after {
      content: ''; width: 60px; height: 1px;
      background: linear-gradient(90deg, transparent, var(--cyan));
      opacity: 0.5;
    }
    .tb-title::after { background: linear-gradient(90deg, var(--cyan), transparent); }
    .tb-right {
      display: flex; align-items: center; gap: 10px;
      min-width: 300px; justify-content: flex-end;
    }
    .tb-chip {
      display: inline-flex; align-items: center; gap: 6px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 9.5px; color: var(--text-1);
      padding: 3px 9px;
      border: 1px solid var(--line-1); border-radius: 999px;
      background: rgba(31,196,181,0.04);
    }
    .tb-clock {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px; font-weight: 600;
      color: var(--cyan-soft); letter-spacing: 0.5px;
    }

    /* ── 메인: 지도(좌) + 우측 채팅 컬럼 (전체 높이) ── */
    .dash-main { flex: 1; display: flex; min-height: 0; }
    .dash-main .map-col { order: 1; flex: 1 1 auto; width: auto; min-width: 360px; }
    .dash-main .dash-col-resizer { order: 2; }
    .dash-main .right-col { order: 3; }
    .dash-main .col-resizer { display: none !important; }
    /* 지도 스테이지: 기본 62% — paneResizer 드래그로 px 고정값 재설정됨 */
    .dash-main .map-stage { flex: 0 0 62%; min-height: 120px; }

    /* 지도 ↔ 채팅 컬럼 리사이저 */
    .dash-col-resizer {
      width: 6px; flex-shrink: 0;
      cursor: col-resize;
      background: var(--bg-1);
      border-left: 1px solid var(--line-1);
      border-right: 1px solid var(--line-1);
      position: relative; z-index: 25;
      transition: background 0.15s;
    }
    .dash-col-resizer::before {
      content: '';
      position: absolute; top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      width: 3px; height: 44px; border-radius: 2px;
      background: var(--line-2);
      transition: background 0.15s;
    }
    .dash-col-resizer:hover, .dash-col-resizer.dragging { background: rgba(31,196,181,0.1); }
    .dash-col-resizer:hover::before, .dash-col-resizer.dragging::before {
      background: var(--cyan);
      box-shadow: 0 0 8px rgba(31,196,181,0.7);
    }

    .right-col {
      width: var(--chat-width, 520px);
      flex-shrink: 0;
      display: flex; flex-direction: column;
      min-height: 0;
      background: var(--bg-1);
      position: relative;   /* 대화기록 드롭다운 anchor */
    }
    /* 채팅이 우측 컬럼 전체 높이 */
    .right-col .chat-col {
      flex: 1 1 auto; min-height: 0;
      border-right: 0; border-bottom: 0;
    }
    .right-col .sidebar-resizer { display: none !important; }
    /* 우측 컬럼에 맞춰 채팅 웰컴 축소 */
    .right-col .welcome-title { font-size: 24px !important; }
    .right-col .welcome-sub { font-size: 10.5px !important; }
    .right-col .chat-header { padding: 0 12px; }
    .right-col #apiKeyInput { width: 130px !important; }
    .conv-btn { display: inline-flex; align-items: center; gap: 5px; }
    .conv-btn.open { border-color: var(--cyan); color: var(--text-0); background: rgba(31,196,181,0.12); }
    .conv-btn .conv-caret { font-size: 8px; opacity: 0.7; transition: transform 0.15s; }
    .conv-btn.open .conv-caret { transform: rotate(180deg); }

    /* ── 사이드바 → 대화 기록 드롭다운 패널 ── */
    .right-col .sidebar {
      display: none;
      position: absolute; top: 44px; right: 8px;
      width: 292px; max-height: min(480px, calc(100% - 60px));
      z-index: 80;
      flex-direction: column;
      border: 1px solid var(--line-2);
      border-radius: 8px;
      background: var(--bg-1);
      box-shadow: 0 14px 44px -8px rgba(0,0,0,0.75), 0 0 0 1px rgba(31,196,181,0.14);
      overflow: hidden;
    }
    .right-col .sidebar.open { display: flex; }
    .right-col .sidebar::after { display: none; }
    /* 드롭다운 헤더 */
    .log-panel-head {
      padding: 9px 13px 8px;
      border-bottom: 1px solid var(--line-1);
      display: flex; align-items: baseline; gap: 8px;
      background: linear-gradient(180deg, rgba(31,196,181,0.06), transparent);
    }
    .log-panel-head .lp-title {
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px; letter-spacing: 1.8px;
      color: var(--cyan); font-weight: 600;
    }
    .log-panel-head .lp-sub { font-size: 10px; color: var(--text-2); }

    /* ── 하단: 인사이트 패널 스트립 (지도 하단 · 가로 카드 배치) ── */
    .app.dash .map-col > .pane-resizer { display: block; }
    /* GR Phase 3.3: 2행 그리드 배치 — 작은 카드는 반 높이 셀, 큰 카드는 2행 통합.
       dense 플로우로 빈 셀을 뒤 카드가 채워 밀도 최대화. */
    .app.dash .insight-pane {
      flex: 1 1 auto;
      min-height: 96px;
      display: grid;
      grid-template-rows: repeat(2, minmax(0, 1fr));
      grid-auto-flow: column dense;
      grid-auto-columns: max-content;
      align-items: stretch;
      gap: 8px;
      overflow-x: auto; overflow-y: hidden;
      padding: 8px 10px;
    }
    /* 큰 카드(랭킹·알림·인사이트·스테퍼·스탯열·시계열/등급 차트)는 두 행을 통합 */
    .insight-pane > .ranking-table,
    .insight-pane > .mv-alerts,
    .insight-pane > .insight-grid,
    .insight-pane > .gr-stepper,
    .insight-pane > .panel-grid,
    .insight-pane > .panel-chart:has(.ec-wrap),
    .insight-pane > .panel-chart:has(.gr-hist),
    .insight-pane > .gr-tall { grid-row: span 2; }
    .app.dash .insight-pane::-webkit-scrollbar { height: 7px; width: auto; }
    .app.dash .insight-pane::-webkit-scrollbar-thumb { background: rgba(31,196,181,0.18); border-radius: 3px; }
    .insight-pane > * { min-height: 0; max-height: 100%; overflow-y: auto; }
    /* 카드 공통 스크롤 */
    .insight-pane > .panel-grid, .insight-pane > .panel-chart, .insight-pane > .gr-econ,
    .insight-pane > .ranking-table, .insight-pane > .mv-alerts, .insight-pane > .insight-grid,
    .insight-pane > .gr-stepper, .insight-pane > .mv-model-row {
      overflow-y: auto; overflow-x: hidden;
      scrollbar-width: thin;
    }
    .insight-pane > *::-webkit-scrollbar { width: 5px; }
    .insight-pane > *::-webkit-scrollbar-thumb { background: rgba(31,196,181,0.15); border-radius: 3px; }

    /* 지역 셀렉터 → 세로 카드 */
    .insight-pane > .region-selector {
      position: static;
      margin: 0; padding: 10px;
      width: 168px;
      flex-direction: column; align-items: stretch; justify-content: flex-start;
      gap: 7px;
      border: 1px solid var(--line-1); border-radius: 6px;
      border-bottom: 1px solid var(--line-1);
      background: linear-gradient(180deg, rgba(31,196,181,0.05), transparent 45%), var(--bg-2);
      backdrop-filter: none;
    }
    .insight-pane > .region-selector select { max-width: none; width: 100%; }
    .insight-pane > .region-selector .rs-go { width: 100%; justify-content: center; margin-top: 2px; }

    /* 섹션 라벨 → 세로 디바이더 */
    .insight-pane > .pane-section-label {
      writing-mode: vertical-rl;
      margin: 0; padding: 10px 3px;
      width: 24px;
      display: flex; align-items: center; justify-content: center;
      border: 1px solid var(--line-1); border-radius: 6px;
      background: rgba(31,196,181,0.045);
      white-space: nowrap; overflow: hidden;
    }
    .insight-pane > .pane-section-label .accent { display: none; }

    /* 스탯 그리드 → 2×2 카드 */
    .insight-pane > .panel-grid {
      display: grid;
      /* GR Phase 3.3/4.6: 세로 1열 4단 — 폭 확대(글씨 잘림 방지) */
      grid-template-columns: 186px;
      grid-auto-rows: minmax(0, 1fr);
      gap: 5px;
      margin: 0; padding: 0;
    }
    .insight-pane > .panel-grid .stat-card {
      display: flex; flex-direction: column; justify-content: center;
      /* GR Phase 4.6: 셀 높이(~55px)에 맞춘 압축 — 라벨·값·노트 3줄이 잘리지 않게 */
      padding: 4px 9px;
      overflow: hidden;
    }
    .insight-pane > .panel-grid .stat-card .stat-label { font-size: 10px; line-height: 1.25; }
    .insight-pane > .panel-grid .stat-card .stat-value { font-size: 13.5px; margin-top: 1px; line-height: 1.2; }
    .insight-pane > .panel-grid .stat-card .gr-stat-note {
      font-size: 8.5px; margin-top: 1px; line-height: 1.25;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }

    /* 차트/표 카드 폭 */
    .insight-pane > .panel-chart { width: 312px; margin: 0 !important; padding: 6px 9px; }
    .insight-pane > .panel-chart .panel-chart-title { margin-bottom: 4px; }
    .insight-pane > .panel-chart .bar-row { margin: 2px 0; }
    .insight-pane > .gr-econ { width: 274px; margin: 0; }
    .insight-pane > .gr-econ .er { padding: 3px 8px; font-size: 9.5px; }  /* 반높이 셀에 5행이 들어가도록 압축 */
    .insight-pane > .ranking-table { width: 318px; margin: 0; }
    .insight-pane > .mv-alerts { width: 318px; margin: 0; display: flex; flex-direction: column; }
    .insight-pane > .nodata-card { width: 270px; margin: 0; align-self: center; }

    /* 파이프라인 스테퍼 → 세로 카드 */
    .insight-pane > .gr-stepper {
      flex-direction: column;
      width: 172px; margin: 0; gap: 5px;
      padding: 8px;
      border: 1px solid var(--line-1); border-radius: 6px;
      background: var(--bg-1);
    }
    .insight-pane > .gr-stepper .gr-step {
      display: flex; align-items: center; justify-content: space-between;
      text-align: left; padding: 5px 8px;
      flex: 1;
    }
    .insight-pane > .gr-stepper .gr-step + .gr-step::before { display: none; }
    .insight-pane > .gr-stepper .gr-step .st-label { margin-top: 0; order: -1; }
    .insight-pane > .gr-stepper .gr-step .st-count { font-size: 13px; }
    .insight-pane > .gr-stepper .gr-step .st-pct { display: none; }

    /* 인사이트 카드 → 세로 스택 (열 흐름에 맞춤) */
    .insight-pane > .insight-grid {
      display: flex; flex-direction: column; gap: 6px;
      width: 232px;
      margin: 0;
      overflow-y: auto;
    }
    .insight-pane > .insight-grid .insight-card { width: auto; flex-shrink: 0; }

    /* M&V 모델 칩 → 세로 스택 */
    .insight-pane > .mv-model-row {
      flex-direction: column; align-items: stretch;
      width: 160px; margin: 0; gap: 5px;
      padding: 8px;
      border: 1px solid var(--line-1); border-radius: 6px;
      background: var(--bg-1);
    }
    .insight-pane > .mv-model-row .mv-chip { text-align: center; }

    /* ══════════════════════════════════════════════════════════════
       GR Phase 2.3: 헤더 한줄 유지 · 세로 섹션 라벨 제거 · 상단 지역 셀렉터
       ══════════════════════════════════════════════════════════════ */
    /* 채팅 타이틀은 항상 한 줄 (리사이저가 최소 폭을 동적으로 보장) */
    .chat-title { white-space: nowrap; }
    .chat-actions { flex-shrink: 0; }

    /* 하단 스트립의 세로 섹션 라벨 디바이더 제거 */
    .insight-pane > .pane-section-label { display: none !important; }

    /* 상단 탭바 우측 지역 셀렉터 */
    .map-region-bar {
      margin-left: auto;
      display: flex; align-items: center;
      min-width: 0;
    }
    .map-region-bar .region-selector {
      position: static;
      margin: 0; padding: 0 2px;
      border: 0; background: transparent;
      backdrop-filter: none;
      display: flex; align-items: center; gap: 6px;
    }
    .map-region-bar .region-selector select { max-width: 118px; }
    .map-region-bar .region-selector .rs-go {
      min-width: 46px; padding: 4px 10px; font-size: 10.5px;
    }
    .map-region-bar .region-selector .rs-label { display: none; }

    /* GR Phase 2.4: 그린리모델링 통합 기능 버튼 (뷰어 그룹과 구분되는 강조 스타일) */
    .tab-btn.gr-func {
      margin-left: 16px;
      color: var(--cyan-soft);
      border: 1px solid var(--line-2);
      border-radius: 5px;
      background: linear-gradient(180deg, rgba(31,196,181,0.10), rgba(31,196,181,0.03));
    }
    .tab-btn.gr-func:hover {
      border-color: var(--cyan);
      color: var(--text-0);
    }
    .tab-btn.gr-func.active {
      color: var(--text-0);
      border-color: var(--cyan);
      background: linear-gradient(180deg, rgba(31,196,181,0.24), rgba(31,196,181,0.08));
      box-shadow: 0 0 12px -3px rgba(31,196,181,0.7);
    }

    /* ══════════════════════════════════════════════════════════════
       GR Phase 2.6: 컴포저 스크롤 화살표 제거 + 온톨로지 KG 인라인 컨트롤
       ══════════════════════════════════════════════════════════════ */
    /* 입력창 세로 스크롤바(화살표) 숨김 — 스크롤 기능은 유지 */
    .composer-box textarea { scrollbar-width: none; -ms-overflow-style: none; }
    .composer-box textarea::-webkit-scrollbar { display: none; width: 0; height: 0; }

    /* 온톨로지 모드: 레이어 줄의 기존 항목 숨기고 KG 컨트롤만 표시 */
    .kg-inline-controls { display: none; }
    #layerTabsRow.kg-mode > *:not(.kg-inline-controls) { display: none !important; }
    #layerTabsRow.kg-mode > .kg-inline-controls {
      display: flex; align-items: center; gap: 10px;
      flex: 1; min-width: 0;
      padding: 0 2px;
    }
    .kg-inline-title {
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px; letter-spacing: 1.6px;
      color: var(--cyan); font-weight: 600;
      white-space: nowrap; flex-shrink: 0;
    }
    .kg-inline-title .v { color: var(--text-3); letter-spacing: 0.5px; }
    .kg-inline-controls .kg-tabs { display: flex; gap: 4px; flex-shrink: 0; margin: 0; }
    .kg-inline-controls .kg-search {
      flex: 0 1 320px; min-width: 140px;
      height: 24px; padding: 0 10px;
    }
    .kg-inline-controls .kg-meta {
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    /* 컨트롤이 상단 줄로 이동한 동안 오버레이 자체 헤더는 숨겨 그래프 높이 확보 */
    .ontology-overlay.controls-out .kg-header { display: none; }

    /* ── GR Phase 4.4: 성능 레이블 버튼 카드 (하단 스트립 맨 왼쪽) ── */
    .gr-label-card {
      width: 178px;
      padding: 8px;
      border: 1px solid var(--line-1); border-radius: 6px;
      background: linear-gradient(180deg, rgba(31,196,181,0.04), transparent 40%), var(--bg-1);
      display: flex; flex-direction: column; gap: 7px;
      overflow-y: auto;
    }
    .glb-head {
      display: flex; align-items: center; justify-content: space-between;
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px; letter-spacing: 1.4px; font-weight: 700;
      color: var(--cyan-soft);
      padding-bottom: 5px;
      border-bottom: 1px solid var(--line-1);
    }
    .glb-clear {
      font-family: inherit; font-size: 8.5px; letter-spacing: 0.5px;
      padding: 2px 8px; border-radius: 999px;
      border: 1px solid var(--line-2); background: transparent;
      color: var(--text-1); cursor: pointer;
      transition: all 0.13s;
    }
    .glb-clear:hover { border-color: var(--cyan); color: var(--text-0); }
    /* GR Phase 5.3: 표시 모드 (색상/크기) 버튼 행 */
    .glb-modes {
      display: flex; flex-direction: column; gap: 4px;
      padding-bottom: 6px;
      border-bottom: 1px solid var(--line-1);
    }
    .glb-mode-row { display: flex; align-items: center; gap: 3px; }
    .glb-mode-k {
      font-family: 'JetBrains Mono', monospace;
      font-size: 8px; letter-spacing: 0.5px;
      color: var(--text-2); width: 22px; flex-shrink: 0;
    }
    .glb-mode {
      flex: 1; min-width: 0;
      padding: 3px 2px;
      font-family: inherit; font-size: 8.8px;
      border: 1px solid var(--line-1); border-radius: 4px;
      background: rgba(255,255,255,0.015);
      color: var(--text-1);
      cursor: pointer;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      transition: all 0.13s;
    }
    .glb-mode:hover { color: var(--text-0); border-color: var(--line-2); }
    .glb-mode.on {
      background: rgba(31,196,181,0.16);
      border-color: var(--cyan);
      color: var(--text-0);
      font-weight: 600;
    }
    .glb-grp { display: flex; flex-direction: column; gap: 3px; }
    .glb-grp-title {
      font-size: 8.5px; font-weight: 700; letter-spacing: 0.4px;
      color: var(--glb-c);
      display: flex; align-items: center; gap: 6px;
      margin-bottom: 1px;
    }
    .glb-grp-title::after {
      content: ''; flex: 1; height: 1px;
      background: linear-gradient(90deg, var(--glb-c), transparent);
      opacity: 0.4;
    }
    .glb-btn {
      display: grid;
      grid-template-columns: 20px 1fr auto;
      align-items: center; gap: 6px;
      padding: 4px 7px;
      border: 1px solid var(--line-1);
      border-left: 3px solid var(--glb-c);
      border-radius: 5px;
      background: rgba(255,255,255,0.015);
      color: var(--text-1);
      font-family: inherit; font-size: 9.5px; text-align: left;
      cursor: pointer;
      transition: background 0.13s, border-color 0.13s, color 0.13s;
    }
    .glb-btn:hover { background: rgba(31,196,181,0.07); color: var(--text-0); }
    .glb-btn.on {
      background: color-mix(in srgb, var(--glb-c) 18%, transparent);
      border-color: var(--glb-c);
      color: var(--text-0);
      box-shadow: 0 0 8px -2px var(--glb-c);
    }
    .glb-btn .glb-sym {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10.5px; font-weight: 700;
      color: var(--glb-c);
    }
    .glb-btn .glb-sym sub { font-size: 7.5px; }
    .glb-btn .glb-nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .glb-btn .glb-n {
      font-family: 'JetBrains Mono', monospace;
      font-size: 8.5px; color: var(--text-2);
    }
    .glb-btn.on .glb-n { color: var(--text-0); font-weight: 700; }
    /* 건물 카드 내 레이블 칩 */
    .glb-chip {
      display: inline-flex; align-items: center; gap: 4px;
      font-size: 8.5px; font-family: 'JetBrains Mono', monospace;
      padding: 2px 7px; border-radius: 999px;
      border: 1px solid currentColor;
    }

    /* ── GR Phase 7.2: 채팅 "건물별 분석" 탭 + 진단 응답 미러 버블 ── */
    .chat-agent-tabs {
      display: none;
      flex-shrink: 0;
      align-items: center;
      gap: 4px;
      padding: 6px 8px;
      border-bottom: 1px solid var(--line-1);
      background: rgba(31,196,181,0.03);
      /* 드롭다운이 아래로 뻗어야 하므로 overflow 숨김 금지 */
      overflow: visible;
      position: relative;
    }
    .chat-agent-tabs.show { display: flex; }
    /* GR Phase 7.3: 건물별 분석 드롭다운 */
    .cat-dd-wrap { position: relative; }
    .cat-dd-btn { display: inline-flex; align-items: center; gap: 5px; }
    .cat-dd-btn .conv-caret { font-size: 8px; opacity: 0.7; transition: transform 0.15s; }
    .cat-dd-btn.open .conv-caret { transform: rotate(180deg); }
    .cat-dd {
      display: none;
      position: absolute; top: calc(100% + 6px); left: 0;
      width: 300px; z-index: 120;
      border: 1px solid var(--line-2); border-radius: 8px;
      background: var(--bg-1);
      box-shadow: 0 14px 44px -8px rgba(0,0,0,0.75), 0 0 0 1px rgba(31,196,181,0.14);
      padding: 6px;
    }
    .cat-dd.open { display: block; }
    .cat-dd-search {
      width: 100%; margin-bottom: 5px;
      padding: 6px 9px;
      border: 1px solid var(--line-1); border-radius: 6px;
      background: var(--bg-2); color: var(--text-0);
      font-family: inherit; font-size: 10.5px;
      outline: none;
    }
    .cat-dd-search:focus { border-color: var(--cyan); }
    .cat-dd-list { max-height: 300px; overflow-y: auto; scrollbar-width: thin; }
    .cat-dd-list::-webkit-scrollbar { width: 5px; }
    .cat-dd-list::-webkit-scrollbar-thumb { background: rgba(31,196,181,0.2); border-radius: 3px; }
    .cat-dd-item {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center; gap: 8px;
      padding: 6px 8px;
      border-radius: 6px;
      cursor: pointer;
      border: 1px solid transparent;
    }
    .cat-dd-item:hover { background: rgba(31,196,181,0.08); }
    .cat-dd-item.on { background: rgba(31,196,181,0.12); border-color: rgba(31,196,181,0.35); }
    .cat-dd-item .cdi-code {
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px; font-weight: 700; color: var(--cyan-soft);
      padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 4px;
    }
    .cat-dd-item .cdi-body { min-width: 0; display: flex; flex-direction: column; }
    .cat-dd-item .cdi-nm {
      font-size: 11px; color: var(--text-0); font-weight: 600;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .cat-dd-item .cdi-addr {
      font-size: 9px; color: var(--text-2);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .cat-dd-item .cdi-on { color: var(--cyan); font-size: 9px; }
    .cat-dd-empty { padding: 12px; text-align: center; font-size: 10px; color: var(--text-2); }
    .cat-count {
      margin-left: auto;
      font-family: 'JetBrains Mono', monospace;
      font-size: 8.5px; color: var(--text-2);
    }
    .cat-tab {
      padding: 4px 11px;
      font-family: inherit; font-size: 10.5px;
      border: 1px solid var(--line-1); border-radius: 999px;
      background: transparent; color: var(--text-1);
      cursor: pointer; white-space: nowrap;
      transition: all 0.13s;
    }
    .cat-tab:hover { color: var(--text-0); border-color: var(--line-2); }
    .cat-tab.on {
      border-color: var(--cyan); color: var(--text-0);
      background: rgba(31,196,181,0.14); font-weight: 600;
    }
    /* ── GR Phase 9: 진단 워크플로 플로팅 패널 (채팅 우측 상단) ── */
    .right-col .chat-col { position: relative; }
    .wf-float {
      display: none;
      position: absolute;
      top: 84px; right: 12px;
      width: 216px;
      z-index: 30;
      border: 1px solid var(--line-2);
      border-radius: 8px;
      background: rgba(4, 26, 24, 0.94);
      backdrop-filter: blur(8px);
      box-shadow: 0 10px 30px -10px rgba(0,0,0,0.7), 0 0 0 1px rgba(31,196,181,0.1);
      overflow: hidden;
      font-size: 9.5px;
    }
    .wf-float.show { display: block; }
    .wf-head {
      display: flex; align-items: center; justify-content: space-between;
      padding: 6px 10px;
      border-bottom: 1px solid var(--line-1);
      cursor: pointer;
      background: linear-gradient(180deg, rgba(31,196,181,0.07), transparent);
    }
    .wf-head .wf-title {
      font-family: 'JetBrains Mono', monospace;
      font-size: 8.5px; letter-spacing: 1.2px; font-weight: 700;
      color: var(--cyan-soft);
    }
    .wf-head .wf-prog {
      font-family: 'JetBrains Mono', monospace;
      font-size: 9.5px; font-weight: 700; color: var(--cyan);
    }
    .wf-body { padding: 6px 8px 7px; display: flex; flex-direction: column; gap: 3px; }
    .wf-float.collapsed .wf-body { display: none; }
    .wf-row {
      display: grid; grid-template-columns: 15px 1fr;
      gap: 6px; align-items: start;
      color: var(--text-2); line-height: 1.35;
    }
    .wf-row .wf-ic {
      width: 13px; height: 13px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 8px; font-weight: 700;
      border: 1px solid var(--line-2); color: var(--text-3);
      margin-top: 1px;
    }
    .wf-row.done { color: var(--text-1); }
    .wf-row.done .wf-ic { background: var(--cyan); border-color: var(--cyan); color: #02100f; }
    .wf-row.active { color: var(--text-0); font-weight: 600; }
    .wf-row.active .wf-ic {
      border-color: var(--cyan); color: var(--cyan);
      animation: wfpulse 1s ease-in-out infinite;
    }
    @keyframes wfpulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(31,196,181,0.5); }
      50%      { box-shadow: 0 0 0 4px rgba(31,196,181,0); }
    }

    /* GR Phase 7.7: 원천 문서철 업로드 버튼 */
    .agent-upload-btn {
      display: inline-flex; align-items: center; gap: 6px;
      margin-top: 7px;
      padding: 7px 14px;
      border: 1px dashed var(--line-2); border-radius: 7px;
      background: rgba(31,196,181,0.07);
      color: var(--cyan-soft);
      font-size: 11px; font-weight: 600;
      cursor: pointer;
      transition: all 0.14s;
    }
    .agent-upload-btn:hover {
      border-color: var(--cyan); border-style: solid;
      color: var(--text-0);
      box-shadow: 0 0 10px -3px rgba(31,196,181,0.6);
    }
    .agent-upload-btn.done {
      border-style: solid; border-color: var(--line-1);
      color: var(--mint); cursor: default;
      pointer-events: none;
    }

    /* 진단 응답 미러 버블: 컬럼 폭을 최대한 사용 */
    .message.agent-mirror .msg-bubble { max-width: calc(100% - 40px); width: calc(100% - 40px); padding: 4px; }
    .agent-reply {
      display: block;
      width: 100%; border: 0;
      min-height: 60px;
      border-radius: 6px;
      background: transparent;
    }

    /* ── GR Phase 7: 건물별 성능진단 에이전트 오버레이 ── */
    .agent-overlay {
      display: none;
      position: absolute;
      top: 80px; left: 14px; right: 14px; bottom: 14px;
      z-index: 14;
      flex-direction: column;
      border: 1px solid var(--line-2);
      border-radius: 8px;
      background: var(--bg-0);
      box-shadow: 0 18px 60px -12px rgba(0,0,0,0.85), 0 0 0 1px rgba(31,196,181,0.15);
      overflow: hidden;
    }
    .agent-overlay.active { display: flex; }
    .agent-head {
      flex-shrink: 0;
      display: flex; align-items: center; gap: 10px;
      padding: 7px 12px;
      border-bottom: 1px solid var(--line-2);
      background: linear-gradient(180deg, rgba(31,196,181,0.07), transparent);
    }
    .agent-title {
      font-size: 12px; font-weight: 700; color: var(--text-0);
      display: flex; align-items: center; gap: 7px;
    }
    .agent-title::before {
      content: ''; display: none;
    }
    .agent-wf {
      margin-left: auto;
      font-family: 'JetBrains Mono', monospace;
      font-size: 9.5px; font-weight: 600;
      color: var(--cyan-soft);
      padding: 2px 9px;
      border: 1px solid var(--line-2); border-radius: 999px;
      background: rgba(31,196,181,0.06);
      white-space: nowrap;
    }
    /* 카드 내 워크플로 체크리스트 */
    .gr-wf { display: flex; flex-direction: column; gap: 2px; margin: 3px 0; }
    .gr-wf-step {
      display: flex; align-items: baseline; gap: 6px;
      font-size: 9.5px; color: var(--text-1); line-height: 1.4;
    }
    .gr-wf-step .wf-no { color: var(--cyan); font-weight: 700; flex-shrink: 0; }
    .agent-newtab {
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px; color: var(--cyan-soft); text-decoration: none;
      padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 999px;
    }
    .agent-newtab:hover { border-color: var(--cyan); color: var(--text-0); }
    .agent-close {
      width: 22px; height: 22px;
      border: 1px solid var(--line-2); border-radius: 5px;
      background: transparent; color: var(--text-1);
      font-size: 13px; line-height: 1; cursor: pointer;
    }
    .agent-close:hover { color: var(--pink); border-color: var(--pink); }
    #agentFrame { flex: 1; border: 0; width: 100%; background: #fff; }

    /* 건물 카드 액션 버튼 (에이전트 열기 · 건물 대화) */
    .gr-card-actions { display: flex; gap: 6px; margin-top: 7px; }
    .gr-card-btn {
      flex: 1;
      padding: 6px 8px;
      border: 1px solid var(--line-2); border-radius: 6px;
      background: rgba(31,196,181,0.08);
      color: var(--cyan-soft);
      font-family: inherit; font-size: 10.5px; font-weight: 600;
      cursor: pointer;
      transition: all 0.14s;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .gr-card-btn:hover {
      border-color: var(--cyan); color: var(--text-0);
      background: rgba(31,196,181,0.16);
      box-shadow: 0 0 10px -3px rgba(31,196,181,0.6);
    }

    /* ── GR Phase 6.1: KG 검색 자동완성 드롭다운 ── */
    #kgSuggest {
      display: none;
      position: fixed;
      z-index: 300;
      max-height: 320px; overflow-y: auto;
      border: 1px solid var(--line-2); border-radius: 7px;
      background: var(--bg-1);
      box-shadow: 0 14px 40px -8px rgba(0,0,0,0.75), 0 0 0 1px rgba(31,196,181,0.14);
      padding: 4px;
    }
    #kgSuggest .kgs-item {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center; gap: 8px;
      padding: 6px 9px;
      border-radius: 5px;
      cursor: pointer;
      font-size: 11px; color: var(--text-0);
    }
    #kgSuggest .kgs-item:hover { background: rgba(31,196,181,0.1); }
    #kgSuggest .kgs-dot {
      width: 8px; height: 8px; border-radius: 50%;
      box-shadow: 0 0 6px currentColor; flex-shrink: 0;
    }
    #kgSuggest .kgs-nm {
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    #kgSuggest .kgs-tp {
      font-family: 'JetBrains Mono', monospace;
      font-size: 8.5px; color: var(--text-2);
    }

    /* GR Phase 5: 태양 시각 슬라이더 (지도 좌하단 플로팅) */
    .sun-ctl {
      position: absolute; left: 10px; bottom: 30px; z-index: 11;
      /* GR Phase 5.1: 외기환경 탭에서만 표시 */
      display: none; align-items: center; gap: 7px;
      padding: 5px 11px;
      border: 1px solid var(--line-2); border-radius: 999px;
      background: rgba(2, 16, 15, 0.88);
      backdrop-filter: blur(10px);
      font-family: 'JetBrains Mono', monospace;
      font-size: 10.5px; color: var(--text-0);
    }
    .sun-ctl.show { display: flex; }
    .sun-ctl .sun-ic { color: var(--yellow); font-size: 12px; }
    .sun-ctl input[type="range"] {
      width: 130px; height: 3px;
      accent-color: var(--yellow);
      cursor: pointer;
    }

    /* ══════════════════════════════════════════════════════════════
       GR Phase 3: 서비스 드롭다운 (확장 가능한 기능 레지스트리)
       ══════════════════════════════════════════════════════════════ */
    /* ── GR Phase 8: 통합 건물 검색칸 (상단 탭바) ── */
    .bld-search2 {
      display: flex; align-items: center; gap: 6px;
      align-self: center;
      height: 27px;
      margin-left: 10px; margin-right: 4px;
      flex-shrink: 0;
      padding: 0 9px;
      border: 1px solid var(--line-2); border-radius: 6px;
      background: var(--bg-2);
      transition: border-color 0.15s, box-shadow 0.15s;
    }
    .bld-search2:focus-within {
      border-color: var(--cyan);
      box-shadow: 0 0 10px -3px rgba(31,196,181,0.6);
    }
    .bld-search2 svg { width: 12px; height: 12px; color: var(--text-2); flex-shrink: 0; }
    .bld-search2 input {
      width: 190px;
      border: 0; outline: none; background: transparent;
      color: var(--text-0);
      font-family: inherit; font-size: 11px;
    }
    .bld-search2 input::placeholder { color: var(--text-3); }
    /* 검색 제안 드롭다운 (kgSuggest와 동일 패턴) */
    #bldSuggest {
      display: none;
      position: fixed; z-index: 300;
      max-height: 340px; overflow-y: auto;
      border: 1px solid var(--line-2); border-radius: 7px;
      background: var(--bg-1);
      box-shadow: 0 14px 40px -8px rgba(0,0,0,0.75), 0 0 0 1px rgba(31,196,181,0.14);
      padding: 4px;
    }
    #bldSuggest .bs-item {
      display: grid; grid-template-columns: auto 1fr; gap: 8px;
      align-items: center;
      padding: 6px 9px; border-radius: 5px; cursor: pointer;
    }
    #bldSuggest .bs-item:hover { background: rgba(31,196,181,0.1); }
    #bldSuggest .bs-badge {
      font-family: 'JetBrains Mono', monospace;
      font-size: 8.5px; font-weight: 700; color: var(--cyan-soft);
      padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 4px;
      white-space: nowrap;
    }
    #bldSuggest .bs-body { min-width: 0; display: flex; flex-direction: column; }
    #bldSuggest .bs-nm { font-size: 11px; font-weight: 600; color: var(--text-0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #bldSuggest .bs-sub { font-size: 9px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    /* 구 건물 ID 검색바는 통합 검색으로 대체 — 숨김 (JS 검색 로직은 재사용) */
    .map-bld-search { display: none !important; }

    /* GR Phase 3.1: 서비스 버튼 — 우측 정렬(지역 셀렉터 옆) + 강조 스타일 */
    .svc-wrap { position: relative; display: flex; align-items: center; margin-left: auto; margin-right: 12px; }
    .map-region-bar { margin-left: 0; }
    .svc-btn {
      display: inline-flex; align-items: center; gap: 6px;
      margin-left: 0 !important;
      /* GR Phase 3.2: 지역 셀렉터(27px)와 같은 높이 */
      height: 27px; align-self: center;
      padding: 0 13px;
      font-weight: 700; font-size: 11.5px;
      color: #02100f !important;
      background: linear-gradient(135deg, var(--cyan), var(--cyan-soft)) !important;
      border: 1px solid var(--cyan) !important;
      border-radius: 6px;
      box-shadow: 0 0 16px -3px rgba(31,196,181,0.75), 0 2px 8px -3px rgba(0,0,0,0.6);
      text-shadow: none;
      transition: box-shadow 0.15s, transform 0.15s;
    }
    .svc-btn svg { stroke: #02100f; }
    .svc-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 0 24px -2px rgba(31,196,181,1), 0 3px 10px -3px rgba(0,0,0,0.6);
    }
    .svc-btn.active {
      box-shadow: 0 0 0 2px rgba(31,196,181,0.35), 0 0 22px -2px rgba(31,196,181,0.95);
    }
    .svc-btn:not(.active):not(.open) { animation: svcpulse 2.6s ease-in-out infinite; }
    @keyframes svcpulse {
      0%, 100% { box-shadow: 0 0 14px -3px rgba(31,196,181,0.6), 0 2px 8px -3px rgba(0,0,0,0.6); }
      50%      { box-shadow: 0 0 24px -2px rgba(31,196,181,1),   0 2px 8px -3px rgba(0,0,0,0.6); }
    }
    .svc-btn .conv-caret { font-size: 8px; opacity: 0.8; transition: transform 0.15s; }
    .svc-btn.open .conv-caret { transform: rotate(180deg); }
    .svc-dropdown {
      display: none;
      position: absolute; top: calc(100% + 6px); left: auto; right: 0;
      width: 300px; max-height: 380px; overflow-y: auto;
      z-index: 90;
      border: 1px solid var(--line-2);
      border-radius: 8px;
      background: var(--bg-1);
      box-shadow: 0 14px 44px -8px rgba(0,0,0,0.75), 0 0 0 1px rgba(31,196,181,0.14);
      padding: 6px;
    }
    .svc-dropdown.open { display: block; }
    .svc-dd-head {
      font-family: 'JetBrains Mono', monospace;
      font-size: 8.5px; letter-spacing: 1.6px;
      color: var(--cyan); font-weight: 600;
      padding: 4px 8px 7px;
      border-bottom: 1px solid var(--line-1);
      margin-bottom: 5px;
    }
    .svc-item {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 9px; align-items: center;
      padding: 8px 9px;
      border-radius: 6px;
      cursor: pointer;
      border: 1px solid transparent;
      transition: background 0.13s, border-color 0.13s;
    }
    .svc-item:hover { background: rgba(31,196,181,0.07); border-color: var(--line-1); }
    .svc-item.active {
      background: rgba(31,196,181,0.1);
      border-color: rgba(31,196,181,0.4);
    }
    .svc-item .si-icon {
      width: 26px; height: 26px;
      display: flex; align-items: center; justify-content: center;
      border: 1px solid var(--line-2); border-radius: 6px;
      background: rgba(31,196,181,0.06);
      color: var(--cyan-soft);
      font-size: 13px; flex-shrink: 0;
    }
    .svc-item .si-icon svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }
    .svc-item .si-body { min-width: 0; }
    .svc-item .si-name {
      font-size: 11.5px; font-weight: 600; color: var(--text-0);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .svc-item .si-desc {
      font-size: 9.5px; color: var(--text-2); margin-top: 1px;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .svc-item .si-state {
      font-family: 'JetBrains Mono', monospace;
      font-size: 8.5px; font-weight: 700;
      color: var(--text-3);
    }
    .svc-item.active .si-state { color: var(--cyan); text-shadow: 0 0 8px rgba(31,196,181,0.6); }
    .svc-dd-empty {
      padding: 14px 10px; text-align: center;
      font-size: 10px; color: var(--text-2); line-height: 1.6;
    }
    .svc-dd-sub {
      font-family: 'JetBrains Mono', monospace;
      /* GR Phase 3.2: 가독성 — 더 밝고 크게 */
      font-size: 9px; letter-spacing: 1.4px;
      color: var(--cyan-soft); font-weight: 700;
      padding: 7px 8px 3px;
      display: flex; align-items: center; gap: 7px;
    }
    .svc-dd-sub::after {
      content: ''; flex: 1; height: 1px;
      background: linear-gradient(90deg, var(--line-2), transparent);
    }
    .svc-dd-usernote {
      padding: 8px 10px; font-size: 10px; color: var(--text-1);
      line-height: 1.5;
    }
    .svc-dd-foot {
      margin-top: 5px; padding: 6px 8px 3px;
      border-top: 1px solid var(--line-1);
      font-family: 'JetBrains Mono', monospace;
      font-size: 8.5px; color: var(--text-2);
      letter-spacing: 0.3px;
    }
    .svc-dd-foot code { color: var(--cyan-soft); }
  
/* ── 서버 배포판: 채팅 비밀번호 인증 상태 (우측 상단 입력칸) ── */
#apiKeyInput.chat-unlocked { border-color: var(--mint) !important; box-shadow: 0 0 0 1px rgba(116,207,169,.35) inset; }
#apiKeyInput.chat-unlocked::placeholder { color: var(--mint); }

/* ── 건물 카드 확장 (2026-09-17): 실사용량 선그래프 · ECO2 평가 정보 ── */
.bld-ext { margin-top: 8px; padding-top: 6px; border-top: 1px solid rgba(31,196,181,0.22); }
.bld-ext-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.bld-ext-title { font-size: 11.5px; font-weight: 700; letter-spacing: 0.6px; color: var(--cyan); text-transform: uppercase; }
.bld-ext-sub { font-size: 10px; color: var(--text-2); }
.bld-ext-loading, .bld-ext-empty { font-size: 11px; color: var(--text-2); padding: 4px 0 6px; line-height: 1.5; }
.bld-ext-note { font-size: 9.5px; color: var(--text-3); margin-top: 4px; line-height: 1.4; }
.bx-years { display: flex; gap: 4px; margin: 2px 0 4px; }
.bx-years button { font: inherit; font-size: 10px; padding: 2px 7px; border-radius: 3px; cursor: pointer;
  background: rgba(31,196,181,0.06); border: 1px solid rgba(31,196,181,0.2); color: var(--text-2); }
.bx-years button.on { background: rgba(31,196,181,0.22); color: #fff; border-color: rgba(31,196,181,0.6); }
.bx-wrap { position: relative; }
.bx-svg { width: 100%; height: 118px; display: block; }
.bx-svg .bx-grid { stroke: rgba(215,233,231,0.07); stroke-width: 0.5; }
.bx-svg .bx-ysep { stroke: rgba(215,233,231,0.18); stroke-width: 0.6; stroke-dasharray: 2 2; }
.bx-svg .bx-ylab { font-size: 7.5px; fill: rgba(215,233,231,0.45); text-anchor: end; font-family: 'JetBrains Mono', monospace; }
.bx-svg .bx-xlab { font-size: 8px; fill: rgba(215,233,231,0.55); text-anchor: middle; font-family: 'JetBrains Mono', monospace; }
.bx-svg .bx-vline { stroke: var(--cyan); stroke-width: 0.7; opacity: 0; }
.bx-svg .bx-vline.show { opacity: 0.8; }
.bx-svg .bx-col { cursor: crosshair; }
.bx-tip { position: absolute; top: 6px; left: 0; padding: 5px 8px; font-size: 10px; line-height: 1.45; pointer-events: none;
  background: rgba(4,26,24,0.96); border: 1px solid var(--line-2); border-radius: 4px; color: var(--text-0);
  box-shadow: 0 6px 16px -6px rgba(0,0,0,0.7); opacity: 0; transition: opacity .1s; z-index: 3; white-space: nowrap; }
.bx-tip.show { opacity: 1; }
.bx-tip b { color: var(--cyan); display: block; margin-bottom: 2px; }
.bx-legend { display: flex; gap: 10px; font-size: 9.5px; color: var(--text-2); margin: 2px 0 4px; }
.bx-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.bx-table { width: 100%; border-collapse: collapse; font-size: 10.5px; font-family: 'JetBrains Mono', 'Noto Sans KR', monospace; }
.bx-table th { font-weight: 500; color: var(--text-3); text-align: right; padding: 2px 3px; border-bottom: 1px solid rgba(215,233,231,0.1); }
.bx-table td { text-align: right; padding: 2px 3px; color: var(--text-1); white-space: nowrap; }
.bx-table th:first-child, .bx-table td:first-child { text-align: left; color: var(--text-2); }
.bx-table td.bx-tot { color: #fff; font-weight: 600; }
.bx-sub { font-size: 10px; color: var(--text-2); margin: 6px 0 3px; letter-spacing: 0.3px; }
.bx-bar { display: grid; grid-template-columns: 30px 1fr 44px; align-items: center; gap: 6px; font-size: 10.5px; padding: 1px 0; }
.bx-bar-l { color: var(--text-2); }
.bx-bar-t { height: 6px; background: rgba(215,233,231,0.07); border-radius: 3px; overflow: hidden; }
.bx-bar-t i { display: block; height: 100%; border-radius: 3px; }
.bx-bar-v { text-align: right; color: var(--text-1); font-family: 'JetBrains Mono', monospace; }
.bx-env { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 10.5px; color: var(--text-2); }
.bx-env b { color: var(--text-0); font-weight: 600; font-family: 'JetBrains Mono', monospace; }
.bx-grade { color: var(--mint); font-size: 13px; }
.bx-dim { color: var(--text-3); font-size: 10px; font-weight: 400; }
