.tc-sabai-share {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 2px 3px 2px 0 !important;
    padding: 6px 9px !important;
    border-color: #2e6da4 !important;
    background-color: #337ab7 !important;
    color: #fff !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    text-shadow: none !important;
}

.tc-sabai-share:hover,
.tc-sabai-share:focus,
.tc-sabai-share:active {
    border-color: #204d74 !important;
    background-color: #286090 !important;
    color: #fff !important;
}

.tc-sabai-share .fa {
    margin-right: 4px !important;
    color: inherit !important;
    font-size: 13px !important;
}

.tc-sabai-share-modal {
    position: fixed;
    inset: 0;
    z-index: 1000002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .46);
}

.tc-sabai-share-dialog {
    position: relative;
    width: min(440px, 100%);
    max-height: min(70vh, 620px);
    overflow: auto;
    padding: 22px;
    border-radius: 12px;
    background: #fff;
    color: #222;
    box-shadow: 0 12px 42px rgba(0, 0, 0, .25);
}

.tc-sabai-share-dialog h2 { margin: 0 36px 14px 0; }
.tc-sabai-share-dialog h3 {
    margin: 18px 0 8px;
    color: #596873;
    font-size: 14px;
}
.tc-sabai-share-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
.tc-sabai-thread-list { display: grid; gap: 8px; }
.tc-sabai-thread,
.tc-sabai-user,
.tc-sabai-load-more {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #222;
    text-align: left;
    cursor: pointer;
}
.tc-sabai-thread:hover,
.tc-sabai-thread:focus,
.tc-sabai-user:hover,
.tc-sabai-user:focus,
.tc-sabai-load-more:hover,
.tc-sabai-load-more:focus { border-color: #2677b8; background: #f3f8fc; }
.tc-sabai-thread:disabled,
.tc-sabai-user:disabled,
.tc-sabai-load-more:disabled { cursor: wait; opacity: .62; }
.tc-sabai-share-status { color: #666; }

.tc-sabai-user-search {
    display: block;
    margin-bottom: 6px;
    color: #465866;
    font-size: 13px;
    font-weight: 600;
}
.tc-sabai-user-search span { display: block; margin-bottom: 5px; }
.tc-sabai-user-search input {
    box-sizing: border-box;
    width: 100%;
    height: 42px;
    padding: 8px 12px;
    border: 1px solid #cfd8de;
    border-radius: 9px;
    background: #fff;
    color: #222;
    font: inherit;
}
.tc-sabai-user-search input:focus {
    border-color: #2677b8;
    outline: 2px solid rgba(38, 119, 184, .16);
}
.tc-sabai-search-status,
.tc-sabai-share-status {
    min-height: 18px;
    margin: 5px 0;
    color: #666;
    font-size: 13px;
}
.tc-sabai-user-results { display: grid; gap: 7px; }
.tc-sabai-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tc-sabai-user img {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #edf4f7;
}
.tc-sabai-user span,
.tc-sabai-user strong,
.tc-sabai-user small { display: block; min-width: 0; }
.tc-sabai-user strong,
.tc-sabai-user small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tc-sabai-user small { margin-top: 2px; color: #77858e; }
.tc-sabai-load-more {
    margin-top: 9px;
    text-align: center;
    color: #2677b8;
}

.tc-sabai-mention-button {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    margin-left: 8px !important;
}
.tc-sabai-mention-button .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 18px;
}
.tc-sabai-mention-modal {
    position: fixed;
    inset: 0;
    z-index: 1000003;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .46);
}
.tc-sabai-mention-dialog {
    position: relative;
    width: min(420px, 100%);
    max-height: min(70vh, 580px);
    overflow: auto;
    box-sizing: border-box;
    padding: 22px;
    border-radius: 12px;
    background: #fff;
    color: #222;
    box-shadow: 0 12px 42px rgba(0, 0, 0, .25);
}
.tc-sabai-mention-dialog h2 { margin: 0 36px 14px 0; }
.tc-sabai-mention-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
.tc-sabai-mention-search {
    display: block;
    color: #465866;
    font-size: 13px;
    font-weight: 600;
}
.tc-sabai-mention-search span { display: block; margin-bottom: 5px; }
.tc-sabai-mention-search input {
    box-sizing: border-box;
    width: 100%;
    height: 42px;
    padding: 8px 12px;
    border: 1px solid #cfd8de;
    border-radius: 9px;
    background: #fff;
    color: #222;
    font: inherit;
}
.tc-sabai-mention-search input:focus {
    border-color: #2677b8;
    outline: 2px solid rgba(38, 119, 184, .16);
}
.tc-sabai-mention-status {
    min-height: 18px;
    margin: 5px 0;
    color: #666;
    font-size: 13px;
}
.tc-sabai-mention-results { display: grid; gap: 7px; }
.tc-sabai-mention-user {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #222;
    text-align: left;
    cursor: pointer;
}
.tc-sabai-mention-user:hover,
.tc-sabai-mention-user:focus { border-color: #2677b8; background: #f3f8fc; }
.tc-sabai-mention-user img {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #edf4f7;
}
.tc-sabai-mention-user span,
.tc-sabai-mention-user strong,
.tc-sabai-mention-user small { display: block; min-width: 0; }
.tc-sabai-mention-user strong,
.tc-sabai-mention-user small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tc-sabai-mention-user small { margin-top: 2px; color: #77858e; }

.tc-sabai-draft-notice {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-left: 4px solid #2677b8;
    background: #f1f7fb;
}
.tc-sabai-draft-notice span { margin-right: 10px; }
.tc-sabai-draft-notice button { margin: 3px 5px 3px 0; }
.tc-sabai-draft-status {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    color: #777;
    font-size: 12px;
    text-align: right;
}

@media (max-width: 600px) {
    .tc-sabai-share {
        margin-right: 2px !important;
        padding: 6px 7px !important;
        font-size: 12px !important;
    }
    .tc-sabai-share .fa {
        margin-right: 3px !important;
        font-size: 12px !important;
    }
    .tc-sabai-share-modal { align-items: flex-end; padding: 0; }
    .tc-sabai-share-dialog { width: 100%; max-height: 78vh; border-radius: 16px 16px 0 0; }
    .tc-sabai-mention-modal { align-items: flex-end; padding: 0; }
    .tc-sabai-mention-dialog { width: 100%; max-height: 78vh; border-radius: 16px 16px 0 0; }
}
