    .pdfcrest-header {
        font-family: Inter, system-ui, -apple-system, sans-serif;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #ffffff;
        border-bottom: 1px solid #e8edf2;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }

    .pdfcrest-header .h-wrap {
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 24px;
        height: 52px;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 16px;
    }

    /* Logo */
    .pdfcrest-header .h-logo {
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        justify-self: start;
    }
    .pdfcrest-header .h-logo-text {
        font-weight: 800;
        font-size: 17px;
        background: linear-gradient(to right, #4f46e5, #7c3aed);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        letter-spacing: -0.3px;
    }

    /* Nav — plain links, CoreShift-style */
    .pdfcrest-header .h-nav {
        display: flex;
        align-items: center;
        gap: 2px;
        justify-self: center;
    }
    .pdfcrest-header .h-nav-a {
        color: #4b5563;
        text-decoration: none;
        font-size: 13.5px;
        font-weight: 500;
        padding: 6px 12px;
        border-radius: 8px;
        transition: background .14s, color .14s;
        white-space: nowrap;
        line-height: 1;
    }
    .pdfcrest-header .h-nav-a:hover { background: #f3f4f6; color: #111827; }

    /* All Tools button */
    .pdfcrest-header .h-tools-btn {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        color: #4b5563;
        font-size: 13.5px;
        font-weight: 500;
        padding: 6px 12px;
        border-radius: 8px;
        border: none;
        background: none;
        cursor: pointer;
        font-family: inherit;
        white-space: nowrap;
        transition: background .14s, color .14s;
        line-height: 1;
    }
    .pdfcrest-header .h-tools-btn:hover,
    .pdfcrest-header .h-tools-btn.open { background: #f3f4f6; color: #111827; }
    .pdfcrest-header .h-tools-btn .h-chevron { transition: transform .2s; display: flex; }
    .pdfcrest-header .h-tools-btn.open .h-chevron { transform: rotate(180deg); }

    /* Search — pill style matching reference */
    .pdfcrest-header .h-search-wrap {
        position: relative;
        width: 210px;
        justify-self: end;
        display: flex;
        align-items: center;
    }
    .pdfcrest-header .h-search-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #9ca3af;
        pointer-events: none;
        display: flex;
        align-items: center;
    }
    .pdfcrest-header .h-search-input {
        width: 100%;
        height: 34px;
        padding: 0 16px 0 36px;
        border: 1px solid #e0e0e0;
        border-radius: 9999px;
        font-size: 13px;
        font-family: inherit;
        color: #111827;
        background: #fff;
        outline: none;
        transition: border-color .15s, box-shadow .15s;
        box-sizing: border-box;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    .pdfcrest-header .h-search-input::placeholder { color: #a3a3a3; }
    .pdfcrest-header .h-search-input:focus {
        border-color: #c7c7f0;
        box-shadow: 0 0 0 3px rgba(99,102,241,.08);
    }

    /* Search dropdown */
    .pdfcrest-header .h-search-drop {
        display: none;
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        min-width: 280px;
        background: #fff;
        border: 1.5px solid #e5e7eb;
        border-radius: 12px;
        box-shadow: 0 8px 28px rgba(0,0,0,.1);
        overflow: hidden;
        z-index: 200;
        max-height: 360px;
        overflow-y: auto;
    }
    .pdfcrest-header .h-search-drop.open { display: block; }
    .pdfcrest-header .h-sd-item {
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 10px 14px;
        text-decoration: none;
        color: #1f2937;
        font-size: 13.5px;
        font-weight: 500;
        transition: background .1s;
        border-bottom: 1px solid #f3f4f6;
    }
    .pdfcrest-header .h-sd-item:last-child { border-bottom: none; }
    .pdfcrest-header .h-sd-item:hover { background: #f5f3ff; }
    .pdfcrest-header .h-sd-item.active { background: #f5f3ff; }
    .pdfcrest-header .h-sd-icon {
        width: 30px; height: 30px;
        border-radius: 7px;
        display: flex; align-items: center; justify-content: center;
        flex-shrink: 0;
    }
    .pdfcrest-header .h-sd-meta { display: flex; flex-direction: column; gap: 1px; }
    .pdfcrest-header .h-sd-desc { font-size: 11.5px; color: #6b7280; font-weight: 400; }
    .pdfcrest-header .h-sd-empty { padding: 16px; text-align: center; color: #9ca3af; font-size: 14px; }

    /* Tools dropdown panel */
    .pdfcrest-header .h-tools-panel {
        display: none;
        position: absolute;
        top: 52px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e8edf2;
        box-shadow: 0 8px 28px rgba(0,0,0,.09);
        z-index: 999;
    }
    .pdfcrest-header .h-tools-panel.open { display: block; }
    .pdfcrest-header .h-tools-inner {
        max-width: 1280px;
        margin: 0 auto;
        padding: 18px 24px 22px;
    }
    .pdfcrest-header .h-tools-label {
        font-size: 11px;
        font-weight: 600;
        color: #9ca3af;
        letter-spacing: .07em;
        text-transform: uppercase;
        margin-bottom: 10px;
    }
    .pdfcrest-header .h-tools-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2px;
    }
    .pdfcrest-header .h-tl {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 9px 12px;
        border-radius: 9px;
        text-decoration: none;
        color: #374151;
        font-size: 13.5px;
        font-weight: 500;
        transition: background .12s, color .12s;
    }
    .pdfcrest-header .h-tl:hover { background: #f5f3ff; color: #4f46e5; }
    .pdfcrest-header .h-tl-icon {
        width: 30px; height: 30px;
        border-radius: 7px;
        display: flex; align-items: center; justify-content: center;
        flex-shrink: 0;
    }

    /* Icon gradient presets */
    .hg1 { background: linear-gradient(135deg,#6366f1,#4f46e5); }
    .hg2 { background: linear-gradient(135deg,#8b5cf6,#db2777); }
    .hg3 { background: linear-gradient(135deg,#10b981,#059669); }
    .hg4 { background: linear-gradient(135deg,#f59e0b,#ef4444); }
    .hg5 { background: linear-gradient(135deg,#06b6d4,#2563eb); }
    .hg6 { background: linear-gradient(135deg,#f43f5e,#7c3aed); }

    /* Hamburger */
    .pdfcrest-header .h-right {
        display: flex;
        align-items: center;
        gap: 8px;
        justify-self: end;
    }
    .pdfcrest-header .h-ham {
        display: none;
        background: none;
        border: none;
        cursor: pointer;
        padding: 6px;
        color: #374151;
        border-radius: 8px;
        transition: background .14s;
        flex-shrink: 0;
    }
    .pdfcrest-header .h-ham:hover { background: #f3f4f6; }

    /* Mobile menu */
    .pdfcrest-header .h-mobile {
        display: none;
        background: #fff;
        border-top: 1px solid #e8edf2;
        padding: 10px 16px 16px;
        max-height: 80vh;
        overflow-y: auto;
    }
    .pdfcrest-header .h-mobile-section {
        font-size: 11px;
        font-weight: 600;
        color: #9ca3af;
        letter-spacing: .07em;
        text-transform: uppercase;
        padding: 12px 6px 6px;
    }
    .pdfcrest-header .h-mobile a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 6px;
        color: #374151;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        border-bottom: 1px solid #f3f4f6;
        transition: color .12s;
    }
    .pdfcrest-header .h-mobile a:last-child { border-bottom: none; }
    .pdfcrest-header .h-mobile a:hover { color: #4f46e5; }
    .pdfcrest-header .h-mobile-icon {
        width: 26px; height: 26px;
        border-radius: 6px;
        display: flex; align-items: center; justify-content: center;
        flex-shrink: 0;
    }

    @media (max-width: 900px) {
        .pdfcrest-header .h-wrap { grid-template-columns: 1fr auto; }
        .pdfcrest-header .h-nav { display: none; }
        .pdfcrest-header .h-search-wrap { display: none; }
        .pdfcrest-header .h-right { justify-self: end; }
        .pdfcrest-header .h-ham { display: flex; }
        .pdfcrest-header .h-tools-panel { display: none !important; }
    }
    @media (max-width: 480px) {
        .pdfcrest-header .h-logo-text { font-size: 17px; }
        .pdfcrest-header .h-wrap { padding: 0 16px; }
    }
