* { box-sizing: border-box; }
body {
    font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #f4f5f7;
    color: #1f2328;
    margin: 0;
    padding: 24px;
}
.container { max-width: 960px; margin: 0 auto; }
h1 { font-size: 22px; margin-bottom: 4px; }
.subtitle { color: #666; margin-top: 0; margin-bottom: 20px; font-size: 14px; }

.card {
    background: #fff;
    border: 1px solid #e2e4e8;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
input[type=text], input[type=file], textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #d0d3d8;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 14px;
}
textarea { resize: vertical; min-height: 60px; }

button, .btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 16px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
button:hover, .btn:hover { background: #1e4fc4; }
.btn-danger { background: #dc2626; }
.btn-danger:hover { background: #b91c1c; }
.btn-secondary { background: #6b7280; }
.btn-secondary:hover { background: #52545a; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #eceef1; vertical-align: top; }
th { color: #666; font-weight: 600; font-size: 12px; text-transform: uppercase; }

.badge { padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-done { background: #dcfce7; color: #166534; }
.badge-processing { background: #fef9c3; color: #854d0e; }
.badge-uploading { background: #dbeafe; color: #1e40af; }
.badge-error { background: #fee2e2; color: #991b1b; }
.badge-deleted { background: #e5e7eb; color: #374151; }

.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }

.link-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-input {
    flex: 1; min-width: 180px; font-size: 12px; padding: 5px 8px;
    border: 1px solid #d0d3d8; border-radius: 4px; background: #f9fafb;
}
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.actions form { display: inline; }
small.muted { color: #888; }
