    .kakao-info-box { background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); min-width: 200px; font-size: 12px; line-height: 1.6; position: relative; }
    .kakao-close-btn { position: absolute; top: 6px; right: 8px; cursor: pointer; font-weight: bold; color: #64748b; }

    * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif; }
    body { background: #f0f4f8; color: #1e293b; }

    /* 인증(로그인/회원가입) 화면 */
    .auth-wrap {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center; /* PC에서는 로그인을 가운데 배치 */
      padding: 20px 8%;
      background:
        linear-gradient(rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.35)),
        url('/images/mainpic.png') center center / cover no-repeat;
    }
    .auth-card {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(6px);
      width: 410px;
      max-width: 100%;
      border-radius: 12px;
      padding: 28px;
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    }
    @media (max-width: 900px) {
      .auth-wrap { justify-content: center; padding: 20px; } /* 모바일/태블릿은 정중앙 배치 */
    }

    .auth-header { text-align: center; margin-bottom: 20px; }
    .auth-header img {
      height: 68px;          /* 세로 크기 확대 (필요 시 60px~80px 사이로 조절) */
      max-width: 260px;      /* 직사각형 가로 비율이 잘리지 않도록 여유 폭 지정 */
      object-fit: contain;   /* 이미지 비율 유지 */
      margin-bottom: 10px; 
    }
    .auth-header h2 { font-size: 16.5px; color: #0f172a; margin-bottom: 4px; white-space: nowrap; letter-spacing: -0.4px; }
    .auth-header p { font-size: 12px; color: #64748b; }

    .auth-tabs { display: flex; border-bottom: 2px solid #e2e8f0; margin-bottom: 18px; }
    .auth-tab { flex: 1; text-align: center; padding: 10px 4px; font-size: 13px; font-weight: bold; color: #64748b; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
    .auth-tab.active { color: #0066cc; border-bottom-color: #0066cc; }
    .auth-panel { display: none; }
    .auth-panel.active { display: block; }

    .f-group { margin-bottom: 12px; }
    .f-group label { display: block; font-size: 12px; font-weight: bold; color: #334155; margin-bottom: 4px; }
    .f-group input, .f-group select, .f-group textarea { width: 100%; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 13px; }
    .f-group input:focus { outline: none; border-color: #0066cc; }

    .btn-primary { width: 100%; padding: 10px; background: #0066cc; color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: bold; cursor: pointer; }
    .btn-primary:hover { background: #0052a3; }
    #authMsg { margin-top: 12px; font-size: 12px; text-align: center; font-weight: bold; min-height: 18px; }

    /* 메인 대시보드 */
    .main-wrap { display: none; padding: 14px; max-width: 100%; }
    .top-bar { background: #0f172a; color: #fff; padding: 12px 18px; border-radius: 8px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
    .brand-box { display: flex; align-items: center; gap: 10px; }
    .brand-box img { height: 32px; background: #fff; padding: 2px 6px; border-radius: 4px; }
    .brand-box h1 { font-size: 17px; font-weight: bold; }
    .user-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    #userInfoBadge { font-size: 13px; font-weight: bold; color: #fde047; margin-right: 4px; }

    .ctrl-box { background: #fff; padding: 12px 15px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); margin-bottom: 10px; }
    .add-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid #e2e8f0; }
    .add-row input { padding: 6px 9px; border: 1px solid #cbd5e1; border-radius: 5px; font-size: 12px; }

   /* 현장 필터 1줄 고정 및 더보기 펼침 스타일 */

    .filter-wrap { position: relative; margin-bottom: 10px; }
    .filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; overflow: hidden; max-height: 36px; padding-right: 85px; transition: max-height 0.2s ease; }
    .filter-row.expanded { max-height: 1000px; padding-right: 0; }
    .btn-filter-more { position: absolute; right: 0; top: 2px; padding: 5px 10px; border: 1px solid #94a3b8; background: #e2e8f0; color: #0f172a; border-radius: 15px; font-size: 11px; font-weight: bold; cursor: pointer; display: none; z-index: 5; }
    .btn-filter-more:hover { background: #cbd5e1; }
    .tab-btn { padding: 5px 11px; border: 1px solid #cbd5e1; background: #f8fafc; border-radius: 15px; font-size: 12px; cursor: pointer; }
    .tab-btn.active { background: #dbeafe; color: #0f172a; border-color: #3b82f6; font-weight: bold; }

    .action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
    #status-bar { margin-left: auto; font-size: 12px; font-weight: bold; color: #0f172a; }
    #auto-countdown { display: none; margin-left: auto; padding: 2px 9px; font-size: 12px; font-weight: bold; color: #0369a1; background: #e0f2fe; border: 1px solid #bae6fd; border-radius: 12px; grid-column: 1 / -1; }
    #auto-countdown.busy { color: #b45309; background: #fef3c7; border-color: #fde68a; }
    #auto-countdown + #status-bar { margin-left: 8px; }

    button { padding: 6px 11px; border: 1px solid transparent; border-radius: 5px; font-size: 12px; font-weight: bold; cursor: pointer; transition: background-color 0.15s, border-color 0.15s; }
    .btn-sm { padding: 3px 7px; font-size: 11px; margin-top: 3px; }

    .btn-read { background: #0284c7; color: #fff; }
    .btn-read:hover { background: #0369a1; }
    .btn-auto { background: #16a34a; color: #fff; }
    .btn-auto:hover { background: #15803d; }

    .btn-stop { background: #dc2626; color: #fff; }
    .btn-stop:hover { background: #b91c1c; }

    .btn-sync, .btn-add, .btn-bulk { background: #334155; color: #f8fafc; border-color: #1e293b; }
    .btn-sync:hover, .btn-add:hover, .btn-bulk:hover { background: #1e293b; }

    .btn-cctv { background: #0f766e; color: #fff; }
    .btn-cctv:hover { background: #115e59; }

    .btn-logout { background: #64748b; color: #fff; }
    .btn-logout:hover { background: #475569; }

    .tool-dropdown { position: relative; display: inline-block; }
    .tool-dropdown-menu {
      display: none;
      position: absolute;
      left: 0;
      top: calc(100% + 5px);
      min-width: 215px;
      background: #ffffff;
      border: 1px solid #cbd5e1;
      border-radius: 8px;
      box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
      padding: 6px;
      z-index: 95;
    }
    .tool-dropdown-menu.open { display: block; }
    .tool-menu-item {
      width: 100%;
      text-align: left;
      background: transparent;
      color: #0f172a;
      padding: 8px 10px;
      border-radius: 5px;
      font-size: 12px;
      font-weight: bold;
      display: flex;
      align-items: center;
      gap: 7px;
      cursor: pointer;
    }
    .tool-menu-item:hover { background: #f1f5f9; color: #0284c7; }
    .tool-menu-divider { height: 1px; background: #e2e8f0; margin: 4px 0; }


    /* 데이터 테이블 */
    .table-wrap { background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); overflow-x: auto; }
    table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: center; }
    th, td { border: 1px solid #e2e8f0; padding: 7px 6px; white-space: nowrap; }
    th { background: #f1f5f9; color: #0f172a; vertical-align: top; }
    td.row-label, th.row-label { background: #f8fafc; font-weight: bold; text-align: left; padding-left: 12px; position: sticky; left: 0; z-index: 2; min-width: 125px; }

    .ok { color: #16a34a; font-weight: bold; }
    .warn { color: #d97706; font-weight: bold; }
    .err { color: #dc2626; font-weight: bold; }

    /* 수집 시각적 반짝임 효과 */
    .cell-loading { background-color: #fef08a !important; transition: background-color 0.25s; }
    .flash-ok { background-color: #bbf7d0 !important; transition: background-color 0.4s; }
    .flash-err { background-color: #fecaca !important; transition: background-color 0.4s; }

    /* 모달 팝업 */
    .modal-bg { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.55); z-index: 100; align-items: center; justify-content: center; padding: 15px; }
    .modal-card { background: #fff; border-radius: 10px; padding: 20px; width: 440px; max-width: 100%; box-shadow: 0 10px 25px rgba(0,0,0,0.2); max-height: 90vh; overflow-y: auto; }
    .modal-card h3 { font-size: 16px; margin-bottom: 12px; color: #0f172a; border-bottom: 1px solid #e2e8f0; padding-bottom: 8px; }

 /* 지도 위 상시 장비 이름표 스타일 */
    .dev-map-label {
      background: #ffffff;
      border: 2px solid #0284c7;
      border-radius: 12px;
      padding: 2px 8px;
      font-size: 11px;
      font-weight: bold;
      color: #0f172a;
      box-shadow: 0 2px 5px rgba(0,0,0,0.25);
      white-space: nowrap;
    }
    .dev-map-label.err-label { border-color: #dc2626; color: #dc2626; }
    .dev-map-label.ok-label { border-color: #16a34a; color: #15803d; }

 /* 태블릿 및 스마트폰(삼성/아이폰) 반응형 앱 스타일 */
    @media (max-width: 900px) {
      .main-wrap { padding: 8px; }
      .top-bar { padding: 10px 12px; gap: 8px; }
      .brand-box h1 { font-size: 14px; }
      .user-actions { width: 100%; justify-content: flex-start; gap: 5px; }
      #userInfoBadge { width: 100%; margin-bottom: 2px; font-size: 12px; }

      .action-row button, .filter-row .tab-btn {
        padding: 8px 10px;
        font-size: 12px;
      }
      #status-bar {
        width: 100%;
        margin-left: 0;
        margin-top: 4px;
        padding: 4px 6px;
        background: #f1f5f9;
        border-radius: 4px;
      }

      th, td { padding: 8px 7px; font-size: 12px; }
      td.row-label, th.row-label { min-width: 105px; padding-left: 8px; }
      th .btn-sm { padding: 5px 8px; font-size: 11px; margin-top: 4px; }
      #devMapContainer { height: 420px !important; }

      /* 새 창(모달): 휴대폰·태블릿 화면 밖으로 나가지 않게, 길면 창 안에서 스크롤 */
      .modal-card { max-width: 100% !important; max-height: 92vh !important; overflow-y: auto !important; box-sizing: border-box; }
      /* CCTV 두 창: PC용 최소 크기 해제, 크기 조절 모서리 숨김 */
      #cctvModalCard, #multiCctvModalCard { min-width: 0 !important; min-height: 0 !important; resize: none !important; }
      #cctvModalCard .cctv-drag-hint { display: none; }
      #multiCctvModalHeader h3 { flex: 1 1 0; min-width: 0; font-size: 14px; }
      #multiCctvModalHeader .mc-x-mobile { display: inline-flex; }
      #multiCctvModalHeader .mc-head-tools { flex-wrap: wrap; width: 100%; }
    }

    /* 새 창 오른쪽 위 ✕ 닫기 버튼 (CCTV 창) */
    .modal-x-btn { margin: 0; flex: 0 0 auto; width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
      border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #334155; font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer; }
    .modal-x-btn:hover { background: #fee2e2; border-color: #fecaca; color: #b91c1c; }
    .mc-x-mobile { display: none; }  /* 다채널 창 ✕ 는 휴대폰·태블릿에서만 (PC는 기존 '닫기' 버튼) */

    @media (max-width: 520px) {
      .auth-card { padding: 20px 16px; }
      .auth-header h2 { font-size: 14.5px; }
      .brand-box img { height: 26px; }
      .brand-box h1 { font-size: 13px; }
      .action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
      .action-row button { width: 100%; text-align: center; }
      #status-bar { grid-column: 1 / -1; }
      .modal-card { padding: 14px; }
    }

@keyframes iconFlashHalfSec {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(0.92); }
}
.icon-flash-active {
  animation: iconFlashHalfSec 1.5s infinite ease-in-out;
}

  
    /* ================================================================
       A안: 밝고 깔끔한 정리형 (색 3종: 파랑=주 동작 / 초록·노랑·빨강=상태 / 회색=나머지)
       #mainView 안에만 적용되며 모달/로그인 화면에는 영향 없음
       ================================================================ */
    body { background: #F1F5F9; }

    /* 헤더 */
    #mainView .top-bar { background: #fff; color: #0F172A; border: 1px solid #E2E8F0; border-radius: 12px; padding: 10px 18px; }
    #mainView .brand-box img { height: 38px; width: auto; background: transparent; padding: 0; border-radius: 0; }
    #mainView .brand-box h1 { display: flex; flex-direction: column; font-size: 16px; line-height: 1.2; }
    #mainView .brand-box h1 small { font-size: 12px; font-weight: 500; color: #475569; margin-top: 2px; }
    #mainView .user-actions { gap: 10px; }
    #mainView #userInfoBadge { color: #0F172A; font-size: 13px; font-weight: 600; margin: 0; }
    #mainView #userMenuBtn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid #CBD5E1; border-radius: 8px; background: #fff; color: #0F172A; font-size: 13px; font-weight: 600; }
    #mainView #userMenuBtn:hover { background: #F8FAFC; }
    .user-menu { position: relative; }
    .user-menu-panel { display: none; position: absolute; right: 0; top: calc(100% + 6px); width: 210px; padding: 6px; background: #fff; border: 1px solid #E2E8F0; border-radius: 10px; box-shadow: 0 8px 24px rgba(15,23,42,.14); z-index: 96; }
    .user-menu-panel.open { display: block; }
    .user-menu-panel button { width: 100%; text-align: left; background: transparent; color: #0F172A; border: 0; padding: 9px 10px; border-radius: 6px; font-size: 13px; font-weight: 500; margin: 0; vertical-align: top; }
    .user-menu-panel button:hover { background: #F1F5F9; }
    .user-menu-panel button.danger { background: #FEF2F2; color: #B91C1C; font-weight: 700; }
    .user-menu-panel button.danger:hover { background: #FEE2E2; }
    .user-menu-panel hr { border: 0; height: 1px; background: #E2E8F0; margin: 4px 0; }
    #mainView .ew-pill { margin: 0; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
    #mainView .ew-pill.ew-linked { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
    #mainView .ew-pill.ew-unlinked { background: #fff; color: #0F766E; border: 1px solid #99F6E4; }

    /* 조작 영역 카드 */
    #mainView .ctrl-box { border: 1px solid #E2E8F0; border-radius: 12px; box-shadow: none; padding: 16px 20px; }
    #mainView .add-row { border-bottom: 1px solid #E2E8F0; }
    #mainView .add-row input { border-radius: 8px; border-color: #CBD5E1; padding: 7px 10px; }
    #mainView .ip-chip { font-size: 12px; font-weight: 500; color: #475569; background: #F1F5F9; border: 1px solid #E2E8F0; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }

    /* 버튼: 주 동작만 파랑, 나머지는 흰 바탕 테두리 */
    #mainView .ctrl-box button { border-radius: 8px; }
    #mainView .btn-sync, #mainView .btn-add, #mainView .btn-bulk,
    #mainView .btn-auto, #mainView .btn-cctv { background: #fff; color: #0F172A; border: 1px solid #CBD5E1; font-weight: 600; }
    #mainView .btn-sync:hover, #mainView .btn-add:hover, #mainView .btn-bulk:hover,
    #mainView .btn-auto:hover, #mainView .btn-cctv:hover { background: #F8FAFC; border-color: #94A3B8; }
    #mainView .ctrl-box .add-row .btn-add { color: #1D4ED8; border-color: #93C5FD; }
    #mainView .btn-read { background: #1D4ED8; color: #fff; border: 1px solid #1D4ED8; font-weight: 700; }
    #mainView .btn-read:hover { background: #1E40AF; }
    #mainView .btn-stop { background: #fff; color: #B91C1C; border: 1px solid #FECACA; font-weight: 600; }
    #mainView .btn-stop:hover { background: #FEF2F2; }
    #mainView .action-row button { padding: 8px 14px; }
    #mainView .tool-menu-item { font-weight: 500; }
    #mainView .tool-menu-item:hover { color: #1D4ED8; }

    /* 현장 필터 */
    #mainView .tab-btn { border: 1px solid #CBD5E1; background: #fff; color: #0F172A; padding: 5px 12px; font-weight: 500; }
    #mainView .tab-btn:hover { background: #F8FAFC; }
    #mainView .tab-btn.active { background: #EFF6FF; border-color: #1D4ED8; color: #1E3A8A; font-weight: 700; }

    /* 릴레이 제어 */
    #ewRelayBar { background: transparent !important; border: 0 !important; border-top: 1px solid #E2E8F0 !important; border-radius: 0 !important; padding: 12px 0 2px !important; margin-bottom: 6px !important; }
    #ewRelayBar .mini-circle { background: #F1F5F9; color: #475569; border: 1px solid #CBD5E1; }
    #ewRelayBar .mini-circle:hover { background: #E2E8F0; }
    #ewRelayBtns { align-items: center; gap: 5px !important; }
    #ewRelayBtns .rl-btn, #mainView #ewRelayBtns .rl-btn { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; margin: 0; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; border: 1px solid; white-space: nowrap; }
    #ewRelayBtns .rl-btn.rl-on::before, #ewRelayBtns .rl-btn.rl-off::before, #ewRelayBtns .rl-btn.rl-offline::before,
    #ewRelayBtns .rl-btn.rl-wait::before, #ewRelayBtns .rl-btn.rl-fail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
    #ewRelayBtns .rl-sep { color: #cbd5e1; align-self: center; margin: 0 2px; }
    #ewRelayBtns { flex: 1 1 0; min-width: 0; }
    #ewRelayBar { align-items: flex-start !important; }
    #ewRelayBar > div:first-child { min-height: 26px; }
    #ewRelayBtns.rl-collapsed { max-height: 28px; overflow: hidden; }
    #ewRelayBar .rl-more, #mainView #ewRelayBar .rl-more { position: static; flex: 0 0 auto; align-self: flex-start; margin: 0; border-radius: 15px; padding: 4px 10px; }
    .rl-on { background: #DCFCE7; color: #166534; border-color: #BBF7D0; }
    .rl-on::before { background: #16A34A !important; }
    .rl-off { background: #F1F5F9; color: #475569; border-color: #CBD5E1; }
    .rl-offline { background: #F8FAFC; color: #64748B; border: 1px dashed #94A3B8 !important; cursor: not-allowed; }
    .rl-wait { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
    .rl-fail { background: #FEE2E2; color: #B91C1C; border-color: #FECACA; }
    .rl-all-on { background: #fff; color: #1D4ED8; border-color: #1D4ED8; }
    .rl-all-on:hover { background: #EFF6FF; }
    .rl-all-off { background: #fff; color: #B91C1C; border-color: #FECACA; }
    .rl-all-off:hover { background: #FEF2F2; }
    .rl-disabled { opacity: .5; }

    /* 상태 줄 */
    #mainView #status-bar { font-weight: 600; color: #166534; }

    /* 현황표 */
    #mainView .table-wrap { border: 1px solid #E2E8F0; border-radius: 12px; box-shadow: none; overflow-x: auto; overflow-y: visible; }
    #mainView table { font-size: 12.5px; }
    /* 칸마다 얇은 회색선 (장비 사이 세로선 + 줄 사이 가로선) */
    #mainView th, #mainView td { border: 0; border-top: 1px solid #E8EDF3; border-left: 1px solid #E2E8F0; padding: 4px 10px; line-height: 1.25; font-variant-numeric: tabular-nums; }
    #mainView th:first-child, #mainView td:first-child { border-left: 0; }
    #mainView td.row-label, #mainView th.row-label { box-shadow: inset -1px 0 0 #CBD5E1; }   /* 고정된 항목 칸 오른쪽 선 (가로 스크롤해도 보이게) */
    #mainView #headerRow th { background: #fff; padding: 6px 10px; border-top: 0; border-bottom: 1px solid #CBD5E1; }
    #mainView #headerRow th.row-label { color: #475569; font-size: 12px; vertical-align: bottom; }
    #mainView td.row-label, #mainView th.row-label { background: #fff; color: #475569; font-weight: 500; }
    #mainView tr.sec-row td { background: #F8FAFC; color: #1D4ED8; font-size: 12px; font-weight: 700; text-align: left; padding: 3px 12px; border-top: 1px solid #E2E8F0; letter-spacing: .02em; }
    #mainView th .btn-sm { padding: 2px 8px; font-size: 11px; font-weight: 500; border-radius: 6px; margin-top: 4px; }
    #mainView td .soc-bar, #mainView td [class*='soc'] { margin-top: 2px; }
    #mainView th .btn-read { background: #fff; color: #0F172A; border: 1px solid #CBD5E1; }
    #mainView th .btn-read:hover { background: #F8FAFC; }
    #mainView .ok { color: #166534; }
    #mainView .warn { color: #B45309; }
    #mainView .err { color: #B91C1C; }

    /* 광고 카드: 왼쪽 위, 사진이 오른쪽 → 왼쪽으로 한 장씩 넘어감 */
    #adminAddRow { display: none !important; }
    #mainView .top-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 12px; align-items: stretch; margin-bottom: 12px; }
    #mainView .top-grid.ad-off { grid-template-columns: minmax(0, 1fr); }
    #mainView .top-grid.ad-off .ad-card { display: none; }
    #mainView .top-main { min-width: 0; }
    #mainView .top-main > .ctrl-box { margin-bottom: 0; }
    /* 제품 사진 칸: 오른쪽 높이에 맞춰 늘어남 (화면 약 238 × 216, 사진은 2배인 480 × 432 권장) */
    #mainView .ad-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; overflow: hidden; }
    #mainView .ad-view { position: relative; flex: 1 1 auto; min-height: 150px; overflow: hidden; background: #F1F5F9; }
    #mainView .ad-track { position: absolute; inset: 0; display: flex; transition: transform .7s ease; }
    #mainView .ad-track.noanim { transition: none; }
    #mainView .ad-slide { flex: 0 0 100%; height: 100%; }
    #mainView .ad-slide a, #mainView .ad-slide img { display: block; width: 100%; height: 100%; }
    #mainView .ad-slide img { object-fit: cover; }
    #mainView .ad-close { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: rgba(15,23,42,.55); color: #fff; font-size: 15px; line-height: 22px; cursor: pointer; z-index: 3; }
    #mainView .ad-close:hover { background: rgba(15,23,42,.8); }
    #mainView .ad-badge { position: absolute; top: 7px; left: 7px; font-size: 9px; line-height: 1; color: #475569; background: rgba(255,255,255,.8); padding: 3px 5px; border-radius: 4px; z-index: 3; pointer-events: none; }
    #mainView .ad-meta { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 8px 10px; min-height: 34px; }
    #mainView .ad-caption { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 700; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #mainView .ad-dots { display: inline-flex; gap: 4px; }
    #mainView .ad-dots i { width: 6px; height: 6px; border-radius: 50%; background: #CBD5E1; }
    #mainView .ad-dots i.on { background: #1D4ED8; }
    #mainView .ad-reopen { margin: 0; padding: 5px 10px; font-size: 12px; font-weight: 600; color: #1D4ED8; background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 999px; }
    /* 표 아래 '오늘 아침 현장 현황' 대시보드 (morning.js) */
    .mn-panel { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px; padding: 14px 16px 16px; margin: 0 0 10px; }
    .mn-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 12px; }
    .mn-title { font-size: 16px; font-weight: 800; color: #0F172A; }
    .mn-when { font-size: 12px; color: #475569; background: #fff; border: 1px solid #E2E8F0; padding: 2px 9px; border-radius: 999px; }
    .mn-when.mn-old { color: #B45309; background: #FEF3C7; border-color: #FDE68A; }
    .mn-scope { font-size: 12px; color: #64748B; margin-left: auto; }
    .mn-table-btn { margin: 0; padding: 5px 12px; font-size: 12px; font-weight: 600; color: #1D4ED8; background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 999px; }
    .mn-table-btn:hover { background: #DBEAFE; }
    .mn-empty { font-size: 13px; color: #64748B; padding: 6px 0; }
    .mn-click { cursor: pointer; }
    /* 상자 */
    .mn-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 12px; margin-bottom: 12px; align-items: stretch; }
    .mn-top .mn-row3 { margin-bottom: 0; }
    .mn-row3 { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 12px; margin-bottom: 12px; }
    .mn-top .mn-kring .mn-ring { width: 72px !important; height: 72px !important; }
    .mn-top .mn-kring .mn-ring-in em { font-size: 18px; }
    .mn-top .mn-krings { flex-wrap: wrap; row-gap: 10px; }
    .mn-top .mn-dist-l { width: 74px; font-size: 11px; }
    .mn-top .mn-box { padding: 10px 12px; }
    .mn-top .mn-alerts-scroll { max-height: 230px; overflow-y: auto; }
    /* 장비 위치 지도 */
    .mn-map-box { display: flex; flex-direction: column; min-height: 300px; }
    .mn-map-slot { position: relative; flex: 1 1 auto; min-height: 240px; border-radius: 10px; overflow: hidden; border: 1px solid #E2E8F0; background: #EEF2F7; }
    .mn-map { position: absolute; inset: 0; }
    .mn-map-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12.5px; color: #94A3B8; }
    .mn-map-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; }
    .mn-map-legend { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 11px; color: #64748B; }
    .mn-map-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 3px; vertical-align: -1px; }
    .mn-map-miss { margin-left: auto; font-size: 11px; font-weight: 700; color: #B45309; background: #FEF3C7; border-radius: 999px; padding: 1px 8px; cursor: help; }
    .mn-pin { position: relative; display: flex; flex-direction: column; align-items: center; cursor: pointer; transform: translateY(2px); }
    .mn-pin-dot { width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--pc); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(15, 23, 42, .35); }
    .mn-pin-tx { margin-top: 2px; font-size: 10px; font-weight: 800; color: #0F172A; background: rgba(255, 255, 255, .92); border: 1px solid var(--pc); border-radius: 6px; padding: 0 4px; white-space: nowrap; }
    .mn-pin:hover .mn-pin-dot { transform: rotate(-45deg) scale(1.2); }
    .mn-pin-warn .mn-pin-dot { animation: mnPinPulse 1.4s ease-in-out infinite; }
    @keyframes mnPinPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); } 50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } }
    @media (prefers-reduced-motion: reduce) { .mn-pin-warn .mn-pin-dot { animation: none; } }
    @media (max-width: 1400px) { .mn-top { grid-template-columns: 1fr; } .mn-map-box { min-height: 320px; } }
    .mn-box { background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 3px rgba(15, 23, 42, .04); min-width: 0; }
    .mn-wide { margin-bottom: 12px; }
    .mn-box-h { font-size: 13.5px; font-weight: 800; color: #0F172A; margin-bottom: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
    .mn-box-s { font-size: 11px; font-weight: 500; color: #94A3B8; }
    /* 원형 게이지 */
    .mn-ring { position: relative; border-radius: 50%; flex: 0 0 auto; }
    .mn-ring-in { position: absolute; inset: 14%; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 3px rgba(15, 23, 42, .06); }
    .mn-ring-in em { font-style: normal; font-weight: 800; color: #0F172A; font-size: 13px; line-height: 1; }
    .mn-krings { display: flex; justify-content: space-around; align-items: flex-start; gap: 8px; }
    .mn-kring { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
    .mn-kring .mn-ring-in em { font-size: 22px; }
    .mn-kring .mn-ring-in em small { font-size: 12px; font-weight: 700; margin-left: 1px; }
    .mn-kring b { font-size: 12.5px; color: #0F172A; margin-top: 4px; }
    .mn-kring span { font-size: 11px; color: #94A3B8; }
    .mn-ring-none { background: repeating-linear-gradient(45deg, #CBD5E1 0 3px, #E2E8F0 3px 6px) !important; }
    /* 구간별 막대 */
    .mn-dist-row { display: flex; align-items: center; gap: 8px; margin: 5px 0; }
    .mn-dist-l { width: 92px; flex: 0 0 auto; font-size: 11.5px; color: #475569; white-space: nowrap; }
    .mn-pb { flex: 1; height: 9px; background: #EEF2F7; border-radius: 999px; overflow: hidden; }
    .mn-pb i { display: block; height: 100%; border-radius: 999px; }
    .mn-pb i.mn-hatch, .mn-scol-area i.mn-hatch { background: repeating-linear-gradient(45deg, #94A3B8 0 3px, #CBD5E1 3px 6px) !important; }
    .mn-dist-n { width: 34px; text-align: right; font-size: 12.5px; color: #0F172A; }
    .mn-dist-n.mn-zero { color: #CBD5E1; }
    /* 확인 필요 장비 */
    .mn-cnt { font-size: 11px; font-weight: 800; color: #64748B; background: #F1F5F9; border-radius: 999px; padding: 0 8px; }
    .mn-cnt.mn-cnt-on { color: #fff; background: #EF4444; }
    .mn-alert { display: flex; align-items: center; gap: 8px; padding: 7px 10px; margin-bottom: 5px; background: #F8FAFC; border: 1px solid #EEF2F7; border-radius: 10px; }
    .mn-alert:hover { border-color: #93C5FD; background: #F0F7FF; }
    .mn-alert b { flex: 1; font-size: 12.5px; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mn-alert-s { font-size: 12px; font-weight: 700; white-space: nowrap; }
    /* (2026-11-23) 📐 순찰 구역 */
    .pz-overlay { position: absolute; inset: 0; z-index: 3; cursor: crosshair; }
    .pz-overlay svg { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
    .pz-shape { fill: rgba(34, 211, 238, .12); stroke: #22d3ee; stroke-width: 2; stroke-dasharray: 6 4; }
    .pz-shape.pz-new { fill: rgba(250, 204, 21, .15); stroke: #facc15; }
    polyline.pz-shape.pz-new { fill: none; }
    .pz-dot { fill: #facc15; stroke: #0f172a; stroke-width: 1; }
    .pz-num { font: 700 13px sans-serif; fill: #fff; stroke: #0891b2; stroke-width: 3px; paint-order: stroke; text-anchor: middle; }
    .pz-mode { display: inline-flex; border: 1px solid #67e8f9; border-radius: 6px; overflow: hidden; }
    .pz-mode button { margin: 0; padding: 2px 9px; border: none; background: #fff; color: #0e7490; font-size: 12px; cursor: pointer; }
    .pz-mode button.on { background: #0891b2; color: #fff; }
    /* (2026-11-23) 📺 분할보기 4칸: 카메라 고르기·2×2·칸 선택·PTZ */
    .mc-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: -2px 0 8px; font-size: 12.5px; color: #0f172a; }
    .mc-pick .mc-pick-h { font-weight: 700; color: #334155; }
    .mc-pick label { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; cursor: pointer; }
    .mc-pick label.on { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; font-weight: 600; }
    .mc-pick small { color: #64748b; }
    .mc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 70vh; overflow-y: auto; }
    .mc-grid.mc-one { grid-template-columns: minmax(0, 1fr); }
    @media (max-width: 700px) { .mc-grid { grid-template-columns: minmax(0, 1fr); } }
    .mc-tile { background: #0f172a; border-radius: 6px; overflow: hidden; border: 2px solid #334155; cursor: pointer; position: relative; }
    .mc-tile.sel { border-color: #f59e0b; box-shadow: 0 0 0 2px rgba(245, 158, 11, .35); }
    .mc-tile-h { padding: 5px 8px; background: #1e293b; color: #fff; font-size: 12.5px; font-weight: bold; display: flex; gap: 8px; justify-content: space-between; align-items: center; }
    .mc-tile-h .mc-big { margin: 0; padding: 0 7px; border: 1px solid #475569; background: #334155; color: #fff; border-radius: 4px; cursor: pointer; font-size: 13px; }
    .mc-ptz { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 8px; padding: 6px 10px; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 12px; }
    .mc-ptz button { margin-top: 0 !important; }
    .mc-ptz-msg { color: #64748b; margin-left: 6px; }
    /* (2026-11-23) ⛶ 분할보기 전체 화면: 모니터에 영상만 꽉 차게, PTZ는 마우스 움직이면 잠깐 */
    .mc-fs-exit { display: none; }
    #multiCctvModal.mc-fs { padding: 0 !important; background: #000; }
    #multiCctvModal.mc-fs #multiCctvModalCard { position: fixed !important; left: 0 !important; top: 0 !important; right: 0 !important; bottom: 0 !important;
      transform: none !important; width: 100vw !important; height: 100vh !important; max-width: none !important; max-height: none !important;
      min-width: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important;
      background: #000 !important; resize: none !important; overflow: hidden !important; box-shadow: none !important; }
    #multiCctvModal.mc-fs #multiCctvModalHeader, #multiCctvModal.mc-fs #multiCamPick { display: none !important; }
    #multiCctvModal.mc-fs .mc-grid { height: 100vh; max-height: none; gap: 2px; overflow: hidden; background: #000; }
    #multiCctvModal.mc-fs .mc-tile { border-color: #000; border-radius: 0; display: flex; flex-direction: column; min-height: 0; }
    #multiCctvModal.mc-fs .mc-tile.sel { border-color: #f59e0b; box-shadow: none; }
    #multiCctvModal.mc-fs .mc-tile.mc-hide { display: none; }
    #multiCctvModal.mc-fs .mc-tile-h { position: absolute; top: 0; left: 0; right: 0; z-index: 2; background: linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,0)); }
    #multiCctvModal.mc-fs .mc-vid { flex: 1; aspect-ratio: auto !important; height: 100%; min-height: 0; }
    #multiCctvModal.mc-fs .mc-ptz { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 5; margin: 0; max-width: 96vw;
      background: rgba(15,23,42,.88); border-color: #334155; color: #fff; opacity: 0; pointer-events: none; transition: opacity .3s; }
    #multiCctvModal.mc-fs.mc-ui .mc-ptz { opacity: 1; pointer-events: auto; }
    #multiCctvModal.mc-fs .mc-ptz-msg { color: #cbd5e1; }
    #multiCctvModal.mc-fs .mc-fs-exit { display: inline-block; }
    #multiCctvModal.mc-fs.mc-noui, #multiCctvModal.mc-fs.mc-noui * { cursor: none !important; }
    /* (2026-11-23) ⛶ 개별 CCTV 전체 화면: 영상만 꽉 차게, 제어줄은 마우스 움직이면 잠깐 */
    #cctvModal.cv-fs { padding: 0 !important; background: #000; }
    #cctvModal.cv-fs #cctvModalCard { position: fixed !important; left: 0 !important; top: 0 !important; right: 0 !important; bottom: 0 !important;
      transform: none !important; width: 100vw !important; height: 100vh !important; max-width: none !important; max-height: none !important;
      min-width: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important;
      background: #000 !important; resize: none !important; overflow: hidden !important; box-shadow: none !important; }
    #cctvModal.cv-fs #cctvModalHeader, #cctvModal.cv-fs #pzPanel, #cctvModal.cv-fs #ptzStatusMsg, #cctvModal.cv-fs #btnPatrolZones { display: none !important; }
    #cctvModal.cv-fs #cctvImgWrap { border-radius: 0; min-height: 0 !important; height: 100vh; }
    #cctvModal.cv-fs #cctvStreamImg { max-height: none !important; }
    #cctvModal.cv-fs .cv-ctrl { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 5; margin: 0 !important;
      width: max-content; max-width: 96vw; background: rgba(248,250,252,.93) !important; box-shadow: 0 6px 20px rgba(0,0,0,.4);
      opacity: 0; pointer-events: none; transition: opacity .3s; }
    #cctvModal.cv-fs.cv-ui .cv-ctrl { opacity: 1; pointer-events: auto; }
    #cctvModal.cv-fs.cv-noui, #cctvModal.cv-fs.cv-noui * { cursor: none !important; }
    /* (2026-11-23) 🚫 제외 구역·제외한 사람 */
    .pz-shape.pz-excl { fill: rgba(239, 68, 68, .12); stroke: #ef4444; }
    .pz-num.pz-num-excl { stroke: #b91c1c; }
    .pz-mode button.on.excl { background: #dc2626; }
    .pz-item.pz-item-excl { border-color: #fca5a5; background: #fef2f2; }
    .pz-item.pz-item-excl b { color: #b91c1c; }
    .pz-exppl { margin-top: 5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
    .pz-exppl button { margin: 0; padding: 1px 8px; border: 1px solid #cbd5e1; background: #fff; border-radius: 999px; cursor: pointer; font-size: 11px; }
    .az-excl-row { margin-top: 10px; padding: 8px 10px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; font-size: 12.5px; color: #334155;
      display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
    .az-excl-row button { margin: 0; padding: 4px 10px; border: 1px solid #94a3b8; background: #fff; border-radius: 6px; cursor: pointer; font-size: 12.5px; font-weight: 600; }
    .az-excl-row button:hover { background: #f1f5f9; }
    .pz-n { margin: 0; padding: 1px 4px; border: 1px solid #67e8f9; border-radius: 6px; font-size: 12px; color: #0e7490; background: #fff; }
    /* (2026-11-23) 판독 화면 ? 도움말 버튼 */
    .help-q { margin: 0; width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 1px solid #94a3b8; background: #fff; color: #334155; font: 700 13px/20px sans-serif; cursor: pointer; flex: none; }
    .help-q:hover { background: #0f172a; color: #fff; border-color: #0f172a; }
    .pz-btn.on { background: #0891b2 !important; color: #fff !important; border-color: #0891b2 !important; }
    .pz-panel { margin-top: 6px; padding: 6px 10px; background: #ecfeff; border: 1px solid #a5f3fc; border-radius: 8px; text-align: left; font-size: 12.5px; color: #0f172a; }
    .pz-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
    .pz-sub { font-size: 11.5px; color: #475569; }
    .pz-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
    .pz-item { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid #a5f3fc; border-radius: 999px; padding: 1px 4px 1px 8px; font-size: 11.5px; }
    .pz-item b { color: #0891b2; }
    .pz-item button { margin: 0; padding: 0 6px; border: none; background: #fee2e2; color: #b91c1c; border-radius: 999px; cursor: pointer; font-size: 11px; }
    /* (2026-11-23) 환경설정 탭·검색 */
    .st-topbar { position: sticky; top: -1px; z-index: 5; background: #fff; padding: 6px 0 8px; border-bottom: 1px solid #e2e8f0; margin-bottom: 8px; }
    .st-search input { width: 100%; box-sizing: border-box; padding: 7px 10px; font-size: 13px; border: 1px solid #cbd5e1; border-radius: 8px; }
    .st-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
    .st-tab { margin-top: 0; padding: 5px 10px; font-size: 12.5px; border: 1px solid #cbd5e1; background: #f8fafc; color: #334155; border-radius: 999px; cursor: pointer; white-space: nowrap; }
    .st-tab:hover { background: #eef2ff; }
    .st-tab.on { background: #1d4ed8; border-color: #1d4ed8; color: #fff; font-weight: 700; }
    .st-tab.dirty { border-color: #f59e0b; }
    .st-tab .st-tab-cnt { color: #d97706; font-weight: 800; }
    .st-tab.on .st-tab-cnt { color: #fde68a; }
    .st-tabs.st-searching .st-tab { opacity: 0.55; }
    .st-group-tab { margin-left: 8px; font-size: 11px; font-weight: 600; color: #64748b; background: #f1f5f9; border-radius: 999px; padding: 1px 8px; }
    /* (2026-11-23) 확인 필요 장비: 줄마다 자세한 이유 */
    .mn-alert2 { flex-wrap: wrap; row-gap: 2px; }
    .mn-alert-d { flex-basis: 100%; padding-left: 18px; font-size: 11.5px; color: #475569; line-height: 1.45; white-space: normal; }
    .mn-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
    .mn-more { font-size: 11.5px; color: #64748B; text-align: right; }
    .mn-allgood { text-align: center; padding: 18px 6px; font-size: 13.5px; font-weight: 700; color: #15803D; line-height: 1.6; }
    .mn-allgood span { font-size: 11.5px; font-weight: 500; color: #64748B; }
    .mn-ok, .mn-warn, .mn-bad { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
    .mn-ok { color: #15803D; background: #DCFCE7; } .mn-warn { color: #B45309; background: #FEF3C7; } .mn-bad { color: #B91C1C; background: #FEE2E2; }
    /* 업체별 요약 */
    .mn-orgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
    .mn-org-card { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid #EEF2F7; border-radius: 12px; background: #F8FAFC; }
    .mn-org-card .mn-ring-in em { font-size: 14px; }
    .mn-org-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
    .mn-org-txt b { font-size: 13px; color: #0F172A; }
    .mn-org-txt > span:not(.mn-ok):not(.mn-bad) { font-size: 11.5px; color: #64748B; }
    /* 현장별 평균 잔량 */
    .mn-scols { display: flex; gap: 10px; align-items: flex-end; overflow-x: auto; padding-bottom: 2px; }
    .mn-scol { flex: 1 1 0; min-width: 70px; display: flex; flex-direction: column; align-items: center; border-radius: 10px; padding: 4px 2px; }
    .mn-scol:hover { background: #F0F7FF; }
    .mn-scol-v { font-size: 14px; font-weight: 800; line-height: 18px; }
    .mn-scol-area { width: 100%; height: 120px; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid #CBD5E1;
      background: linear-gradient(to top, transparent calc(var(--mnw, 50%) - 1px), #FECACA calc(var(--mnw, 50%) - 1px), #FECACA var(--mnw, 50%), transparent var(--mnw, 50%)); }
    .mn-scol-area i { display: block; width: 46%; max-width: 54px; border-radius: 8px 8px 0 0; }
    .mn-scol-n { font-size: 12px; font-weight: 700; color: #334155; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    .mn-scol-r { font-size: 11px; color: #64748B; }
    .mn-scol-r.mn-scol-bad { color: #DC2626; font-weight: 700; }
    /* 장비별 게이지 */
    .mn-dgroups { display: flex; flex-wrap: wrap; gap: 10px; }
    .mn-dgroup { flex: 0 1 auto; border: 1px solid #EEF2F7; border-radius: 12px; background: #F8FAFC; padding: 8px 10px 10px; }
    .mn-dgroup-h { font-size: 12px; font-weight: 800; color: #334155; margin-bottom: 6px; }
    .mn-dgroup-h span { font-weight: 500; color: #94A3B8; }
    .mn-dgs { display: flex; flex-wrap: wrap; gap: 6px; }
    .mn-dg { width: 64px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border: 1px solid #EEF2F7; border-radius: 10px; background: #fff; }
    .mn-dg:hover, .mn-bg:hover { border-color: #93C5FD; box-shadow: 0 2px 10px rgba(37, 99, 235, .10); }
    .mn-dg > span { font-size: 10.5px; color: #475569; font-weight: 600; white-space: nowrap; }
    .mn-bgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
    .mn-bg { border: 1px solid #E2E8F0; border-radius: 12px; padding: 10px 12px; background: #fff; }
    .mn-bg-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 8px; }
    .mn-bg-top b { font-size: 13.5px; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mn-bg-mid { display: flex; align-items: center; gap: 14px; }
    .mn-bg-mid .mn-ring-in em { font-size: 20px; }
    .mn-bg-mid .mn-ring-in em small { font-size: 11px; }
    .mn-facts { flex: 1; display: grid; grid-template-columns: 1fr; gap: 3px; font-size: 11.5px; color: #64748B; }
    .mn-facts b { color: #0F172A; font-weight: 700; margin-left: 4px; }
    .mn-bg-bot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 11px; color: #94A3B8; }
    .mn-spark { display: block; }
    .mn-spark-empty { font-size: 10.5px; color: #CBD5E1; }
    /* 7일 추이 */
    .mn-trend { display: block; width: 100%; height: auto; max-height: 170px; }
    .mn-tx { font-size: 12px; fill: #94A3B8; }
    .mn-tv { font-size: 12px; font-weight: 700; fill: #1D4ED8; }
    .mn-trend-empty { font-size: 12.5px; color: #94A3B8; padding: 14px 4px; text-align: center; background: repeating-linear-gradient(90deg, transparent 0 18px, #F1F5F9 18px 19px); border-radius: 10px; }
    /* 방전 예상 */
    .mn-row2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; margin-bottom: 12px; align-items: start; }
    .mn-row1 { margin-bottom: 12px; }
    .mn-fc-box { border-top: 3px solid #6366F1; }
    .mn-fc-wait { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; font-size: 12px; color: #475569; line-height: 1.55;
      background: repeating-linear-gradient(135deg, #F8FAFC 0 10px, #F1F5F9 10px 20px); }
    .mn-fc-wait > b { font-size: 13px; color: #4338CA; }
    .mn-fw { display: flex; gap: 12px; align-items: center; padding: 10px 12px; margin-bottom: 8px; border: 1px solid #EEF2F7; border-left: 5px solid var(--fc); border-radius: 12px; background: #FFFBFB; }
    .mn-fw:hover { box-shadow: 0 2px 12px rgba(15, 23, 42, .08); }
    .mn-fw .mn-ring-in em { font-size: 13px; } .mn-fw .mn-ring-in em small { font-size: 9px; }
    .mn-fw-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
    .mn-fw-t { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
    .mn-fw-t b { font-size: 14px; color: #0F172A; }
    .mn-fw-site { font-size: 11.5px; color: #94A3B8; }
    .mn-fw-days { margin-left: auto; font-size: 14px; font-weight: 800; }
    .mn-fw-s { font-size: 12px; color: #475569; } .mn-fw-s b { color: #0F172A; }
    .mn-fw-act { font-size: 12.5px; font-weight: 800; color: #B91C1C; }
    .mn-fw-hint { font-size: 12px; font-weight: 700; color: #4338CA; background: #EEF2FF; border-radius: 8px; padding: 3px 8px; align-self: flex-start; }
    /* (2026-11-24) 담당자 안내 표시 · 패널 효율 변화 */
    .mn-noti { display: inline-block; font-size: 11.5px; font-weight: 700; color: #0369A1; background: #E0F2FE; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
    .mn-pe-b { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
    .mn-fw-pe { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
    .mn-fw-dir { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #334155; margin-right: 4px; }
    .mn-dir { display: inline-block; vertical-align: middle; }
    .mn-tdir { min-width: 70px; }
    .dd-panel { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; font-size: 12.5px; color: #334155; flex-wrap: wrap; }
    .dd-panel b { color: #0f172a; }
    /* (2026-11-24) 제품 모델 사진 */
    .model-thumb { display: inline-block; vertical-align: middle; object-fit: contain; cursor: zoom-in; border-radius: 6px; background: #f8fafc; border: 1px solid #e2e8f0; margin-right: 4px; }
    .model-thumb:hover { border-color: #93c5fd; box-shadow: 0 0 0 2px #dbeafe; }
    .model-photo-box { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 23, 42, .6); display: none; align-items: center; justify-content: center; cursor: zoom-out; }
    .model-photo-card { background: #fff; border-radius: 14px; padding: 12px; max-width: 92vw; max-height: 92vh; display: flex; flex-direction: column; gap: 8px; cursor: default; }
    .model-photo-card img { max-width: 88vw; max-height: 80vh; object-fit: contain; border-radius: 10px; }
    .model-photo-cap { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #334155; }
    .model-adm-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 6px; background: #f8fafc; }
    .model-adm-icon { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; border: 1px solid #e2e8f0; }
    .model-adm-icon img { max-width: 60px; max-height: 60px; cursor: zoom-in; } .model-adm-icon span { font-size: 11px; color: #94a3b8; }
    /* (2026-11-24) 그림자 판독 */
    .sh-card { width: 1240px; max-width: 97%; max-height: 94vh; overflow: auto; }
    .sh-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 10px; }
    .sh-sub { font-size: 12px; color: #64748b; }
    .sh-body { display: flex; gap: 12px; align-items: flex-start; }
    .sh-list { width: 230px; flex: 0 0 auto; max-height: 76vh; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
    .sh-item { border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 10px; cursor: pointer; background: #f8fafc; font-size: 13px; }
    .sh-item.on { border-color: #2563eb; background: #eff6ff; }
    .sh-work { flex: 1; min-width: 0; }
    .sh-tools, .sh-tabs, .sh-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
    .sh-tools button, .sh-tabs button { margin: 0; padding: 5px 10px; font-size: 12.5px; border: 1px solid #cbd5e1; background: #fff; border-radius: 8px; cursor: pointer; color: #0f172a; width: auto; }
    .sh-tools button.on { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
    .sh-tabs button.on { background: #0f172a; color: #fff; border-color: #0f172a; }
    .sh-canvas-wrap { width: 100%; border-radius: 10px; overflow: hidden; background: #0f172a; }
    .sh-canvas-wrap canvas { display: block; cursor: crosshair; }
    .sh-result { min-height: 24px; margin: 8px 0; }
    .sh-res { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; }
    .sh-grade { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 8px; margin-left: 6px; }
    /* (2026-11-24) 그림자 판독 하는 방법 애니메이션 (판독 화면·도움말) */
    .shg { max-width: 720px; }
    .shg-svg { display: block; width: 100%; height: auto; border-radius: 12px; }
    .shg-s { opacity: 0; transition: opacity .5s; }
    .shg-s.on { opacity: 1; }
    .shg-draw { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.2s ease; }
    .shg-s.on .shg-draw { stroke-dashoffset: 0; }
    .shg-cap { font-size: 13.5px; color: #0f172a; line-height: 1.6; margin: 10px 0 8px; min-height: 44px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px; }
    .shg-btns { display: flex; flex-wrap: wrap; gap: 6px; }
    .shg-btns button { margin: 0; width: auto; padding: 5px 10px; font-size: 12.5px; border: 1px solid #cbd5e1; background: #fff; color: #334155; border-radius: 8px; cursor: pointer; }
    .shg-btns button.cur { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
    .shg-btns .shg-pp { margin-left: auto; }
    .sh-warn { color: #b45309; font-weight: 700; font-size: 12.5px; }
    /* (2026-11-24) 📍 현장에서 등록 창 (sitereg.js) */
    .sr-card { width: 560px; max-width: 96%; }
    .sr-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
    .sr-warn { background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; border-radius: 8px; padding: 8px 10px; font-size: 13px; margin-bottom: 10px; line-height: 1.5; }
    .sr-sec { border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
    .sr-sec-t { font-weight: 800; color: #0f172a; margin-bottom: 4px; }
    .sr-sub { font-size: 12.5px; color: #64748b; line-height: 1.5; }
    .sr-btn { margin: 8px 6px 0 0 !important; width: auto !important; min-height: 38px; }
    .sr-msg { font-size: 13px; color: #0f172a; line-height: 1.6; margin-top: 6px; }
    .sr-map { height: 200px; border-radius: 8px; overflow: hidden; margin-top: 8px; border: 1px solid #e2e8f0; }
    .sr-pin { background: #475569; color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
    .sr-pin-new { background: #2563eb; }
    .sr-how { margin: 6px 0 0 18px; padding: 0; font-size: 13px; color: #334155; line-height: 1.6; }
    .sr-cmp { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
    .sr-dial { width: 140px; height: 140px; flex-shrink: 0; }
    .sr-dial #srRose { transition: transform .15s linear; }
    .sr-deg { font-size: 26px; font-weight: 800; color: #0f172a; }
    .sr-flat { font-size: 13px; font-weight: 700; margin-top: 4px; }
    /* (2026-11-24) 환경설정 체크박스 항목 */
    .st-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #0f172a; cursor: pointer; margin-right: 8px; }
    .st-check input { width: 18px; height: 18px; margin: 0; cursor: pointer; }
    /* (2026-11-24) 그림자 촬영 진행 창 (오른쪽 아래) */
    .sh-prog { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 320px; max-width: calc(100vw - 24px); z-index: 400;
      max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px - env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; background: #fff; border: 1px solid #cbd5e1; border-radius: 12px; box-shadow: 0 10px 30px rgba(15,23,42,.25); font-size: 13px; color: #0f172a; overflow: hidden; }
    .sh-prog .shp-head { flex-shrink: 0; display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #0f172a; color: #fff; cursor: pointer; user-select: none; }
    .sh-prog .shp-title { font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .sh-prog .shp-mini { display: none; font-size: 12px; color: #cbd5e1; white-space: nowrap; }
    .sh-prog.min .shp-mini { display: inline; }
    .sh-prog.min .shp-body { display: none; }
    .sh-prog .shp-x { margin: 0; width: auto; min-width: 34px; min-height: 30px; padding: 0 6px; background: transparent; border: 0; border-radius: 6px; color: #cbd5e1; font-size: 16px; cursor: pointer; }
    .sh-prog .shp-x:hover { color: #fff; }
    .sh-prog .shp-body { padding: 10px; overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; }
    .sh-prog .shp-pic { position: relative; aspect-ratio: 16/9; background: #e2e8f0; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
    .sh-prog .shp-pic img { display: none; width: 100%; height: 100%; object-fit: cover; }
    .sh-prog .shp-pic.has img { display: block; }
    .sh-prog .shp-pic.has .shp-wait { display: none; }
    .sh-prog .shp-wait { color: #64748b; font-size: 12.5px; }
    .sh-prog .shp-pic-cap { position: absolute; left: 6px; bottom: 6px; background: rgba(15,23,42,.7); color: #fff; font-size: 11.5px; padding: 1px 6px; border-radius: 6px; }
    .sh-prog .shp-pic-cap:empty { display: none; }
    .sh-prog .shp-thumbs { display: flex; gap: 4px; margin: 6px 0 4px; min-height: 0; }
    .sh-prog .shp-thumbs img { width: 52px; height: 30px; object-fit: cover; border-radius: 4px; border: 2px solid transparent; cursor: pointer; animation: shpIn .4s ease; }
    .sh-prog .shp-thumbs img.on { border-color: #1d4ed8; }
    @keyframes shpIn { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
    .sh-prog .shp-steps { list-style: none; margin: 6px 0; padding: 0; columns: 2; column-gap: 8px; }
    .sh-prog .shp-steps li { padding: 1px 0; color: #94a3b8; break-inside: avoid; }
    .sh-prog .shp-steps li b { display: inline-block; width: 14px; }
    .sh-prog .shp-steps li.st-ok { color: #15803d; }
    .sh-prog .shp-steps li.st-run { color: #1d4ed8; font-weight: 700; }
    .sh-prog .shp-steps li.st-fail { color: #b91c1c; }
    .sh-prog .shp-steps small { color: #b45309; font-weight: 400; }
    .sh-prog .shp-dots::after { content: "…"; animation: shpBlink 1s steps(2) infinite; }
    @keyframes shpBlink { 50% { opacity: 0; } }
    .sh-prog .shp-bar { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin: 6px 0; }
    .sh-prog .shp-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3b82f6, #22c55e); transition: width 1.4s linear; }
    .sh-prog .shp-bar.err i { background: #ef4444; }
    .sh-prog .shp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; color: #475569; }
    .sh-prog .shp-foot .shp-hint { color: #94a3b8; font-size: 11.5px; }
    .sh-prog .shp-foot button { margin: 0; width: auto; }
    .sh-prog .shp-ok { color: #15803d; font-weight: 700; }
    .sh-prog .shp-err { color: #b91c1c; font-weight: 700; flex-basis: 100%; }
    /* (2026-11-24) 폰·태블릿: 좁거나 낮은 화면은 붙여서 띄우고 사진을 작게 (높이가 넘치면 창 안에서 스크롤, 제목 줄은 항상 보임) */
    @media (max-width: 520px), (max-height: 520px) {
      .sh-prog { right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); max-width: calc(100vw - 16px); }
      .sh-prog .shp-pic { aspect-ratio: auto; height: min(30vh, 150px); }
      .sh-prog .shp-head { padding: 6px 8px; }
    }
    /* (2026-11-24) 담당 장비 */
    .usr-asg { margin-top: 3px; font-size: 11.5px; color: #1d4ed8; cursor: pointer; white-space: normal; max-width: 260px; line-height: 1.4; }
    .usr-asg:hover { text-decoration: underline; }
    .usr-asg-none { color: #b45309; font-weight: 700; }
    .asg-site { border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: #f8fafc; }
    .asg-site-h { margin-bottom: 6px; }
    .asg-all { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 8px; background: #eff6ff; border-radius: 8px; cursor: pointer; }
    .asg-devs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
    .asg-dev { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; font-size: 12.5px; cursor: pointer; }
    .asg-dev:has(input:checked) { border-color: #2563eb; background: #dbeafe; color: #1e3a8a; font-weight: 700; }
    .mn-fc-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: 11px; color: #64748B; }
    .mn-fc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
    .mn-dg .mn-ring-in em small, .mn-fw .mn-ring-in em small { font-weight: 600; }
    .mn-alert-fc { font-size: 10.5px; font-weight: 800; color: #fff; border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
    /* 예보 반영 자세한 카드 */
    .mn-fw-big { align-items: flex-start; padding: 12px 14px; }
    .mn-fw-g { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 0 0 auto; }
    .mn-fw-big .mn-ring-in em { font-size: 19px; } .mn-fw-big .mn-ring-in em small { font-size: 11px; }
    .mn-fw-gl { font-size: 10.5px; font-weight: 700; color: #4338CA; margin-top: 2px; }
    .mn-fw-gt { font-size: 10.5px; color: #94A3B8; white-space: nowrap; }
    .mn-fw-why { color: #0369A1; font-weight: 700; }
    .mn-fcchart { display: block; width: 100%; height: auto; margin-top: 4px; }
    .mn-fcv { font-size: 10px; font-weight: 700; fill: #334155; }
    .mn-fcv-low { fill: #DC2626; }
    .mn-fcw { font-size: 13px; }
    .mn-fcd { font-size: 10px; fill: #64748B; }
    .mn-fcd.mn-sun { fill: #DC2626; } .mn-fcd.mn-sat { fill: #2563EB; }
    .mn-fccut { font-size: 9.5px; fill: #EF4444; font-weight: 700; }
    .mn-dg-date { font-size: 10px; font-weight: 800; line-height: 1; min-height: 10px; }
    .mn-bg-fc .mn-fcchart { width: 100%; }
    .mn-fw-big .mn-fcchart { max-width: 560px; }
    /* 일일 충전·소비 표 */
    .mn-twrap { max-height: 460px; overflow: auto; border: 1px solid #EEF2F7; border-radius: 10px; }
    .mn-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
    #mainView .mn-table th, #mainView .mn-table td { border: 0; border-bottom: 1px solid #EEF2F7; padding: 7px 10px; text-align: center; white-space: nowrap; }
    #mainView .mn-table th { position: sticky; top: 0; z-index: 1; background: #F8FAFC; color: #475569; font-size: 11.5px; font-weight: 700; border-bottom: 1px solid #CBD5E1; }
    #mainView .mn-table .mn-tl { text-align: left; }
    .mn-table tbody tr:hover td { background: #F0F7FF; }
    .mn-th-s { font-weight: 500; color: #94A3B8; }
    .mn-tratio { min-width: 130px; } .mn-tratio b { font-size: 12px; margin-left: 6px; }
    .mn-tbar { display: inline-block; vertical-align: middle; width: 70px; height: 8px; background: #EEF2F7; border-radius: 999px; overflow: hidden; }
    .mn-tbar i { display: block; height: 100%; border-radius: 999px; }
    .mn-tdays { display: inline-block; min-width: 52px; font-weight: 800; border: 1.5px solid; border-radius: 999px; padding: 1px 8px; }
    .mn-tsplit { min-width: 150px; }
    .mn-split { position: relative; display: inline-flex; vertical-align: middle; width: 96px; height: 10px; border-radius: 999px; overflow: visible; background: #EEF2F7; }
    .mn-split i { display: block; height: 100%; } .mn-split-am { background: #F59E0B; border-radius: 999px 0 0 999px; } .mn-split-pm { background: #6366F1; border-radius: 0 999px 999px 0; }
    .mn-split em { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: #0F172A; border-radius: 2px; }
    .mn-split-t { font-size: 11px; color: #64748B; margin-left: 6px; }
    .mn-thint { font-size: 11px; color: #4338CA; margin-top: 2px; white-space: normal; min-width: 260px; max-width: 380px; line-height: 1.4; }
    #mainView .mn-table td { vertical-align: middle; }
    .mn-dim { color: #CBD5E1; font-size: 11.5px; }
    .mn-dimtxt { color: #64748B; }
    .mn-tdate { font-size: 10.5px; font-weight: 700; color: #475569; margin-top: 2px; }
    .mn-twx { font-size: 14px; letter-spacing: 2px; }
    /* 큰 장비 카드 안 방전 예상 */
    .mn-bg-fc { margin-top: 8px; padding: 6px 8px; border-radius: 8px; background: #F8FAFC; border-left: 4px solid var(--fc, #CBD5E1); display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 11.5px; color: #64748B; }
    .mn-bg-fc b { color: #0F172A; }
    .mn-bg-fc-d { font-size: 13px; font-weight: 800; }
    .mn-bg-fc-act { width: 100%; font-weight: 800; color: #B91C1C; }
    .mn-bg-fc-hint { width: 100%; color: #4338CA; }
    .mn-bg-fc-wait { color: #94A3B8; border-left-color: #E2E8F0; }
    @media (max-width: 1100px) { .mn-row2 { grid-template-columns: 1fr; } }
    @media (max-width: 1100px) { .mn-row3 { grid-template-columns: 1fr 1fr; } .mn-row3 > .mn-box:first-child { grid-column: 1 / -1; } }
    @media (max-width: 720px) {
      .mn-row3 { grid-template-columns: 1fr; }
      .mn-scope { margin-left: 0; width: 100%; }
      .mn-panel { padding: 12px; }
      .mn-kring .mn-ring { width: 76px !important; height: 76px !important; }
    }
    /* 헤더 가운데 긴 배너: 사진이 오른쪽 → 왼쪽으로 한 장씩 넘어감 */
    #mainView .bn-banner { position: relative; flex: 0 1 380px; height: 62px; overflow: hidden; border-radius: 10px; border: 1px solid #E2E8F0; background: #F8FAFC; margin: 0 auto; }
    #mainView .bn-track { display: flex; height: 100%; transition: transform .7s ease; }
    #mainView .bn-track.noanim { transition: none; }
    #mainView .bn-slide { flex: 0 0 100%; height: 100%; }
    #mainView .bn-slide a, #mainView .bn-slide img { display: block; width: 100%; height: 100%; }
    #mainView .bn-slide img { object-fit: cover; }
    #mainView .bn-label { position: absolute; right: 4px; bottom: 3px; font-size: 9px; line-height: 1; color: #64748B; background: rgba(255,255,255,.75); padding: 2px 4px; border-radius: 3px; pointer-events: none; }
    @media (max-width: 900px) {
      #mainView .bn-banner { order: 3; flex: 1 1 100%; height: 56px; }
    }
    @media (max-width: 900px) {
      #mainView .top-grid { grid-template-columns: minmax(0, 1fr); }
      #mainView .ad-card, #mainView .ad-reopen { display: none !important; }
    }
    @media (max-width: 900px) {
      #mainView #userInfoBadge { width: auto; margin: 0; }
      #mainView .user-actions { justify-content: space-between; }
    }
    @media (max-width: 520px) {
      #mainView .brand-box img { height: 28px; }
    }

/* ---- 담당자 메시지 보내기 창 (원래 모달 안에 있던 스타일) ---- */
    /* 공통 input 폭(100%) 규칙이 라디오·체크박스에 적용돼 글자가 세로로 깨지는 것 방지 */
    #noticeAdminModal input[type=radio], #noticeAdminModal input[type=checkbox] { width:auto; margin:0; padding:0; flex:0 0 auto; }
    #noticeAdminModal label:has(> input[type=radio]), #noticeAdminModal label:has(> input[type=checkbox]) { white-space:nowrap; }

/* ---- 현장 필터: 관리업체 구분 (총괄관리자) ---- */
    .tab-org-grp { display:inline-flex; align-items:center; gap:6px; flex-wrap:nowrap; }
    .tab-org { font-size:11px; color:#94a3b8; font-weight:600; margin:0 0 0 6px; white-space:nowrap; align-self:center; }
    .tab-org::before { content:"│"; color:#e2e8f0; margin-right:6px; }
    /* 🏢 업체 칩: 현장 버튼과 같은 크기·모양, 연한 남색 → 그 업체 현장이 모두 선택되면 진한 남색 */
    .tab-org-chip, #mainView .tab-org-chip { display:inline-flex; align-items:center; gap:4px; margin:0 0 0 8px; padding:5px 11px; border-radius:999px;
      border:1px solid #c7d2fe; background:#eef2ff; color:#3730a3; font-size:12.5px; font-weight:700; cursor:pointer; white-space:nowrap; line-height:1.4; }
    .tab-org-chip:hover, #mainView .tab-org-chip:hover { background:#e0e7ff; border-color:#a5b4fc; }
    .tab-org-chip.active, #mainView .tab-org-chip.active { background:#3730a3; border-color:#3730a3; color:#fff; }
    .tab-org-cnt { display:inline-block; background:rgba(55,48,163,0.12); color:inherit; padding:0 6px; border-radius:10px; font-size:11px; font-weight:600; }
    .tab-org-chip.active .tab-org-cnt { background:rgba(255,255,255,0.22); }

/* ---- 도움말 ---- */
    .help-card { width:1000px; max-width:97vw; height:86vh; max-height:86vh; display:flex; flex-direction:column; overflow:hidden; padding:16px; }
    .help-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; border-bottom:1px solid #e2e8f0; padding-bottom:10px; margin-bottom:10px; }
    .help-head h3 { margin:0; padding:0; border:none; flex:0 0 auto; }
    .help-head button { margin-top:0; }
    #helpModal .help-search { flex:1 1 220px; width:auto; min-width:160px; padding:7px 12px; border:1px solid #cbd5e1; border-radius:999px; font-size:13px; }
    .help-layout { flex:1; min-height:0; display:grid; grid-template-columns:230px 1fr; gap:12px; }
    .help-nav { overflow-y:auto; border-right:1px solid #e2e8f0; padding-right:8px; }
    .help-cat { font-size:12px; font-weight:700; color:#64748b; margin:10px 0 4px; }
    .help-cat:first-child { margin-top:0; }
    .help-cnt { display:inline-block; background:#fef08a; color:#713f12; border-radius:999px; padding:0 7px; font-size:11px; }
    #helpModal .help-nav-item { display:block; width:100%; text-align:left; background:none; border:none; border-radius:6px; padding:6px 8px;
                                font-size:13px; color:#0f172a; cursor:pointer; margin:0; line-height:1.4; }
    #helpModal .help-nav-item:hover { background:#f1f5f9; }
    #helpModal .help-nav-item.active { background:#eff6ff; color:#1d4ed8; font-weight:700; }
    .help-lock { font-size:11px; }
    .help-content { overflow-y:auto; padding:0 4px 12px; }
    .help-title { font-size:17px; font-weight:700; color:#0f172a; margin-bottom:6px; }
    .help-meta { font-size:11.5px; color:#64748b; margin-bottom:10px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
    .help-meta button { margin-top:0; }
    .help-body { font-size:13.5px; line-height:1.75; color:#1e293b; }
    .help-body h4 { font-size:14px; margin:14px 0 4px; color:#0f172a; }
    .help-body p { margin:6px 0; }
    .help-body ol, .help-body ul { margin:4px 0 8px; padding-left:22px; }
    .help-body li { margin:2px 0; }
    .help-body mark { background:#fef08a; padding:0 1px; border-radius:2px; }
    .help-code { display:inline-flex; align-items:center; gap:4px; max-width:100%; background:#f1f5f9; border:1px solid #e2e8f0; border-radius:6px; padding:1px 2px 1px 8px; margin:1px 0; vertical-align:middle; }
    .help-code code { font-family:Consolas, 'Malgun Gothic', monospace; font-size:12.5px; color:#0f172a; word-break:break-all; }
    #helpModal .help-copy { margin:0; padding:1px 8px; font-size:11px; border-radius:4px; background:#fff; border:1px solid #cbd5e1; color:#334155; cursor:pointer; flex:0 0 auto; }
    .help-tabs { border:1px solid #e2e8f0; border-radius:8px; margin:8px 0; }
    .help-tab-btns { display:flex; flex-wrap:wrap; gap:2px; background:#f8fafc; border-bottom:1px solid #e2e8f0; padding:4px 4px 0; border-radius:8px 8px 0 0; }
    #helpModal .help-tab-btn { margin:0; padding:6px 12px; font-size:12.5px; border:none; background:none; color:#475569; border-radius:6px 6px 0 0; cursor:pointer; }
    #helpModal .help-tab-btn.active { background:#fff; color:#1d4ed8; font-weight:700; box-shadow:0 -2px 0 #1d4ed8 inset; }
    .help-tab-pane { padding:6px 12px; }
    .help-empty { color:#64748b; padding:14px; text-align:center; font-size:13px; }
    .help-form label { display:block; font-size:12.5px; font-weight:600; color:#334155; margin-bottom:8px; }
    .help-form input, .help-form select, .help-form textarea { display:block; width:100%; margin-top:3px; padding:6px 8px; border:1px solid #cbd5e1; border-radius:6px; font-size:13px; font-family:inherit; }
    .help-form textarea { font-family:Consolas, 'Malgun Gothic', monospace; font-size:12.5px; resize:vertical; }
    .help-form-row { display:grid; grid-template-columns:1fr 120px; gap:10px; }
    .help-preview { border:1px dashed #cbd5e1; border-radius:8px; padding:8px 12px; background:#fcfcfd; }
    .help-form-btns { display:flex; justify-content:space-between; align-items:center; margin-top:12px; gap:6px; }
    .help-form-btns button { margin-top:0; }
    .auth-help-link { margin-top:10px; background:none; border:none; color:#0369a1; font-size:12px; text-decoration:underline; cursor:pointer; padding:0; }
    @media (max-width: 720px) {
      .help-card { height:92vh; max-height:92vh; padding:12px; }
      .help-layout { grid-template-columns:1fr; grid-template-rows:auto 1fr; }
      .help-nav { border-right:none; border-bottom:1px solid #e2e8f0; padding:0 0 6px; max-height:28vh; }
    }

/* ---- 일괄 편집: 백업 / 복원 / 전체 삭제 ---- */
    .be-toolbar { display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
    .be-tools { display:flex; gap:6px; flex-wrap:wrap; }
    .be-tools button { margin-top:0 !important; padding:5px 10px !important; }

/* ---- 계정 구분 (업체 관리자 / 현장 담당자) ---- */
    .reg-kind { display:flex; flex-wrap:wrap; gap:6px 14px; font-size:13px; }
    .reg-kind label { display:inline-flex; align-items:center; gap:5px; font-weight:500; white-space:nowrap; margin:0; }
    .reg-kind input[type=radio], .reg-kind input[type=checkbox] { width:auto; margin:0; padding:0; flex:0 0 auto; }
    .reg-kind small { color:#64748b; }
    .user-menu-info { padding:8px 12px; border-bottom:1px solid #e2e8f0; margin-bottom:4px; font-size:12px; line-height:1.6; min-width:200px; }
    .user-menu-info .umi-kind { font-weight:700; color:#0f172a; }
    .user-menu-info .umi-title { color:#64748b; margin-top:4px; }
    .user-menu-info .umi-sites { color:#334155; max-height:180px; overflow-y:auto; }
    .usr-table { font-size:12px; }
    .usr-table td { vertical-align:middle; }
    .usr-in { width:100%; min-width:96px; padding:3px 6px; font-size:11.5px; border:1px solid #cbd5e1; border-radius:4px; }
    select.usr-in { min-width:104px; }
    .usr-site { min-width:140px; }
    .usr-auto { font-size:11px; color:#0369a1; font-weight:600; line-height:1.4; max-width:200px; }
    .usr-auto span { color:#64748b; font-weight:400; }
    /* (2026-11-23) 업체 관리자 현장 더하기·빼기 */
    .usr-auto-edit { cursor:pointer; border:1px dashed #7dd3fc; border-radius:6px; padding:3px 6px; background:#f0f9ff; }
    .usr-auto-edit:hover { border-color:#0284c7; background:#e0f2fe; }
    .usr-auto small { font-weight:400; color:#0369a1; }
    .usr-s-add { color:#15803d; font-weight:600; }
    .usr-s-del { color:#b91c1c; }
    .usr-sites-pop { position:fixed; z-index:1000; width:260px; white-space:normal; word-break:keep-all; background:#fff; border:1px solid #94a3b8; border-radius:8px;
      box-shadow:0 8px 24px rgba(15,23,42,.18); padding:8px; text-align:left; font-size:12px; color:#0f172a; }
    .usr-sp-head { display:flex; align-items:center; gap:6px; font-weight:700; margin-bottom:6px; }
    .usr-sp-head small { font-weight:400; color:#64748b; }
    .usr-sp-head button { margin:0 0 0 auto; padding:2px 8px; border:1px solid #cbd5e1; background:#f8fafc; border-radius:4px; cursor:pointer; font-size:11px; }
    .usr-sp-list { max-height:240px; overflow-y:auto; display:flex; flex-direction:column; gap:2px; }
    .usr-sp-list label { display:flex; align-items:center; gap:5px; padding:2px 4px; border-radius:4px; cursor:pointer; }
    .usr-sp-list label:hover { background:#f1f5f9; }
    .usr-sp-list em { font-style:normal; font-size:10.5px; color:#0369a1; background:#e0f2fe; border-radius:3px; padding:0 4px; }
    .usr-sp-note { margin-top:6px; font-size:11px; color:#64748b; line-height:1.45; }
    .usr-chk { display:inline-flex; align-items:center; gap:3px; font-size:11.5px; margin-right:6px; }
    .usr-chk input { width:auto; margin:0; padding:0; }
    .usr-row-changed td { background:#fefce8 !important; }
    .usr-row-changed td:first-child { box-shadow:inset 3px 0 0 #eab308; }
    .usr-changed-cnt { align-self:center; font-size:12px; font-weight:700; color:#a16207; background:#fef9c3; border:1px solid #fde68a; padding:3px 10px; border-radius:999px; }
    .usr-pending { display:inline-block; padding:2px 7px; border-radius:10px; background:#fef3c7; color:#b45309; font-size:11px; font-weight:700; white-space:nowrap; }

/* ---- 메시지 안의 표 / 배터리 점검 ---- */
    .nt-table, #mainView .nt-table { border-collapse:collapse; width:100%; margin-top:10px; font-size:13px; background:#fff; }
    .nt-table th, #mainView .nt-table th { background:#0f172a; color:#fff; font-weight:600; padding:7px 10px; text-align:left; border:1px solid #0f172a; position:static; font-size:12.5px; }
    .nt-table td, #mainView .nt-table td { padding:6px 10px; border:1px solid #e2e8f0; color:#1e293b; text-align:left; }
    .nt-table .nt-tc, #mainView .nt-table .nt-tc { text-align:center; }
    .nt-table .nt-tr, #mainView .nt-table .nt-tr { text-align:right; }
    .nt-lv { display:inline-block; padding:1px 10px; border-radius:999px; font-weight:700; font-size:12.5px; }
    .nt-lv-red { background:#fee2e2; color:#b91c1c; }
    .nt-lv-orange { background:#ffedd5; color:#c2410c; }
    .nt-lv-ok { background:#dcfce7; color:#166534; }
    /* 💬 대화 메시지 */
    .chat-btn { position:relative; background:#f5f3ff; color:#5b21b6; border:1px solid #c4b5fd; border-radius:999px; padding:4px 12px; font-size:12.5px; font-weight:bold; cursor:pointer; margin-top:0; }
    .chat-badge { position:absolute; top:-6px; right:-6px; background:#dc2626; color:#fff; border-radius:999px; font-size:11px; min-width:18px; height:18px; line-height:18px; padding:0 4px; box-sizing:border-box; text-align:center; }
    .chat-body { display:flex; gap:10px; height:min(62vh, 520px); }
    .chat-side { width:250px; flex-shrink:0; overflow-y:auto; border:1px solid #e2e8f0; border-radius:8px; background:#f8fafc; }
    .chat-side.hide { display:none; }
    .chat-item { padding:8px 10px; border-bottom:1px solid #e2e8f0; cursor:pointer; font-size:13px; }
    .chat-item:hover { background:#eef2ff; }
    .chat-item.sel { background:#e0e7ff; }
    .chat-item .ci-last { color:#64748b; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .chat-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:#cbd5e1; margin-right:5px; }
    .chat-dot.on { background:#16a34a; }
    .chat-unread { background:#dc2626; color:#fff; border-radius:999px; font-size:11px; padding:0 6px; margin-left:4px; }
    /* (2026-11-23) 왼쪽 대화상대 목록: 관리업체 묶음·체크박스·모두에게 */
    .chat-item .ci-top { display:flex; align-items:center; gap:2px; min-width:0; }
    .chat-item .ci-top b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
    .chat-item.chat-admin { background:#faf5ff; }
    .chat-item.chat-admin.sel { background:#e0e7ff; }
    .chat-chk { margin:0 5px 0 0; flex-shrink:0; cursor:pointer; }
    .chat-tag { flex-shrink:0; font-size:10.5px; color:#5b21b6; background:#ede9fe; border-radius:4px; padding:0 4px; margin-left:4px; }
    .chat-grp { position:sticky; top:0; z-index:1; background:#e2e8f0; color:#334155; font-size:12px; font-weight:bold; padding:4px 10px; }
    .chat-grp label { cursor:pointer; display:flex; align-items:center; gap:5px; }
    .chat-tools { display:flex; gap:6px; padding:8px; border-bottom:1px solid #e2e8f0; background:#fff; }
    .chat-all-btn { flex:1; margin-top:0; font-size:12.5px; padding:4px 6px; border:1px solid #c4b5fd; border-radius:6px; background:#f5f3ff; color:#5b21b6; font-weight:bold; cursor:pointer; }
    .chat-all-btn.on { background:#7c3aed; color:#fff; border-color:#7c3aed; }
    .chat-clear-btn { margin-top:0; font-size:12px; padding:4px 6px; border:1px solid #cbd5e1; border-radius:6px; background:#fff; color:#475569; cursor:pointer; }
    .chat-empty { padding:10px; color:#64748b; font-size:12.5px; }
    .chat-to-list { font-size:13px; color:#334155; line-height:1.9; }
    .chat-to { display:inline-flex; align-items:center; background:#fff; border:1px solid #e2e8f0; border-radius:999px; padding:0 9px; margin:2px 4px 2px 0; font-size:12.5px; }
    .chat-main { flex:1; min-width:0; display:flex; flex-direction:column; }
    .chat-head { font-weight:bold; font-size:14px; padding:4px 2px 8px; color:#1e293b; }
    .chat-log { flex:1; overflow-y:auto; background:#f1f5f9; border-radius:8px; padding:10px; display:flex; flex-direction:column; gap:6px; }
    .chat-msg { max-width:78%; padding:7px 10px; border-radius:12px; font-size:13.5px; line-height:1.5; white-space:pre-wrap; word-break:break-word; }
    .chat-msg.mine { align-self:flex-end; background:#7c3aed; color:#fff; border-bottom-right-radius:4px; }
    .chat-msg.theirs { align-self:flex-start; background:#fff; color:#1e293b; border:1px solid #e2e8f0; border-bottom-left-radius:4px; }
    .chat-meta { font-size:11px; color:#94a3b8; }
    .chat-meta.mine { align-self:flex-end; }
    .chat-input { display:flex; gap:6px; margin-top:8px; }
    .chat-input textarea { flex:1; resize:none; font-size:13.5px; padding:7px; border:1px solid #cbd5e1; border-radius:8px; }
    .chat-toast { position:fixed; right:18px; bottom:18px; z-index:9998; background:#4c1d95; color:#fff; padding:12px 16px; border-radius:12px; box-shadow:0 8px 24px rgba(0,0,0,0.25); max-width:340px; font-size:13.5px; cursor:pointer; }
    @media (max-width: 640px) { .chat-side { width:120px; } .chat-msg { max-width:90%; } }
    .nt-lv-urgent { background:#b91c1c; color:#ffffff; animation: socBlink 1s steps(2, start) infinite; }
    .nt-lv-yellow { background:#fef9c3; color:#854d0e; }
    .nt-lv-sky { background:#e0f2fe; color:#0369a1; }
    .nt-lv-blue { background:#dbeafe; color:#1d4ed8; }
    /* 배터리 잔량 긴급(빨강 깜빡임) */
    @keyframes socBlink { to { opacity: 0.25; } }
    .soc-blink { animation: socBlink 1s steps(2, start) infinite; }
    @media (prefers-reduced-motion: reduce) { .soc-blink, .nt-lv-urgent { animation: none; } }
    #batteryModal input[type=checkbox], #batPreviewModal input[type=checkbox], #batContactMail { width:auto; margin:0; padding:0; flex:0 0 auto; }
    .bat-modal-head { position:sticky; top:-20px; z-index:2; background:#fff; margin:-20px -20px 12px; padding:16px 20px 0;
                      display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
    .bat-modal-head h3 { flex:1; margin-bottom:0; }
    .bat-head-btns { display:flex; gap:6px; flex-shrink:0; }
    .bat-head-btns button { margin-top:0; }
    @media (max-width: 480px) { .bat-modal-head { top:-14px; margin:-14px -14px 10px; padding:12px 14px 0; } }
    #batSendModal input[type=checkbox] { width:auto; margin:0; padding:0; flex:0 0 auto; }
    .bs-opts { display:flex; flex-wrap:wrap; gap:8px 16px; }
    .bs-all { margin:4px 0 6px; }
    .bs-list { border:1px solid #e2e8f0; border-radius:8px; max-height:46vh; overflow-y:auto; overflow-x:hidden; }
    #batSendModal .modal-card { overflow-x:hidden; }
    #batSendModal .bat-inline { white-space:normal; flex-wrap:wrap; }
    .bs-site { padding:8px 10px; border-bottom:1px solid #f1f5f9; }
    .bs-site:last-child { border-bottom:none; }
    .bs-users { display:flex; flex-direction:column; gap:3px; padding:4px 0 0 24px; }
    .bat-box { border:1px solid #e2e8f0; border-radius:8px; padding:10px 12px; background:#f8fafc; margin-bottom:10px; }
    .bat-box-title { font-weight:700; font-size:13px; color:#0f172a; margin-bottom:6px; }
    .bat-settings, .bat-btns { display:flex; flex-wrap:wrap; gap:10px 14px; align-items:center; margin-bottom:4px; }
    .bat-inline { display:inline-flex; align-items:center; gap:5px; font-size:13px; font-weight:500; white-space:nowrap; }
    #batteryModal .bat-time { width:120px; }
    #batteryModal .bat-num { width:64px; }
    .bat-settings2 { margin-top:8px; padding-top:8px; border-top:1px dashed #e2e8f0; }
    .bat-set-title { font-size:12px; font-weight:700; color:#475569; background:#f1f5f9; border-radius:4px; padding:2px 8px; }
    .bat-missed { margin:6px 0; padding:8px 12px; background:#fef2f2; border:1px solid #fecaca; border-radius:8px; font-size:13px; color:#b91c1c; }
    .bat-note { font-size:12px; color:#475569; }
    .bat-note-red { color:#b91c1c; font-weight:700; }
    /* 🖼 제품 사진·배너 관리 */
    .aa-tabs { display:flex; gap:6px; margin:4px 0 10px; }
    .aa-tabs button { border:1px solid #cbd5e1; background:#fff; color:#334155; font-size:13px; padding:6px 14px; border-radius:8px; cursor:pointer; font-weight:600; }
    .aa-tabs button.on { background:#0f172a; color:#fff; border-color:#0f172a; }
    .aa-guide { background:#eff6ff; border:1px solid #bfdbfe; border-radius:8px; padding:10px 14px; font-size:12.5px; color:#1e3a8a; margin-bottom:10px; }
    .aa-guide ul { margin:6px 0 0; padding-left:18px; line-height:1.7; color:#334155; }
    .aa-upload { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:8px; }
    .aa-up-btn { cursor:pointer; margin-top:0; display:inline-block; }
    .aa-count { font-weight:700; font-size:13px; color:#0f172a; }
    .aa-hint { font-size:11.5px; color:#64748b; }
    .aa-item { display:flex; gap:12px; align-items:flex-start; border:1px solid #e2e8f0; border-radius:8px; padding:8px; margin-bottom:6px; background:#fff; }
    .aa-thumb { flex:0 0 auto; background:#f1f5f9; border-radius:6px; overflow:hidden; border:1px solid #e2e8f0; }
    .aa-thumb img { display:block; width:100%; height:100%; object-fit:cover; }
    .aa-thumb-card { width:160px; height:122px; }
    .aa-thumb-banner { width:240px; height:50px; }
    .aa-info { flex:1; min-width:0; font-size:12.5px; }
    .aa-name { display:flex; gap:8px; align-items:center; flex-wrap:wrap; color:#475569; }
    .aa-size { font-size:11.5px; padding:1px 8px; border-radius:999px; font-weight:700; }
    .aa-size.aa-ok { background:#dcfce7; color:#166534; }
    .aa-size.aa-bad { background:#ffedd5; color:#9a3412; }
    .aa-warn { font-size:11.5px; color:#b45309; margin-top:2px; }
    .aa-fields { display:flex; flex-direction:column; gap:4px; margin-top:6px; }
    .aa-fields label, .aa-foot label { display:flex; align-items:center; gap:6px; font-size:12px; color:#475569; }
    .aa-fields input, .aa-foot input { flex:1; min-width:0; padding:4px 6px; font-size:12.5px; }
    .aa-btns { display:flex; flex-direction:column; gap:4px; }
    .aa-btns button { font-size:12px; padding:3px 10px; border:1px solid #cbd5e1; background:#fff; border-radius:5px; cursor:pointer; }
    .aa-btns button:disabled { opacity:.35; cursor:default; }
    .aa-btns .aa-del { color:#b91c1c; border-color:#fecaca; }
    .aa-btns .aa-rep { font-size:12px; padding:3px 10px; border:1px solid #bfdbfe; background:#eff6ff; color:#1d4ed8; border-radius:5px; cursor:pointer; text-align:center; font-weight:600; }
    .aa-foot { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:8px; padding-top:8px; border-top:1px dashed #e2e8f0; }
    .aa-foot label { flex:1 1 360px; }
    /* ⚙ 환경설정 */
    .st-group { border:1px solid #e2e8f0; border-radius:8px; margin-bottom:10px; overflow:hidden; }
    .st-group-title { background:#f1f5f9; font-weight:700; font-size:13.5px; padding:8px 12px; color:#0f172a; }
    .st-row { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:8px 12px; border-top:1px solid #f1f5f9; flex-wrap:wrap; }
    .st-row.st-changed { background:#fef9c3; }
    .st-label { flex:1 1 300px; font-size:13px; font-weight:600; color:#1e293b; }
    .st-help { font-size:11.5px; font-weight:normal; color:#64748b; margin-top:2px; line-height:1.5; }
    .st-input { display:flex; align-items:center; gap:6px; flex-wrap:nowrap; }
    #settingsModal .st-val { width:80px; padding:5px 6px; font-size:13px; text-align:right; }
    .st-unit { font-size:12.5px; color:#334155; min-width:42px; }
    .st-range { font-size:11px; color:#94a3b8; min-width:58px; }
    .st-def { font-size:11px; padding:3px 8px; border:1px solid #cbd5e1; background:#fff; border-radius:5px; cursor:pointer; color:#475569; white-space:nowrap; }
    .st-log { margin-top:10px; font-size:12.5px; }
    .st-log summary { cursor:pointer; font-weight:700; color:#334155; margin-bottom:6px; }
    /* 장비 상세 — 일별 추이 */
    .dc-card { background:#fff; border-radius:10px; padding:14px; border:1px solid #e2e8f0; margin-top:12px; }
    .dc-head { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:8px; font-size:13px; color:#0f172a; }
    .dc-sub { font-size:11px; color:#64748b; font-weight:normal; }
    .dc-range button { border:1px solid #cbd5e1; background:#fff; color:#334155; font-size:12px; padding:4px 10px; border-radius:6px; cursor:pointer; margin-left:2px; }
    .dc-range button.on { background:#0f172a; color:#fff; border-color:#0f172a; }
    .dc-summary { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:8px; margin-bottom:8px; }
    .dc-kpi { background:#f8fafc; border:1px solid #e2e8f0; border-radius:6px; padding:8px 10px; font-size:11px; color:#64748b; }
    .dc-kpi b { display:block; font-size:15px; color:#0f172a; margin-top:2px; }
    .dc-kpi span { font-size:11px; }
    .dc-kpi i { font-style:normal; font-weight:700; }
    .dc-chart { border-top:1px dashed #e2e8f0; padding-top:6px; margin-top:6px; }
    .dc-chart-head { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:6px; font-size:12.5px; color:#334155; }
    .dc-legend { display:flex; gap:10px; font-size:11px; color:#475569; flex-wrap:wrap; }
    .dc-legend i { display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:4px; vertical-align:-1px; }
    .dc-note { font-size:11px; color:#64748b; margin-top:6px; }
    .dc-empty { font-size:12.5px; color:#64748b; text-align:center; padding:18px 8px; line-height:1.7; }
    .bat-status { margin-top:8px; font-size:12.5px; line-height:1.6; background:#fff; border:1px dashed #cbd5e1; border-radius:6px; padding:8px 10px; }
    .bat-run { display:inline-block; background:#fef3c7; color:#92400e; font-weight:700; padding:1px 8px; border-radius:999px; }
    .bat-warn { margin-top:4px; color:#b45309; font-weight:600; }
    .bat-prog-head { display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; font-size:12px; color:#475569; }
    .bat-bar { position:relative; height:18px; background:#e2e8f0; border-radius:999px; overflow:hidden; margin:8px 0 6px; }
    .bat-bar-fill { height:100%; background:linear-gradient(90deg,#3b82f6,#0ea5e9); border-radius:999px; transition:width 0.9s linear; }
    .bat-bar span { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; color:#0f172a; }
    .bat-steps { list-style:none; margin:0; padding:0; }
    .bat-steps li { display:grid; grid-template-columns:22px 190px 1fr; gap:6px; align-items:center; padding:4px 2px; border-bottom:1px dashed #f1f5f9; }
    .bat-steps li:last-child { border-bottom:none; }
    @media (max-width: 560px) { .bat-steps li { grid-template-columns:22px 1fr; } .bat-steps .bat-dt { grid-column:2; } }
    .bat-ic { text-align:center; }
    .bat-lb { font-weight:600; color:#334155; }
    .bat-dt { color:#475569; }
    .bat-st-todo .bat-lb, .bat-st-todo .bat-ic { color:#cbd5e1; }
    .bat-st-skip .bat-lb, .bat-st-skip .bat-dt { color:#94a3b8; }
    .bat-st-active { background:#eff6ff; border-radius:6px; }
    .bat-st-active .bat-lb { color:#1d4ed8; }
    .bat-count { color:#1d4ed8; font-size:13px; }
    .bat-spin { display:inline-block; width:12px; height:12px; border:2px solid #93c5fd; border-top-color:#1d4ed8; border-radius:50%; animation:batSpin 0.8s linear infinite; vertical-align:middle; }
    @keyframes batSpin { to { transform:rotate(360deg); } }
    .bat-summary { font-size:13px; line-height:1.7; padding:8px 10px; background:#fff; border:1px solid #e2e8f0; border-radius:8px; }
    .bat-sub { font-size:12px; color:#475569; }
    .bat-tag { display:inline-block; font-size:11px; background:#e0f2fe; color:#0369a1; padding:0 7px; border-radius:999px; }
    .bat-table-wrap { max-height:46vh; overflow:auto; border:1px solid #e2e8f0; border-radius:8px; }
    .bat-table-wrap .nt-table { margin-top:0; }
    .bat-row-off td { color:#94a3b8 !important; }
    .bat-gray { color:#94a3b8; font-size:12px; }
    .bat-relay { font-size:12px; color:#475569; }
    .bat-empty { color:#64748b; padding:12px; border:1px dashed #cbd5e1; border-radius:8px; text-align:center; font-size:13px; }
    .bat-pv-grid { display:grid; grid-template-columns:1.2fr 1fr; gap:14px; }
    @media (max-width: 760px) { .bat-pv-grid { grid-template-columns:1fr; } }
    .bat-pv-subject { font-size:12.5px; color:#334155; margin-bottom:6px; word-break:break-all; }
    .bat-pv-mail { width:100%; height:420px; border:1px solid #e2e8f0; border-radius:8px; background:#fff; }
    .bat-pv-card { border:1px solid #e2e8f0; border-radius:8px; padding:10px 12px; margin-bottom:8px; background:#fff; }
    .bat-pv-to { font-size:11.5px; color:#64748b; }

/* ---- 서버 운영 시간 / 자동 종료 안내 ---- */
    #schedModal input[type=checkbox] { width:auto; margin:0; padding:0; flex:0 0 auto; }
    #schedModal .sched-row { display:grid; grid-template-columns:110px 1fr; gap:8px; align-items:start; padding:8px 0; border-bottom:1px solid #f1f5f9; font-size:13px; }
    #schedModal .sched-label { font-weight:700; color:#334155; padding-top:5px; }
    #schedModal .sched-inline { display:inline-flex; align-items:center; gap:5px; font-weight:500; white-space:nowrap; padding-top:4px; }
    #schedModal .sched-days { display:flex; flex-wrap:wrap; gap:10px; }
    #schedModal .sched-time { width:120px; }
    #schedModal .sched-num { width:64px; }
    #schedModal .sched-hint, .sched-hint { font-size:11.5px; color:#64748b; margin-top:3px; line-height:1.5; }
    #schedModal .sched-today-box { margin-top:12px; padding:10px 12px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:8px; font-size:13px; font-weight:600; color:#0f172a; display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; }
    @media (max-width: 480px) { #schedModal .sched-row { grid-template-columns:1fr; gap:2px; } }

    .sched-auth-info { margin-top:10px; display:inline-block; font-size:12px; font-weight:600; color:#0369a1; background:#e0f2fe; border:1px solid #bae6fd; padding:5px 12px; border-radius:999px; }
    #mainView .sched-chip { color:#9a3412; background:#fff7ed; border-color:#fed7aa; }

    #schedBanner { position:fixed; top:10px; left:50%; transform:translateX(-50%); z-index:1000; pointer-events:none;
                   background:#f59e0b; color:#fff; font-weight:700; font-size:14px; padding:9px 20px; border-radius:999px;
                   box-shadow:0 6px 18px rgba(15,23,42,0.28); white-space:nowrap; max-width:calc(100vw - 24px); overflow:hidden; text-overflow:ellipsis; }
    #schedBanner { align-items:center; gap:10px; }
    #schedBanner #schedBannerText { overflow:hidden; text-overflow:ellipsis; }
    #schedExtendBtn { pointer-events:auto; flex:0 0 auto; margin:0; background:#fff; color:#b45309; border:none; border-radius:999px;
                      padding:4px 12px; font-size:12.5px; font-weight:700; cursor:pointer; box-shadow:0 1px 3px rgba(0,0,0,0.2); }
    #schedExtendBtn:hover { background:#fff7ed; }
    #schedExtendBtn:disabled { opacity:0.7; cursor:wait; }
    #schedBanner.sched-red #schedExtendBtn { color:#b91c1c; }
    #schedExtendNote { flex:0 0 auto; font-size:12px; font-weight:600; opacity:0.9; }
    @media (max-width: 560px) { #schedBanner { flex-wrap:wrap; justify-content:center; white-space:normal; border-radius:14px; } }
    #schedModal .sched-sel { width:auto; padding:3px 6px; margin-left:4px; }
    #schedModal .sched-ext-title { margin-top:14px; font-weight:700; font-size:13px; color:#0f172a; }
    #schedModal .sched-ext-log { margin-top:6px; max-height:220px; overflow:auto; border:1px solid #e2e8f0; border-radius:8px; }
    #schedBanner.sched-red { background:#dc2626; animation:schedPulse 1s ease-in-out infinite; }
    @keyframes schedPulse { 50% { opacity:0.75; } }
    @media (max-width: 480px) { #schedBanner { font-size:12.5px; padding:8px 14px; } }

    #schedGoneView { position:fixed; inset:0; z-index:2000; background:rgba(15,23,42,0.82); display:flex; align-items:center; justify-content:center; padding:16px; }
    #schedGoneView .sched-gone-card { background:#fff; border-radius:12px; padding:26px 28px; width:380px; max-width:100%; text-align:center; box-shadow:0 12px 30px rgba(0,0,0,0.3); }
    #schedGoneView h3 { font-size:18px; color:#0f172a; margin:8px 0 10px; }
    #schedGoneView p { font-size:13.5px; color:#334155; margin-bottom:6px; }
    #schedGoneView .btn-primary { margin-top:12px; }
