:root { font-family: Arial, "Noto Sans KR", sans-serif; color: #1b1b1b; background: #f5f5f3; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1120px; margin: 0 auto; padding: 20px; }
h1 { margin-top: 0; }
section { background: white; border: 1px solid #bbb; margin: 14px 0; padding: 16px; }
h2 { margin: 0 0 12px; font-size: 1.2rem; }
.notice { border-left: 4px solid #8a5b00; padding: 10px; background: #fff8e7; }
.status-grid, .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.badge { display: inline-block; border: 1px solid #777; padding: 2px 7px; border-radius: 3px; background: #eee; }
.badge.good { border-color: #176b2c; background: #e8f5eb; }
.badge.bad { border-color: #9a2222; background: #fdeaea; }
label { display: block; margin: 8px 0; }
input { max-width: 100%; padding: 7px; border: 1px solid #888; }
input[type="password"], input[name="api-model"] { width: min(100%, 440px); }
button, .button { display: inline-block; margin: 4px 4px 4px 0; padding: 8px 11px; border: 1px solid #444; background: #eee; color: #111; text-decoration: none; cursor: pointer; font: inherit; }
button:disabled { opacity: .5; cursor: not-allowed; }
.danger { border-color: #8b1d1d; color: #7b1010; }
.secondary { background: white; }
.drop-zone { border: 2px dashed #888; padding: 24px; margin-bottom: 12px; }
.drop-zone.active { border-color: #174f8a; background: #eef6ff; }
progress { width: 100%; height: 18px; margin-top: 10px; }
.progress-label { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.processing-loader { position: relative; height: 8px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: #e2e2de; }
.processing-loader span { position: absolute; inset: 0 auto 0 -35%; width: 35%; border-radius: inherit; background: #176b2c; animation: processing-slide 1.25s ease-in-out infinite; }
@keyframes processing-slide { from { left: -35%; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .processing-loader span { animation-duration: 3s; } }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { border: 1px solid #bbb; padding: 6px; text-align: left; vertical-align: top; }
th { background: #eee; }
.pagination { margin-top: 10px; text-align: center; }
.help { color: #555; font-size: .9rem; }
.error { position: sticky; bottom: 8px; border: 2px solid #9a2222; background: #fdeaea; padding: 12px; white-space: pre-wrap; }
pre { max-height: 320px; overflow: auto; background: #f0f0f0; padding: 10px; }
@media (max-width: 600px) { main { padding: 10px; } section { padding: 12px; } th, td { min-width: 90px; } }
