.work-note-trigger {
    box-sizing: border-box;
    width: var(--header-btn, 44px);
    height: var(--header-btn, 44px);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(20, 20, 20, 0.38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0;
    margin: 0;
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.15s ease;
}

.work-note-trigger svg { width: 23px; height: 23px; }

.work-note-trigger:hover,
.work-note-trigger.is-open {
    background: rgba(20, 20, 20, 0.6);
}

.work-note-trigger:active { transform: scale(0.94); }

.work-note-trigger:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

.work-note-panel {
    position: absolute;
    top: var(--header-btn, 44px);
    left: 0;
    z-index: calc(var(--layer-header, 1000) + 1);

    width: min(340px, calc(100vw - 2 * var(--header-offset, 35px)));
    max-height: calc(
        100vh - 2 * var(--header-offset, 35px) - var(--header-btn, 44px)
        - var(--safe-top, 0px)
    );
    overflow-y: auto;
    box-sizing: border-box;

    background: var(--paper, #F3F3EF);
    color: var(--ink, #000000);
    border-radius: 0;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
    padding: 22px 24px;

    font-family: 'Inter', 'Space Grotesk', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.work-note-panel h2 {
    margin: 0 0 12px;
    padding-right: 22px;
    font-size: 17px;
    font-weight: 600;
}

.work-note-panel h2 sup {
    margin-left: 2px;
    font-size: 11px;
    font-weight: 500;
    color: var(--header-accent, #0000FF);
}

.work-note-panel p { margin: 0 0 12px; }
.work-note-panel p:last-of-type { margin-bottom: 0; }

.work-note-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: none;
    border: none;
    padding: 0;
    color: var(--ink, #000000);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.work-note-close:hover { color: var(--header-accent, #0000FF); }

@media (max-width: 480px) {
    .work-note-panel { font-size: 13px; padding: 18px 20px; }

    .work-note-trigger svg { width: 19px; height: 19px; }
}
