:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --line: #e5e9f2;
  --line-strong: #d7deea;
  --text: #202938;
  --muted: #718096;
  --blue: #4f7cff;
  --blue-soft: #edf3ff;
  --green: #18c7a4;
  --orange: #ff9900;
  --red: #ff4d5e;
  --purple: #6f5bdc;
  --shadow: 0 8px 24px rgba(35, 47, 74, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 1180px;
  color: var(--text);
  background: var(--bg);
  font: 14px/1.4 "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

.login-body {
  display: grid;
  min-width: 0;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: #f5f7fb;
}

.login-panel {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.login-brand {
  padding: 0 0 18px;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.login-form .btn {
  width: 100%;
  margin-top: 4px;
}

.login-message {
  min-height: 20px;
  margin-top: 12px;
  color: var(--red);
}

button,
input,
select,
textarea {
  font: inherit;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 210px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 18px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 8px;
  font-weight: 800;
}

.brand strong {
  display: block;
  font-size: 15px;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 4px;
  margin-top: 14px;
}

.sidebar-user {
  display: grid;
  gap: 8px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 12px 10px 0;
}

.sidebar-user-line span,
.sidebar-user-line strong {
  display: block;
}

.sidebar-user-line span {
  color: var(--muted);
  font-size: 11px;
}

.sidebar-user-line strong {
  overflow: hidden;
  color: #263244;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-logout {
  width: 100%;
  margin-top: 4px;
}

.nav-item {
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #334155;
  text-align: left;
  cursor: pointer;
}

.nav-item.active {
  color: #2f66ff;
  background: var(--blue-soft);
  font-weight: 700;
}

.nav-item.muted {
  color: #64748b;
}

.workspace {
  margin-left: 210px;
  padding: 18px 20px 28px;
}

.view[hidden] {
  display: none;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

h1 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: 0;
}

p {
  margin: 0;
  color: var(--muted);
}

.refresh-state {
  min-width: 210px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: right;
}

.refresh-state span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.refresh-state strong {
  display: block;
  margin-top: 3px;
  font-size: 13px;
}

.filters,
.toolbar,
.account-row {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr)) auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  margin-bottom: 12px;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: #5e6b7f;
  font-size: 12px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  outline: none;
}

input,
select {
  height: 34px;
  padding: 0 10px;
}

textarea {
  min-height: 92px;
  padding: 10px 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.14);
}

.filter-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn {
  height: 34px;
  min-width: 74px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 12px;
  cursor: pointer;
  white-space: nowrap;
}

.btn.primary {
  color: #fff;
  background: var(--blue);
}

.btn.secondary,
.btn.outline {
  color: var(--blue);
  border-color: var(--blue);
  background: #fff;
}

.btn.success {
  color: #fff;
  background: var(--green);
}

.btn.warning {
  color: #fff;
  background: var(--orange);
}

.btn.blue {
  color: #fff;
  background: #86a2ff;
}

.btn.ghost {
  color: #7b8798;
  border-color: var(--line-strong);
  background: #f8fafc;
}

.btn.danger {
  color: #c73443;
  border-color: #ffc7cf;
  background: #fff3f5;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 16px;
  margin-bottom: 14px;
  box-shadow: none;
}

.toolbar span {
  color: var(--muted);
  font-size: 12px;
}

.bulk-assignment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bulk-assignment input {
  width: 180px;
  height: 36px;
}

.feishu-switcher {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.feishu-switcher button {
  min-width: 104px;
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid var(--line-strong);
  background: #fff;
  color: #415066;
  cursor: pointer;
}

.feishu-switcher button:last-child {
  border-right: 0;
}

.feishu-switcher button.active {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.account-list {
  display: grid;
  gap: 14px;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  margin-top: 14px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 13px;
}

.pagination-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-total {
  color: var(--muted);
}

.page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #1f2937;
  background: transparent;
  cursor: pointer;
}

.page-btn:hover:not(:disabled),
.page-btn.active {
  border-color: #dbe6ff;
  color: var(--blue);
  background: #eef4ff;
}

.page-btn:disabled {
  color: #a4afbf;
  cursor: not-allowed;
}

.page-btn.icon {
  font-size: 22px;
  line-height: 1;
}

.pagination-ellipsis {
  color: var(--muted);
  min-width: 18px;
  text-align: center;
}

.page-size-select {
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 28px 0 12px;
  color: #1f2937;
  background: #fff;
}

.settings-panel,

.feishu-section {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.feishu-filter-row {
  display: grid;
  grid-template-columns: minmax(240px, 360px) auto auto 1fr;
  gap: 10px;
  align-items: center;
}

.feishu-filter-row input {
  height: 36px;
}

.mini-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.feishu-row {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.settings-panel {
  display: grid;
  gap: 16px;
  max-width: 900px;
  padding: 18px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.setting-row strong,
.feishu-profile strong {
  display: block;
}

.setting-row span,
.feishu-profile span,
.feishu-summary span {
  color: var(--muted);
  font-size: 12px;
}

.access-editor {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto auto;
  gap: 10px;
  align-items: center;
}

.access-module-picker,
.allowed-user-perms,
.allowed-user-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.allowed-user-list {
  display: grid;
  gap: 8px;
}

.allowed-user-item {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: #f8fafc;
}

.allowed-user-item strong,
.allowed-user-item span {
  display: block;
}

.switch {
  display: inline-flex;
  margin: 0;
}

.switch input {
  display: none;
}

.switch span {
  position: relative;
  display: block;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  transition: 0.18s ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
  transition: 0.18s ease;
}

.switch input:checked + span {
  background: var(--green);
}

.switch input:checked + span::after {
  transform: translateX(20px);
}

.threshold-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.settings-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}


.feishu-section {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.mini-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.feishu-row {
  display: grid;
  grid-template-columns: 22px minmax(260px, 1fr) repeat(3, 150px) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
}

.feishu-check {
  width: 16px;
  height: 16px;
}

.feishu-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feishu-summary {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f6f8fc;
}

.feishu-summary strong {
  display: block;
  margin-top: 3px;
}

.account-row {
  display: grid;
  grid-template-columns: 560px 1fr;
  min-height: 300px;
  padding: 18px 18px 14px;
}

.account-meta {
  display: grid;
  grid-template-columns: 28px 76px minmax(160px, 1fr) 170px;
  gap: 12px;
  align-items: center;
  padding-right: 18px;
}

.row-check {
  width: 16px;
  height: 16px;
}

.avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #eef3ff;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  color: #3b5bcc;
  background: #edf3ff;
  font-weight: 800;
}

.name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.identity strong {
  display: block;
  font-size: 14px;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  height: 22px;
  border: 1px solid #d7deea;
  border-radius: 5px;
  padding: 0 8px;
  color: #2f66ff;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.profile-link:hover {
  border-color: #2f66ff;
  background: #edf3ff;
}

.assignment {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 3px;
}

.assignment span {
  color: var(--muted);
  font-size: 12px;
}

.assign-input {
  width: 118px;
  height: 26px;
  padding: 0 8px;
  font-size: 12px;
}

.mini-btn {
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 0 8px;
  color: #2f66ff;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

.handle {
  color: #617087;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  border-radius: 5px;
  padding: 0 8px;
  color: #496176;
  background: #f0f4fb;
  font-size: 12px;
}

.tag.hot {
  color: #c73443;
  background: #ffecee;
}

.tag.uid {
  color: #3d6fff;
  background: #edf3ff;
}

.tag.handle-tag {
  color: #00a889;
  background: #e7fff9;
}

.tag.ok {
  color: #16886f;
  background: #e7fff9;
}

.tag.failed {
  color: #c73443;
  background: #ffecee;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 7px;
  overflow: hidden;
  background: #f6f8fc;
}

.mini-stats div {
  padding: 8px 6px;
  text-align: center;
  border-right: 1px solid #e8edf5;
}

.mini-stats div:last-child {
  border-right: 0;
}

.mini-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.mini-stats strong {
  font-size: 13px;
}

.note {
  margin-top: 8px;
  color: #667085;
  font-size: 12px;
}

.fetch-message {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: #8a94a6;
  font-size: 12px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.recent-box {
  align-self: center;
  border-radius: 8px;
  background: #f6f8fc;
  padding: 14px;
}

.recent-box h3 {
  margin: 0 0 10px;
  color: #77839a;
  font-size: 13px;
  font-weight: 600;
}

.recent-box dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 0;
  font-size: 13px;
}

.recent-box dt {
  color: #7b8798;
}

.recent-box dd {
  margin: 0;
  color: #223047;
  text-align: right;
}

.works {
  min-width: 0;
  overflow: hidden;
}

.works-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #1e293b;
  font-size: 13px;
}

.works-title span {
  color: #7a8597;
  font-size: 12px;
}

.works-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.work-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 16px;
  scroll-snap-type: x proximity;
  scrollbar-gutter: stable;
}

.video-card {
  flex: 0 0 132px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  background: #d9deea;
  box-shadow: 0 8px 18px rgba(30, 41, 59, 0.18);
  scroll-snap-align: start;
  cursor: pointer;
}

.video-card:hover .play-icon {
  color: #fff;
  transform: scale(1.08);
}

.video-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0));
}

.badge {
  position: absolute;
  z-index: 1;
  top: 8px;
  display: inline-flex;
  align-items: center;
  height: 20px;
  border-radius: 999px;
  padding: 0 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.badge.play {
  left: 8px;
  background: var(--red);
}

.badge.duration {
  right: 8px;
  background: rgba(17, 24, 39, 0.72);
}

.play-icon {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 28px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: 0.18s ease;
}

.video-footer {
  position: absolute;
  z-index: 1;
  right: 8px;
  bottom: 8px;
  left: 8px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.download-btn {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(90, 92, 190, 0.86);
  cursor: pointer;
  text-decoration: none;
}

.data-filters,
.data-summary,
.chart-panel,
.rank-panel,
.orders-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.data-filters {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(120px, 150px) minmax(150px, 190px) minmax(150px, 190px) minmax(130px, 170px) minmax(340px, 1fr) minmax(260px, auto);
  gap: 14px;
  align-items: end;
  padding: 16px;
  margin-bottom: 16px;
}

.data-account-filter,
.data-shop-filter {
  max-width: 190px;
}

.data-owner-filter {
  max-width: 170px;
}

.segmented {
  display: inline-flex;
  overflow: hidden;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
}

.segmented button {
  min-width: 72px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 0 12px;
  color: #3d6fff;
  background: #fff;
  cursor: pointer;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button.active {
  color: #fff;
  background: var(--blue);
}

.date-range {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 18px minmax(130px, 1fr);
  align-items: center;
  gap: 8px;
}

.date-range span {
  color: var(--muted);
  text-align: center;
}

.date-filter {
  display: grid;
  gap: 8px;
}

.quick-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-ranges button {
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0 10px;
  color: #3d6fff;
  background: #fff;
  cursor: pointer;
}

.quick-ranges button:hover {
  background: #f4f7ff;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-actions .active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.data-summary {
  display: flex;
  justify-content: center;
  gap: 46px;
  padding: 26px;
  margin-bottom: 16px;
  box-shadow: none;
}

.data-summary div {
  min-width: 120px;
  text-align: center;
}

.data-summary div + div {
  border-left: 1px solid var(--line);
  padding-left: 46px;
}

.data-summary span {
  display: block;
  color: #8490a7;
  font-size: 13px;
}

.data-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--blue);
  font-size: 22px;
  font-weight: 700;
}

.chart-panel {
  margin-bottom: 16px;
  overflow: hidden;
}

.chart-scroll {
  overflow-x: auto;
  padding: 10px 14px 14px;
}

.line-chart {
  min-height: 260px;
}

.chart-grid {
  stroke: #e6ebf4;
  stroke-width: 1;
}

.chart-line {
  fill: none;
  stroke: #16b99a;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-point circle {
  fill: #fff;
  stroke: #16b99a;
  stroke-width: 2;
}

.chart-axis {
  fill: #7a8599;
  font-size: 12px;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.rank-panel {
  min-height: 260px;
  overflow: hidden;
}

.rank-panel.wide {
  grid-column: span 1;
}

.rank-panel h2,
.chart-panel h2,
.orders-panel h2 {
  margin: 0;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  color: #17213a;
  font-size: 15px;
}

.rank-list {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  border-radius: 7px;
  background: #f8fafc;
  padding: 8px 10px;
}

.rank-no {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #6f5bdc;
  font-size: 12px;
  font-weight: 700;
}

.rank-main {
  min-width: 0;
}

.rank-main strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-main span,
.panel-head span,
.export-task span {
  color: var(--muted);
  font-size: 12px;
}

.rank-item b {
  color: #ff9900;
  font-size: 14px;
}

.orders-panel {
  margin-bottom: 16px;
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  border-bottom: 0;
}

.panel-head span {
  padding-right: 18px;
}

.orders-table-wrap {
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.orders-table th,
.orders-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}

.orders-table th {
  color: #5e6b7f;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
}

.orders-table td {
  color: #263244;
  font-size: 13px;
}

.orders-table tr:last-child td {
  border-bottom: 0;
}

.product-cell {
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty.small {
  padding: 40px 16px;
}

.empty-cell {
  padding: 38px 16px !important;
  color: var(--muted) !important;
  text-align: center !important;
}

.export-task-list {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
}

.export-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: #f8fafc;
}

.export-task strong {
  display: block;
  margin-bottom: 3px;
  color: #263244;
}

.export-task-stats {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.export-task-stats span {
  border-radius: 999px;
  padding: 3px 8px;
  background: #edf3ff;
  color: #2f66ff;
  font-weight: 700;
}

.empty {
  padding: 50px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 22px;
  max-width: 420px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: rgba(15, 23, 42, 0.92);
  opacity: 0;
  transform: translateY(10px);
  transition: 0.18s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.36);
  z-index: 20;
}

.modal-panel,
.player-panel {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.18);
}

.modal-panel.wide {
  width: min(560px, 100%);
}

.modal-panel textarea {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  background: #fff;
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
}

.checkbox-line input {
  width: 16px;
  height: 16px;
}

.player-panel {
  width: min(420px, calc(100vw - 40px));
}

.player-panel video {
  display: block;
  width: 100%;
  max-height: min(78vh, 760px);
  border-radius: 8px;
  background: #000;
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-head {
  margin-bottom: 14px;
}

.modal-head strong {
  font-size: 15px;
}

.icon-btn {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: #64748b;
  background: #fff;
  cursor: pointer;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 16px;
}

@media (max-width: 1500px) {
  .account-row {
    grid-template-columns: 460px 1fr;
  }

  .account-meta {
    grid-template-columns: 24px 64px 1fr;
  }

  .recent-box {
    grid-column: 2 / 4;
  }

  .work-grid {
    gap: 12px;
  }

  .pagination-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .pagination-controls {
    justify-content: flex-start;
  }

  .feishu-filter-row {
    grid-template-columns: 1fr auto auto;
  }

  .data-filters {
    grid-template-columns: minmax(210px, 260px) minmax(120px, 150px) minmax(150px, 190px) minmax(150px, 190px) minmax(130px, 170px) minmax(340px, 1fr);
  }

  .data-filters .filter-actions {
    justify-content: flex-start;
    grid-column: 1 / -1;
  }
}

@media (max-width: 1300px) {
  .data-filters {
    grid-template-columns: minmax(210px, 1fr) minmax(180px, 1fr);
  }

  .data-account-filter,
  .data-shop-filter,
  .data-owner-filter {
    max-width: none;
  }
}
