body {
    background: #f3f5f9;
    color: #202735;
}

.page {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 0;
    padding: 8px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.header h1 {
    margin: 0 0 3px;
    font-size: 22px;
    line-height: 1.25;
}

.header p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.status-pill {
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1d4ed8;
    font-size: 13px;
}

.status-pill.offline {
    background: #fef2f2;
    color: #dc2626;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.login-card {
    width: 360px;
}

.login-tip {
    margin: 0 0 12px;
    color: #6b7280;
}

.login-error {
    margin-bottom: 10px;
    color: #dc2626;
}

.login-btn {
    margin-top: 12px;
}

.layui-card {
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid #edf0f5;
}

.layui-card-body {
    padding: 9px 10px;
}

.control-card {
    margin-bottom: 8px;
}

.workbench {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 10px;
}

.section-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
}

.section-title span {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 400;
    color: #8a94a6;
}

.card-input {
    min-height: 158px;
    resize: vertical;
    font-family: Consolas, "Microsoft YaHei UI", monospace;
    line-height: 1.5;
    padding: 8px 10px;
}

.side-panel {
    border-left: 1px solid #edf0f5;
    padding-left: 10px;
}

.quick-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 8px;
}

.quick-form label {
    font-size: 13px;
    color: #4b5563;
}

.quick-form .layui-input {
    height: 32px;
    margin-top: 4px;
}

.quick-form .export-format {
    grid-column: 1 / -1;
}

.quick-form .layui-select {
    width: 100%;
    height: 32px;
    margin-top: 4px;
    border: 1px solid #eee;
    border-radius: 2px;
    padding: 0 8px;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 8px;
}

.buttons .layui-btn {
    margin-left: 0;
    width: 100%;
}

.filter-tools {
    margin-top: 8px;
}

.filter-tools .layui-btn {
    width: 100%;
    margin-left: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.stats-grid div {
    background: #f8fafc;
    border-radius: 7px;
    padding: 12px 4px;
    text-align: center;
}

.stats-grid b {
    display: block;
    font-size: 20px;
    line-height: 1.1;
    color: #2563eb;
}

.stats-grid span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

.result-card {
    margin-top: 8px;
}

.result-card .layui-card-header {
    height: 34px;
    line-height: 34px;
}

#resultSummary {
    margin-left: 16px;
    color: #64748b;
    font-size: 13px;
    font-weight: 400;
}

@media (max-width: 980px) {
    .workbench {
        grid-template-columns: 1fr;
    }

    .side-panel {
        border-left: 0;
        padding-left: 0;
    }
}
