.yxyh-ac-page,
.yxyh-ac-page * {
    box-sizing: border-box;
}

main.yxyh-ac-page {
    width: var(--ls-width, 1200px);
    max-width: 100%;
    margin: 24px auto 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--ls-text-primary, #1f2937);
}

.yxyh-ac-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    padding: 28px;
    background: var(--ls-card-bg, #fff);
    border: 1px solid var(--ls-border-light, #eef0f3);
    border-radius: var(--ls-border-radius);
}

.yxyh-ac-hero h1 {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.2;
    color: var(--ls-text-primary, #1f2937);
}

.yxyh-ac-hero p {
    margin: 0;
    color: var(--ls-text-secondary, #6b7280);
    font-size: 13px;
    line-height: 1.8;
}

.yxyh-ac-hero-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    color: var(--ls-text-secondary, #6b7280);
    font-size: 13px;
    white-space: nowrap;
}

.yxyh-ac-hero-meta span:first-child {
    color: var(--ls-text-primary, #1f2937);
    font-size: 20px;
}

.yxyh-ac-denied {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--ls-card-bg, #fff);
    border: 1px solid var(--ls-border-light, #eef0f3);
    border-radius: var(--ls-border-radius);
}

.yxyh-ac-denied i {
    font-size: 34px;
    color: var(--ls-primary);
}

.yxyh-ac-denied h2 {
    margin: 0;
    font-size: 20px;
    color: var(--ls-text-primary, #1f2937);
}

.yxyh-ac-denied p {
    margin: 0;
    color: var(--ls-text-secondary, #6b7280);
}

.yxyh-ac-filter-grid {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.yxyh-ac-filter-grid label {
    width: calc(50% - 6px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.yxyh-ac-filter-grid span {
    color: var(--ls-text-secondary, #6b7280);
    font-size: 12px;
}

.yxyh-ac-filter-grid input,
.yxyh-ac-filter-grid select {
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--ls-border, #e5e7eb);
    border-radius: var(--ls-border-radius-btn);
    background: var(--ls-card-bg, #fff);
    color: var(--ls-text-primary, #1f2937);
    outline: none;
}

.yxyh-ac-filter-grid input:focus,
.yxyh-ac-filter-grid select:focus {
    border-color: rgba(var(--ls-primary-rgb), 0.45);
}

.yxyh-ac-btn {
    height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--ls-border, #e5e7eb);
    border-radius: var(--ls-border-radius-btn);
    background: var(--ls-card-bg, #fff);
    color: var(--ls-text-secondary, #374151);
    cursor: pointer;
    transition: background .18s ease, opacity .18s ease;
}

.yxyh-ac-btn:hover {
    background: var(--ls-bg, #f9fafb);
}

.yxyh-ac-primary {
    background: var(--ls-primary);
    border-color: var(--ls-primary);
    color: #fff;
}

.yxyh-ac-primary:hover {
    background: var(--ls-primary-hover, var(--ls-primary));
    opacity: .92;
}

.yxyh-ac-panel {
    background: var(--ls-card-bg, #fff);
    border: 1px solid var(--ls-border-light, #eef0f3);
    border-radius: var(--ls-border-radius);
    overflow: visible;
}

.yxyh-ac-panel-head {
    min-height: 60px;
    padding: 12px 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid var(--ls-border-light, #eef0f3);
}

.yxyh-ac-panel-tools {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.yxyh-ac-filter-selects {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.yxyh-ac-filter-selects > select,
.yxyh-ac-filter-selects label select {
    min-width: 106px;
}

.yxyh-ac-filter-selects label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ls-text-secondary, #6b7280);
    font-size: 12px;
    white-space: nowrap;
}

.yxyh-ac-filter-selects > select,
.yxyh-ac-filter-selects label select {
    height: 34px;
    min-width: 106px;
    padding: 0 26px 0 9px;
    border: 1px solid var(--ls-border, #e5e7eb);
    border-radius: var(--ls-border-radius-btn);
    background: var(--ls-card-bg, #fff);
    color: var(--ls-text-secondary, #374151);
    outline: none;
    cursor: pointer;
}

.yxyh-ac-filter-selects > select:focus,
.yxyh-ac-filter-selects label select:focus {
    border-color: rgba(var(--ls-primary-rgb), 0.45);
}

.yxyh-ac-head-search {
    flex: 1 1 180px;
    width: min(260px, 100%);
    max-width: 320px;
    margin-right: auto;
    height: 34px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid var(--ls-border, #e5e7eb);
    border-radius: var(--ls-border-radius-btn);
    background: var(--ls-card-bg, #fff);
    color: var(--ls-text-muted, #9ca3af);
}

.yxyh-ac-head-search i {
    font-size: 15px;
}

.yxyh-ac-head-search input {
    width: 100%;
    min-width: 0;
    height: 30px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--ls-text-primary, #1f2937);
    font-size: 13px;
}

.yxyh-ac-tool-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ls-text-muted, #9ca3af);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.yxyh-ac-tool-icon:hover {
    background: var(--ls-bg-hover, #f3f4f6);
    color: var(--ls-text-secondary, #374151);
}

.yxyh-ac-tool-icon.is-danger:hover {
    background: var(--ls-danger-light, #fef2f2);
    color: var(--ls-danger, #dc2626);
}

.yxyh-ac-tool-icon i {
    font-size: 16px;
}

.yxyh-ac-tool-icon.is-hidden {
    display: none;
}

.yxyh-ac-table-wrap {
    overflow: visible;
}

.yxyh-ac-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.yxyh-ac-col-type {
    width: 7%;
}

.yxyh-ac-col-actor {
    width: 14%;
}

.yxyh-ac-col-action {
    width: 24%;
}

.yxyh-ac-col-ip {
    width: 15%;
}

.yxyh-ac-col-time {
    width: 20%;
}

.yxyh-ac-col-ops {
    width: 20%;
}

.yxyh-ac-table th:nth-child(1) {
    text-align: center;
}

.yxyh-ac-table td:nth-child(1) {
    text-align: center;
}

.yxyh-ac-table[data-view="logs"] th:nth-child(5) {
    text-align: center;
}

.yxyh-ac-table[data-view="logs"] th:nth-child(6) {
    text-align: center;
}

.yxyh-ac-table th {
    height: 42px;
    padding: 0 10px;
    background: var(--ls-bg, #f9fafb);
    color: var(--ls-text-secondary, #6b7280);
    text-align: left;
    font-size: 12px;
}

.yxyh-ac-table td {
    padding: 12px 10px;
    border-top: 1px solid var(--ls-border-light, #f1f3f5);
    color: var(--ls-text-primary, #1f2937);
    vertical-align: middle;
    font-size: 13px;
}

.yxyh-ac-table td:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yxyh-ac-table td:nth-child(3) {
    overflow: hidden;
}

.yxyh-ac-table[data-view="logs"] td:nth-child(4) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yxyh-ac-table[data-view="logs"] td:nth-child(5) {
    overflow: hidden;
    text-align: center;
}

.yxyh-ac-table[data-view="logs"] td:nth-child(6) {
    position: relative;
    z-index: 2;
    overflow: visible;
    text-align: center;
}

.yxyh-ac-table tr:hover {
    background: var(--ls-bg, #fafafa);
}

.yxyh-ac-table tr.is-active {
    background: rgba(var(--ls-primary-rgb), 0.08);
}

.yxyh-ac-time {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ls-text-primary, #1f2937);
    white-space: nowrap;
}

.yxyh-ac-user-link {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ls-text-primary, #1f2937);
    text-decoration: none;
}

.yxyh-ac-user-link:hover {
    color: var(--ls-primary);
}

.yxyh-ac-action-text {
    display: block;
    color: var(--ls-text-primary, #1f2937);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yxyh-ac-cell-line {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yxyh-ac-cell-line span {
    flex: none;
}

.yxyh-ac-muted {
    color: var(--ls-text-muted, #9ca3af);
    font-size: 12px;
    white-space: nowrap;
}

.yxyh-ac-risk-chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 6px;
    border-radius: 4px;
    background: var(--ls-bg-hover, #f3f4f6);
    color: var(--ls-text-secondary, #6b7280);
    font-size: 11px;
    white-space: nowrap;
}

.yxyh-ac-risk-chip.is-risk-low {
    background: var(--ls-success-light, #ecfdf3);
    color: #027a48;
}

.yxyh-ac-risk-chip.is-risk-medium {
    background: var(--ls-warning-light, #fef3c7);
    color: #92400e;
}

.yxyh-ac-risk-chip.is-risk-high {
    background: var(--ls-danger-light, #fee2e2);
    color: var(--ls-danger, #dc2626);
}

.yxyh-ac-row-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: nowrap;
    justify-content: center;
    max-width: 100%;
    white-space: nowrap;
}

.yxyh-ac-action-icon {
    position: relative;
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ls-border, #e5e7eb);
    border-radius: var(--ls-border-radius-btn);
    background: var(--ls-bg, #f9fafb);
    color: var(--ls-text-secondary, #374151);
    cursor: pointer;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.yxyh-ac-action-icon::after {
    position: absolute;
    z-index: 20;
    left: 50%;
    top: auto;
    bottom: calc(100% + 7px);
    padding: 6px 9px;
    border-radius: 5px;
    background: var(--ls-text-primary, #111827);
    color: #fff;
    content: attr(data-tooltip);
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 3px);
    transition: opacity .15s ease, transform .15s ease;
}

.yxyh-ac-action-icon:hover::after,
.yxyh-ac-action-icon:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.yxyh-ac-action-icon:hover {
    border-color: rgba(var(--ls-primary-rgb), 0.3);
    background: rgba(var(--ls-primary-rgb), 0.08);
    color: var(--ls-primary);
}

.yxyh-ac-action-icon[data-risk-kind="account"][data-risk-state="off"],
.yxyh-ac-action-icon[data-risk-kind="ip"][data-risk-state="off"] {
    background: var(--ls-primary-light, #eff8ff);
    border-color: #bfdbfe;
    color: #175cd3;
}

.yxyh-ac-action-icon[data-risk-kind="account"][data-risk-state="on"],
.yxyh-ac-action-icon[data-risk-kind="ip"][data-risk-state="on"] {
    background: var(--ls-danger-light, #fee2e2);
    border-color: #fecaca;
    color: var(--ls-danger, #dc2626);
}

.yxyh-ac-action-icon i {
    font-size: 13px;
}

.yxyh-ac-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--ls-bg-hover, #f3f4f6);
    color: var(--ls-text-secondary, #6b7280);
    font-size: 11px;
    white-space: nowrap;
}

.yxyh-ac-tag.is-login {
    background: var(--ls-success-light, #ecfdf3);
    color: #027a48;
}

.yxyh-ac-tag.is-publish {
    background: var(--ls-primary-light, #eff8ff);
    color: #175cd3;
}

.yxyh-ac-tag.is-reply {
    background: var(--ls-warning-light, #fef3c7);
    color: #92400e;
}

.yxyh-ac-tag.is-dispose {
    background: var(--ls-danger-light, #fee2e2);
    color: var(--ls-danger, #dc2626);
}

.yxyh-ac-tag.is-interact {
    background: #ecfeff;
    color: #0e7490;
}

.yxyh-ac-tag.is-money {
    background: #fef3c7;
    color: #b45309;
}

.yxyh-ac-tag.is-chat {
    background: #fdf4ff;
    color: #a21caf;
}

.yxyh-ac-tag.is-file {
    background: #f1f5f9;
    color: #334155;
}

.yxyh-ac-tag.is-account {
    background: #dbeafe;
    color: #1e40af;
}

.yxyh-ac-tag.is-adminx {
    background: #f4f3ff;
    color: #5925dc;
}

.yxyh-ac-empty,
.yxyh-ac-table .ls-empty {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ls-text-muted, #9ca3af);
}

.yxyh-ac-pagination {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid var(--ls-border-light, #eef0f3);
}

.yxyh-ac-pagination:empty {
    display: none;
}

.yxyh-ac-page-info {
    margin-right: 8px;
    color: var(--ls-text-muted, #9ca3af);
    font-size: 13px;
    white-space: nowrap;
}

.yxyh-ac-page-btn {
    min-width: 52px;
    height: 32px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ls-border, #e5e7eb);
    border-radius: 6px;
    background: var(--ls-card-bg, #fff);
    color: var(--ls-text-secondary, #374151);
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    flex: 0 0 auto;
}

.yxyh-ac-page-btn:hover {
    border-color: var(--ls-primary);
    color: var(--ls-primary);
}

.yxyh-ac-page-btn:disabled {
    opacity: .3;
    cursor: not-allowed;
}

.yxyh-ac-filter-modal {
    width: 100%;
}

.yxyh-ac-risk-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yxyh-ac-risk-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.yxyh-ac-risk-form span {
    color: var(--ls-text-secondary, #6b7280);
    font-size: 12px;
}

.yxyh-ac-risk-form input,
.yxyh-ac-risk-form select,
.yxyh-ac-risk-form textarea {
    border: 1px solid var(--ls-border, #e5e7eb);
    border-radius: var(--ls-border-radius-btn);
    background: var(--ls-card-bg, #fff);
    color: var(--ls-text-primary, #1f2937);
    outline: none;
}

.yxyh-ac-risk-form input,
.yxyh-ac-risk-form select {
    height: 38px;
    padding: 0 10px;
}

.yxyh-ac-risk-form textarea {
    min-height: 96px;
    padding: 10px;
    resize: vertical;
}

.yxyh-ac-risk-form input:focus,
.yxyh-ac-risk-form select:focus,
.yxyh-ac-risk-form textarea:focus {
    border-color: rgba(var(--ls-primary-rgb), 0.45);
}

.yxyh-ac-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yxyh-ac-detail-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 2px 2px;
}

.yxyh-ac-detail-head h2 {
    min-width: 0;
    margin: 0;
    flex: 1;
    font-size: 17px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ls-text-primary, #1f2937);
}

.yxyh-ac-detail-head p {
    flex: none;
    margin: 0;
    color: var(--ls-text-secondary, #6b7280);
    font-size: 13px;
    white-space: nowrap;
}

.yxyh-ac-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yxyh-ac-detail-section {
    min-width: 0;
    padding: 12px 14px;
    background: var(--ls-bg, #f9fafb);
    border: 1px solid var(--ls-border-light, #eef0f3);
    border-radius: var(--ls-border-radius);
}

.yxyh-ac-detail-section h3 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ls-text-primary, #1f2937);
}

.yxyh-ac-detail-section div {
    display: flex;
    gap: 12px;
    padding: 6px 0;
}

.yxyh-ac-detail-section div + div {
    border-top: 1px dashed var(--ls-border-light, #eef0f3);
}

.yxyh-ac-detail-section span {
    flex: 0 0 88px;
    color: var(--ls-text-secondary, #6b7280);
    font-size: 12px;
    line-height: 1.6;
}

.yxyh-ac-detail-section p {
    min-width: 0;
    flex: 1;
    margin: 0;
    color: var(--ls-text-primary, #1f2937);
    font-size: 13px;
    line-height: 1.6;
    word-break: break-all;
}

.yxyh-ac-detail-section p img.ls-emoji {
    width: 22px;
    height: 22px;
    vertical-align: -5px;
}
