:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Microsoft YaHei", sans-serif; color: #172033; background: #f4f6fa; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.topbar { height: 68px; background: #fff; border-bottom: 1px solid #e8ebf2; display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; }
.topbar > div, .top-actions { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #2aabee, #147ac2); color: white; font-weight: 800; letter-spacing: -1px; }
.brand-mark.small { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
.container { max-width: 1280px; margin: 0 auto; padding: 38px 24px 60px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.5px; }
.muted { color: #7b8497; }
.filters { display: flex; gap: 10px; margin-bottom: 24px; }
input, select { width: 100%; border: 1px solid #dfe4ed; border-radius: 10px; padding: 11px 13px; background: #fff; color: inherit; font: inherit; }
.filters input { max-width: 440px; }
select { width: 150px; }
.bulk-toolbar { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 10px 12px; background: #fff; border: 1px solid #e7eaf0; border-radius: 11px; }
.preview-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: -7px 0 18px; }
.preview-label { display: inline-flex; align-items: center; padding: 0 4px; font-size: 12px; }
.preview-toolbar .button { color: #5c6b7f; background: #eef5fa; }
.tasks-panel { margin: 0 0 24px; padding: 18px; background: #fff; border: 1px solid #dcecf6; border-radius: 15px; box-shadow: 0 3px 12px #25304708; }
.tasks-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.tasks-heading h2 { margin: 0 0 5px; font-size: 18px; }
.task-count { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border-radius: 99px; background: #e8f5fc; color: #1686cf; font-size: 11px; vertical-align: 3px; }
.tasks-heading p { margin: 0; font-size: 12px; }
.task-card { padding: 15px 16px; border: 1px solid #e7eaf0; border-radius: 13px; margin-top: 10px; background: #fbfdff; }
.task-card.completed { border-color: #cbead8; background: #f8fffb; }
.task-card.failed { border-color: #f0cccc; background: #fffafa; }
.task-top, .task-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.task-file { min-width: 0; display: flex; align-items: center; gap: 11px; }
.task-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; background: #e8f5fc; color: #1686cf; font-size: 14px; }
.completed .task-icon { background: #e2f5e9; color: #218653; }
.failed .task-icon { background: #ffe7e7; color: #c74646; }
.task-top strong { max-width: 75%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-status { color: #1686cf; font-size: 12px; font-weight: 700; white-space: nowrap; }
.completed .task-status { color: #218653; }
.failed .task-status, .task-error { color: #c74646; }
.task-meta, .task-bottom { color: #8790a2; font-size: 12px; }
.task-meta { margin: 7px 0 9px; }
.task-file .task-meta { margin: 4px 0 0; }
.progress-row { display: flex; align-items: center; gap: 12px; margin-top: 15px; }
.progress-track { height: 8px; overflow: hidden; border-radius: 99px; background: #e8eef5; }
.progress-row .progress-track { flex: 1; }
.progress-bar { height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, #2aabee, #147ac2); transition: width .35s ease; }
.completed .progress-bar { background: #35a66a; }
.failed .progress-bar { background: #d56a6a; }
.task-percent { min-width: 52px; color: #1686cf; text-align: right; font-size: 13px; }
.completed .task-percent { color: #218653; }
.failed .task-percent { color: #c74646; }
.task-stats { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; color: #59667b; font-size: 12px; }
.task-stats em { margin-right: 5px; color: #9aa4b4; font-style: normal; }
.task-empty { padding: 16px 0 4px; color: #8790a2; font-size: 13px; }
.task-error { margin-top: 7px; font-size: 12px; }
.task-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; color: #7b8497; font-size: 12px; }
.task-pagination button { border: 1px solid #dfe7ef; border-radius: 8px; padding: 6px 10px; background: #fff; color: #1686cf; cursor: pointer; }
.task-pagination button:disabled { color: #b5bdc8; cursor: not-allowed; background: #f5f7fa; }
.select-all { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.media-check { position: absolute; z-index: 2; top: 10px; left: 10px; width: 18px; height: 18px; accent-color: #1686cf; }
.button, .link-button { border: 0; border-radius: 9px; padding: 10px 15px; background: #edf1f7; color: #253047; cursor: pointer; font: inherit; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.button.primary { background: #1686cf; color: white; width: 100%; }
.button:hover { filter: brightness(.97); }
.link-button { background: transparent; color: #6a7384; padding: 4px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.media-card { background: #fff; border: 1px solid #e7eaf0; border-radius: 15px; overflow: hidden; box-shadow: 0 3px 12px #25304708; }
.media-preview { height: 190px; position: relative; background: #edf2f8; display: grid; place-items: center; color: #7f8ba0; overflow: hidden; }
.media-preview img { width: 100%; height: 100%; object-fit: cover; }
.preview-link { display: block; width: 100%; height: 100%; }
.preview-link img { display: block; }
.video-preview { background: #17233a; color: white; gap: 8px; font-size: 14px; }
.media-preview video { width: 100%; height: 100%; object-fit: contain; background: #17233a; }
.play { font-size: 36px; border: 2px solid #ffffff99; width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; padding-left: 5px; }
.media-info { padding: 14px; }
.filename { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { color: #8790a2; font-size: 12px; margin-top: 7px; }
.group-tag { color: #1686cf; font-size: 11px; margin-top: 5px; }
.card-actions { display: flex; gap: 7px; margin-top: 14px; }
.card-actions form { margin: 0; }
.small-button { font-size: 12px; padding: 7px 10px; }
.danger { color: #c74646; background: #fff0f0; }
.empty { padding: 70px 20px; text-align: center; border: 1px dashed #cfd6e2; border-radius: 14px; color: #7d8799; background: #fff; }
.pagination { display: flex; justify-content: center; gap: 20px; margin-top: 28px; }
.pagination a { color: #1686cf; text-decoration: none; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top, #e6f5ff, #f4f6fa 55%); }
.login-card { width: min(100%, 410px); background: #fff; border: 1px solid #e7eaf0; border-radius: 18px; padding: 36px; box-shadow: 0 18px 50px #25304712; }
.login-card .brand-mark { margin-bottom: 20px; }
.login-card h1 { font-size: 25px; }
.stack { display: grid; gap: 16px; margin-top: 25px; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; }
.alert { margin-top: 18px; padding: 10px 12px; color: #ad4141; background: #fff0f0; border-radius: 9px; font-size: 13px; }
@media (max-width: 600px) { .container { padding: 25px 15px 45px; } .filters { flex-wrap: wrap; } .filters input, select { max-width: none; width: 100%; } .filters .button { width: 100%; } .login-card { padding: 27px 22px; } .task-top { align-items: flex-start; } .task-status { padding-top: 4px; } .task-stats { gap: 8px 16px; } }
