.lens-app {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.lens-side {
  width: 268px;
  flex: none;
  background: #fff;
  border: 1px solid #e6eef6;
  border-radius: 8px;
  overflow: hidden;
}

.lens-side-head {
  padding: 14px 16px;
  background: #f4f8fc;
  color: #1a3a5c;
  font-weight: 700;
  font-size: 15px;
}

.lens-group {
  padding: 12px 14px 14px;
  border-top: 1px solid #eef2f6;
}

.lens-group h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #1a3a5c;
  font-weight: 700;
}

.lens-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lens-chip {
  border: 1px solid #d5e0ea;
  background: #fff;
  color: #3d5166;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 12px;
  line-height: 1.6;
  cursor: pointer;
}

.lens-chip.is-on {
  background: #0066cc;
  border-color: #0066cc;
  color: #fff;
}

.lens-main {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #e6eef6;
  border-radius: 8px;
  padding: 14px 14px 18px;
}

.lens-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.lens-count {
  color: #5d7388;
  font-size: 13px;
}

.lens-count em {
  color: #0066cc;
  font-style: normal;
  font-weight: 700;
}

.lens-toolbar-actions {
  display: flex;
  gap: 8px;
}

.lens-text-btn {
  border: 1px solid #d5e0ea;
  background: #fff;
  color: #1a3a5c;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 13px;
  cursor: pointer;
}

.lens-hint {
  margin: 0 0 10px;
  color: #8aa0b5;
  font-size: 12px;
}

.lens-table-wrap {
  overflow-x: auto;
}

.lens-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #24384c;
}

.lens-table th,
.lens-table td {
  padding: 9px 8px;
  border-bottom: 1px solid #eef2f6;
  text-align: center;
  white-space: nowrap;
}

.lens-table th {
  background: #f7fafc;
  color: #1a3a5c;
  font-weight: 700;
}

.lens-table tbody tr {
  cursor: pointer;
}

.lens-table tbody tr:hover,
.lens-table tbody tr:focus {
  background: #f3f8fd;
  outline: none;
}

.lens-empty,
.lens-loading {
  padding: 36px 12px;
  text-align: center;
  color: #8aa0b5;
}

.lens-cards {
  display: none;
}

.lens-card {
  width: 100%;
  text-align: left;
  border: 1px solid #e6eef6;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
}

.lens-card-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #1a3a5c;
  font-weight: 700;
}

.lens-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  color: #5d7388;
  font-size: 12px;
}

.lens-pager {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.lens-pager button {
  min-width: 32px;
  height: 32px;
  border: 1px solid #d5e0ea;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  color: #1a3a5c;
}

.lens-pager button.is-on {
  background: #0066cc;
  border-color: #0066cc;
  color: #fff;
}

.lens-pager button:disabled {
  opacity: 0.45;
  cursor: default;
}

.lens-mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 32, 48, 0.45);
  z-index: 80;
}

.lens-detail {
  position: fixed;
  z-index: 81;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 32px));
  max-height: min(80vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(16, 32, 48, 0.2);
  padding: 18px 18px 8px;
}

.lens-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.lens-detail-head h3 {
  margin: 0;
  font-size: 18px;
  color: #1a3a5c;
}

.lens-detail-close {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #60788e;
}

.lens-detail dl {
  margin: 0;
}

.lens-detail-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #eef2f6;
  font-size: 14px;
}

.lens-detail dt {
  color: #60788e;
}

.lens-detail dd {
  margin: 0;
  color: #1a3a5c;
}

.lens-filter-btn {
  display: none;
}

@media (max-width: 860px) {
  .lens-app {
    display: block;
  }

  .lens-filter-btn {
    display: inline-block;
  }

  .lens-side {
    position: fixed;
    z-index: 82;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 86vw);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    overflow: auto;
    border-radius: 0;
  }

  .lens-app.is-filter-open .lens-side {
    transform: none;
  }

  .lens-table-wrap {
    display: none;
  }

  .lens-cards {
    display: block;
  }

  .lens-hint {
    display: none;
  }
}
