* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #0f0f23; color: #e0e0e0; min-height: 100vh; }
#app { max-width: 1200px; margin: 0 auto; padding: 16px; }
header { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid #2a2a4a; margin-bottom: 16px; flex-wrap: wrap; }
header h1 { font-size: 20px; white-space: nowrap; }
nav { display: flex; gap: 4px; }
.tab { background: transparent; border: 1px solid #3a3a5a; color: #aaa; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; transition: all .2s; }
.tab:hover { border-color: #5a5aff; color: #fff; }
.tab.active { background: #5a5aff; border-color: #5a5aff; color: #fff; }
#user-info { margin-left: auto; font-size: 13px; color: #888; }
.card { background: #1a1a2e; border: 1px solid #2a2a4a; border-radius: 10px; padding: 20px; margin-bottom: 16px; }
.card h2 { font-size: 16px; margin-bottom: 12px; color: #fff; }
input, textarea, select { background: #0f0f23; border: 1px solid #3a3a5a; color: #e0e0e0; padding: 8px 12px; border-radius: 6px; font-size: 14px; width: 100%; }
input:focus, textarea:focus, select:focus { outline: none; border-color: #5a5aff; }
textarea { resize: vertical; }
.btn-primary { background: #5a5aff; color: #fff; border: none; padding: 8px 20px; border-radius: 6px; cursor: pointer; font-size: 14px; transition: background .2s; }
.btn-primary:hover { background: #4a4ae0; }
.btn-secondary { background: #2a2a4a; color: #ccc; border: 1px solid #3a3a5a; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.btn-secondary:hover { background: #3a3a5a; }
.btn-danger { background: #ff4444; color: #fff; border: none; padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: 12px; }
.btn-small { padding: 4px 10px; font-size: 12px; border-radius: 4px; }
.input-group { display: flex; flex-direction: column; gap: 10px; }
.form-row { display: flex; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.form-row label { flex: 1; min-width: 120px; font-size: 13px; color: #aaa; display: flex; flex-direction: column; gap: 4px; }
.form-row input, .form-row select { width: 100%; }
.error-text { color: #ff6666; font-size: 13px; margin-top: 8px; }
.success-text { color: #66ff66; font-size: 13px; margin-top: 8px; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.list-toolbar { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { background: #2a2a4a; padding: 8px; text-align: left; font-weight: 600; position: sticky; top: 0; }
td { padding: 8px; border-bottom: 1px solid #1f1f3a; }
tr:hover td { background: #22224a; }
#video-table-wrap { max-height: 500px; overflow-y: auto; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.pagination button { background: #2a2a4a; color: #ccc; border: 1px solid #3a3a5a; padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: 12px; }
.pagination button.active { background: #5a5aff; border-color: #5a5aff; color: #fff; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat-card { background: #22224a; border-radius: 8px; padding: 16px; text-align: center; }
.stat-card .value { font-size: 28px; font-weight: 700; color: #5a5aff; }
.stat-card .label { font-size: 12px; color: #888; margin-top: 4px; }
.dim-toolbar { display: flex; gap: 8px; margin-bottom: 12px; }
.dim-toolbar select { max-width: 200px; }
.dim-table { width: 100%; }
.dim-bar { height: 20px; background: #5a5aff; border-radius: 3px; min-width: 4px; transition: width .3s; }
.report-card { background: #1a1a2e; border: 1px solid #2a2a4a; border-radius: 10px; padding: 20px; margin-bottom: 12px; }
.report-card h3 { font-size: 15px; margin-bottom: 8px; }
.report-card .meta { font-size: 12px; color: #888; margin-bottom: 12px; }
.report-content { white-space: pre-wrap; font-size: 14px; line-height: 1.6; }
.tag { display: inline-block; background: #2a2a4a; color: #aaa; padding: 2px 8px; border-radius: 10px; font-size: 11px; margin: 2px; }
.status-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.status-done { background: #1a4a1a; color: #66ff66; }
.status-pending { background: #4a4a1a; color: #ffff66; }
.status-error { background: #4a1a1a; color: #ff6666; }
.status-partial { background: #1a3a4a; color: #66ccff; }
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal { background: #1a1a2e; border: 1px solid #3a3a5a; border-radius: 12px; padding: 24px; max-width: 600px; width: 90%; max-height: 80vh; overflow-y: auto; }
.modal h3 { margin-bottom: 12px; }
.modal .close-btn { float: right; background: none; border: none; color: #888; font-size: 20px; cursor: pointer; }
@media (max-width: 768px) {
  header { flex-direction: column; align-items: flex-start; }
  .form-row { flex-direction: column; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  table { font-size: 12px; }
  th, td { padding: 6px 4px; }
}
