.YXYH-pc-page-auto-sign {
    --lsas-bg: #f3f6f9;
    --lsas-panel: #ffffff;
    --lsas-panel-soft: #f8fafc;
    --lsas-border: #e5e7eb;
    --lsas-ink: #111827;
    --lsas-subtle: #6b7280;
    --lsas-accent: #1f2937;
    --lsas-accent-soft: #eff6ff;
    --lsas-primary: #2563eb;
    --lsas-success: #15803d;
    --lsas-warning: #b45309;
    --lsas-danger: #dc2626;
    min-height: 100vh;
    padding: 28px 22px 48px;
    color: var(--lsas-ink);
    background: linear-gradient(180deg, #f8fafc 0%, #f3f6f9 100%);
}

.lsas-shell {
    width: min(1380px, 100%);
    margin: 0 auto;
}

.lsas-topbar,
.lsas-panel,
.lsas-state-panel {
    border: 1px solid var(--lsas-border);
    border-radius: 20px;
    background: var(--lsas-panel);
}

.lsas-topbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px;
    overflow: hidden;
}

.lsas-topbar::before,
.lsas-topbar::after {
    content: '';
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(2px);
}

.lsas-topbar::before {
    top: -72px;
    left: -28px;
    width: 204px;
    height: 204px;
    background:
        radial-gradient(circle at 34% 36%, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0.08) 24%, rgba(37, 99, 235, 0) 64%),
        radial-gradient(circle at 70% 72%, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0) 56%);
}

.lsas-topbar::after {
    top: -64px;
    right: -18px;
    width: 224px;
    height: 224px;
    background:
        radial-gradient(circle at 64% 34%, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0.07) 24%, rgba(37, 99, 235, 0) 62%),
        radial-gradient(circle at 34% 72%, rgba(14, 165, 233, 0.12) 0%, rgba(14, 165, 233, 0) 54%);
}

.lsas-heading {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lsas-title {
    margin: 0;
    font-size: 34px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.lsas-desc {
    max-width: 760px;
    margin: 0;
    color: var(--lsas-subtle);
    font-size: 14px;
    line-height: 1.75;
}

.lsas-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.lsas-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--lsas-border);
    border-radius: 12px;
    background: var(--lsas-panel);
    color: var(--lsas-ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.lsas-btn:hover {
    background: #f8fafc;
}

.lsas-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.lsas-btn-primary {
    border-color: var(--lsas-accent);
    background: var(--lsas-accent);
    color: #ffffff;
}

.lsas-btn-primary:hover {
    background: #0f172a;
}

.lsas-btn-secondary {
    border-color: var(--lsas-primary);
    background: var(--lsas-primary);
    color: #ffffff;
}

.lsas-btn-secondary:hover {
    background: #1d4ed8;
}

.lsas-btn-ghost {
    background: var(--lsas-panel);
}

.lsas-main {
    margin-top: 16px;
}

.lsas-panel-head {
    padding: 22px 22px 0;
}

.lsas-panel-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.lsas-panel-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lsas-panel-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lsas-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #f8fafc;
    color: var(--lsas-ink);
    font: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.lsas-filter-chip:hover {
    transform: translateY(-1px);
}

.lsas-filter-label {
    font-size: 13px;
    font-weight: 600;
}

.lsas-filter-value {
    font-size: 13px;
    font-weight: 700;
}

.lsas-filter-chip.is-all {
    background: #f1f5f9;
    color: #334155;
}

.lsas-filter-chip.is-pending {
    background: rgba(180, 83, 9, 0.08);
    color: var(--lsas-warning);
}

.lsas-filter-chip.is-executed {
    background: rgba(21, 128, 61, 0.08);
    color: var(--lsas-success);
}

.lsas-filter-chip.is-fail {
    background: rgba(220, 38, 38, 0.08);
    color: var(--lsas-danger);
}

.lsas-filter-chip.is-active {
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: none;
}

.lsas-panel-body {
    padding: 20px 22px 22px;
}

.lsas-table-wrap {
    overflow-x: auto;
}

.lsas-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

[data-role="queue-table"] .lsas-table {
    table-layout: fixed;
}

[data-role="queue-table"] .lsas-table th:nth-child(1),
[data-role="queue-table"] .lsas-table td:nth-child(1) {
    width: 19%;
}

[data-role="queue-table"] .lsas-table th:nth-child(2),
[data-role="queue-table"] .lsas-table td:nth-child(2) {
    width: 12%;
}

[data-role="queue-table"] .lsas-table th:nth-child(3),
[data-role="queue-table"] .lsas-table td:nth-child(3) {
    width: 22%;
}

[data-role="queue-table"] .lsas-table th:nth-child(4),
[data-role="queue-table"] .lsas-table td:nth-child(4) {
    width: 10%;
}

[data-role="queue-table"] .lsas-table th:nth-child(5),
[data-role="queue-table"] .lsas-table td:nth-child(5) {
    width: 12%;
}

[data-role="queue-table"] .lsas-table th:nth-child(6),
[data-role="queue-table"] .lsas-table td:nth-child(6) {
    width: 25%;
}

.lsas-table th,
.lsas-table td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--lsas-border);
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.lsas-table th {
    color: var(--lsas-subtle);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.lsas-table tbody tr:last-child td {
    border-bottom: 0;
}

.lsas-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lsas-user-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lsas-user-copy strong {
    color: var(--lsas-ink);
    font-size: 14px;
    line-height: 1.5;
}

.lsas-user-copy strong a {
    color: inherit;
    text-decoration: none;
}

.lsas-user-copy span {
    color: var(--lsas-subtle);
    font-size: 12px;
}

.lsas-user-copy.is-history {
    gap: 0;
}

.lsas-user-copy.is-history strong {
    line-height: 1.3;
}

.lsas-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    background: #eef2f7;
}

.lsas-avatar.is-history {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.lsas-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--lsas-primary);
    background: #dbeafe;
}

.lsas-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.lsas-status-badge.is-pending {
    color: var(--lsas-warning);
    background: rgba(180, 83, 9, 0.1);
}

.lsas-status-badge.is-success {
    color: var(--lsas-success);
    background: rgba(21, 128, 61, 0.1);
}

.lsas-status-badge.is-skipped {
    color: var(--lsas-primary);
    background: rgba(37, 99, 235, 0.1);
}

.lsas-status-badge.is-fail {
    color: var(--lsas-danger);
    background: rgba(220, 38, 38, 0.1);
}

.lsas-mood-text,
.lsas-msg-text {
    display: inline-block;
    max-width: 260px;
    color: var(--lsas-subtle);
    line-height: 1.7;
}

.lsas-empty {
    padding: 32px 18px;
    border: 1px dashed var(--lsas-border);
    border-radius: 16px;
    background: #fbfcfd;
    text-align: center;
}

.lsas-empty strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
}

.lsas-empty p {
    margin: 0;
    color: var(--lsas-subtle);
    font-size: 13px;
    line-height: 1.7;
}

#lsas-history-modal .ls-modal-content {
    width: 700px;
    height: 650px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 56px);
    overflow: hidden;
}

#lsas-history-modal .ls-modal-body {
    padding: 0;
    overflow: hidden;
}

#lsas-history-modal .ls-modal-header h3 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.lsas-history-title-meta {
    color: #3b82f6;
    font-size: 13px;
    font-weight: 700;
}

.lsas-history-modal {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lsas-history-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px 18px 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lsas-history-footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px 14px;
    border-top: 1px solid #eef2f7;
}

.lsas-history-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 1 1 auto;
}

.lsas-history-clear-btn {
    flex: 0 0 auto;
    height: 32px;
    padding: 0 14px;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    background: #ffffff;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.lsas-history-clear-btn:hover {
    border-color: #dc2626;
    background: #fef2f2;
}

.lsas-history-clear-btn:active {
    transform: scale(0.97);
}

#lsas-history-modal .lsas-table {
    min-width: 620px;
    table-layout: fixed;
}

#lsas-history-modal .lsas-table-wrap {
    height: 100%;
    display: flex;
    align-items: flex-start;
}

#lsas-history-modal .lsas-table-wrap.is-full-page .lsas-table {
    height: 100%;
}

#lsas-history-modal .lsas-table th,
#lsas-history-modal .lsas-table td {
    padding: 8px 8px;
    font-size: 13px;
}

#lsas-history-modal .lsas-table th {
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 11px;
}

#lsas-history-modal .lsas-table td {
    vertical-align: middle;
}

/* YXYH-20260418-2218-收窄最后一列签到心情，把宽度分给用户/签到时间/触发方式 */
#lsas-history-modal .lsas-table th:nth-child(1),
#lsas-history-modal .lsas-table td:nth-child(1) {
    width: 28%;
}

#lsas-history-modal .lsas-table th:nth-child(2),
#lsas-history-modal .lsas-table td:nth-child(2) {
    width: 17%;
}

#lsas-history-modal .lsas-table th:nth-child(3),
#lsas-history-modal .lsas-table td:nth-child(3) {
    width: 17%;
}

#lsas-history-modal .lsas-user-cell.is-history {
    gap: 8px;
}

#lsas-history-modal .lsas-user-copy.is-history strong {
    font-size: 13px;
    line-height: 1.2;
}

#lsas-history-modal .lsas-avatar.is-history {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.lsas-history-loading {
    padding: 36px 18px;
    color: var(--lsas-subtle);
    text-align: center;
    font-size: 14px;
}

.lsas-page-meta {
    color: var(--lsas-subtle);
    font-size: 12px;
    white-space: nowrap;
}

.lsas-page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.lsas-page-btn {
    min-width: 40px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--lsas-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--lsas-ink);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.lsas-page-btn:hover {
    background: #f8fafc;
}

.lsas-page-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

/* YXYH-20260418-2155-签到记录分页当前页统一改为蓝色高亮并移除重复激活态定义 */
#lsas-history-modal .lsas-page-btn.is-active {
    border-color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.12) !important;
    color: #3b82f6 !important;
}

.lsas-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    color: var(--lsas-subtle);
    font-size: 13px;
}

.lsas-state-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.lsas-state-panel {
    width: min(520px, 100%);
    padding: 32px 28px;
    text-align: center;
}

.lsas-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: #eff6ff;
    color: var(--lsas-primary);
    font-size: 28px;
}

.lsas-state-title {
    margin: 0 0 10px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.lsas-state-desc {
    margin: 0 0 18px;
    color: var(--lsas-subtle);
    line-height: 1.75;
}

.YXYH-pc-page-auto-sign.is-busy {
    pointer-events: auto;
}

.YXYH-pc-page-auto-sign.is-busy .lsas-topbar,
.YXYH-pc-page-auto-sign.is-busy .lsas-panel {
    opacity: 0.76;
}

@media (max-width: 768px) {
    .YXYH-pc-page-auto-sign {
        padding: 18px 14px 36px;
    }

    .lsas-topbar {
        flex-direction: column;
        align-items: stretch;
        padding: 22px 18px;
    }

    .lsas-topbar::before {
        top: -52px;
        left: -28px;
        width: 148px;
        height: 148px;
    }

    .lsas-topbar::after {
        top: -44px;
        right: -20px;
        width: 156px;
        height: 156px;
    }

    .lsas-title {
        font-size: 28px;
    }

    .lsas-actions {
        justify-content: stretch;
    }

    .lsas-btn {
        flex: 1 1 0;
        min-width: 0;
    }

    .lsas-panel-heading {
        align-items: stretch;
    }

    .lsas-panel-filters {
        gap: 8px;
    }

    .lsas-panel-head,
    .lsas-panel-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    #lsas-history-modal .ls-modal-content {
        max-height: calc(100vh - 28px);
        border-radius: 18px;
    }

    .lsas-history-body,
    .lsas-history-pagination {
        padding-left: 18px;
        padding-right: 18px;
    }

    .lsas-history-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .lsas-page-actions {
        justify-content: flex-start;
    }

    .lsas-table {
        min-width: 680px;
    }
}
