/* Project layout on top of the vendored Tabler 1.5.1 stylesheet. */
:root {
  --tblr-font-sans-serif: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --tblr-body-bg: #f3f5f8;
  --tblr-primary: #2463b5;
  --tblr-primary-rgb: 36, 99, 181;
  --tblr-border-radius: 4px;
}
body { font-size: 14px; }
a { text-decoration: none; }
.app-header { min-height: 62px; background: #21344e; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; position: relative; z-index: 2; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand strong { font-size: 18px; letter-spacing: .3px; }
.brand-symbol { display: grid; place-items: center; width: 28px; height: 28px; background: #3d75b9; border-radius: 4px; font-size: 19px; font-weight: 700; }
.brand-divider { border-left: 1px solid #637185; padding-left: 16px; margin-left: 9px; font-size: 13px; color: #d3dce9; }
.account-menu { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.user-avatar { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #435972; font-size: 12px; }
.logout-button { color: #d3dce9; border: 0; border-left: 1px solid #637185; background: transparent; margin-left: 6px; padding: 0 0 0 16px; white-space: nowrap; font: inherit; cursor: pointer; }
.logout-button:hover { color: #fff; }
.app-sidebar { position: absolute; top: 62px; left: 0; bottom: 0; min-height: calc(100vh - 62px); width: 184px; background: #fff; border-right: 1px solid #dfe4eb; padding: 25px 12px; }
.nav-section-label { font-size: 12px; color: #68778a; margin: 0 12px 12px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 5px; }
.sidebar-nav a { padding: 12px; border-radius: 4px; color: #405168; display: flex; align-items: center; gap: 11px; }
.sidebar-nav a:hover { background: #f3f6fa; }
.sidebar-nav a.active { background: #eaf1fc; color: #20599d; font-weight: 600; }
.sidebar-nav svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.7; fill: none; }
.sidebar-account { color: #68778a; font-size: 12px; margin: 30px 12px 0; border-top: 1px solid #e7ebf0; padding-top: 18px; }
.app-main { margin-left: 184px; padding: 28px 32px 40px; max-width: 1700px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.breadcrumb-label { color: #68778a; font-size: 12px; margin-bottom: 10px; }
.page-heading h1 { font-size: 23px; font-weight: 600; margin: 0; line-height: 1.3; }
.page-note { font-size: 13px; }
.card { box-shadow: none; border-color: #dce2ea; }
.card-header { min-height: 57px; padding: 16px 20px; gap: 16px; justify-content: space-between; }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 0; }
.card-body { padding: 22px 20px; }
.query-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.query-field { width: min(420px, 100%); }
.form-label { color: #405168; font-weight: 500; margin-bottom: 8px; }
.form-control { min-height: 37px; border-color: #cbd4df; }
.query-form .btn { min-height: 37px; padding-left: 23px; padding-right: 23px; }
.query-help { margin-top: 13px; color: #68778a; font-size: 12px; }
.search-card { margin-bottom: 22px; }
.result-count { color: #68778a; font-weight: 400; margin-left: 14px; font-size: 12px; }
.original-label { font-size: 12px; color: #68778a; }
.video-table { margin-bottom: 0; min-width: 730px; }
.table thead th { background: #f7f9fb; color: #56667a; font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; padding-top: 12px; padding-bottom: 12px; }
.table td { padding-top: 18px; padding-bottom: 18px; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.filename-cell { display: flex; align-items: center; gap: 12px; }
.file-type { color: #34629a; background: #f0f5fc; border: 1px solid #d4e0ef; border-radius: 3px; font-size: 9px; font-weight: 600; width: 33px; height: 39px; flex-shrink: 0; display: grid; place-items: center; }
.filename { overflow-wrap: anywhere; font-size: 13px; max-width: 430px; }
.file-tracking { color: #68778a; font-size: 11px; margin-top: 5px; font-variant-numeric: tabular-nums; }
.mobile-size { display: none; }
.operation-label { color: #435a75; background: #f0f3f7; padding: 3px 7px; border-radius: 3px; white-space: nowrap; font-size: 12px; }
.result-footer { display: flex; align-items: center; justify-content: space-between; min-height: 57px; gap: 16px; font-size: 12px; background: #fff; }
.pagination-actions { display: flex; gap: 8px; }
.index-status { text-align: right; font-size: 12px; color: #68778a; margin-top: 15px; }
.empty-state { text-align: center; padding: 62px 20px; }
.empty-state svg { width: 42px; height: 42px; stroke: #97a8ba; fill: none; stroke-width: 1.6; margin-bottom: 18px; }
.empty-state h3 { font-size: 14px; font-weight: 500; color: #405168; margin-bottom: 9px; }
.empty-state p { font-size: 12px; color: #68778a; margin: 0; }
.account-create .query-field { width: min(300px, 100%); }
.member-table { margin-bottom: 0; min-width: 660px; }
.member-actions, .reset-form { display: flex; align-items: center; gap: 10px; }
.reset-form input { max-width: 200px; }
.status-label { font-size: 12px; white-space: nowrap; }
.status-label::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; background: #8a97a7; }
.status-label.enabled { color: #287347; }
.status-label.enabled::before { background: #378457; }
.signed-out .app-main { margin: 0 auto; padding: 72px 20px; max-width: 440px; }
.login-card .card-body { padding: 30px; }
.login-card .card-title { font-size: 20px; }
.login-card p { font-size: 12px; }
.login-help { text-align: center; margin: 22px 0 0; color: #68778a; }
.error-card { max-width: 660px; margin: 30px auto; }
:focus-visible { outline: 2px solid #4a87d4; outline-offset: 3px; }
@media (max-width: 1000px) {
  .app-main { padding: 24px 20px; }
  .page-note { display: none; }
  .filename { max-width: 310px; }
}
@media (max-width: 720px) {
  .app-header { padding: 14px 16px; flex-wrap: wrap; gap: 14px; }
  .brand-divider { font-size: 12px; padding-left: 10px; margin-left: 0; }
  .account-menu { margin-left: auto; }
  .app-sidebar { position: static; width: 100%; min-height: 0; padding: 7px 12px; border-right: 0; border-bottom: 1px solid #dfe4eb; }
  .nav-section-label, .sidebar-account { display: none; }
  .sidebar-nav { flex-direction: row; gap: 7px; }
  .sidebar-nav a { padding: 9px 12px; }
  .app-main { margin-left: 0; padding: 20px 14px; }
  .page-heading { margin-bottom: 17px; }
  .page-heading h1 { font-size: 21px; }
  .query-field { flex: 1 1 200px; }
  .query-form { gap: 10px; }
  .query-form .btn { padding-left: 18px; padding-right: 18px; }
  .card-header { flex-wrap: wrap; gap: 8px; padding: 15px 16px; }
  .card-body { padding: 19px 16px; }
  .original-label { font-size: 11px; }
  .video-table { min-width: 0; table-layout: fixed; }
  .video-table th:nth-child(2), .video-table td:nth-child(2),
  .video-table th:nth-child(3), .video-table td:nth-child(3),
  .video-table th:nth-child(4), .video-table td:nth-child(4) { display: none; }
  .video-table th:last-child { width: 82px; }
  .filename { max-width: none; }
  .mobile-size { display: inline; }
  .index-status { text-align: left; }
  .signed-out .app-main { padding-top: 44px; }
}
