    * { margin: 0; padding: 0; box-sizing: border-box; }
    body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f6f8fc; color: #1f1f1f; font-size: 15px; }

    /* 로그인 */
    .login-overlay { position: fixed; inset: 0; background: #eef1f6; display: flex; align-items: center; justify-content: center; z-index: 1000; }
    .login-box { background: #ffffff; padding: 34px 32px 30px; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,0.07); border: 1px solid #e5e7eb; text-align: center; width: 400px; }
    .login-subtitle { font-size: 13px; color: #6b7280; font-weight: 600; margin-bottom: 18px; }
    .login-tabs { display: flex; border-bottom: 1px solid #eef0f3; margin-bottom: 18px; }
    .login-tab { flex: 1; padding: 9px; border: none; border-bottom: 2px solid transparent; background: transparent; color: #9aa1ab; font-weight: 500; font-size: 14px; cursor: pointer; font-family: inherit; }
    .login-tab.active { border-bottom-color: #3B6FE0; color: #1f2430; font-weight: 700; }
    .login-or { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: #c4c8cf; font-size: 12px; }
    .login-or span { flex: 1; height: 1px; background: #eef0f3; }
    .login-box .btn-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 11px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; color: #1f2430; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.15s; }
    .login-box .btn-google:hover { background: #f8f9fa; border-color: #c0c4c9; }
    .login-icon { width: 64px; height: 64px; background: #4285f4; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
    .login-icon svg { width: 36px; height: 36px; fill: #fff; }
    .login-box h2 { margin-bottom: 8px; font-size: 24px; font-weight: 800; color: #1f1f1f; letter-spacing: -0.5px; }
    .login-box .sub { color: #80868b; font-size: 15px; margin-bottom: 32px; }
    .login-box input { width: 100%; padding: 13px 15px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 15px; margin-bottom: 12px; background: #fff; color: #1f2430; outline: none; transition: all 0.15s; }
    .login-box input:focus { border-color: #3B6FE0; box-shadow: 0 0 0 3px rgba(59,111,224,0.12); }
    .login-box .btn-login { width: 100%; padding: 13px; background: #3B6FE0; color: #fff; border: none; border-radius: 10px; font-size: 15px; cursor: pointer; font-weight: 700; transition: all 0.15s; margin-top: 6px; }
    .login-box .btn-login:hover { background: #2f5cc9; }
    .login-box .btn-test { width: 100%; padding: 14px; background: #5f6368; color: #fff; border: none; border-radius: 12px; font-size: 15px; cursor: pointer; font-weight: 500; transition: all 0.2s; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; }
    .login-box .btn-test:hover { background: #444746; }
    .login-box .btn-alt { flex: 1; padding: 11px 12px; background: #fff; color: #3c4043; border: 1px solid #dadce0; border-radius: 10px; font-size: 13.5px; cursor: pointer; font-weight: 600; transition: all 0.15s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: inherit; white-space: nowrap; }
    .login-box .btn-alt:hover { background: #f8f9fa; border-color: #c0c4c9; }
    .login-error { color: #ea4335; font-size: 14px; margin-bottom: 14px; display: none; background: #fce8e6; padding: 10px 14px; border-radius: 8px; }
    .login-demo-box { margin-top: 18px; padding: 12px 14px; background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 10px; font-size: 12.5px; color: #1f1f1f; line-height: 1.5; text-align: left; }
    .login-demo-box b { color: #0b57d0; }
    .app-content { display: none; }

    /* 레이아웃 */
    .layout { display: flex; height: 100vh; overflow: hidden; }
    /* 사이드바 — 본문과 별개로 스크롤 (sticky/full-height) */
    .sidebar { width: 240px; height: 100vh; background: #f6f8fc; color: #444746; padding: 0; flex-shrink: 0; display: flex; flex-direction: column; border-right: 1px solid #e0e0e0; position: sticky; top: 0; overflow: hidden; }
    /* 초기 로딩 스플래시 */
    #appLoading { position: fixed; inset: 0; z-index: 9999; background: #ffffff; display: flex; align-items: center; justify-content: center; transition: opacity 0.35s ease; }
    #appLoading img { width: 150px; height: 150px; }
    #appLoading.done { opacity: 0; pointer-events: none; }

    .sidebar .logo { padding: 16px 18px; border-bottom: 1px solid #e0e0e0; flex-shrink: 0; display: flex; align-items: center; }
    .sidebar .logo small { display: block; font-size: 12px; font-weight: 400; color: #5f6368; margin-top: 4px; }
    .sidebar nav { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 0; }
    .sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 12px 18px; color: #444746; text-decoration: none; font-size: 15px; transition: all 0.2s; cursor: pointer; border-left: 3px solid transparent; border-radius: 0 20px 20px 0; margin-right: 12px; }
    .sidebar nav a:hover { background: #e8eaed; color: #1f1f1f; }
    .sidebar nav a.active { background: #d3e3fd; color: #001d35; border-left-color: #0b57d0; font-weight: 600; }
    .sidebar nav a .icon { font-size: 18px; width: 22px; text-align: center; }

    /* 사이드바 하단 — 사용자 정보 + 로그아웃 */
    .sidebar-footer { flex-shrink: 0; padding: 12px; border-top: 1px solid #e0e0e0; background: #f6f8fc; }
    .sb-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; transition: background 0.15s; }
    .sb-user:hover { background: #e8eaed; }
    .sb-user-avatar { width: 32px; height: 32px; background: #1f1f1f; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .sb-user-info { flex: 1; min-width: 0; }
    .sb-user-name { font-size: 13px; font-weight: 600; color: #1f1f1f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .sb-user-role { font-size: 11px; color: #5f6368; margin-top: 1px; }
    .sb-logout { background: none; border: none; padding: 6px; border-radius: 6px; color: #5f6368; cursor: pointer; display: flex; align-items: center; transition: all 0.15s; flex-shrink: 0; }
    .sb-logout:hover { color: #c5221f; background: #fce8e6; }

    /* 본문 컨테이너 — 스크롤은 자식 main-content 한 곳에서만 일어나도록 둠 */
    .main { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100vh; overflow: hidden; background: #f6f8fc; }
    .top-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 32px; background: #fff; border-bottom: 1px solid #e0e0e0; flex-shrink: 0; }
    .top-header .header-left { font-size: 15px; font-weight: 600; color: #1f1f1f; }
    .top-header .header-right { display: flex; align-items: center; gap: 12px; }
    .top-header .user-badge { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #444746; background: #f1f3f4; padding: 5px 12px; border-radius: 20px; }
    .top-header .user-badge svg { flex-shrink: 0; }
    .top-header .logout-btn { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #c5221f; background: none; border: 1px solid #dadce0; padding: 5px 12px; border-radius: 20px; cursor: pointer; transition: all 0.2s; }
    .top-header .logout-btn:hover { background: #fce8e6; border-color: #c5221f; }
    .main-content { flex: 1; padding: 24px 32px; overflow-y: auto; width: 100%; }
    .page-title { font-size: 24px; font-weight: 700; margin-bottom: 20px; color: #1f1f1f; }

    /* 통계 카드 - 한 줄 컴팩트 */
    .stats { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
    .stat-card { background: #fff; padding: 6px 12px; border-radius: 8px; border: 1px solid #e0e0e0; border-left: 3px solid var(--accent, #0b57d0); cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.2s; box-shadow: 0 1px 2px rgba(0,0,0,0.04); flex: 1; min-width: 0; overflow: hidden; }
    .stat-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); border-color: var(--accent, #0b57d0); }
    .stat-card .label { font-size: 12px; color: #5f6368; white-space: nowrap; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
    .stat-card .value { font-size: 22px; font-weight: 800; color: var(--accent, #0b57d0); line-height: 1; white-space: nowrap; }

    /* 카드 패널 */
    .panel { background: #ffffff; border-radius: 12px; border: 1px solid #e0e0e0; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); overflow: hidden; min-width: 0; }
    .panel-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; color: #444746; gap: 8px; flex-wrap: wrap; }
    .panel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }

    /* 제품별 통계 카드 */
    .product-stat { background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 8px; padding: 10px 12px; transition: all 0.2s; overflow: hidden; }
    .product-stat:hover { border-color: #0b57d0; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
    .product-stat .name { font-weight: 600; font-size: 13px; margin-bottom: 2px; color: #1f1f1f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .product-stat .code { font-size: 11px; color: #5f6368; font-family: monospace; margin-bottom: 6px; }
    .product-stat .nums { display: flex; gap: 10px; font-size: 12px; flex-wrap: wrap; }
    .product-stat .nums span { color: #444746; white-space: nowrap; }
    .product-stat .nums strong { margin-right: 2px; }

    /* 대시보드 그리드 */
    .dash-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
    .dash-grid-3 > * { min-width: 0; }
    .dash-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
    .dash-grid-2 > * { min-width: 0; }
    .dash-grid-2-wide { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; margin-bottom: 16px; }
    .dash-grid-2-wide > * { min-width: 0; }

    /* 대시보드 위계 — ① 조치 필요 ② 현황 ③ 이번달 ④ 상세 */
    .dash-section-label { font-size: 12px; font-weight: 700; color: #5f6368; margin: 4px 0 10px; display: flex; align-items: center; gap: 6px; letter-spacing: .2px; }
    .dash-section-label svg { width: 15px; height: 15px; }
    .action-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 22px; }
    .action-card { border-radius: 12px; padding: 16px 18px; cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .15s; }
    .action-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
    .action-card .ac-label { font-size: 13px; font-weight: 700; }
    .action-card .ac-value { font-size: 34px; font-weight: 800; line-height: 1.05; margin: 4px 0 4px; }
    .action-card .ac-hint { font-size: 12px; opacity: .9; }
    .action-card.warn   { background: #fef7e0; border-color: #fde293; }
    .action-card.warn   .ac-label, .action-card.warn .ac-value, .action-card.warn .ac-hint { color: #9a6700; }
    .action-card.danger { background: #fce8e6; border-color: #f6c4c0; }
    .action-card.danger .ac-label, .action-card.danger .ac-value, .action-card.danger .ac-hint { color: #c5221f; }
    .action-card.info   { background: #e8f0fe; border-color: #c2d7fb; }
    .action-card.info   .ac-label, .action-card.info .ac-value, .action-card.info .ac-hint { color: #1a5fc4; }
    .action-card.calm   { background: #f1f3f4; border-color: #e0e3e7; }
    .action-card.calm   .ac-label, .action-card.calm .ac-value, .action-card.calm .ac-hint { color: #444746; }
    .mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px; margin-bottom: 22px; }
    .mini-stat { background: #f7f8fa; border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: background .15s; border: 1px solid #eef0f3; }
    .mini-stat:hover { background: #eef1f6; }
    .mini-stat .ms-label { font-size: 12px; color: #5f6368; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mini-stat .ms-value { font-size: 23px; font-weight: 700; margin-top: 3px; color: #1f1f1f; line-height: 1.1; }
    /* 접이식 상세 */
    .dash-collapse { border: 1px solid #e8eaed; border-radius: 12px; margin-bottom: 16px; background: #fff; }
    .dash-collapse > summary { list-style: none; cursor: pointer; padding: 14px 18px; font-size: 14px; font-weight: 600; color: #444746; display: flex; align-items: center; gap: 8px; }
    .dash-collapse > summary::-webkit-details-marker { display: none; }
    .dash-collapse > summary .chev { transition: transform .2s; margin-left: auto; }
    .dash-collapse[open] > summary .chev { transform: rotate(180deg); }
    .dash-collapse .dash-collapse-body { padding: 0 18px 18px; }

    /* 툴바 */
    .toolbar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
    .toolbar input { flex: 1; min-width: 200px; padding: 11px 16px; border: 1px solid #dadce0; border-radius: 10px; font-size: 14px; background: #ffffff; color: #1f1f1f; outline: none; }
    .toolbar input:focus { border-color: #0b57d0; }
    .toolbar select { padding: 11px 16px; border: 1px solid #dadce0; border-radius: 10px; font-size: 14px; background: #ffffff; color: #1f1f1f; outline: none; }

    .btn { padding: 10px 20px; border: none; border-radius: 10px; font-size: 14px; cursor: pointer; font-weight: 600; transition: all 0.2s; }
    .btn-primary { background: #0b57d0; color: #fff; }
    .btn-primary:hover { background: #0842a0; transform: translateY(-1px); }
    .btn-danger { background: #c5221f; color: #fff; }
    .btn-danger:hover { background: #a50e0e; }
    .btn-sm { padding: 6px 14px; font-size: 13px; }
    .btn-outline { background: transparent; color: #0b57d0; border: 1px solid #0b57d0; }
    .btn-outline:hover { background: rgba(11,87,208,0.08); }
    .btn-success { background: #188038; color: #fff; }
    .btn-success:hover { background: #137333; }
    .btn-warning { background: #ea8600; color: #fff; }
    .btn-warning:hover { background: #d07800; }
    .btn-kakao { background: #FEE500; color: #1f1f1f; }
    .btn-kakao:hover { background: #E6CF00; }
    .chat-agent-item { display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;cursor:pointer;font-size:13px;color:#444746;transition:all 0.15s; }
    .chat-agent-item:hover { background:#e8eaed; }
    .chat-agent-item.active { background:#d3e3fd;color:#001d35;font-weight:600; }
    .chat-bubble { max-width:80%;padding:10px 14px;border-radius:16px;font-size:14px;line-height:1.5;white-space:pre-line;word-break:break-word; }
    .chat-bubble.user { background:#0b57d0;color:#fff;border-bottom-right-radius:4px;align-self:flex-end; }
    .chat-bubble.agent { background:#f1f3f4;color:#1f1f1f;border-bottom-left-radius:4px;align-self:flex-start; }
    .ai-agent-card { background:#fff;border:1px solid #e0e0e0;border-radius:10px;padding:10px;text-align:center;cursor:pointer;transition:all 0.2s; }
    .ai-agent-card:hover { border-color:#4285f4;box-shadow:0 2px 8px rgba(66,133,244,0.12);transform:translateY(-1px); }
    /* 메뉴 체크 카드 — .form-group label 의 display:block 을 덮어쓰고 콘텐츠 너비 보장 */
    label.menu-check-card { display:inline-flex !important; align-items:center; gap:6px; padding:7px 14px; background:#fff; border:1.5px solid #e0e0e0; border-radius:20px; cursor:pointer; font-size:13px; transition:all 0.15s; color:#444746; white-space:nowrap; flex:0 0 auto !important; width:auto !important; min-width:max-content; margin-bottom:0 !important; }
    label.menu-check-card input[type="checkbox"] { flex-shrink:0; margin:0; width:auto !important; padding:0 !important; }
    label.menu-check-card span { white-space:nowrap; }
    .menu-check-card:hover { border-color:#4285f4;background:#f0f4ff; }
    .menu-check-card:has(input:checked) { border-color:#4285f4;background:#e8f0fe;color:#0b57d0;font-weight:600; }
    .menu-check-card input { accent-color:#4285f4;width:16px;height:16px;flex-shrink:0; }
    .sysSubBtn { background: #fff; color: #444746; border: 1px solid #dadce0; font-size: 14px !important; font-weight: 500; padding: 8px 20px !important; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
    .sysSubBtn:hover { background: #f1f3f4; border-color: #0b57d0; color: #0b57d0; }
    .sysSubBtn.active { background: #d3e3fd; color: #001d35; border-color: #0b57d0; font-weight: 600; }

    /* 테이블 */
    table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: auto; word-break: break-word; }
    th { background: #f8f9fa; padding: 12px 14px; text-align: left; font-weight: 600; color: #5f6368; border-bottom: 2px solid #e0e0e0; white-space: nowrap; text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px; user-select: none; }
    th[style*="cursor:pointer"]:hover { background: #e8eaed; color: #202124; }
    td { padding: 12px 14px; border-bottom: 1px solid #e0e0e0; color: #444746; }
    tr:hover td { background: rgba(11,87,208,0.03); }

    .badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
    .badge-active { background: #e6f4ea; color: #188038; border: 1px solid #ceead6; }
    .badge-expired { background: #fce8e6; color: #c5221f; border: 1px solid #f5c0c0; }
    .badge-warning { background: #fef7e0; color: #ea8600; border: 1px solid #fde293; }
    .badge-inactive { background: #e8eaed; color: #5f6368; border: 1px solid #dadce0; }
    .badge-basic { background: #e8eaed; color: #444746; border: 1px solid #dadce0; }
    .badge-free { background: #f3e8fd; color: #7b1fa2; border: 1px solid #e1bee7; }

    /* 페이지네이션 */
    .pager-wrap { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; border-top:1px solid #e0e0e0; background:#fafafa; border-radius:0 0 12px 12px; font-size:14px; }
    .pager-info { color:#5f6368; }
    .pager-info strong { color:#202124; }
    .pager-nav { display:flex; align-items:center; gap:4px; }
    .pager-btn { min-width:36px; height:36px; border:1px solid #dadce0; background:#fff; color:#202124; border-radius:8px; cursor:pointer; font-size:14px; font-weight:500; display:flex; align-items:center; justify-content:center; transition:all .15s; }
    .pager-btn:hover:not(:disabled) { background:#e8f0fe; border-color:#0b57d0; color:#0b57d0; }
    .pager-btn.active { background:#0b57d0; color:#fff; border-color:#0b57d0; }
    .pager-btn:disabled { opacity:.4; cursor:default; }
    .pager-dots { padding:0 4px; color:#5f6368; }
    .pager-size { display:flex; align-items:center; gap:6px; }
    .pager-size select { padding:4px 8px; border:1px solid #dadce0; border-radius:6px; font-size:13px; background:#fff; }

    /* 토글 스위치 */
    .toggle-slider { position:absolute; cursor:pointer; inset:0; background:#ccc; border-radius:26px; transition:.3s; }
    .toggle-slider:before { content:''; position:absolute; height:20px; width:20px; left:3px; bottom:3px; background:#fff; border-radius:50%; transition:.3s; }
    input:checked + .toggle-slider { background:#0b57d0; }
    input:checked + .toggle-slider:before { transform:translateX(22px); }

    .key-text { font-family: 'Courier New', monospace; font-size: 13px; letter-spacing: 0.5px; color: #5f6368; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    table { table-layout: auto; }
    td, th { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
    td strong { white-space: nowrap; }
    .mini-table td, .mini-table th { max-width: 200px; }

    /* 모달 */
    .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 900; }
    .modal-overlay.active { display: flex; }
    .modal { background: #ffffff; border-radius: 16px; padding: 32px; width: 92%; max-width: 640px; max-height: 85vh; overflow-y: auto; border: 1px solid #e0e0e0; box-shadow: 0 8px 40px rgba(0,0,0,0.15); }
    .modal h3 { font-size: 20px; margin-bottom: 24px; color: #1f1f1f; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .form-group { margin-bottom: 14px; }
    .form-group label { display: block; font-size: 13px; font-weight: 600; color: #444746; margin-bottom: 6px; }
    .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 11px 14px; border: 1px solid #dadce0; border-radius: 10px; font-size: 14px; font-family: inherit; background: #ffffff; color: #1f1f1f; outline: none; }
    .form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #0b57d0; box-shadow: 0 0 0 3px rgba(11,87,208,0.12); }
    .form-group textarea { resize: vertical; min-height: 70px; }
    .features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 10px; max-height: 200px; overflow-y: auto; padding: 8px; background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 8px; }
    .features-grid label { font-size: 12px; font-weight: 400; display: flex; align-items: center; gap: 4px; cursor: pointer; color: #444746; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 3px 0; }
    .modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

    .empty { text-align: center; padding: 40px; color: #5f6368; font-size: 14px; }
    .tab-page { display: none; }
    .tab-page.active { display: block; }

    /* 만료 임박 리스트 */
    .expiring-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid #e0e0e0; font-size: 14px; transition: background 0.2s; cursor: pointer; border-radius: 8px; }
    .expiring-item:hover { background: rgba(11,87,208,0.04); }
    .expiring-item:last-child { border-bottom: none; }
    .expiring-item .customer { font-weight: 600; color: #1f1f1f; }
    .expiring-item .days { color: #ea8600; font-weight: 700; font-size: 15px; }

    /* Donut chart for stats */
    .donut-chart { width: 120px; height: 120px; border-radius: 50%; position: relative; margin: 6px auto 10px; box-shadow: 0 2px 12px rgba(11,87,208,0.12); }
    @keyframes donutPulse { 0%,100% { box-shadow: 0 4px 20px rgba(11,87,208,0.15); } 50% { box-shadow: 0 4px 40px rgba(11,87,208,0.25); } }
    .donut-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
    .donut-center span { background: #ffffff; width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: #1f1f1f; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }

    /* Bar chart */
    .bar-chart { display: flex; flex-direction: column; gap: 6px; }
    .bar-row { display: flex; align-items: center; gap: 8px; }
    .bar-label { width: 110px; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #444746; }
    .bar-track { flex: 1; height: 20px; background: #e8eaed; border-radius: 6px; overflow: hidden; position: relative; }
    .bar-fill { height: 100%; border-radius: 6px; transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); min-width: 4px; display: flex; align-items: center; padding-left: 8px; font-size: 11px; font-weight: 700; color: #fff; }
    .bar-value { width: 36px; text-align: right; font-size: 13px; font-weight: 700; color: #1f1f1f; }

    /* Sub-tab styling */
    .sub-tab-content { margin-top: 0; }
    .money { font-family: 'Courier New', monospace; font-weight: 600; color: #0b57d0; }

    /* 상세 보기 슬라이드오버 */
    .detail-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.3); backdrop-filter: blur(4px); display: none; z-index: 800; }
    .detail-overlay.active { display: block; }
    .detail-panel { position: fixed; top: 0; right: -600px; width: 560px; height: 100vh; background: #ffffff; border-left: 1px solid #e0e0e0; overflow-y: auto; transition: right 0.3s ease; z-index: 801; padding: 28px; box-shadow: -4px 0 20px rgba(0,0,0,0.08); }
    .detail-panel.active { right: 0; }
    .detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #e0e0e0; }
    .detail-header h3 { font-size: 20px; color: #1f1f1f; }
    .detail-close { background: none; border: none; color: #5f6368; font-size: 24px; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
    .detail-close:hover { color: #1f1f1f; background: #e8eaed; }
    .detail-row { display: flex; padding: 10px 0; border-bottom: 1px solid #e0e0e0; }
    .detail-label { width: 120px; color: #5f6368; font-size: 13px; font-weight: 600; flex-shrink: 0; }
    .detail-value { flex: 1; color: #1f1f1f; font-size: 14px; }
    .detail-section { margin-top: 20px; }
    .detail-section h4 { font-size: 15px; color: #444746; margin-bottom: 12px; font-weight: 600; }

    /* 알림 발송 패널 */
    .notify-section { background: #f8f9fa; border-radius: 10px; padding: 16px; margin-top: 16px; border: 1px solid #e0e0e0; }
    .notify-section h4 { font-size: 14px; color: #444746; margin-bottom: 12px; }
    .notify-btns { display: flex; gap: 8px; flex-wrap: wrap; }

    /* 설정 가이드 */
    .config-guide { background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; }
    .config-guide h5 { font-size: 14px; color: #1f1f1f; margin-bottom: 8px; font-weight: 600; }
    .config-guide code { background: #e8eaed; padding: 2px 8px; border-radius: 4px; font-size: 13px; color: #0b57d0; }
    .config-guide .step { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid #e0e0e0; }
    .config-guide .step:last-child { border-bottom: none; }
    .config-guide .step-num { width: 24px; height: 24px; background: #0b57d0; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
    .config-guide .step-text { font-size: 14px; color: #444746; line-height: 1.6; }

    /* Quick Send Section */
    .quick-send-section { background: #ffffff; border: 1px solid #e0e0e0; border-radius: 12px; padding: 24px; margin-bottom: 16px; }
    .quick-send-section h4 { font-size: 16px; font-weight: 600; color: #1f1f1f; margin-bottom: 16px; }
    .step-label { font-size: 13px; font-weight: 600; color: #444746; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
    .step-label .step-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: #0b57d0; color: #fff; border-radius: 50%; font-size: 11px; font-weight: 700; }
    .channel-icon-card { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 16px; border: 1px solid #dadce0; border-radius: 10px; cursor: pointer; transition: all 0.2s; background: #ffffff; font-size: 12px; color: #5f6368; min-width: 70px; }
    .channel-icon-card:hover { border-color: #0b57d0; background: rgba(11,87,208,0.04); }
    .channel-icon-card.selected { border-color: #0b57d0; background: rgba(11,87,208,0.08); color: #0b57d0; }
    .channel-icon-card .ch-icon { font-size: 22px; }
    .recipient-table { max-height: 200px; overflow-y: auto; border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 16px; }
    .recipient-table table { margin: 0; }
    .recipient-table th, .recipient-table td { padding: 8px 12px; font-size: 13px; }
    .recipient-table tr td:first-child { width: 30px; }
    .channel-radio-group { display: flex; gap: 12px; margin-bottom: 16px; }
    .channel-radio-group label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; color: #444746; padding: 8px 14px; border: 1px solid #dadce0; border-radius: 8px; transition: all 0.2s; }
    .channel-radio-group label:hover { border-color: #0b57d0; }
    .channel-radio-group input[type=radio]:checked + span { color: #0b57d0; font-weight: 600; }
    .template-select { width: 100%; padding: 11px 14px; border: 1px solid #dadce0; border-radius: 10px; font-size: 14px; background: #ffffff; color: #1f1f1f; outline: none; margin-bottom: 16px; }
    .template-select:focus { border-color: #0b57d0; }
    .preview-area { width: 100%; min-height: 120px; padding: 14px; border: 1px solid #dadce0; border-radius: 10px; font-size: 14px; font-family: inherit; background: #ffffff; color: #1f1f1f; outline: none; resize: vertical; margin-bottom: 16px; }
    .preview-area:focus { border-color: #0b57d0; box-shadow: 0 0 0 3px rgba(11,87,208,0.12); }
    .btn-send-big { display: block; width: 100%; padding: 16px; background: #0b57d0; color: #fff; border: none; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
    .btn-send-big:hover { background: #0842a0; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(11,87,208,0.25); }
    .select-all-cb { margin-right: 4px; }

    /* 애니메이션 */
    @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
    .animate-in { animation: fadeInUp 0.4s ease forwards; }
    .stat-card { animation: fadeInUp 0.5s ease forwards; }
    .stat-card:nth-child(1) { animation-delay: 0s; }
    .stat-card:nth-child(2) { animation-delay: 0.05s; }
    .stat-card:nth-child(3) { animation-delay: 0.1s; }
    .stat-card:nth-child(4) { animation-delay: 0.15s; }
    .stat-card:nth-child(5) { animation-delay: 0.2s; }
    .stat-card:nth-child(6) { animation-delay: 0.25s; }
    .stat-card:nth-child(7) { animation-delay: 0.3s; }
    .stat-card:nth-child(8) { animation-delay: 0.35s; }

    /* 미니 테이블 */
    .mini-table { font-size: 13px; }
    .mini-table th { padding: 8px 12px; font-size: 11px; }
    .mini-table td { padding: 8px 12px; font-size: 13px; }

    /* 스크롤바 */
    ::-webkit-scrollbar { width: 8px; }
    ::-webkit-scrollbar-track { background: #f6f8fc; }
    ::-webkit-scrollbar-thumb { background: #dadce0; border-radius: 4px; }
    ::-webkit-scrollbar-thumb:hover { background: #bdc1c6; }

    /* 알림 토스트 */
    .toast { position: fixed; top: 20px; right: 20px; background: #ffffff; border: 1px solid #e0e0e0; border-radius: 12px; padding: 16px 24px; color: #1f1f1f; font-size: 14px; z-index: 2000; opacity: 0; transform: translateY(-20px); transition: all 0.3s; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
    .toast.active { opacity: 1; transform: translateY(0); }
    .toast.success { border-left: 4px solid #188038; }
    .toast.error { border-left: 4px solid #c5221f; }

/* ── 가독성/시인성 개선 (v20260710) ── */
tbody tr:nth-child(even) td { background: #f8fafd; }            /* 표 줄무늬 */
tr:hover td { background: #e8f0fe !important; }                 /* 호버 강조(연블루) */
td { color: #202124; }                                          /* 본문 대비↑ */
th { color: #3c4043; background: #eef1f6; }                     /* 헤더 대비↑ */
.panel { box-shadow: 0 1px 4px rgba(0,0,0,0.06); border-radius: 12px; }
.panel-title { color: #17181a; font-weight: 700; }
.badge { font-weight: 700; letter-spacing: 0.2px; }
.stat-card .value { letter-spacing: -0.3px; }
.btn-primary { box-shadow: 0 1px 3px rgba(11,87,208,0.25); }
.btn-primary:hover { filter: brightness(1.06); }
/* 상태 배지 색 일관성 보강 */
.badge-active { background: #e6f4ea; color: #12722f; border-color: #a8d5b5; }
.badge-expired { background: #fce8e6; color: #b3271c; border-color: #f0b3ad; }
.badge-warning { background: #fef3d6; color: #b45c00; border-color: #f5cd6b; }
/* 링크·키 텍스트 가독성 */
.key-text, code { color: #0b57d0; font-weight: 600; }
a { color: #0b57d0; }
