:root { color-scheme: light; }
body { font-family: Arial, sans-serif; background: #f6f7fb; margin: 0; }
.layout { display:flex; min-height: 100vh; }
.sidebar { width: 240px; background:#0f172a; color:#e2e8f0; padding: 20px; }
.brand { font-weight:700; font-size:18px; margin-bottom: 20px; }
.nav a { display:block; padding: 10px 12px; border-radius: 8px; color:#e2e8f0; text-decoration:none; margin-bottom: 6px; }
.nav a.active, .nav a:hover { background:#1e293b; }
.content { flex:1; padding: 28px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 24px; }
.card { background: #fff; border: 1px solid #e6e8ef; border-radius: 12px; padding: 20px; }
.cards { display:grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background:#fff; border:1px solid #e6e8ef; border-radius:12px; padding:14px; }
.stat .label { font-size:12px; color:#6b7280; }
.stat .value { font-size:22px; font-weight:700; margin-top:6px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; }
input[type="text"], input[type="password"], textarea { width: 100%; padding: 10px; border: 1px solid #d7dbe6; border-radius: 8px; font-size: 14px; }
textarea { min-height: 80px; }
.select { width:100%; padding:10px; border:1px solid #d7dbe6; border-radius:8px; font-size:14px; background:#fff; }
.full { grid-column: 1 / -1; }
.btn { background: #1f2a44; color: #fff; border: none; padding: 10px 16px; border-radius: 8px; cursor: pointer; }
.btn.secondary { background: #e9edf7; color: #1f2a44; }
.results { margin-top: 16px; }
.result { padding: 8px 10px; border-radius: 8px; margin-bottom: 6px; }
.ok { background: #e8f7ef; color: #1d6b3f; border: 1px solid #bfe6cf; }
.fail { background: #fdeceb; color: #9b1c1c; border: 1px solid #f7c7c5; }
.topbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.hint { color:#6b7280; font-size: 13px; }
.preview-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 10px; }
.preview-item { border: 1px solid #e6e8ef; border-radius: 8px; padding: 6px; background:#fff; }
.preview-item img, .preview-item video { width: 100%; height: 90px; object-fit: cover; border-radius: 6px; display:block; background:#f3f4f6; }
.preview-name { font-size: 12px; margin-top: 6px; color:#4b5563; word-break: break-all; }
.notice { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; }
@media (max-width: 860px) {
  .layout { flex-direction: column; }
  .sidebar { width: auto; }
}
