:root { color-scheme: light; font-family: Inter, system-ui, sans-serif; background: #f4f6f8; color: #17212b; }
body { margin: 0; }
.topbar { display: flex; align-items: center; gap: 1.5rem; padding: .8rem max(1rem, calc((100% - 1080px) / 2)); background: #fff; border-bottom: 1px solid #dce2e8; }
.topbar .brand { color: #17212b; font-weight: 800; text-decoration: none; }
.topbar nav { display: flex; gap: 1rem; flex: 1; }
.topbar nav a, a { color: #1769e0; }
.shell { width: min(1080px, calc(100% - 2rem)); margin: 3rem auto; }
.card { background: white; border: 1px solid #dce2e8; border-radius: 12px; padding: 1.5rem; margin-bottom: 1rem; box-shadow: 0 5px 18px rgba(23, 33, 43, .05); }
.narrow { max-width: 430px; margin: 7rem auto; }
.toolbar, .page-heading, .upload, .actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
h1, h2 { margin-top: 0; }
.muted, .empty { color: #627080; }
label { display: grid; gap: .4rem; margin: 1rem 0; font-weight: 600; }
input, textarea { box-sizing: border-box; width: 100%; padding: .7rem; border: 1px solid #bdc7d1; border-radius: 7px; font: inherit; }
input[type="hidden"], input[type="file"] { width: auto; }
button, .button { border: 0; border-radius: 7px; padding: .7rem 1rem; background: #1769e0; color: white; text-decoration: none; cursor: pointer; }
.secondary { background: #e9eef4; color: #263646; }
.danger { background: #c73535; }
.danger-link { color: #a02525; }
.row-actions { display: flex; gap: .8rem; white-space: nowrap; }
.alert { padding: .75rem; border-radius: 7px; background: #fff0f0; color: #8c2424; }
.notice { padding: .75rem; border-radius: 7px; background: #edf8f2; color: #12633d; }
.once-token code { display: block; padding: .8rem; overflow-wrap: anywhere; background: #f2f5f8; border-radius: 7px; }
.verification-unavailable { border-color: #d34444; background: #fff8f8; }
.verification-summary { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .75rem; border-bottom: 1px solid #e3e8ed; vertical-align: top; }
.status { font-weight: 700; }
.status-ready { color: #167247; }
.status-processing { color: #8a5b00; }
.status-pending_parse, .status-pending_confirmation { color: #8a5b00; }
.status-published { color: #167247; }
.status-failed { color: #a02525; }
.qa-editor, .qa-published { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e3e8ed; }
.qa-editor .actions { justify-content: flex-start; }
.qa-published p { white-space: pre-wrap; overflow-wrap: anywhere; }
.publish-form { margin-top: 1.5rem; }
.chunk-meta { color: #627080; font-size: .9rem; margin-bottom: .75rem; }
.chunk pre, .log-view { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; line-height: 1.55; }
.log-view { max-height: 32rem; overflow: auto; padding: 1rem; color: #d7e2ef; background: #101820; border-radius: 8px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1.5rem 0; }
[v-cloak] { display: none; }
.topbar, .topbar nav { flex-wrap: wrap; }
.enrollment-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1.25rem; }
.enrollment-fields select { box-sizing: border-box; width: 100%; padding: .7rem; border: 1px solid #bdc7d1; border-radius: 7px; background: white; font: inherit; }
.enrollment-actions { justify-content: flex-start; }
.enrollment-search { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.enrollment-search label { flex: 1; min-width: 180px; }
.enrollment-row-actions { align-items: center; gap: .6rem; }
.enrollment-row-actions button { padding: .45rem .6rem; }
@media (max-width: 700px) { .topbar, .toolbar, .page-heading, .upload, .actions { align-items: stretch; flex-direction: column; } .topbar nav { flex: auto; } .shell { margin: 1rem auto; } .narrow { margin: 2rem auto; } }
