:root {
    --hr-bg: #090811;
    --hr-panel: #100d19;
    --hr-panel-2: #151020;
    --hr-line: rgba(191, 82, 246, .16);
    --hr-line-strong: rgba(213, 99, 255, .32);
    --hr-text: #f7f4fb;
    --hr-muted: #948ca1;
    --hr-accent: #c44ef2;
    --hr-accent-2: #8757f2;
    --hr-green: #62e2ad;
    --hr-shadow: 0 20px 55px rgba(0, 0, 0, .24);
}

.hr-shell { position: relative; color: var(--hr-text); }
.hr-shell * { box-sizing: border-box; }
.hr-shell a { color: inherit; text-decoration: none; }
.hr-shell mark { padding: 0 .15em; border-radius: 4px; background: rgba(220, 94, 255, .22); color: #fff; }

.hr-intro-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: 38px;
    align-items: center;
    padding: 42px;
    margin-bottom: 24px;
    border: 1px solid var(--hr-line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 84% 20%, rgba(149, 71, 234, .13), transparent 22rem),
        radial-gradient(circle at 0 0, rgba(222, 78, 255, .07), transparent 20rem),
        linear-gradient(135deg, rgba(17, 14, 27, .98), rgba(9, 8, 15, .99));
    box-shadow: var(--hr-shadow);
}
.hr-intro-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(90deg, transparent, #000 55%);
}
.hr-intro-copy, .hr-important { position: relative; z-index: 1; }
.hr-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #e06cff; font-size: .7rem; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.hr-eyebrow span { width: 26px; height: 1px; background: linear-gradient(90deg, #ec66ff, #8557f5); }
.hr-intro-copy h2 { max-width: 720px; margin: 13px 0 16px; font-size: clamp(2.7rem, 5.4vw, 5rem); line-height: .94; letter-spacing: -.06em; }
.hr-intro-copy h2 em { color: #bf72f4; font-style: normal; }
.hr-intro-copy p { max-width: 700px; margin: 0 0 7px; color: #a29aaa; font-size: .95rem; }
.hr-stats { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.hr-stats span { display: inline-flex; align-items: baseline; gap: 6px; min-height: 36px; padding: 7px 12px; border: 1px solid rgba(198, 86, 244, .15); border-radius: 999px; background: rgba(255,255,255,.02); color: #a69fad; font-size: .73rem; font-weight: 800; }
.hr-stats strong { color: #fff; font-size: .88rem; }
.hr-important { display: flex; gap: 15px; padding: 20px; border: 1px solid rgba(235, 99, 255, .19); border-radius: 18px; background: rgba(183, 68, 230, .055); }
.hr-important-icon { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(230, 111, 255, .22); border-radius: 14px; color: #eca3ff; background: rgba(198, 72, 242, .08); }
.hr-important span { color: #f0a8ff; font-size: .67rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.hr-important p { margin: 5px 0 0; color: #b7afbf; font-size: .82rem; line-height: 1.6; }

.hr-toolbar {
    position: sticky;
    top: 10px;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    margin-bottom: 18px;
    border: 1px solid rgba(197, 84, 242, .16);
    border-radius: 18px;
    background: rgba(10, 8, 16, .88);
    backdrop-filter: blur(20px);
    box-shadow: 0 16px 40px rgba(0,0,0,.17);
}
.hr-search-wrap { position: relative; flex: 1; }
.hr-search-wrap > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #787181; }
.hr-search-wrap input { width: 100%; height: 48px; padding: 0 96px 0 43px; border: 1px solid rgba(192, 82, 237, .13); border-radius: 14px; outline: none; background: #0d0b14; color: #fff; font-size: .85rem; transition: .18s ease; }
.hr-search-wrap input::placeholder { color: #696271; }
.hr-search-wrap input:focus { border-color: rgba(220, 104, 255, .42); box-shadow: 0 0 0 4px rgba(198, 74, 244, .06); }
.hr-kbd { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); padding: 4px 7px; border: 1px solid rgba(255,255,255,.07); border-bottom-width: 2px; border-radius: 7px; color: #625b69; font-size: .62rem; font-weight: 800; }
.hr-clear { display: none; position: absolute; right: 55px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 999px; background: rgba(255,255,255,.045); color: #9c94a5; }
.hr-clear.is-visible { display: grid; place-items: center; }
.hr-search-state { flex: 0 0 auto; padding: 0 10px; color: #837c8b; font-size: .72rem; font-weight: 800; white-space: nowrap; }

.hr-category-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 28px; }
.hr-category-card { position: relative; display: flex; align-items: center; gap: 12px; min-height: 80px; padding: 13px 14px; border: 1px solid rgba(191, 78, 238, .13); border-radius: 16px; background: linear-gradient(180deg, rgba(18, 15, 28, .93), rgba(12, 10, 19, .96)); transition: .18s ease; }
.hr-category-card:hover, .hr-category-card.is-active { transform: translateY(-2px); border-color: rgba(218, 100, 255, .34); background: linear-gradient(180deg, rgba(27, 19, 39, .96), rgba(13, 11, 21, .98)); box-shadow: 0 13px 30px rgba(0,0,0,.17); }
.hr-category-card.is-active::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: -1px; height: 2px; border-radius: 999px; background: linear-gradient(90deg, #e35dff, #8557f5); }
.hr-category-icon { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(211, 94, 252, .17); border-radius: 13px; background: rgba(189, 70, 239, .055); font-size: 1.2rem; }
.hr-category-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hr-category-info strong { overflow: hidden; color: #eeeaf2; font-size: .82rem; white-space: nowrap; text-overflow: ellipsis; }
.hr-category-info small { overflow: hidden; color: #6f6877; font-size: .67rem; white-space: nowrap; text-overflow: ellipsis; }
.hr-category-count { margin-left: auto; color: #6e6676; font-size: .68rem; font-weight: 900; }

.hr-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 24px; align-items: start; }
.hr-toc { position: sticky; top: 88px; }
.hr-toc-inner { max-height: calc(100vh - 110px); overflow: auto; padding: 14px; border: 1px solid rgba(191, 80, 238, .13); border-radius: 18px; background: linear-gradient(180deg, rgba(16, 13, 24, .96), rgba(10, 8, 16, .98)); scrollbar-width: thin; scrollbar-color: rgba(192, 85, 238, .28) transparent; }
.hr-toc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 2px 5px 11px; border-bottom: 1px solid rgba(255,255,255,.05); }
.hr-toc-head span { color: #fff; font-size: .77rem; font-weight: 900; }
.hr-toc-head small { color: #645d6c; font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; }
.hr-toc nav { padding-top: 8px; }
.hr-toc nav > a { display: flex; align-items: center; gap: 8px; padding: 9px 8px; border-radius: 9px; color: #a099a8; font-size: .72rem; transition: .16s ease; }
.hr-toc nav > a strong { font-weight: 800; }
.hr-toc nav > a:hover, .hr-toc nav > a.is-active { background: rgba(192, 72, 240, .07); color: #fff; }
.hr-toc-sub { display: grid; gap: 1px; margin: 0 0 6px 26px; padding-left: 10px; border-left: 1px solid rgba(207, 94, 247, .12); }
.hr-toc-sub a { padding: 5px 4px; color: #66606d; font-size: .63rem; line-height: 1.35; transition: .15s ease; }
.hr-toc-sub a:hover, .hr-toc-sub a.is-active { color: #d79ced; }

.hr-category { scroll-margin-top: 90px; margin-bottom: 54px; }
.hr-category-header { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 15px; align-items: center; margin-bottom: 16px; }
.hr-category-header-icon { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(208, 93, 247, .17); border-radius: 16px; background: rgba(190, 71, 239, .05); font-size: 1.35rem; }
.hr-overline { color: #df6cfa; font-size: .64rem; font-weight: 950; letter-spacing: .11em; text-transform: uppercase; }
.hr-category-header h2 { margin: 2px 0 0; font-size: clamp(1.45rem, 2.7vw, 2.05rem); }
.hr-category-meta { color: #6e6775; font-size: .68rem; font-weight: 800; }
.hr-sections { display: grid; gap: 10px; }
.hr-section-card { scroll-margin-top: 90px; overflow: hidden; border: 1px solid rgba(188, 79, 233, .13); border-radius: 16px; background: linear-gradient(180deg, rgba(16, 13, 24, .97), rgba(11, 9, 17, .99)); box-shadow: 0 12px 34px rgba(0,0,0,.12); }
.hr-section-card.is-hidden, .hr-category.is-hidden { display: none; }
.hr-section-head { width: 100%; min-height: 70px; display: flex; align-items: center; gap: 13px; padding: 12px 15px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.hr-section-no { flex: 0 0 41px; width: 41px; height: 41px; display: grid; place-items: center; border: 1px solid rgba(218, 100, 255, .17); border-radius: 12px; background: rgba(195, 75, 241, .06); color: #db8cf5; font-size: .72rem; font-weight: 950; }
.hr-section-title-wrap { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hr-section-title-wrap strong { color: #f1edf4; font-size: .86rem; }
.hr-section-title-wrap small { color: #6d6674; font-size: .64rem; }
.hr-section-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; color: #716978; }
.hr-anchor-action { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.05); border-radius: 9px; transition: .15s ease; }
.hr-anchor-action:hover { border-color: rgba(214, 95, 252, .22); color: #dc91f5; background: rgba(195, 72, 240, .05); }
.hr-chevron { transition: transform .2s ease; }
.hr-section-card.is-open .hr-chevron { transform: rotate(180deg); }
.hr-section-body { display: none; border-top: 1px solid rgba(255,255,255,.045); }
.hr-section-card.is-open .hr-section-body { display: block; }
.hr-rules-list { margin: 0; padding: 0; list-style: none; }
.hr-rule-item { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 11px; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.038); }
.hr-rule-item:first-child { border-top: 0; }
.hr-rule-item.is-hidden { display: none; }
.hr-rule-item:hover { background: rgba(255,255,255,.013); }
.hr-rule-index { padding-top: 2px; color: #5f5867; font-size: .62rem; font-weight: 900; letter-spacing: .04em; }
.hr-rule-text { color: #b7afbd; font-size: .81rem; line-height: 1.62; }
.hr-rule-text strong { color: #f0ebf3; font-weight: 850; }
.hr-no-match { display: none; padding: 20px; color: #706878; font-size: .75rem; text-align: center; }
.hr-section-card.has-no-rules .hr-no-match { display: block; }

.hr-global-empty { display: none; padding: 60px 20px; border: 1px dashed rgba(202, 88, 246, .18); border-radius: 18px; text-align: center; background: rgba(255,255,255,.01); }
.hr-global-empty.is-visible { display: block; }
.hr-global-empty i { display: block; margin-bottom: 10px; color: #7e7388; font-size: 1.8rem; }
.hr-global-empty strong { display: block; color: #fff; font-size: 1rem; }
.hr-global-empty p { margin: 4px 0 15px; color: #7e7685; font-size: .76rem; }
.hr-global-empty button { min-height: 38px; padding: 0 16px; border: 1px solid rgba(212, 91, 253, .25); border-radius: 999px; background: rgba(191, 74, 239, .07); color: #e9d8ef; font-size: .73rem; font-weight: 850; }
.hr-reminder { display: flex; gap: 14px; margin-top: 24px; padding: 19px 20px; border: 1px solid rgba(101, 223, 173, .13); border-radius: 16px; background: rgba(72, 188, 143, .035); }
.hr-reminder > i { color: #72d9ae; font-size: 1.2rem; }
.hr-reminder strong { color: #d9f3e7; font-size: .8rem; }
.hr-reminder p { margin: 3px 0 0; color: #8f9b95; font-size: .76rem; }

@media (max-width: 1199.98px) {
    .hr-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 18px; }
    .hr-category-shortcuts { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 991.98px) {
    .hr-intro-panel { grid-template-columns: 1fr; padding: 34px; }
    .hr-layout { display: block; }
    .hr-toc { display: none; }
    .hr-toolbar { top: 7px; }
}

@media (max-width: 767.98px) {
    .hr-intro-panel { padding: 28px 22px; border-radius: 19px; }
    .hr-intro-copy h2 { font-size: clamp(2.45rem, 13vw, 3.65rem); }
    .hr-category-shortcuts { display: flex; overflow-x: auto; padding-bottom: 5px; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .hr-category-shortcuts::-webkit-scrollbar { display: none; }
    .hr-category-card { flex: 0 0 250px; scroll-snap-align: start; }
    .hr-toolbar { display: block; padding: 8px; }
    .hr-search-state { padding: 7px 8px 2px; }
    .hr-kbd { display: none; }
    .hr-search-wrap input { padding-right: 54px; }
    .hr-clear { right: 11px; }
    .hr-category-header { grid-template-columns: auto minmax(0,1fr); }
    .hr-category-meta { grid-column: 2; }
    .hr-rule-item { grid-template-columns: 27px minmax(0,1fr); padding-inline: 13px; }
}
