
* { box-sizing: border-box; }

body {
    margin: 0;
    background: #f3f6fa;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    color: #1f2937;
}

.header {
    background: #111827;
    color: #fff;
    padding: 18px 28px;
}

.header h1 {
    margin: 0;
    font-size: 22px;
}

.container {
    max-width: 1280px;
    margin: 24px auto;
    padding: 0 16px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 20px;
}

.grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

input[type="text"],
input[type="url"],
input[type="password"],
input[type="datetime-local"],
textarea,
select {
    width: 100%;
    padding: 11px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

textarea { min-height: 220px; }

.site-list {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    max-height: 320px;
    overflow-y: auto;
}

.site-item {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.site-item:last-child { border-bottom: none; }

.site-info { flex: 1; }

button {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 700;
}

button.secondary { background: #4b5563; }
button.danger { background: #dc2626; padding: 8px 10px; }

.inline-form { display:inline; }

.result-success,
.flash-success {
    color: #047857;
    font-weight: 700;
}

.result-failed,
.flash-error {
    color: #dc2626;
    font-weight: 700;
}

.flash {
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #e5e7eb;
}

.small {
    color: #6b7280;
    font-size: 13px;
}

pre {
    background: #0f172a;
    color: #e5e7eb;
    padding: 14px;
    border-radius: 10px;
    overflow-x: auto;
}

hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 20px 0;
}

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