button i {
    margin-top: 4px;
}

.spinner-border.d-none {
    display: none;
}
.spinner-border {
    vertical-align: middle;
}
.btn:disabled {
    opacity: 0.65;
}
textarea:focus {
    background-color: #fff9c4; /* soft yellow */
    outline: 2px solid #fdd835;
}
.pii-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: start;
    z-index: 99999999;
}
.pii-modal-content {
    background: #f9f9a2;
    padding: 30px;
    margin-top: 50px;
    border-radius: 15px;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: inset 0 0 40px 3px #d6c438;
    border: 5px solid #dc3545;
}
.pii-highlight {
    background-color: yellow;
    font-weight: bold;
}
.pii-highlighted {
    background: repeating-linear-gradient(
        45deg,
        #fff,
        #fff 10px,
        #ff0 10px,
        #ff0 20px
    );
}
.pii-story-preview {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 10px;
    margin: 10px 0;
    max-height: 200px;
    overflow-y: auto;
}
.pii-modal-content button {
   

    margin: 10px;
    padding: 8px 16px;
    cursor: pointer;
}
.pii-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

/* --- */

.pii-highlight {
    background-color: #fff3b0;
    cursor: pointer;
    transition: background-color .2s;
}
.pii-highlight:hover {
    background-color: #ffe066;
}
.pii-replaced {
    color: #18a047;
}

#pii-suggestion-box {
    margin-top: .5rem;
}
.pii-suggestion-list {
    background: #fffbea;
    border: 1px solid #ffd43b;
    border-radius: 4px;
    padding: .75rem;
}
.pii-suggestion-list ul {
    list-style: disc;
    margin: .5rem 0 0 1.5rem;
    padding: 0;
}
.pii-suggestion-item {
    cursor: pointer;
    padding: .25rem .5rem;
    margin: .25rem 0;
    border-radius: 3px;
    transition: background-color .2s;
}
.pii-suggestion-item:hover {
    background-color: #ffd43b;
}
.story-editable {
    white-space: pre-wrap;
    word-wrap: break-word;
}