.YXYH-pc-page-collector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: var(--ls-width);
    margin: 0 auto;
    padding: 24px 0 48px;
    color: #111827;
    font-size: 14px;
}

.YXYH-pc-page-collector * {
    box-sizing: border-box;
}

.YXYH-pc-page-collector a {
    color: var(--ls-primary);
    text-decoration: none;
}

.YXYH-pc-page-collector a:hover {
    opacity: .82;
}

.yxyh-collector-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border: 1px solid #edf0f4;
    border-radius: var(--ls-border-radius);
    background: #ffffff;
}

.yxyh-collector-header-left {
    min-width: 0;
}

.yxyh-collector-header h1 {
    margin: 0;
    color: #111827;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

.yxyh-collector-header p {
    margin: 6px 0 0;
    color: #7b8491;
    font-size: 13px;
    line-height: 1.6;
}

.yxyh-collector-header-right {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.yxyh-collector-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #e1e5eb;
    border-radius: var(--ls-border-radius-btn);
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    font-size: 18px;
    transition: background .18s ease, transform .18s ease, border-color .18s ease;
}

.yxyh-collector-icon-btn:hover {
    border-color: #d8dde5;
    background: #f8fafc;
    transform: translateY(-1px);
}

.yxyh-collector-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.yxyh-collector-btn {
    min-width: 76px;
    height: 36px;
    padding: 0 15px;
    border: 1px solid #e1e5eb;
    border-radius: var(--ls-border-radius-btn);
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: background .18s ease, opacity .18s ease, transform .18s ease, border-color .18s ease;
}

.yxyh-collector-btn:hover {
    border-color: #d8dde5;
    background: #f8fafc;
    transform: translateY(-1px);
}

.yxyh-collector-btn:active {
    transform: translateY(0);
}

.yxyh-collector-btn:disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
}

.yxyh-collector-btn-primary {
    border-color: var(--ls-primary);
    background: var(--ls-primary);
    color: #ffffff;
}

.yxyh-collector-btn-primary:hover {
    border-color: var(--ls-primary);
    background: var(--ls-primary);
    opacity: .9;
}

.yxyh-collector-btn-danger {
    border-color: #dc2626;
    background: #dc2626;
    color: #ffffff;
}

.yxyh-collector-btn-danger:hover {
    border-color: #b91c1c;
    background: #b91c1c;
}

.yxyh-collector-btn-muted {
    border-color: #d1d5db;
    background: #f3f4f6;
    color: #374151;
}

.yxyh-collector-btn-muted:hover {
    border-color: #c4cad4;
    background: #e5e7eb;
}

.yxyh-collector-text-btn {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ls-primary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.yxyh-collector-text-btn:hover {
    opacity: .82;
}

.yxyh-collector-view {
    display: none;
}

.yxyh-collector-view.is-active {
    display: block;
}

.yxyh-collector-settings-modal {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 14px;
    height: 100%;
    min-height: 0;
    padding: 16px;
    background: #f8fafc;
}

#yxyh-collector-settings-modal .ls-modal-content {
    display: flex;
    flex-direction: column;
    width: min(820px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    height: min(70vh, 680px);
    max-height: calc(100vh - 48px);
    overflow: hidden;
}

#yxyh-collector-settings-modal .ls-modal-header {
    flex: 0 0 auto;
    padding: 16px 18px;
    border-bottom: 1px solid #edf0f4;
}

#yxyh-collector-settings-modal .ls-modal-header h3 {
    font-size: 14px;
    line-height: 1.35;
}

#yxyh-collector-settings-modal .ls-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #f8fafc;
}

.yxyh-collector-settings-aside {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    padding: 12px;
    border: 1px solid #edf0f4;
    border-radius: var(--ls-border-radius);
    background: #ffffff;
}

.yxyh-collector-settings-tabs {
    display: grid;
    flex: 1 1 auto;
    gap: 8px;
    min-height: 0;
    overflow: auto;
    align-content: start;
}

.yxyh-collector-settings-tab {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 10px;
    border: 1px solid #edf0f4;
    border-radius: var(--ls-border-radius-btn);
    background: #f8fafc;
    cursor: pointer;
    text-align: left;
}

.yxyh-collector-settings-tab:hover {
    background: #f3f6fa;
}

.yxyh-collector-settings-tab.is-active {
    border-color: rgb(var(--ls-primary-rgb) / 28%);
    background: rgb(var(--ls-primary-rgb) / 7%);
}

.yxyh-collector-settings-tab span {
    min-width: 0;
    overflow: hidden;
    color: #111827;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yxyh-collector-settings-add {
    flex: 0 0 auto;
    justify-content: center;
    width: 100%;
    margin-top: auto;
}

.yxyh-collector-settings-main {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #edf0f4;
    border-radius: var(--ls-border-radius);
    background: #ffffff;
}

.yxyh-collector-settings-main-head {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #edf0f4;
    background: #ffffff;
}

.yxyh-collector-settings-main-head h2 {
    margin: 0;
    color: #111827;
    font-size: 14px;
    line-height: 1.35;
}

.yxyh-collector-settings-main-head p {
    margin: 5px 0 0;
    color: #8a94a3;
    font-size: 12px;
    line-height: 1.45;
}

.yxyh-collector-settings-modal .yxyh-collector-group-grid {
    flex: 1 1 auto;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    align-content: start;
    gap: 10px;
    min-height: 0;
    padding: 12px;
    overflow: auto;
    background: #ffffff;
}

.yxyh-collector-settings-modal .yxyh-collector-group-card {
    padding: 14px;
    border: 1px solid #edf0f4;
    border-radius: var(--ls-border-radius-btn);
    background: #f8fafc;
}

.yxyh-collector-settings-modal .yxyh-collector-group-head {
    align-items: center;
}

.yxyh-collector-settings-modal .yxyh-collector-group-card .yxyh-collector-row-actions {
    margin-top: 0;
    justify-content: flex-end;
}

.yxyh-collector-group-title {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.yxyh-collector-group-title span {
    color: #8a94a3;
    font-size: 12px;
    line-height: 1.35;
}

.yxyh-collector-settings-modal .yxyh-collector-puppet-list {
    gap: 6px;
    margin-top: 12px;
}

.yxyh-collector-settings-modal .yxyh-collector-puppet-row {
    width: auto;
    padding: 7px 9px;
    background: #ffffff;
}

.yxyh-collector-puppet-name {
    min-width: 0;
    overflow: hidden;
    color: #111827;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yxyh-collector-settings-empty {
    display: grid;
    align-content: center;
    gap: 6px;
    grid-column: 1 / -1;
    min-height: 180px;
    padding: 24px;
    border: 1px dashed #dbe2ea;
    border-radius: var(--ls-border-radius);
    background: #f8fafc;
    text-align: center;
}

.yxyh-collector-settings-empty span {
    color: #111827;
    font-size: 13px;
    line-height: 1.35;
}

.yxyh-collector-settings-empty p {
    margin: 0;
    color: #8a94a3;
    font-size: 12px;
    line-height: 1.45;
}

.yxyh-collector-settings-empty-mini {
    padding: 10px;
    border: 1px dashed #dbe2ea;
    border-radius: var(--ls-border-radius-btn);
    color: #8a94a3;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

.yxyh-collector-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.yxyh-collector-stat {
    min-height: 108px;
    padding: 16px 18px;
    border: 1px solid #edf0f4;
    border-radius: var(--ls-border-radius);
    background: #ffffff;
}

.yxyh-collector-stat span {
    display: block;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.yxyh-collector-stat .yxyh-collector-stat-value {
    display: block;
    margin-top: 10px;
    color: #111827;
    font-size: 28px;
    line-height: 1;
}

.yxyh-collector-stat em {
    display: block;
    margin-top: 10px;
    color: #8a94a3;
    font-size: 12px;
    font-style: normal;
    line-height: 1.45;
}

.yxyh-collector-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr);
    grid-auto-rows: minmax(0, 1fr);
    gap: 14px;
    height: 600px;
}

.yxyh-collector-columns > .yxyh-collector-panel {
    display: flex;
    min-height: 0;
    flex-direction: column;
}

.yxyh-collector-task-health {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.yxyh-collector-form-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.yxyh-collector-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.yxyh-collector-panel {
    padding: 18px;
    border: 1px solid #edf0f4;
    border-radius: var(--ls-border-radius);
    background: #ffffff;
}

.yxyh-collector-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.yxyh-collector-panel-head h2 {
    margin: 0;
    color: #111827;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

.yxyh-collector-panel-head span {
    display: block;
    margin-top: 4px;
    color: #7b8491;
    font-size: 12px;
}

.yxyh-collector-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    padding: 14px 18px;
    border: 1px solid #edf0f4;
    border-radius: var(--ls-border-radius);
    background: #ffffff;
}

.yxyh-collector-toolbar h2 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 800;
}

.yxyh-collector-toolbar p {
    margin: 5px 0 0;
    color: #6b7280;
    line-height: 1.6;
}

.yxyh-collector-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.yxyh-collector-filter input {
    width: 280px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #e1e5eb;
    border-radius: var(--ls-radius-full);
    background: #f8fafc;
    color: #111827;
    outline: none;
}

.yxyh-collector-filter select {
    height: 36px;
    padding: 0 14px;
    border: 1px solid #e1e5eb;
    border-radius: var(--ls-radius-full);
    background: #ffffff;
    color: #374151;
    outline: none;
}

.yxyh-collector-filter input:focus {
    border-color: rgb(var(--ls-primary-rgb) / 50%);
    background: #ffffff;
}

.yxyh-collector-filter select:focus {
    border-color: rgb(var(--ls-primary-rgb) / 50%);
}

.yxyh-collector-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.yxyh-collector-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.yxyh-collector-form-grid span {
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.yxyh-collector-form-grid small {
    color: #8a94a3;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 500;
}

.yxyh-collector-form-grid input {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #e1e5eb;
    border-radius: var(--ls-border-radius-btn);
    background: #ffffff;
    color: #111827;
    outline: none;
    transition: border-color .18s ease, background .18s ease;
}

.yxyh-collector-form-grid input:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.yxyh-collector-form-grid select {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #e1e5eb;
    border-radius: var(--ls-border-radius-btn);
    background: #ffffff;
    color: #111827;
    outline: none;
    transition: border-color .18s ease, background .18s ease;
}

.yxyh-collector-form-grid textarea {
    width: 100%;
    min-height: 92px;
    padding: 10px 12px;
    border: 1px solid #e1e5eb;
    border-radius: var(--ls-border-radius-btn);
    background: #ffffff;
    color: #111827;
    outline: none;
    resize: vertical;
    transition: border-color .18s ease, background .18s ease;
}

.yxyh-collector-form-grid input:focus {
    border-color: rgb(var(--ls-primary-rgb) / 55%);
    background: rgb(var(--ls-primary-rgb) / 4%);
}

.yxyh-collector-form-grid select:focus {
    border-color: rgb(var(--ls-primary-rgb) / 55%);
    background: rgb(var(--ls-primary-rgb) / 4%);
}

.yxyh-collector-form-grid textarea:focus {
    border-color: rgb(var(--ls-primary-rgb) / 55%);
    background: rgb(var(--ls-primary-rgb) / 4%);
}

.yxyh-collector-field-wide {
    grid-column: 1 / -1;
}

.yxyh-collector-checkline {
    flex-direction: row;
    align-items: center;
}

.yxyh-collector-checkline input {
    width: 16px;
    min-height: 16px;
}

.yxyh-collector-table-wrap {
    overflow: auto;
}

.yxyh-collector-task-health .yxyh-collector-table-wrap {
    min-height: 0;
    overflow: auto;
}

.yxyh-collector-table {
    width: 100%;
    border: 1px solid #edf0f4;
    border-collapse: collapse;
    font-size: 13px;
}

.yxyh-collector-task-table {
    table-layout: fixed;
}

.yxyh-collector-table th {
    padding: 12px;
    border: 1px solid #eef0f4;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.yxyh-collector-table td {
    padding: 14px 12px;
    border: 1px solid #f3f5f8;
    color: #374151;
    vertical-align: middle;
}

.yxyh-collector-table tr:hover td {
    background: #f8fafc;
}

.yxyh-collector-table tr.is-selected td {
    background: rgb(var(--ls-primary-rgb) / 5%);
}

.yxyh-collector-title-cell strong {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.yxyh-collector-title-cell span {
    display: block;
    margin-top: 4px;
    color: #8a94a3;
    font-size: 12px;
}

.yxyh-collector-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.yxyh-collector-mini-btn {
    height: 28px;
    padding: 0 10px;
    border: 1px solid #e1e5eb;
    border-radius: var(--ls-border-radius-btn);
    background: #ffffff;
    color: #4b5563;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.yxyh-collector-mini-btn:hover {
    border-color: #d8dde5;
    background: #f8fafc;
}

.yxyh-collector-mini-btn-primary {
    border-color: rgb(var(--ls-primary-rgb) / 30%);
    background: rgb(var(--ls-primary-rgb) / 8%);
    color: var(--ls-primary);
}

.yxyh-collector-mini-btn-primary:hover {
    border-color: rgb(var(--ls-primary-rgb) / 45%);
    background: rgb(var(--ls-primary-rgb) / 12%);
    color: var(--ls-primary);
}

.yxyh-collector-task-menu {
    position: relative;
    display: inline-flex;
    width: 100%;
    justify-content: center;
}

.yxyh-collector-task-menu-list {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 6000;
    display: grid;
    width: 86px;
    min-width: 0;
    padding: 6px;
    border: 1px solid #e6eaf0;
    border-radius: var(--ls-border-radius-btn);
    background: #ffffff;
}

.yxyh-collector-task-menu-list[hidden] {
    display: none;
}

.yxyh-collector-task-menu-list button {
    height: 30px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--ls-border-radius-btn);
    background: transparent;
    color: #374151;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.yxyh-collector-task-menu-list button:hover {
    background: rgb(var(--ls-primary-rgb) / 8%);
    color: var(--ls-primary);
}

.yxyh-collector-task-menu-list .yxyh-collector-run-state.is-start {
    color: #16a34a;
}

.yxyh-collector-task-menu-list .yxyh-collector-run-state.is-start:hover {
    background: rgba(22, 163, 74, .10);
    color: #15803d;
}

.yxyh-collector-task-menu-list .yxyh-collector-run-state.is-pause {
    color: #d97706;
}

.yxyh-collector-task-menu-list .yxyh-collector-run-state.is-pause:hover {
    background: rgba(217, 119, 6, .10);
    color: #b45309;
}

.yxyh-collector-tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 9px;
    border-radius: var(--ls-radius-full);
    background: #f1f3f5;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.yxyh-collector-tag-primary {
    background: rgb(var(--ls-primary-rgb) / 12%);
    color: var(--ls-primary);
}

.yxyh-collector-tag-green {
    background: #dcfce7;
    color: #166534;
}

.yxyh-collector-tag-yellow {
    background: #fef3c7;
    color: #92400e;
}

.yxyh-collector-tag-red {
    background: #fee2e2;
    color: #991b1b;
}

.yxyh-collector-tag-blue {
    background: #dbeafe;
    color: #1e40af;
}

.yxyh-collector-tag-purple {
    background: #ede9fe;
    color: #5b21b6;
}

.yxyh-collector-task-toolbar {
    margin-bottom: 14px;
    padding: 0;
    border: 0;
    background: transparent;
}

.yxyh-collector-task-head {
    align-items: center;
}

.yxyh-collector-task-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.yxyh-collector-task-head-actions input {
    width: 260px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #e1e5eb;
    border-radius: var(--ls-border-radius-btn);
    background: #f8fafc;
    color: #111827;
    outline: none;
}

.yxyh-collector-task-head-actions input:focus {
    border-color: rgb(var(--ls-primary-rgb) / 50%);
    background: #ffffff;
}

.yxyh-collector-progress {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
}

.yxyh-collector-progress span {
    min-height: 24px;
    padding: 3px 0;
    border-radius: var(--ls-radius-full);
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.yxyh-collector-progress span:nth-child(1) {
    color: #15803d;
}

.yxyh-collector-progress span:nth-child(2) {
    color: #6366f1;
}

.yxyh-collector-progress span:nth-child(3) {
    color: #d97706;
}

.yxyh-collector-progress span:nth-child(4) {
    color: #6b7280;
}

.yxyh-collector-progress span:nth-child(5) {
    color: #dc2626;
}

.yxyh-collector-task-table th,
.yxyh-collector-task-table td {
    text-align: center;
}

.yxyh-collector-task-table th:first-child,
.yxyh-collector-task-table td:first-child {
    text-align: left;
}

.yxyh-collector-task-table th:nth-child(2) {
    width: 76px;
}

.yxyh-collector-task-table td:nth-child(2) {
    width: 76px;
}

.yxyh-collector-task-table th:nth-child(5) {
    width: 76px;
}

.yxyh-collector-task-table td:nth-child(5) {
    width: 76px;
}

.yxyh-collector-task-table th:nth-child(3) {
    text-align: center;
    width: 92px;
}

.yxyh-collector-task-table td:nth-child(3) {
    text-align: center;
    width: 92px;
}

.yxyh-collector-task-name {
    padding: 0;
    border: 0;
    background: transparent;
    color: #111827;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    text-align: left;
}

.yxyh-collector-task-name:hover {
    color: var(--ls-primary);
}

.yxyh-collector-task-title {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.yxyh-collector-task-title em {
    overflow: hidden;
    color: #8a94a3;
    font-size: 12px;
    font-style: normal;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yxyh-collector-detail-meta,
.yxyh-collector-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.yxyh-collector-detail-meta {
    margin-left: auto;
    justify-content: flex-end;
    color: #6b7280;
    font-size: 13px;
}

#yxyh-collector-task-detail-modal .ls-modal-footer {
    justify-content: space-between;
    height: 70px;
}

#yxyh-collector-task-detail-modal .ls-modal-content {
    width: 700px;
    height: 700px;
    gap: 15px;
}

#yxyh-collector-task-detail-modal .ls-modal-body {
    overflow: hidden;
    height: 530px;
    padding: 0 20px;
    position: relative;
}

#yxyh-collector-task-detail-modal .yxyh-collector-table {
    table-layout: fixed;
    min-width: 0;
    height: auto;
}

#yxyh-collector-task-detail-modal .yxyh-collector-table thead tr {
    height: 40px;
}

#yxyh-collector-task-detail-modal .yxyh-collector-table tbody tr {
    height: 45px;
}

#yxyh-collector-task-detail-modal .yxyh-collector-table tbody {
    opacity: 1;
    transition: opacity .16s ease;
}

#yxyh-collector-task-detail-modal .yxyh-collector-table tbody.is-fading {
    opacity: 0;
}

#yxyh-collector-task-detail-modal .ls-modal-header {
    align-items: center;
    gap: 12px;
    height: 70px;
}

#yxyh-collector-task-detail-modal .ls-modal-header h3 {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yxyh-collector-task-table td:last-child,
.yxyh-collector-task-table th:last-child {
    text-align: center;
}

.yxyh-collector-health-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--ls-border-radius-btn);
    background: #f8fafc;
}

.yxyh-collector-health-row strong {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.yxyh-collector-health-row span {
    display: block;
    margin-top: 4px;
    color: #7b8491;
    font-size: 12px;
}

.yxyh-collector-log-list {
    display: grid;
    flex: 1 1 auto;
    align-content: start;
    gap: 10px;
    grid-auto-rows: max-content;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.yxyh-collector-log {
    min-width: 0;
    padding: 11px 14px;
    border-radius: var(--ls-border-radius-btn);
    background: #f8fafc;
    opacity: 1;
    transform: translateY(0);
    transition: opacity .32s cubic-bezier(.22, .61, .36, 1), transform .32s cubic-bezier(.22, .61, .36, 1), background .24s ease;
}

.yxyh-collector-log.is-entering {
    opacity: 0;
    transform: translateY(-10px);
}

.yxyh-collector-log-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    color: #111827;
    font-size: 13px;
}

.yxyh-collector-log-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.yxyh-collector-log-main .yxyh-collector-tag {
    margin-top: 0;
}

.yxyh-collector-log-main .yxyh-collector-log-text {
    min-width: 0;
    margin-top: 0;
    color: #374151;
    font-size: 12px;
    line-height: 1.5;
}

.yxyh-collector-log-message {
    min-width: 0;
    color: #374151;
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.yxyh-collector-log-time {
    display: block;
    margin-top: 4px;
    color: #7b8491;
    font-size: 12px;
    line-height: 1.4;
}

.yxyh-collector-log-more {
    min-height: 36px;
    padding: 10px 12px;
    border-radius: var(--ls-border-radius-btn);
    background: #f8fafc;
    color: #8a94a3;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.yxyh-collector-items-panel {
    margin-top: 14px;
}

.yxyh-collector-item-table th,
.yxyh-collector-item-table td {
    padding: 0 4px;
}

.yxyh-collector-item {
    cursor: pointer;
    transition: background .18s ease;
}

.yxyh-collector-item:hover {
    background: #f2f5f9;
}

.yxyh-collector-item input {
    width: 16px;
    height: 16px;
    vertical-align: text-top;
}

.yxyh-collector-item-table input[type="checkbox"] {
    display: inline-block;
    margin: 0;
}

.yxyh-collector-item-table th:first-child,
.yxyh-collector-item-table td:first-child {
    width: 38px;
    text-align: center;
}

.yxyh-collector-item-table th:nth-child(2),
.yxyh-collector-item-table td:nth-child(2) {
    width: 48px;
    text-align: center;
}

.yxyh-collector-item-cover {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    vertical-align: middle;
}

.yxyh-collector-item-cover-empty {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: #f3f4f6;
}

.yxyh-collector-item-table th:nth-child(3),
.yxyh-collector-item-table td:nth-child(3) {
    text-align: left;
}

.yxyh-collector-item-table th:nth-child(4),
.yxyh-collector-item-table td:nth-child(4) {
    width: 54px;
    text-align: center;
    white-space: nowrap;
}

.yxyh-collector-item-status {
    font-weight: 800;
}

.yxyh-collector-item-status.is-published {
    color: #16a34a;
}

.yxyh-collector-item-status.is-pending {
    color: #d97706;
}

.yxyh-collector-item-table th:nth-child(5),
.yxyh-collector-item-table td:nth-child(5) {
    width: 76px;
    text-align: center;
    white-space: nowrap;
}

.yxyh-collector-item-source {
    color: var(--ls-primary);
    font-weight: 700;
}

.yxyh-collector-item-table th:nth-child(6),
.yxyh-collector-item-table td:nth-child(6) {
    width: 92px;
    color: #6b7280;
    text-align: center;
    white-space: nowrap;
}

.yxyh-collector-item-title {
    display: block;
    color: #111827;
    font-size: 14px;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yxyh-collector-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 20px;
}

.yxyh-collector-item-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #6b7280;
    font-size: 13px;
    width: auto;
    height: 30px;
    line-height: 30px;
}

.yxyh-collector-item-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.yxyh-collector-item-filter button {
    height: 30px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--ls-radius-full);
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.yxyh-collector-item-filter button:hover,
.yxyh-collector-item-filter button.is-active {
    background: rgb(var(--ls-primary-rgb) / 10%);
    color: var(--ls-primary);
}

.yxyh-collector-item-pager div {
    display: flex;
    gap: 8px;
}

#yxyh-collector-item-preview-modal .ls-modal-content {
    width: min(760px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
}

#yxyh-collector-item-preview-modal .ls-modal-body {
    max-height: calc(100vh - 170px);
    overflow: auto;
}

.yxyh-collector-item-preview {
    display: grid;
    gap: 14px;
}

.yxyh-collector-preview-cover {
    width: 100%;
    max-height: 280px;
    border-radius: var(--ls-border-radius);
    object-fit: cover;
}

.yxyh-collector-preview-frame {
    width: 100%;
    min-height: 360px;
    border: 1px solid #edf0f4;
    border-radius: var(--ls-border-radius);
    background: #ffffff;
}

.yxyh-collector-item-editor {
    display: grid;
    gap: 12px;
}

.yxyh-collector-item-editor label {
    display: grid;
    gap: 7px;
}

.yxyh-collector-item-editor span {
    color: #374151;
    font-size: 12px;
    font-weight: 800;
}

.yxyh-collector-item-editor input {
    height: 38px;
    min-width: 0;
    padding: 0 11px;
    border: 1px solid #e1e5eb;
    border-radius: var(--ls-border-radius-btn);
    background: #ffffff;
    color: #111827;
    outline: none;
}

.yxyh-collector-item-editor select {
    height: 38px;
    min-width: 0;
    padding: 0 11px;
    border: 1px solid #e1e5eb;
    border-radius: var(--ls-border-radius-btn);
    background: #ffffff;
    color: #111827;
    outline: none;
}

.yxyh-collector-item-editor textarea {
    min-height: 180px;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid #e1e5eb;
    border-radius: var(--ls-border-radius-btn);
    background: #ffffff;
    color: #111827;
    outline: none;
    resize: vertical;
}

.yxyh-collector-item-attachments {
    min-height: 42px;
    padding: 10px 11px;
    border: 1px solid #e1e5eb;
    border-radius: var(--ls-border-radius-btn);
    background: #ffffff;
    color: #111827;
    line-height: 1.8;
    word-break: break-word;
}

.yxyh-collector-item-attachments a {
    color: #2563eb;
    text-decoration: none;
}

.yxyh-collector-preview-card dl {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 12px 0 0;
    padding: 14px;
    border: 1px solid #edf0f4;
    border-radius: var(--ls-border-radius);
    background: #ffffff;
}

.yxyh-collector-preview-card dt {
    color: #64748b;
    font-weight: 800;
}

.yxyh-collector-preview-card dd {
    min-width: 0;
    margin: 0;
    color: #111827;
    line-height: 1.7;
    word-break: break-word;
}

.yxyh-collector-group-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.yxyh-collector-group-card {
    padding: 18px;
    border: 1px solid #edf0f4;
    border-radius: var(--ls-border-radius);
    background: #ffffff;
}

.yxyh-collector-group-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.yxyh-collector-group-head h3 {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
}

.yxyh-collector-puppet-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.yxyh-collector-puppet-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #edf0f4;
    border-radius: var(--ls-border-radius-btn);
    background: #ffffff;
    width: fit-content;
    max-width: 100%;
}

.yxyh-collector-puppet-row img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eef2f7;
    object-fit: cover;
}

.yxyh-collector-puppet-row strong {
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.yxyh-collector-puppet-row span {
    color: #7b8491;
    font-size: 12px;
}

.yxyh-collector-storage-list {
    display: grid;
    gap: 10px;
}

.yxyh-collector-storage-card {
    padding: 12px 14px;
    border-radius: var(--ls-border-radius-btn);
    background: #f8fafc;
}

.yxyh-collector-storage-card strong {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.yxyh-collector-storage-card span {
    display: block;
    margin-top: 4px;
    color: #7b8491;
    font-size: 12px;
}

.yxyh-collector-empty {
    padding: 28px;
    border-radius: var(--ls-border-radius);
    background: #f8fafc;
    color: #7b8491;
    text-align: center;
}

#yxyh-collector-task-modal .ls-modal-content {
    width: min(600px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    height: 90vh;
    max-height: 90vh;
}

#yxyh-collector-task-modal .ls-modal-body {
    padding: 0;
    overflow: auto;
    font-size: 12px;
}

#yxyh-collector-task-modal .ls-modal-header h3 {
    font-size: 14px;
    line-height: 1.35;
}

#yxyh-collector-task-modal .ls-modal-footer {
    padding: 14px 22px;
    border-top: 1px solid #edf0f4;
    background: #fafbfc;
}

#yxyh-collector-source-modal .ls-modal-content {
    display: flex;
    flex-direction: column;
    width: min(1100px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    height: 90vh;
    max-height: 90vh;
    overflow: hidden;
}

#yxyh-collector-detail-modal .ls-modal-content {
    display: flex;
    flex-direction: column;
    width: min(1100px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    height: 90vh;
    max-height: 90vh;
    overflow: hidden;
}

#yxyh-collector-rule-test-modal .ls-modal-content {
    width: min(650px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    height: 90vh;
    max-height: 90vh;
}

#yxyh-collector-rule-test-modal .ls-modal-body {
    overflow: auto;
}

#yxyh-collector-rule-test-modal .yxyh-collector-rule-test-tip {
    margin-top: 4px;
    color: #7b8491;
    font-size: 12px;
    line-height: 1.5;
}

#yxyh-collector-detail-modal .ls-modal-body {
    display: flex;
    flex-direction: row;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    padding: 0;
    overflow: hidden;
    background: #fafbfc;
    font-size: 12px;
}

#yxyh-collector-source-modal .ls-modal-footer {
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid #edf0f4;
    background: #ffffff;
}

#yxyh-collector-detail-modal .ls-modal-footer {
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid #edf0f4;
    background: #ffffff;
}

.yxyh-collector-task-form {
    display: block;
}

#yxyh-collector-task-modal .ls-modal-footer {
    gap: 10px;
    background: #ffffff;
}

.yxyh-collector-quick-task {
    display: grid;
    gap: 12px;
    padding: 18px;
    background: #f8fafc;
}

#yxyh-collector-task-modal .yxyh-collector-form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
}

#yxyh-collector-task-modal .yxyh-collector-form-grid label {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid #edf0f4;
    border-radius: var(--ls-border-radius-btn);
    background: #ffffff;
}

#yxyh-collector-task-modal .yxyh-collector-form-grid [data-role="fee-fields"][hidden] {
    display: none;
}

#yxyh-collector-task-modal .yxyh-collector-form-grid [data-role="password-fields"][hidden] {
    display: none;
}

#yxyh-collector-task-modal .yxyh-collector-form-grid label > span {
    flex: 0 0 60px;
    padding-top: 10px;
}

#yxyh-collector-task-modal .yxyh-collector-form-grid label > input {
    flex: 1 1 auto;
    min-width: 0;
}

#yxyh-collector-task-modal .yxyh-collector-form-grid label > select {
    flex: 1 1 auto;
    min-width: 0;
}

#yxyh-collector-task-modal .yxyh-collector-form-grid label > textarea {
    flex: 1 1 auto;
    min-width: 0;
}

#yxyh-collector-task-modal .yxyh-collector-form-grid label > div {
    flex: 1 1 auto;
    min-width: 0;
}

#yxyh-collector-task-modal .yxyh-collector-auto-publish-fields {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #edf0f4;
    border-radius: var(--ls-border-radius-btn);
    background: #ffffff;
}

#yxyh-collector-task-modal .yxyh-collector-auto-publish-fields[hidden] {
    display: none;
}

#yxyh-collector-task-modal .yxyh-collector-auto-publish-fields label {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

#yxyh-collector-task-modal .yxyh-collector-auto-publish-line {
    display: grid;
    align-items: flex-start;
    gap: 25px;
}

#yxyh-collector-task-modal .yxyh-collector-auto-publish-line-two {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

#yxyh-collector-task-modal .yxyh-collector-auto-publish-line-three {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

#yxyh-collector-task-modal .yxyh-collector-auto-publish-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

#yxyh-collector-task-modal .yxyh-collector-auto-publish-row > span {
    flex: 0 0 60px;
    padding-top: 10px;
}

#yxyh-collector-task-modal .yxyh-collector-auto-publish-row > div {
    flex: 1 1 auto;
    min-width: 0;
}

#yxyh-collector-task-modal .yxyh-collector-auto-publish-row .yxyh-collector-field-title {
    margin-bottom: 0;
}

#yxyh-collector-task-modal .yxyh-collector-rule-field {
    align-items: flex-start;
}

#yxyh-collector-task-modal .yxyh-collector-rule-field > span {
    display: block;
}

#yxyh-collector-task-modal .yxyh-collector-rule-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 8px;
}

#yxyh-collector-task-modal .yxyh-collector-rule-actions .yxyh-collector-btn {
    width: 100%;
}

#yxyh-collector-task-modal .yxyh-collector-form-grid label span {
    color: #374151;
    font-size: 12px;
}

#yxyh-collector-task-modal .yxyh-collector-field-title {
    color: #374151;
    font-size: 12px;
}

#yxyh-collector-task-modal .yxyh-collector-rule-field > span em {
    color: #374151;
    font-size: 12px;
}

#yxyh-collector-task-modal .yxyh-collector-form-grid input {
    border-color: #e6eaf0;
    background: #ffffff;
}

#yxyh-collector-task-modal .yxyh-collector-form-grid select {
    border-color: #e6eaf0;
    background: #ffffff;
}

#yxyh-collector-task-modal .yxyh-collector-form-grid textarea {
    border-color: #e6eaf0;
    background: #ffffff;
}

#yxyh-collector-task-modal .yxyh-collector-form-grid input {
    font-size: 12px;
}

#yxyh-collector-task-modal .yxyh-collector-form-grid select {
    font-size: 12px;
}

#yxyh-collector-task-modal .yxyh-collector-form-grid textarea {
    font-size: 12px;
    line-height: 1.55;
}

#yxyh-collector-task-modal .yxyh-collector-form-grid small {
    color: #94a3b8;
}

#yxyh-collector-publish-modal .ls-modal-content {
    max-width: 760px;
}

#yxyh-collector-publish-modal .ls-modal-body {
    padding: 24px 30px 8px;
}

#yxyh-collector-publish-modal .ls-modal-footer {
    justify-content: flex-end;
    padding: 18px 30px 24px;
}

.yxyh-collector-publish-form {
    display: grid;
    gap: 14px;
}

.yxyh-collector-publish-summary {
    color: #6b7280;
    font-size: 13px;
}

.yxyh-collector-publish-form label {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
}

.yxyh-collector-publish-form label > span {
    color: #374151;
    font-size: 14px;
}

.yxyh-collector-publish-form select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #e1e5eb;
    border-radius: var(--ls-border-radius-btn);
    background: #ffffff;
    color: #111827;
    font-size: 14px;
}

.yxyh-collector-publish-form input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #e1e5eb;
    border-radius: var(--ls-border-radius-btn);
    background: #ffffff;
    color: #111827;
    font-size: 14px;
}

.yxyh-collector-publish-form select:focus {
    border-color: rgb(var(--ls-primary-rgb) / 45%);
    outline: none;
}

.yxyh-collector-publish-form input:focus {
    border-color: rgb(var(--ls-primary-rgb) / 45%);
    outline: none;
}

.yxyh-collector-publish-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
}

.yxyh-collector-publish-row > span {
    color: #374151;
    font-size: 14px;
}

.yxyh-collector-publish-row .yxyh-collector-tag-control {
    min-width: 0;
}

.yxyh-collector-denied {
    min-height: 56vh;
    padding: 96px 20px;
    background: #f8fafc;
}

.yxyh-collector-denied-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 34px 36px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 55px rgb(15 23 42 / 10%);
    text-align: center;
}

.yxyh-collector-denied-card h1 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 24px;
    font-weight: 800;
}

.yxyh-collector-denied-card p {
    margin: 0 0 22px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.8;
}

.yxyh-collector-denied-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    border-radius: var(--ls-radius-full);
    background: #111827;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

#yxyh-collector-publish-progress-modal .ls-modal-content {
    max-width: 720px;
}

#yxyh-collector-publish-progress-modal .ls-modal-body {
    padding: 22px 26px 26px;
}

#yxyh-collector-publish-progress-modal .ls-modal-footer {
    display: none;
}

.yxyh-collector-publish-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    color: #4b5563;
    font-size: 13px;
}

.yxyh-collector-publish-progress-head span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: var(--ls-radius-full);
    background: #f3f4f6;
}

.yxyh-collector-publish-console {
    min-height: 280px;
    max-height: 420px;
    overflow: auto;
    padding: 16px;
    border-radius: var(--ls-border-radius);
    background: #111827;
    color: #d1d5db;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.7;
}

.yxyh-collector-publish-console-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-height: 22px;
    margin: 0 -6px 3px;
    padding: 2px 6px;
    border-radius: 8px;
    white-space: pre-wrap;
    word-break: break-word;
}

.yxyh-collector-publish-console-line.is-info {
    background: rgb(148 163 184 / 6%);
}

.yxyh-collector-publish-console-line.is-success {
    background: rgb(34 197 94 / 10%);
}

.yxyh-collector-publish-console-line.is-warning {
    background: rgb(245 158 11 / 12%);
}

.yxyh-collector-publish-console-line.is-error {
    background: rgb(239 68 68 / 12%);
}

.yxyh-collector-publish-console-time {
    flex: 0 0 auto;
    color: #9ca3af;
}

.yxyh-collector-publish-console-prompt {
    flex: 0 0 auto;
    color: rgb(var(--ls-primary-rgb) / 90%);
}

.yxyh-collector-publish-console-text {
    min-width: 0;
    color: #e5e7eb;
}

.yxyh-collector-publish-console-line.is-success .yxyh-collector-publish-console-text {
    color: #bbf7d0;
}

.yxyh-collector-publish-console-line.is-error .yxyh-collector-publish-console-text {
    color: #fecaca;
}

.yxyh-collector-publish-console-line.is-warning .yxyh-collector-publish-console-text {
    color: #fde68a;
}

.yxyh-collector-rule-field > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.yxyh-collector-rule-field > span em {
    color: #374151;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}

.yxyh-collector-inline-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.yxyh-collector-inline-input em {
    color: #8a94a3;
    font-size: 12px;
    font-style: normal;
    white-space: nowrap;
}

.yxyh-collector-input-suffix {
    position: relative;
}

.yxyh-collector-input-suffix input {
    padding-right: 48px;
}

.yxyh-collector-input-suffix small {
    position: absolute;
    top: 50%;
    right: 12px;
    color: #9aa4b2;
    font-size: 12px;
    transform: translateY(-50%);
    pointer-events: none;
}

.yxyh-collector-modal-form {
    display: grid;
    gap: 16px;
}

.yxyh-collector-modal-form textarea {
    width: 100%;
    min-height: 260px;
    resize: vertical;
    border: 1px solid #e5e7eb;
    border-radius: var(--ls-border-radius);
    padding: 12px;
    background: #ffffff;
    color: #111827;
    font-size: 13px;
    line-height: 1.6;
}

.yxyh-collector-modal-form textarea:focus {
    border-color: var(--ls-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.yxyh-collector-modal-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.6;
}

#yxyh-collector-group-modal .ls-modal-content {
    width: min(380px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
}

#yxyh-collector-group-modal .ls-modal-header {
    padding: 16px 18px;
    border-bottom: 1px solid #edf0f4;
}

#yxyh-collector-group-modal .ls-modal-header h3 {
    font-size: 14px;
    line-height: 1.35;
}

#yxyh-collector-group-modal .ls-modal-body {
    padding: 16px 18px;
    background: #f8fafc;
}

#yxyh-collector-group-modal .ls-modal-footer {
    padding: 14px 18px 16px;
    border-top: 1px solid #edf0f4;
    background: #ffffff;
}

.yxyh-collector-group-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yxyh-collector-group-form-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yxyh-collector-group-name-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 12px;
    border: 1px solid #edf0f4;
    border-radius: var(--ls-border-radius);
    background: #ffffff;
}

.yxyh-collector-group-name-field span {
    color: #374151;
    font-size: 12px;
    line-height: 1.35;
}

.yxyh-collector-group-name-field input {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: var(--ls-border-radius-btn);
    background: #ffffff;
    color: #111827;
    font-size: 12px;
}

.yxyh-collector-group-users {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid #edf0f4;
    border-radius: var(--ls-border-radius);
    background: #ffffff;
}

.yxyh-collector-group-users-head {
    display: block;
}

.yxyh-collector-group-users-head span {
    color: #374151;
    font-size: 12px;
    line-height: 1.35;
}

.yxyh-collector-puppet-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.yxyh-collector-puppet-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    max-width: 100%;
    padding: 6px 10px 6px 6px;
    border: 1px solid #d6e8fa;
    border-radius: var(--ls-border-radius-btn);
    background: #f0f7ff;
    color: var(--ls-primary);
    cursor: pointer;
    font-size: 12px;
    line-height: 1.45;
}

.yxyh-collector-puppet-chip:hover {
    border-color: #ffcdd2;
    background: #ffebee;
    color: #f44336;
}

.yxyh-collector-puppet-chip-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eef2f7;
    overflow: hidden;
}

.yxyh-collector-puppet-chip-avatar img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: cover;
}

.yxyh-collector-puppet-chip-name {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yxyh-collector-puppet-bridge {
    display: none;
}

.yxyh-collector-puppet-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #edf0f4;
    border-radius: var(--ls-border-radius-btn);
    background: #f8fafc;
    color: #374151;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.45;
}

.yxyh-collector-puppet-add:hover {
    background: #f3f6fa;
    color: var(--ls-primary);
}

.yxyh-collector-puppet-add i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eef2f7;
    font-size: 14px;
    line-height: 1;
}

.yxyh-collector-form-block {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #edf0f4;
}

.yxyh-collector-input-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.yxyh-collector-input-action input {
    min-width: 0;
}

.yxyh-collector-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 28px;
}

.yxyh-collector-chip-list[hidden] {
    display: none;
}

.yxyh-collector-tag-control {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 4px 6px 4px 10px;
    border: 1px solid #e5e7eb;
    border-radius: var(--ls-border-radius-btn);
    background: #ffffff;
}

.yxyh-collector-tag-control .yxyh-collector-chip-list {
    flex: 1 1 auto;
    align-items: center;
    min-height: 34px;
}

.yxyh-collector-tag-control .yxyh-collector-chip-list[hidden] {
    display: flex;
    visibility: hidden;
}

.yxyh-collector-tag-control .yxyh-collector-tag-add {
    flex: 0 0 34px;
    width: 34px;
}

.yxyh-collector-tag-control input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.yxyh-collector-chip {
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid rgb(var(--ls-primary-rgb) / 22%);
    border-radius: var(--ls-radius-full);
    background: rgb(var(--ls-primary-rgb) / 9%);
    color: var(--ls-primary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.yxyh-collector-chip:hover {
    background: rgb(var(--ls-primary-rgb) / 14%);
}

.yxyh-collector-tag-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgb(var(--ls-primary-rgb) / 30%);
    border-radius: var(--ls-border-radius-btn);
    background: #ffffff;
    color: var(--ls-primary);
    cursor: pointer;
    font-size: 18px;
}


.yxyh-collector-tag-add:hover {
    background: rgb(var(--ls-primary-rgb) / 6%);
}

[data-role="fee-fields"][hidden] {
    display: none;
}

[data-role="password-fields"][hidden] {
    display: none;
}

.yxyh-collector-muted {
    color: #8a94a3;
    font-size: 12px;
}

.yxyh-collector-picker-tags {
    margin: 12px 0;
    padding: 0;
}

.yxyh-collector-select-card {
    display: grid;
    gap: 4px;
    width: 100%;
    min-height: 60px;
    padding: 11px 12px;
    border: 1px solid #e1e5eb;
    border-radius: var(--ls-border-radius-btn);
    background: #ffffff;
    color: #111827;
    cursor: pointer;
    text-align: left;
    transition: border-color .18s ease, background .18s ease;
}

.yxyh-collector-select-card:hover {
    border-color: #d8dde5;
    background: #f8fafc;
}

.yxyh-collector-select-card span {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.yxyh-collector-select-card em {
    color: #7b8491;
    font-size: 12px;
    font-style: normal;
}

.yxyh-collector-field-title {
    display: block;
    margin-bottom: 7px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.yxyh-collector-hidden-rule-editor {
    display: none;
}

.yxyh-collector-field-editor {
    display: grid;
    gap: 12px;
}

.yxyh-collector-field-row {
    display: grid;
    grid-template-columns: 88px 92px minmax(0, 1fr) 100px;
    align-items: end;
    gap: 10px;
    padding: 12px;
    border-radius: var(--ls-border-radius);
    background: #f8fafc;
}

.yxyh-collector-field-row[data-puppet-row] {
    grid-template-columns: 92px 92px 112px 112px minmax(120px, 1fr) 96px 64px;
}

.yxyh-collector-field-row label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.yxyh-collector-field-row span {
    color: #6b7280;
    font-size: 12px;
}

.yxyh-collector-field-row input {
    height: 36px;
    min-width: 0;
    padding: 0 10px;
    border: 1px solid #e1e5eb;
    border-radius: var(--ls-border-radius-btn);
    background: #ffffff;
    color: #111827;
    outline: none;
}

.yxyh-collector-field-row select {
    height: 36px;
    min-width: 0;
    padding: 0 10px;
    border: 1px solid #e1e5eb;
    border-radius: var(--ls-border-radius-btn);
    background: #ffffff;
    color: #111827;
    outline: none;
}

.yxyh-collector-field-row input:focus {
    border-color: rgb(var(--ls-primary-rgb) / 50%);
}

.yxyh-collector-field-row select:focus {
    border-color: rgb(var(--ls-primary-rgb) / 50%);
}

#yxyh-collector-source-modal .ls-modal-body {
    display: flex;
    flex-direction: row;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    padding: 0;
    overflow: hidden;
    background: #fafbfc;
    font-size: 12px;
}

.yxyh-collector-rule-preview {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    border-right: 1px solid #edf0f4;
    background: #ffffff;
}

.yxyh-collector-rule-sidebar {
    display: flex;
    flex-direction: column;
    width: 350px;
    min-width: 350px;
    max-width: 350px;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #fafbfc;
}

.yxyh-collector-rule-sidebar-head {
    flex: 0 0 auto;
    padding: 12px;
    border-bottom: 1px solid #edf0f4;
    background: #fafbfc;
}

.yxyh-collector-rule-sidebar-main {
    display: grid;
    flex: 1 1 auto;
    gap: 10px;
    min-height: 0;
    padding: 12px;
    overflow: auto;
    align-content: start;
}

#yxyh-collector-source-modal .ls-modal-header {
    gap: 12px;
}

#yxyh-collector-detail-modal .ls-modal-header {
    gap: 12px;
}

#yxyh-collector-source-modal .ls-modal-header h3 {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1.35;
}

#yxyh-collector-detail-modal .ls-modal-header h3 {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1.35;
}

#yxyh-collector-source-modal .ls-modal-header .yxyh-collector-source-url {
    flex: 1 1 auto;
}

#yxyh-collector-detail-modal .ls-modal-header .yxyh-collector-source-url {
    flex: 1 1 auto;
}

#yxyh-collector-source-modal .ls-modal-close {
    flex: 0 0 auto;
}

#yxyh-collector-detail-modal .ls-modal-close {
    flex: 0 0 auto;
}

#yxyh-collector-source-modal .yxyh-collector-btn {
    font-size: 12px;
}

#yxyh-collector-detail-modal .yxyh-collector-btn {
    font-size: 12px;
}

#yxyh-collector-task-modal .yxyh-collector-btn {
    font-size: 12px;
}

.yxyh-collector-rule-panel {
    display: grid;
    gap: 7px;
    flex: 0 1 auto;
    min-height: 0;
    padding: 9px;
    border: 1px solid #edf0f4;
    border-radius: var(--ls-border-radius);
    background: #ffffff;
}

.yxyh-collector-rule-panel.is-active {
    max-height: none;
    overflow: auto;
    border-color: rgb(var(--ls-primary-rgb) / 32%);
    background: rgb(var(--ls-primary-rgb) / 5%);
}

.yxyh-collector-rule-panel-title {
    color: #6b7280;
    font-size: 12px;
}

.yxyh-collector-rule-section {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.yxyh-collector-rule-section-head {
    display: grid;
    gap: 3px;
    padding: 2px 2px 0;
}

.yxyh-collector-rule-section-head span {
    color: #111827;
    font-size: 13px;
    line-height: 1.35;
}

.yxyh-collector-rule-section-head em {
    color: #7b8491;
    font-size: 12px;
    font-style: normal;
    line-height: 1.45;
}

.yxyh-collector-rule-mode-panel {
    gap: 10px;
}

.yxyh-collector-rule-mode-group {
    display: grid;
    gap: 6px;
}

.yxyh-collector-rule-mode-label {
    color: #8a94a3;
    font-size: 12px;
    line-height: 1.35;
}

.yxyh-collector-rule-mode-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.yxyh-collector-source-list-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.yxyh-collector-source-mode-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yxyh-collector-rule-mode-buttons .yxyh-collector-btn {
    justify-content: center;
    min-width: 0;
    width: 100%;
    height: 30px;
    padding: 0 6px;
    font-size: 12px;
}

.yxyh-collector-rule-mode-buttons .yxyh-collector-btn.is-active {
    border-color: var(--ls-primary);
    background: rgb(var(--ls-primary-rgb) / 14%);
    color: var(--ls-primary);
}

.yxyh-collector-rule-value {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #111827;
    font-size: 12px;
    line-height: 1.45;
}

.yxyh-collector-rule-note {
    color: #7b8491;
    font-size: 12px;
    font-style: normal;
    line-height: 1.5;
}

.yxyh-collector-selector-lock {
    display: block;
    padding: 7px 8px;
    border-radius: var(--ls-border-radius-btn);
    background: #f8fafc;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.45;
}

.yxyh-collector-selector-candidates {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 188px;
    overflow: auto;
}

.yxyh-collector-selector-candidates:empty {
    display: none;
}

.yxyh-collector-selector-candidate {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    padding: 8px 9px;
    border: 1px solid #e1e5eb;
    border-radius: var(--ls-border-radius-btn);
    background: #ffffff;
    color: #111827;
    cursor: pointer;
    text-align: left;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.yxyh-collector-selector-candidate:hover {
    border-color: rgb(var(--ls-primary-rgb) / 32%);
    background: rgb(var(--ls-primary-rgb) / 4%);
    transform: translateY(-1px);
}

.yxyh-collector-selector-candidate:active {
    transform: translateY(0);
}

.yxyh-collector-selector-candidate.is-active {
    border-color: rgb(var(--ls-primary-rgb) / 42%);
    background: rgb(var(--ls-primary-rgb) / 9%);
}

.yxyh-collector-selector-candidate.is-risky {
    border-color: rgb(245 158 11 / 30%);
    background: rgb(255 251 235);
}

.yxyh-collector-selector-candidate-main {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #111827;
    font-size: 12px;
    line-height: 1.45;
}

.yxyh-collector-selector-candidate-meta {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #8a94a3;
    font-size: 12px;
    line-height: 1.4;
}

.yxyh-collector-selector-preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.yxyh-collector-selector-preview:empty {
    display: none;
}

.yxyh-collector-source-matches {
    display: grid;
    gap: 6px;
    max-height: 128px;
    overflow: auto;
}

.yxyh-collector-rule-panel.is-active .yxyh-collector-source-matches {
    max-height: 112px;
}

.yxyh-collector-source-matches:empty {
    display: none;
}

.yxyh-collector-source-match {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: var(--ls-border-radius-btn);
    background: #f8fafc;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.45;
}

.yxyh-collector-source-match-index {
    color: #8a94a3;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.yxyh-collector-source-match-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yxyh-collector-source-matches em {
    color: #8a94a3;
    font-size: 12px;
    font-style: normal;
}

.yxyh-collector-source-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #edf0f4;
    background: #fafbfc;
}

.yxyh-collector-source-title {
    flex: 0 0 auto;
    color: #7b8491;
    font-size: 12px;
}

.yxyh-collector-source-url {
    min-width: 0;
    overflow: hidden;
    color: #111827;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yxyh-collector-source-preview {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    color: #111827;
}

.yxyh-collector-source-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
}

.yxyh-collector-source-frame[hidden] {
    display: none;
}

.yxyh-collector-rule-sidebar .yxyh-collector-detail-excludes [data-role="detail-exclude-matches"] {
    max-width: none;
}

.yxyh-collector-detail-excludes {
    display: grid;
    gap: 6px;
}

.yxyh-collector-detail-excludes > .yxyh-collector-rule-panel-title {
    color: #7b8491;
    font-size: 12px;
}

.yxyh-collector-detail-excludes [data-role="detail-exclude-matches"] {
    display: grid;
    gap: 6px;
    max-width: none;
}

.yxyh-collector-detail-excludes em {
    color: #9aa4b2;
    font-size: 12px;
    font-style: normal;
}

.yxyh-collector-exclude-chip {
    width: 100%;
    max-width: none;
    min-height: 26px;
    overflow: hidden;
    padding: 0 9px;
    border: 1px solid #e1e5eb;
    border-radius: var(--ls-radius-full);
    background: #ffffff;
    color: #4b5563;
    cursor: pointer;
    font-size: 12px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yxyh-collector-exclude-chip:hover {
    background: #f8fafc;
}

.yxyh-collector-detail-fields .yxyh-collector-btn.is-configured {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-color: rgb(var(--ls-primary-rgb) / 40%);
    background: rgb(var(--ls-primary-rgb) / 10%);
    color: var(--ls-primary);
}

.yxyh-collector-detail-fields .yxyh-collector-btn.is-configured::after {
    content: "✓";
    font-size: 12px;
}

.yxyh-collector-rule-box {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid #e6eaf0;
    border-radius: var(--ls-border-radius);
    background: #ffffff;
}

.yxyh-collector-rule-box span {
    color: #6b7280;
    font-size: 12px;
}

.yxyh-collector-rule-box strong {
    overflow-wrap: anywhere;
    color: #111827;
    font-size: 13px;
    line-height: 1.45;
}

.yxyh-collector-rule-box em {
    color: #7b8491;
    font-size: 12px;
    font-style: normal;
}

.yxyh-collector-visual-status {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.yxyh-collector-status-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border: 1px solid #e6eaf0;
    border-radius: var(--ls-border-radius);
    background: #ffffff;
    transition: border-color .18s ease, background .18s ease;
}

.yxyh-collector-status-item span {
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.yxyh-collector-status-item strong {
    color: #8a94a3;
    font-size: 15px;
    font-weight: 800;
}

.yxyh-collector-status-item.is-done {
    border-color: rgb(var(--ls-primary-rgb) / 35%);
    background: rgb(var(--ls-primary-rgb) / 5%);
}

.yxyh-collector-status-item.is-done strong {
    color: var(--ls-primary);
}

@media (max-width: 760px) {
    .YXYH-pc-page-collector {
        padding-top: 12px;
    }

    .yxyh-collector-stat-grid,
    .yxyh-collector-columns,
    .yxyh-collector-group-grid,
    .yxyh-collector-form-grid,
    .yxyh-collector-visual-status {
        grid-template-columns: 1fr;
    }

    .yxyh-collector-toolbar,
    .yxyh-collector-header,
    .yxyh-collector-panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .yxyh-collector-filter input {
        width: 100%;
    }

    .yxyh-collector-quick-task {
        padding: 16px;
    }

}
