/* GNB */
		:root {
      --navy-950: #061a30;
      --navy-900: #09233f;
      --navy-800: #103557;
      --blue-700: #0878c9;
      --blue-600: #149fe3;
      --blue-500: #2db8ee;
      --blue-100: #dff4fc;
      --blue-50: #effaff;
      --ink: #10263f;
      --text: #52657a;
      --muted: #8a9bad;
      --line: #dce6ef;
      --surface: #ffffff;
      --canvas: #f5f8fb;
      --orange: #ef7541;
      --green: #16a47a;
      --radius-sm: 10px;
      --radius-md: 18px;
      --radius-lg: 28px;
      --shadow-sm: 0 8px 24px rgba(9, 39, 69, .07);
      --shadow-lg: 0 24px 70px rgba(7, 31, 57, .14);
      --container: 1180px;
    }
      
      * {
        box-sizing: border-box
      }
      
      html {
        scroll-behavior: smooth
      }
      
      body {
        margin: 0;
        min-width: 320px;
        background: var(--bg);
        color: var(--ink);
        font-family: "Pretendard","Noto Sans KR","Apple SD Gothic Neo",Arial,sans-serif;
        word-break: keep-all
      }
      
      a {
        color: inherit;
        text-decoration: none
      }
      
      button,input {
        font: inherit
      }
      
      button {
        cursor: pointer
      }
      
      svg {
        display: block
      }
	    .wrap {
        width: min(1040px,calc(100% - 40px));
        margin: auto
      }
      
      .site-header {
        background: #fff;
        border-bottom: 1px solid #edf1f5
      }
      
      .site-header { position: sticky; z-index: 40; top: 0; border-bottom: 1px solid rgba(220, 230, 239, .9); background: rgba(255, 255, 255, .92); backdrop-filter: blur(18px); }
    	.header-inner { display: flex; align-items: center; gap: 42px; min-height: 76px; }
      
      .header-inner {
        display: flex;
        align-items: center;
        height: 72px
      }
      
      .brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
	    .brand-mark { position: relative; display: grid; place-items: center; width: 40px; height: 40px; overflow: hidden; border-radius: 12px; background: linear-gradient(145deg, #173b5d, var(--navy-950)); box-shadow: 0 8px 20px rgba(7, 29, 51, .18); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: -.04em; }
	    .brand-mark::after { content: ""; position: absolute; right: 0; bottom: 0; width: 17px; height: 5px; border-radius: 5px 0 0; background: linear-gradient(90deg, var(--blue-500), var(--blue-700)); }
	    .brand-copy { display: flex; flex-direction: column; min-width: 0; }
	    .brand-copy strong { font-size: 20px; line-height: 1; letter-spacing: -.045em; white-space: nowrap; }
	    .brand-copy strong em { color: var(--blue-700); font-style: normal; }
	    .brand-copy small { margin-top: 5px; color: #76899c; font-size: 8px; font-weight: 800; line-height: 1; letter-spacing: .11em; white-space: nowrap; }
      

      
      .main-nav {
        display: flex;
        align-self: stretch;
        gap: 34px
      }
      
      .main-nav a {
        display: flex;
        align-items: center;
        border-bottom: 3px solid transparent;
        color: #7a8a9d;
        font-size: 13px;
        font-weight: 700
      }
      
      .main-nav a.active {
        border-color: var(--blue-700);
        color: var(--ink)
      }

      .main-nav .nav-event-link { position:relative; min-width:82px; }
      .main-nav .nav-event-badge { position:absolute; z-index:1; top:5px; left:50%; min-width:42px; padding:4px 7px 3px; border:1px solid rgba(255,255,255,.58); border-radius:999px; background:linear-gradient(135deg,#ff4d68,#e72f4d); box-shadow:0 6px 14px rgba(231,47,77,.28); color:#fff; font-size:8px; font-weight:900; line-height:1; letter-spacing:.11em; text-align:center; transform:translateX(-50%); animation:todayhr-event-pulse 1.8s ease-in-out infinite; }
      /*.main-nav .nav-event-badge:before { content:""; display:inline-block; width:4px; height:4px; margin:0 4px 1px 0; border-radius:50%; background:#fff; box-shadow:0 0 0 3px rgba(255,255,255,.2); }*/
      .main-nav .nav-event-link:hover .nav-event-badge,.main-nav .nav-event-link:focus-visible .nav-event-badge { background:linear-gradient(135deg,#e72f4d,#ca1837); box-shadow:0 8px 18px rgba(202,24,55,.34); }
      @keyframes todayhr-event-pulse { 0%,100% { transform:translateX(-50%) translateY(0); box-shadow:0 6px 14px rgba(231,47,77,.24); } 50% { transform:translateX(-50%) translateY(-2px); box-shadow:0 9px 20px rgba(231,47,77,.38); } }
      @media (prefers-reduced-motion:reduce) { .main-nav .nav-event-badge { animation:none; } }
      
      .shelf-button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #40566c; font-size: 12px; font-weight: 800; }
      .shelf-count { display: grid; place-items: center; min-width: 21px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--blue-100); color: var(--blue-700); font-size: 9px; }
      
      .user-nav {
        display: flex;
        align-items: center;
        gap: 18px;
        margin-left: auto;
        color: #65768a;
        font-size: 12px
      }
      
      .shelf-link {
        display: flex;
        align-items: center;
        gap: 6px;
        font-weight: 700
      }
      
      .count {
        display: inline-grid;
        place-items: center;
        min-width: 22px;
        height: 18px;
        padding: 0 5px;
        border-radius: 9px;
        background: #e9f7fd;
        color: var(--blue);
        font-size: 9px
      }
      .divider {
        width: 1px;
        height: 17px;
        background: #e4e9ef
      }
      
      .avatar {
        display: grid;
        place-items: center;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: var(--navy-900);
        color: #fff;
        font-size: 10px
      }
      
      .member {
        display: flex;
        align-items: center;
        gap: 7px;
        font-weight: 700
      }
      
      .logout {
        color: #a0adbb
      }
      
      .mobile-menu { position:relative; display:none; flex:0 0 38px; width:38px; height:38px; margin-left:auto; padding:0; border:1px solid var(--line); border-radius:11px; background:#fff; color:var(--navy-900); box-shadow:0 4px 14px rgba(8,44,72,.08); -webkit-tap-highlight-color:transparent; }
      .mobile-menu-line { position:absolute; left:9px; width:18px; height:2px; border-radius:999px; background:currentColor; transition:top .2s ease,transform .2s ease,opacity .2s ease; }
      .mobile-menu-line:nth-child(1) { top:11px; }
      .mobile-menu-line:nth-child(2) { top:17px; }
      .mobile-menu-line:nth-child(3) { top:23px; }
      .mobile-menu[aria-expanded="true"] .mobile-menu-line:nth-child(1) { top:17px; transform:rotate(45deg); }
      .mobile-menu[aria-expanded="true"] .mobile-menu-line:nth-child(2) { opacity:0; }
      .mobile-menu[aria-expanded="true"] .mobile-menu-line:nth-child(3) { top:17px; transform:rotate(-45deg); }
      .mobile-nav-backdrop { display:none; }
      
      @media(max-width:900px) {
        .main-nav {
          gap: 18px
        }
      
        .user-nav .logout,.user-nav .divider {
          /*display: none*/
        }
      
 
      
      }
      
      @media(max-width:680px) {
        .wrap {
          width: min(100% - 24px,560px)
        }
      
        .header-inner {
          min-height:62px;
          height:62px;
          gap:8px
        }
      

      
        .count { display:none; }
        .main-nav { position:fixed; z-index:52; top:62px; right:12px; left:12px; display:none; align-self:auto; flex-direction:column; align-items:stretch; gap:4px; padding:10px; border:1px solid var(--line); border-radius:16px; background:#fff; box-shadow:0 24px 60px rgba(5,31,52,.2); }
        .main-nav.open { display:flex; }
        .main-nav a { min-height:46px; padding:0 14px; border:0; border-radius:10px; }
        .main-nav .nav-event-link { min-width:0; padding-right:78px; }
        .main-nav .nav-event-badge { top:50%; left:100px; transform:translateY(-50%); animation:none; }
        .main-nav a:hover,.main-nav a:focus-visible,.main-nav a.active { background:var(--blue-50); color:var(--blue-700); }
        .user-nav {
          /*display: none*/
           gap:6px;
        }
        
        
      
        .mobile-menu { display:inline-flex; align-items:center; justify-content:center; }
        .member { display:none; }
        .divider { display:none; }
        .shelf-button { justify-content:center; width:38px; min-height:38px; padding:0; font-size:0; }
        .shelf-button svg { width:17px; height:17px; }
        .mobile-nav-backdrop { position:fixed; z-index:39; inset:62px 0 0; display:none; background:rgba(4,24,42,.34); backdrop-filter:blur(2px); }
        .mobile-nav-backdrop.open { display:block; }
        body.mobile-nav-open { overflow:hidden; }
      
				.shelf-count { display: none; }
				
      
      }



      
/*############################*/
/*#### my_pocket.asp 영역 #####*/
/* 딤 배경 (Backdrop) */
.pocket-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 99990;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}
.pocket-backdrop.active {
    display: block;
    opacity: 1;
}

/* 우측 슬라이드 서랍 패널 */
.pocket-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 88vw;
    height: 100vh;
    background: #ffffff;
    z-index: 99999;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    transition: right 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.pocket-drawer.active {
    right: 0;
}

/* 드로어 헤더 */
.pocket-header {
    background: #1a2f4c;
    color: #ffffff;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pocket-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}
.pocket-sub {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 2px;
    display: block;
}
.btn-pocket-close {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.btn-pocket-close:hover { color: #ffffff; }

/* 탭 버튼 */
.pocket-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.pocket-tab-item {
    flex: 1;
    padding: 12px 0;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    background: transparent;
    border: none;
    color: #64748b;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}
.pocket-tab-item.active {
    color: #0284c7;
    font-weight: 700;
    border-bottom: 2px solid #0284c7;
    background: #ffffff;
}

/* 목록 영역 */
.pocket-list-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    background: #fdfdfd;
}
.pocket-item {
    display: block;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.18s ease;
}
.pocket-item:hover {
    border-color: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.08);
}

/* 개별 삭제 X 버튼 */
.btn-pocket-del {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-pocket-del:hover {
    background-color: #fee2e2;
    color: #ef4444;
}
.pocket-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.pocket-badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
}
.badge-case { background: #eff6ff; color: #1d4ed8; }
.badge-law  { background: #f0fdf4; color: #15803d; }
.badge-hr   { background: #fefce8; color: #a16207; }

.pocket-item-date {
    font-size: 11px;
    color: #94a3b8;
}
.pocket-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.45;
}

/* 로딩 및 빈 목록 상태 */
.pocket-empty {
    text-align: center;
    padding: 50px 10px;
    color: #94a3b8;
    font-size: 13px;
}
.pocket-empty-icon {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}

/* 보관함 로딩 스켈레톤 애니메이션 (메인/상세 공통) */
.pocket-loading {
    height: 80px;
    margin: 10px;
    border-radius: 8px;
    background: #f1f5f9;
    /* 스켈레톤 빛 번짐 효과 */
    background-image: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0, 
        rgba(255, 255, 255, 0.6) 20%, 
        rgba(255, 255, 255, 0) 40%, 
        rgba(255, 255, 255, 0) 100%
    );
    background-repeat: no-repeat;
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite linear;
    color: transparent; /* 기존 텍스트 가리기 */
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

@media (max-width: 760px) {
			.brand { gap: 8px; }
      .brand-mark { width: 36px; height: 36px; border-radius: 10px; font-size: 9px; }
      .brand-copy strong { font-size: 17px; }
      .brand-copy small { margin-top: 4px; font-size: 7px; letter-spacing: .08em; }
}
