.channelEditDialog {
    display: none;
    position: fixed !important;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    max-height: 80vh;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1020;
    flex-direction: column;
    overflow: hidden;
    font-family: sans-serif;
}

.channel-btn-top-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 40px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 1025;
    border-top-right-radius: 8px;
}
.channel-btn-top-close:hover {
    background-color: #ef5350;
    color: #ffffff;
}

.dialog-header {
    padding: 15px 20px 10px;
    border-bottom: 1px solid #e0e0e0;
}

.dialog-header h3 {
    margin: 0 0 8px 0;
    color: #333;
}

.dialog-notice {
    margin: 0;
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 4px;
    line-height: 1.4;
}

.channeledit-table-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 5px;
    background-color: #1a1d24;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    padding-top: 6px;
    padding-bottom: 6px;
}

.channeledit-table-scroll-area {
    flex: 1;
    overflow-y: scroll;
    padding-left: 5px;
    background: #fafafa;
}

.channeledit-table-scroll-area span {
    font-size: 13px;
    color: #666;
}

.channeledit-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    padding: 4px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fafafa;
    margin: 5px 10px;
    max-width: 900px;
}

.channeledit-row:nth-child(even) { background-color: #f4f5f7; }
.channeledit-row:nth-child(odd)  { background-color: #ffffff; }

.channeledit-row input[type="text"] {
    width: 200px;
    height: 24px;
    box-sizing: border-box;
}
.channeledit-row input[type="text"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 4px rgba(0,123,255,0.2);
}

.channeledit-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 10px;
}

.channeledit-right {
    display: grid;
    grid-template-columns: auto 200px;
    gap: 1px 2px;
    align-items: center;
    justify-content: end;
    margin-right: 10px;
}

.channel-readonly {
    background-color: #f5f5f5;
    color: #666;
    border-color: #d0d0d0;
    border-radius: 2px;
    cursor: default;
}

.channeledit-label-member {
    font-size: 14px;
    font-weight: bold;
    color: rgb(255, 230, 180);
    text-shadow: 1px 1px 0 #666, -1px -1px 0 #666,
                -1px 1px 0 #666,  1px -1px 0 #666,
                 0px 1px 0 #666,  0   -1px 0 #666,
                -1px 0   0 #666,  1px  0   0 #666;
}

.channeledit-label-member-join {
    font-size: 12px;
    color: #555;
    margin-left: 15px;
}

.channeledit-input-text {
    width: 200px;
    height: 24px;
    box-sizing: border-box;
}

.channeledit-dialog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #ffffff;
}

.channeledit-dialog-footer button {
    height: 36px;
    padding: 0 16px;
    border: 1px solid #666;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.channeledit-footer-right { display: flex; gap: 10px; }

.channeledit-btn-reset { background-color: transparent; color: #dc3545; border: 1px solid #dc3545 !important; }
.channeledit-btn-save  { background-color: #007bff; color: white; }
.channeledit-btn-close { background-color: #6c757d; color: white; }
.channeledit-btn-reset:hover { background-color: #dc3545; color: white; }
.channeledit-btn-save:hover  { background-color: #0056b3; }
.channeledit-btn-close:hover { background-color: #5a6268; }

