* { box-sizing: border-box; }
body {
    font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
    margin: 0;
    color: #1f2937;
    background: #f9fafb;
    font-size: 14px;
}
header {
    background: #111827;
    color: #f9fafb;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
header .brand {
    font-weight: 600;
    font-size: 16px;
    color: #f9fafb;
    text-decoration: none;
}
header nav a {
    color: #d1d5db;
    text-decoration: none;
    margin-left: 16px;
}
header nav a:hover { color: #fff; }

.tabbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 24px;
    display: flex;
    gap: 4px;
}
.tabbar .tab {
    display: inline-block;
    padding: 12px 18px;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
}
.tabbar .tab:hover { color: #111827; }
.tabbar .tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

main { padding: 24px; max-width: 1100px; margin: 0 auto; }
h1 { font-size: 20px; margin: 0 0 6px; }
h2 { font-size: 15px; margin: 0 0 10px; font-weight: 600; }
p.hint { color: #6b7280; font-size: 13px; margin: 0 0 20px; }

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.tool-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #2563eb;
    border-radius: 6px;
    padding: 16px;
}
.tool-card h2 { color: #111827; }
.tool-card .desc { color: #4b5563; font-size: 13px; line-height: 1.45; margin: 0 0 12px; }
.tool-card form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tool-card input[type=file] {
    font-size: 12px;
    flex: 1 1 auto;
    min-width: 0;
}
.tool-card button {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}
.tool-card button:hover { background: #1d4ed8; }
.tool-card .accept { color: #9ca3af; font-size: 11px; margin: 6px 0 0; }

section.jobs { margin-top: 12px; }
section.jobs h2 { font-size: 14px; color: #6b7280; margin-bottom: 8px; font-weight: 500; }

table.jobs-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}
table.jobs-table th, table.jobs-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
}
table.jobs-table th {
    background: #f3f4f6;
    font-weight: 600;
    color: #374151;
    font-size: 12px;
}
table.jobs-table tr:last-child td { border-bottom: none; }
table.jobs-table td.col-tool { font-weight: 500; color: #374151; }
table.jobs-table td.col-file {
    color: #4b5563;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
table.jobs-table td.col-actions { text-align: right; }
table.jobs-table td.col-actions a {
    color: #2563eb;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}
table.jobs-table td.col-actions a:hover { text-decoration: underline; }
table.jobs-table td.col-actions .err {
    color: #dc2626;
    font-size: 11px;
    cursor: help;
}
table.jobs-table .btn-del {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 4px;
}
table.jobs-table .btn-del:hover { color: #dc2626; }
.meta { color: #9ca3af; font-size: 11px; }

.status-ok { color: #059669; font-weight: 600; }
.status-failed { color: #dc2626; font-weight: 600; }
.status-running, .status-queued, .status-pending { color: #d97706; font-weight: 600; }

.login-box {
    max-width: 360px;
    margin: 80px auto;
    background: #fff;
    padding: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.login-box h1 { text-align: center; font-size: 18px; margin-bottom: 18px; }
.login-box form { display: flex; flex-direction: column; gap: 12px; }
.login-box input {
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}
.login-box button {
    padding: 10px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.login-box button:hover { background: #1d4ed8; }
.error { color: #dc2626; font-size: 13px; text-align: center; }

.banner {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    color: #92400e;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    text-align: center;
}

.empty { color: #9ca3af; font-size: 13px; padding: 14px; text-align: center; }
