/*
 * 划词记笔记浮标。挂在 document.body 上、position: fixed，
 * 坐标由 note-capture.js 按选区 rect 计算（viewport 坐标系）。
 *
 * z-index 1050：高于解析面板与 Bootstrap 的 sticky 元素，低于 SweetAlert2（1060+），
 * 保证 toast 弹出时不会被浮标压住。
 */
.note-capture-chip {
    position: fixed;
    z-index: 1050;
    padding: 5px 12px;
    border: none;
    border-radius: 999px;
    background: #212529;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .28);
    touch-action: manipulation;
}

.note-capture-chip:hover:not(:disabled) {
    background: #000;
}

.note-capture-chip:disabled {
    opacity: .6;
    cursor: default;
}

.note-capture-chip[hidden] {
    display: none;
}

/* 手机上加大点击区域，避免长按选完词却点不中 */
@media (max-width: 480px) {
    .note-capture-chip {
        padding: 8px 16px;
        font-size: 14px;
        min-height: 36px;
    }
}
