#coc-cg-menu { cursor: pointer; }
#coc-cg-menu:focus-visible { outline: 2px solid #1890ff; outline-offset: -2px; border-radius: 6px; }
.coc-cg-badge { display: inline-block; min-width: 16px; margin-left: 4px; padding: 0 5px; border-radius: 8px; background: #ff4d4f; color: #fff; font-size: 11px; line-height: 16px; text-align: center; vertical-align: 1px; }
.coc-cg-badge[hidden] { display: none; }
.coc-cg-dialog { box-sizing: border-box; width: min(1180px, calc(100vw - 32px)); height: calc(100dvh - 32px); max-height: calc(100dvh - 32px); margin: auto; border: 0; border-radius: 10px; padding: 0; color: #1f2329; background: #fff; box-shadow: 0 16px 56px #0003; font: 14px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif; }
.coc-cg-dialog::backdrop { background: #0006; }
.coc-cg-dialog * { box-sizing: border-box; }
.coc-cg-dialog form { display: flex; flex-direction: column; height: 100%; }
.coc-cg-dialog header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 0; }
.coc-cg-dialog h2 { margin: 0; font-size: 20px; font-weight: 600; }
.coc-cg-dialog button { min-height: 30px; padding: 4px 12px; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; color: #1f2329; font: inherit; cursor: pointer; white-space: nowrap; }
.coc-cg-dialog button:hover:not(:disabled) { border-color: #1677ff; color: #1677ff; }
.coc-cg-dialog button:disabled { opacity: .5; cursor: not-allowed; }
.coc-cg-dialog button.is-danger { color: #cf1322; border-color: #ffa39e; }
.coc-cg-dialog button.is-danger:hover:not(:disabled) { color: #fff; background: #ff4d4f; border-color: #ff4d4f; }
.coc-cg-dialog .coc-cg-primary { background: #1677ff; border-color: #1677ff; color: #fff; }
.coc-cg-dialog .coc-cg-primary:hover:not(:disabled) { color: #fff; background: #4096ff; }
.coc-cg-dialog .coc-cg-close { border: 0; font-size: 24px; line-height: 1; padding: 0 6px; }
.coc-cg-tip { margin: 8px 24px 0; color: #646a73; font-size: 13px; }
.coc-cg-body { flex: 1; overflow-y: auto; padding: 12px 24px 8px; }
.coc-cg-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 10px; }
.coc-cg-toolbar select, .coc-cg-toolbar input[type="search"], .coc-cg-settings input { min-height: 30px; padding: 4px 8px; border: 1px solid #d9d9d9; border-radius: 6px; font: inherit; background: #fff; }
.coc-cg-search { display: inline-flex; gap: 6px; }
.coc-cg-search input { width: 160px; }
.coc-cg-check { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.coc-cg-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 10px; padding: 12px 14px; border: 1px solid #d6e4ff; border-radius: 8px; background: #f0f5ff; }
.coc-cg-settings input { width: 64px; margin: 0 4px; }
.coc-cg-summary { margin: 0 0 10px; }
.coc-cg-summary small { display: block; color: #8f959e; }
.coc-cg-summary .is-bad { color: #cf1322; }
.coc-cg-table-wrap.is-loading { opacity: .55; }
.coc-cg-table { width: 100%; border-collapse: collapse; }
.coc-cg-table th { position: sticky; top: -12px; z-index: 1; padding: 8px; background: #fafafa; color: #646a73; font-weight: 500; text-align: left; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
.coc-cg-table td { padding: 8px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.coc-cg-table small { color: #8f959e; }
.coc-cg-table tr.is-abnormal td { background: #fff1f0; }
.coc-cg-user, .coc-cg-formation, .coc-cg-detail-head { display: flex; align-items: center; gap: 8px; }
.coc-cg-user img, .coc-cg-avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #f0f0f0; object-fit: cover; }
.coc-cg-formation img { flex: none; width: 64px; height: 40px; border-radius: 4px; object-fit: cover; background: #f0f0f0; }
.coc-cg-chips { max-width: 340px; }
.coc-cg-chip { display: inline-block; margin: 2px 4px 2px 0; padding: 0 8px; border-radius: 4px; background: #f0f5ff; color: #1d39c4; font-size: 12px; line-height: 20px; white-space: nowrap; }
.coc-cg-chip.is-other { background: #f9f0ff; color: #531dab; }
.coc-cg-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; font-size: 12px; line-height: 20px; white-space: nowrap; }
.coc-cg-tag.is-bad { margin-left: 0; background: #ff4d4f; color: #fff; }
.coc-cg-tag.is-banned { background: #f5f5f5; color: #595959; border: 1px solid #d9d9d9; }
.coc-cg-ops { white-space: nowrap; }
.coc-cg-ops button + button { margin-left: 6px; }
.coc-cg-empty { padding: 32px 8px !important; color: #8f959e; text-align: center; }
.coc-cg-pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 10px; color: #646a73; }
.coc-cg-detail-head { margin-bottom: 10px; }
.coc-cg-detail-head img, .coc-cg-detail-head .coc-cg-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #f0f0f0; }
.coc-cg-detail-head > div { flex: 1; }
.coc-cg-detail-head small { color: #8f959e; }
.coc-cg-day h3 { margin: 16px 0 6px; font-size: 15px; font-weight: 600; }
.coc-cg-day h3 small { color: #8f959e; font-weight: 400; }
.coc-cg-dialog footer { padding: 10px 24px 14px; border-top: 1px solid #f0f0f0; }
.coc-cg-message { min-height: 22px; margin: 0; color: #cf1322; }
.coc-cg-message.is-success { color: #237804; }
