    .bottom-nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #e5e7eb;display:flex;z-index:200;box-shadow:0 -4px 16px rgba(0,0,0,.1);padding-bottom:env(safe-area-inset-bottom)}
    .nav-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px 2px 6px;cursor:pointer;color:#9ca3af;transition:color .15s,background .15s;font-size:9px;font-weight:500;gap:2px;border:none;background:none;font-family:inherit;position:relative;-webkit-tap-highlight-color:transparent;touch-action:manipulation;border-radius:0;min-width:0}
    .nav-item i{font-size:18px;transition:transform .2s,color .15s}
    .nav-item.active{color:#6366f1}
    .nav-item.active i{color:#6366f1;transform:translateY(-2px)}
    .nav-item.active::after{content:'';position:absolute;top:0;left:15%;right:15%;height:3px;background:linear-gradient(90deg,#6366f1,#818cf8);border-radius:0 0 4px 4px}
    .nav-item:active{background:#f5f3ff}

    /* ─ Page ─ */
    .page{display:none;flex:1;padding:12px 14px 24px}
    .page.active{display:block}

    /* ─ Section header ─ */
    .sec-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
    .sec-title{font-size:16px;font-weight:800;color:#1a1a2e}
    .sec-badge{font-size:11px;background:#ede9fe;color:#4c1d95;padding:4px 10px;border-radius:20px;font-weight:600}

    /* ─ Cards ─ */
    .card{background:#fff;border-radius:16px;box-shadow:0 2px 12px rgba(0,0,0,.07);margin-bottom:12px;overflow:hidden}
    .card-body{padding:14px 16px}

    /* ─ Stat grid ─ */
    .stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
    .stat-grid.three{grid-template-columns:repeat(3,1fr)}
    .stat-card{background:#fff;border-radius:14px;padding:14px 10px;box-shadow:0 2px 10px rgba(0,0,0,.06);text-align:center;transition:transform .15s,box-shadow .15s}
    .stat-card:active{}
    .stat-card .sc-label{font-size:10.5px;color:#9ca3af;font-weight:500;margin-bottom:5px}
    .stat-card .sc-val{font-size:19px;font-weight:800;line-height:1.1;letter-spacing:-0.3px}
    .stat-card .sc-sub{font-size:10.5px;margin-top:4px;font-weight:500}
    .stat-card.blue .sc-val{color:#2563eb} .stat-card.blue .sc-sub{color:#93c5fd}
    .stat-card.green .sc-val{color:#059669} .stat-card.green .sc-sub{color:#6ee7b7}
    .stat-card.red .sc-val{color:#dc2626} .stat-card.red .sc-sub{color:#fca5a5}
    .stat-card.purple .sc-val{color:#7c3aed} .stat-card.purple .sc-sub{color:#c4b5fd}
    .stat-card.orange .sc-val{color:#d97706} .stat-card.orange .sc-sub{color:#fcd34d}

    /* ─ Month nav ─ */
    .month-nav{display:flex;align-items:center;justify-content:space-between;background:#fff;padding:4px 8px;border-radius:12px;box-shadow:0 1px 8px rgba(0,0,0,.07);margin-bottom:10px}
    .month-nav button{background:none;border:none;color:#9ca3af;font-size:20px;cursor:pointer;padding:4px 8px;min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;touch-action:manipulation;-webkit-tap-highlight-color:transparent;border-radius:8px;transition:background .15s}
    .month-nav button:active{color:#6366f1;background:#f5f3ff}
    .month-label{font-size:14px;font-weight:700;color:#1a1a2e;letter-spacing:-0.3px}

    /* ─ Emp type grid ─ */
    .emp-type-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
    .emp-type-chip{background:#fff;border-radius:12px;box-shadow:0 1px 6px rgba(0,0,0,.07);padding:10px 6px;text-align:center}
    .emp-type-chip .etc-label{font-size:9px;color:#9ca3af;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .emp-type-chip .etc-val{font-size:16px;font-weight:800;color:#1a1a2e}

    /* ─ 명세서 탭: 필터 래퍼 (sticky 고정 영역) ─ */
    .ps-sticky-filters{
      position:sticky;
      top:0;
      z-index:50;
      background:#f0f2f5;
      padding:10px 0 0;
      margin:-12px -14px 0;
      padding-left:14px;
      padding-right:14px;
    }

    /* ─ 명세서 탭: 1단계 대분류 탭바 ─ */
    .ps-group-bar{display:flex;gap:0;background:#e8eaf0;border-radius:12px;padding:3px;margin-bottom:0}
    .ps-group-btn{flex:1;padding:9px 4px;border:none;border-radius:9px;font-size:12.5px;font-weight:600;cursor:pointer;font-family:inherit;background:transparent;color:#6b7280;transition:all .18s;touch-action:manipulation;-webkit-tap-highlight-color:transparent;white-space:nowrap}
    .ps-group-btn.active{background:#fff;color:#6366f1;font-weight:700;box-shadow:0 1px 6px rgba(0,0,0,.1)}
    .ps-group-btn:active{opacity:.7}

    /* ─ 명세서 탭: 2단계 세부 칩바 ─ */
    .ps-sub-bar{overflow-x:auto;padding:10px 0 8px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
    .ps-sub-bar::-webkit-scrollbar{display:none}
    .ps-sub-chips{display:flex;gap:7px;min-width:max-content}
    .ps-sub-chip{flex-shrink:0;padding:6px 16px;border-radius:20px;font-size:12px;font-weight:600;border:1.5px solid #e5e7eb;background:#fff;color:#6b7280;cursor:pointer;font-family:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:all .15s;box-shadow:0 1px 3px rgba(0,0,0,.05)}
    .ps-sub-chip.active{background:#6366f1;border-color:#6366f1;color:#fff;box-shadow:0 2px 8px rgba(99,102,241,.3)}
    .ps-sub-chip:active{}

    /* ─ 명세서 탭: 구분선 ─ */
    .ps-filter-divider{height:1px;background:rgba(0,0,0,.06);margin:0 -14px 12px;}

    /* ─ 명세서 탭: 직원 카드 목록 ─ (하위호환용 ps-filter-* 유지) */
    .ps-filter-bar{display:flex;gap:6px;padding:10px 0 10px;overflow-x:auto;background:transparent;margin-bottom:4px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
    .ps-filter-bar::-webkit-scrollbar{display:none}
    .ps-filter-btn{flex-shrink:0;padding:6px 13px;border-radius:20px;font-size:12px;font-weight:600;border:1.5px solid #e5e7eb;background:#fff;color:#6b7280;cursor:pointer;font-family:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:all .15s}
    .ps-filter-btn.active{background:#6366f1;border-color:#6366f1;color:#fff;box-shadow:0 2px 8px rgba(99,102,241,.3)}
    .ps-filter-btn:active{}

    /* ─ 명세서 탭: 목록 요약 헤더 ─ */
    .ps-list-summary{display:flex;align-items:center;justify-content:space-between;padding:4px 0 12px;}
    .ps-list-title{font-size:13px;font-weight:700;color:#1a1a2e}
    .ps-list-count{font-size:12px;color:#6b7280}
    .ps-list-count strong{color:#6366f1;font-weight:700}

    /* ─ 명세서 탭: 그룹 헤더 ─ */
    .ps-group-header{display:flex;align-items:center;justify-content:space-between;padding:14px 0 6px;}
    .ps-group-header:first-child{padding-top:0}
    .ps-group-header-name{font-size:12.5px;font-weight:700;color:#374151;display:flex;align-items:center;gap:6px}
    .ps-group-header-name::before{content:'';display:inline-block;width:3px;height:14px;background:#6366f1;border-radius:2px}
    .ps-group-header-badge{font-size:11px;color:#6b7280;background:#f3f4f6;padding:2px 8px;border-radius:20px;font-weight:600}

    /* ─ 명세서 탭: 직원 카드 목록 ─ */
    .ps-emp-card{background:#fff;border-radius:14px;box-shadow:0 2px 10px rgba(0,0,0,.06);margin:0 0 10px 0;overflow:hidden;cursor:pointer;transition:box-shadow .15s,transform .15s}
    .ps-emp-card:active{}
    .ps-emp-card-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #f5f5f5}
    .ps-emp-avatar{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:800;color:#fff;flex-shrink:0;margin-right:10px}
    .ps-emp-info{flex:1;min-width:0}
    .ps-emp-name{font-size:14px;font-weight:700;color:#1a1a2e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .ps-emp-meta{font-size:11px;color:#9ca3af;margin-top:1px}
    .ps-emp-pay{text-align:right;flex-shrink:0}
    .ps-emp-net{font-size:14px;font-weight:800;color:#059669}
    .ps-emp-gross{font-size:10.5px;color:#9ca3af;margin-top:1px}
    .ps-emp-rows{padding:0 16px 8px}
    .ps-emp-row{display:flex;justify-content:space-between;align-items:center;padding:7px 0;border-bottom:1px solid #f9f9f9;font-size:12px}
    .ps-emp-row:last-child{border-bottom:none}
    .ps-emp-row .pr-label{color:#6b7280}
    .ps-emp-row .pr-val{font-weight:600;color:#1a1a2e}
    .ps-emp-row .pr-val.minus{color:#ef4444}
    .ps-emp-no-pay{padding:10px 16px 12px;text-align:center;font-size:12px;color:#9ca3af;font-style:italic;background:#fafafa}
    .ps-emp-card--unpaid{opacity:.72;border-left:3px solid #e5e7eb}
    .ps-emp-unpaid-badge{font-size:11px;color:#9ca3af;background:#f3f4f6;padding:3px 9px;border-radius:20px;font-weight:600;white-space:nowrap;flex-shrink:0;display:flex;align-items:center;gap:4px}

    /* ─ 직원 칩 (명세서 탭, 하위 호환) ─ */
    .emp-chip{display:inline-flex;align-items:center;white-space:nowrap;padding:7px 13px;border-radius:20px;font-size:12.5px;font-weight:600;border:1.5px solid #e5e7eb;background:#fff;color:#6b7280;cursor:pointer;font-family:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:all .15s;scroll-snap-align:start;flex-shrink:0}
    .emp-chip.selected{background:#6366f1;border-color:#6366f1;color:#fff;box-shadow:0 2px 8px rgba(99,102,241,.35)}
    .emp-chip:active{}

    /* ─ 급여 지급액 박스 ─ */
    .pay-box-grid{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #f0f2f5;border-radius:12px;overflow:hidden;margin-bottom:0}
    .pay-box-item{padding:11px 5px;text-align:center}
    .pay-box-item:not(:last-child){border-right:1px solid #f0f2f5}
    .pay-box-item .pb-label{font-size:10px;color:#9ca3af;margin-bottom:4px;display:flex;align-items:center;justify-content:center;gap:3px;flex-wrap:wrap;line-height:1.3}
    .pay-box-item .pb-dot{width:6px;height:6px;border-radius:50%;display:inline-block;flex-shrink:0}
    .pay-box-item .pb-val{font-size:13.5px;font-weight:800;line-height:1.2;word-break:break-all;letter-spacing:-0.3px}
    .pay-box-item .pb-sub{font-size:10px;color:#9ca3af;margin-top:3px}
    .pay-box-blue{background:#f8faff} .pay-box-blue .pb-val{color:#1d4ed8}
    .pay-box-red{background:#fff8f8} .pay-box-red .pb-val{color:#dc2626}
    .pay-box-green{background:#f0fdf4} .pay-box-green .pb-val{color:#059669}

    /* ─ 고용형태별 카드 ─ */
    .cat-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-bottom:0}
    .cat-card{border-radius:10px;padding:9px 4px;text-align:center;border:1px solid;transition:transform .15s,box-shadow .15s;position:relative}
    .cat-card:active{}
    .cat-card::after{content:'\f054';font-family:'Font Awesome 6 Free';font-weight:900;font-size:7px;color:rgba(0,0,0,.2);position:absolute;bottom:4px;right:5px}
    .cat-card .cc-label{font-size:8.5px;font-weight:600;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .cat-card .cc-val{font-size:18px;font-weight:800;line-height:1.1}
    .cat-card .cc-unit{font-size:9.5px;font-weight:500;margin-top:2px}

    /* ─ Chart card ─ */
    .chart-card{background:#fff;border-radius:16px;padding:14px 16px;box-shadow:0 2px 12px rgba(0,0,0,.07);margin-bottom:12px}
    .chart-title{font-size:13px;font-weight:700;margin-bottom:3px;color:#1a1a2e}
    .chart-sub{font-size:11px;color:#aaa;margin-bottom:10px}
    .chart-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:10px;gap:8px}
    .chart-badge{font-size:10.5px;padding:3px 8px;border-radius:20px;font-weight:600;white-space:nowrap;flex-shrink:0}

    /* ─ 임금대장 보기 버튼 ─ */
    .wl-view-btn{padding:6px 14px;border:1.5px solid #3b82f6;border-radius:20px;background:#fff;color:#3b82f6;font-size:12px;font-weight:700;cursor:pointer;font-family:inherit;white-space:nowrap;transition:all .15s}
    .wl-view-btn:hover:not(:disabled){background:#3b82f6;color:#fff}
    .wl-view-btn:disabled{background:#f3f4f6;color:#d1d5db;border-color:#e5e7eb;cursor:not-allowed}
    .wl-renewed-badge{position:absolute;top:-6px;right:-6px;background:#ef4444;color:#fff;font-size:9px;font-weight:700;padding:1px 7px;border-radius:10px;white-space:nowrap}

    /* ─ Dist tab ─ */
    .dist-tab-row{display:flex;gap:0;background:#f3f4f6;border-radius:8px;padding:3px;margin-bottom:10px}
    .dist-tab-btn{flex:1;padding:6px 8px;border:none;border-radius:6px;font-size:12px;font-weight:600;cursor:pointer;font-family:inherit;background:transparent;color:#6b7280;transition:all .15s;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
    .dist-tab-btn.active{background:#3b82f6;color:#fff;font-weight:700}

    /* ─ 도넛 차트 (부서별·직급별) ─ */
    .dist-donut-wrap{display:flex;align-items:center;gap:14px;padding:6px 0 4px}
    .dist-donut-canvas-wrap{position:relative;flex-shrink:0;width:160px;height:160px}
    .dist-donut-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;text-align:center;padding:0 12px}
    .dist-donut-center-label{font-size:9.5px;color:#9ca3af;font-weight:500;line-height:1.2}
    .dist-donut-center-val{font-size:13px;font-weight:800;color:#1a1a2e;letter-spacing:-0.4px;line-height:1.2;margin-top:2px}
    .dist-donut-legend{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px;max-height:200px;overflow-y:auto}
    .dist-donut-legend-item{display:flex;align-items:center;gap:7px;padding:5px 7px;border-radius:8px;background:#f8f9fb;cursor:default}
    .dist-donut-legend-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}
    .dist-donut-legend-name{flex:1;font-size:11.5px;font-weight:600;color:#1a1a2e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .dist-donut-legend-pct{font-size:12px;font-weight:800;color:#6366f1;flex-shrink:0}
    .dist-donut-legend-amt{font-size:10px;color:#9ca3af;flex-shrink:0}
    @media(max-width:360px){.dist-donut-canvas-wrap{width:130px;height:130px}}

    /* ─ Toggle chips ─ */
    .toggle-row{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:10px}
    .tgl-chip{display:inline-flex;align-items:center;gap:3px;padding:5px 10px;border-radius:20px;font-size:10.5px;font-weight:600;border:1.5px solid;cursor:pointer;font-family:inherit;transition:all .15s;touch-action:manipulation;-webkit-tap-highlight-color:transparent;min-height:32px}
    .tgl-chip input{display:none}
    .tgl-chip.on{color:#fff}
    .tgl-chip:active{}

    /* ─ Pay list table ─ */
    .pay-table{width:100%;border-collapse:collapse;font-size:12px}
    .pay-table th{background:#f8f9fb;padding:8px 8px;text-align:left;color:#6b7280;font-size:10.5px;font-weight:600;white-space:nowrap;position:sticky;top:0;z-index:1}
    .pay-table td{padding:9px 8px;border-bottom:1px solid #f5f5f5;white-space:nowrap}
    .pay-table tr:last-child td{border-bottom:none}
    .pay-table tbody tr:active td{background:#f5f3ff}
    .pay-table .t-name{font-weight:600;color:#1a1a2e}
    .pay-table .t-dept{font-size:11px;color:#9ca3af}
    .pay-table .t-amount{font-weight:700}
    .pay-table .t-gross{color:#1d4ed8}
    .pay-table .t-ded{color:#dc2626}
    .pay-table .t-net{color:#059669}

    /* ─ Contract table ─ */
    .ct-table{width:100%;border-collapse:collapse;font-size:11.5px}
    .ct-table th{background:#f8f9fb;padding:8px 7px;text-align:left;color:#6b7280;font-size:10px;font-weight:600;white-space:nowrap;position:sticky;top:0;z-index:1}
    .ct-table td{padding:8px 7px;border-bottom:1px solid #f5f5f5;vertical-align:middle}
    .ct-table tr:last-child td{border-bottom:none}
    .ct-table tbody tr:active td{background:#fafafe}

    /* ─ 급여 비율 모달 ─ */
    .pr-header{background:linear-gradient(135deg,#1a1a2e 0%,#0f3460 100%);padding:20px 18px 22px;text-align:center}
    .pr-header-title{color:rgba(255,255,255,.65);font-size:11.5px;letter-spacing:.3px;margin-bottom:6px}
    .pr-header-amount{color:#fff;font-size:28px;font-weight:800;letter-spacing:-0.5px;line-height:1.1}
    .pr-header-meta{display:flex;justify-content:center;gap:8px;margin-top:12px;flex-wrap:wrap}
    .pr-header-badge{display:inline-flex;align-items:center;gap:4px;padding:4px 12px;border-radius:20px;font-size:11px;font-weight:600}

    .pr-tab-row{display:flex;border-bottom:2px solid #f0f2f5}
    .pr-tab-btn{flex:1;background:none;border:none;font-family:inherit;font-size:13px;font-weight:600;color:#9ca3af;padding:13px 8px;cursor:pointer;position:relative;transition:color .15s;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
    .pr-tab-btn::after{content:'';position:absolute;bottom:-2px;left:12%;right:12%;height:3px;background:transparent;border-radius:2px;transition:background .15s}
    .pr-tab-btn.active{color:#6366f1}
    .pr-tab-btn.active::after{background:linear-gradient(90deg,#6366f1,#818cf8)}
    .pr-tab-btn:active{background:#f5f3ff}

    .pr-panel{display:none;padding:20px 18px}
    .pr-panel.active{display:block}

    .pr-donut-wrap{display:flex;flex-direction:column;align-items:center;gap:0;margin-bottom:20px}
    .pr-donut-canvas-wrap{position:relative;width:200px;height:200px;flex-shrink:0}
    .pr-donut-canvas-wrap canvas{width:200px!important;height:200px!important}
    .pr-donut-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}
    .pr-donut-center-label{font-size:11px;color:#9ca3af;font-weight:500}
    .pr-donut-center-val{font-size:18px;font-weight:800;color:#1a1a2e;letter-spacing:-0.5px;line-height:1.1;margin-top:2px}

    .pr-list{display:flex;flex-direction:column;gap:0}
    .pr-item{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #f5f5f5}
    .pr-item:last-child{border-bottom:none}
    .pr-item-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}
    .pr-item-name{flex:1;font-size:13px;color:#374151;font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .pr-item-bar-wrap{width:80px;flex-shrink:0}
    .pr-item-bar-bg{height:6px;background:#f0f2f5;border-radius:3px;overflow:hidden}
    .pr-item-bar-fill{height:100%;border-radius:3px;transition:width .4s ease}
    .pr-item-right{text-align:right;flex-shrink:0;min-width:72px}
    .pr-item-pct{font-size:12.5px;font-weight:800;color:#1a1a2e}
    .pr-item-amt{font-size:10.5px;color:#9ca3af;margin-top:1px}

    .pr-empty{text-align:center;padding:40px 20px;color:#9ca3af}
    .pr-empty i{font-size:36px;margin-bottom:10px;display:block;opacity:.4}
    .pr-empty p{font-size:13px}

    @media(min-width:480px){
      .pr-donut-wrap{flex-direction:row;align-items:flex-start;gap:20px}
      .pr-list{flex:1}
    }

    /* ─ Payslip modal ─ */