:root {
  --glsp-list-accent: #115e59;
  --glsp-list-border: rgba(15, 23, 42, 0.12);
  --glsp-list-border-strong: rgba(15, 23, 42, 0.2);
  --glsp-list-surface: var(--surface, #ffffff);
  --glsp-list-text: var(--text, #1f1b16);
  --glsp-list-muted: var(--muted, #6d675f);
}

[data-theme="dark"] {
  --glsp-list-accent: #0f766e;
  --glsp-list-border: rgba(148, 163, 184, 0.24);
  --glsp-list-border-strong: rgba(148, 163, 184, 0.38);
  --glsp-list-surface: var(--surface, #15181b);
  --glsp-list-text: var(--text, #ffffff);
  --glsp-list-muted: var(--muted, #e2e8f0);
}

.glsp-card {
  background-color: var(--glsp-list-surface);
  border: 1px solid var(--glsp-list-border);
  border-radius: 16px;
  box-shadow: none;
}

.glsp-list-shell .btn-accent,
.btn-accent {
  background-color: var(--glsp-list-accent);
  border-color: var(--glsp-list-accent);
  color: #fff;
}

.glsp-list-shell .btn-accent:hover,
.btn-accent:hover,
.glsp-list-shell .btn-accent:focus,
.btn-accent:focus {
  background-color: var(--glsp-list-accent);
  border-color: var(--glsp-list-accent);
  color: #fff;
  filter: brightness(0.96);
}

.glsp-list-shell .btn-ghost,
.btn-ghost.glsp-list-btn {
  background-color: transparent;
  border-color: var(--glsp-list-border);
  color: var(--glsp-list-text);
}

.glsp-list-shell .btn-ghost:hover,
.btn-ghost.glsp-list-btn:hover {
  background-color: color-mix(in srgb, var(--glsp-list-accent) 10%, transparent);
  border-color: var(--glsp-list-accent);
  color: var(--glsp-list-text);
}

.glsp-list-shell .btn-icon,
.glsp-list-shell .btn-icon-action,
.btn-icon-action {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.glsp-list-shell .table-actions,
.glsp-list-shell .actions,
.table-actions,
.actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.glsp-list-shell .table {
  margin-bottom: 0;
  --bs-table-border-color: var(--glsp-list-border);
  --bs-table-striped-bg: transparent;
  --bs-table-striped-color: var(--glsp-list-text);
  --bs-table-hover-bg: color-mix(in srgb, var(--glsp-list-accent) 6%, transparent);
  --bs-table-bg: transparent;
}

.glsp-list-shell .table thead th {
  color: var(--glsp-list-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom-width: 1px;
  border-bottom-color: var(--glsp-list-border-strong);
  white-space: nowrap;
}

.glsp-list-shell .table-light,
.glsp-list-shell .table-light > tr > th,
.glsp-list-shell .table-light > tr > td,
.glsp-list-shell .table > :not(caption) > * > * {
  background-color: transparent;
  color: inherit;
}

.glsp-list-shell .table tbody td {
  border-bottom-color: var(--glsp-list-border);
}

.glsp-list-shell .badge-soft,
.badge-soft {
  border: 1px solid color-mix(in srgb, var(--glsp-list-accent) 40%, transparent);
  background-color: color-mix(in srgb, var(--glsp-list-accent) 16%, transparent);
  color: var(--glsp-list-text);
}

.glsp-list-shell .form-select,
.glsp-list-shell .glsp-select,
.glsp-card .glsp-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  --bs-form-select-bg-img: none;
  --bs-form-select-bg-size: 0 0;
  background-color: var(--glsp-list-surface);
  border-color: var(--glsp-list-border-strong);
  color: var(--glsp-list-text);
  padding-right: 2rem;
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 0.75rem 0.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230f172a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
}

[data-theme="dark"] .glsp-list-shell .form-select,
[data-theme="dark"] .glsp-list-shell .glsp-select,
[data-theme="dark"] .glsp-card .glsp-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
}

.glsp-list-shell .form-select:focus,
.glsp-list-shell .glsp-select:focus {
  border-color: var(--glsp-list-accent);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--glsp-list-accent) 20%, transparent);
}

.glsp-sort-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: inherit;
  text-decoration: none;
}

.glsp-sort-link:hover {
  color: var(--glsp-list-accent);
}

.glsp-sort-link .sort-indicator {
  color: var(--glsp-list-muted);
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.glsp-list-shell .table thead th:hover .glsp-sort-link .sort-indicator,
.glsp-sort-link:focus-visible .sort-indicator {
  opacity: 0.45;
}

.glsp-sort-link.is-active {
  color: var(--glsp-list-accent);
}

.glsp-sort-link.is-active .sort-indicator {
  color: var(--glsp-list-accent);
  opacity: 1;
}

.glsp-list-shell .table > tbody > tr {
  background-color: transparent;
}

.glsp-list-shell .table > tbody > tr:nth-of-type(odd) {
  background-color: transparent;
}

.glsp-list-shell .table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: transparent !important;
}

.glsp-list-shell .table-hover > tbody > tr:hover > * {
  background-color: color-mix(in srgb, var(--glsp-list-accent) 6%, transparent);
}

.glsp-list-shell .table thead th a {
  color: inherit;
  text-decoration: none;
}

.glsp-list-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.glsp-page-size {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--glsp-list-muted);
  font-size: 0.9rem;
}

.glsp-pagination {
  --bs-pagination-color: var(--glsp-list-text);
  --bs-pagination-bg: transparent;
  --bs-pagination-border-color: var(--glsp-list-border-strong);
  --bs-pagination-hover-color: var(--glsp-list-text);
  --bs-pagination-hover-bg: color-mix(in srgb, var(--glsp-list-accent) 10%, transparent);
  --bs-pagination-hover-border-color: var(--glsp-list-accent);
  --bs-pagination-focus-color: var(--glsp-list-text);
  --bs-pagination-focus-bg: color-mix(in srgb, var(--glsp-list-accent) 10%, transparent);
  --bs-pagination-focus-border-color: var(--glsp-list-accent);
  --bs-pagination-active-color: #fff;
  --bs-pagination-active-bg: var(--glsp-list-accent);
  --bs-pagination-active-border-color: var(--glsp-list-accent);
  --bs-pagination-disabled-color: var(--glsp-list-muted);
  --bs-pagination-disabled-bg: transparent;
  --bs-pagination-disabled-border-color: var(--glsp-list-border-strong);
}

.glsp-pagination .glsp-page-link {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--glsp-list-text);
  background-color: transparent !important;
  border: 1px solid var(--glsp-list-border-strong);
  box-shadow: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  line-height: 1;
  font-size: 0.875rem;
}

.glsp-pagination .page-item:not(.active) .glsp-page-link {
  color: var(--glsp-list-text) !important;
}

.glsp-pagination .page-item:not(.active):not(.disabled) .glsp-page-link:hover,
.glsp-pagination .page-item:not(.active):not(.disabled) .glsp-page-link:focus-visible {
  background-color: color-mix(in srgb, var(--glsp-list-accent) 10%, transparent) !important;
  border-color: var(--glsp-list-accent);
}

.glsp-pagination .page-item.active .glsp-page-link {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  text-shadow: none;
  background-color: var(--glsp-list-accent) !important;
  border-color: var(--glsp-list-accent) !important;
}

.glsp-pagination .page-item.disabled .glsp-page-link {
  color: var(--glsp-list-muted) !important;
  background-color: transparent !important;
  border-color: var(--glsp-list-border-strong);
  opacity: 0.45;
}

.glsp-pagination .page-link:focus {
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--glsp-list-accent) 18%, transparent);
}

.glsp-list-cards {
  display: none;
}

.glsp-list-item {
  border: 1px solid var(--glsp-list-border);
  border-radius: 14px;
  background-color: var(--glsp-list-surface);
  padding: 0.75rem;
}

.glsp-list-row {
  display: grid;
  grid-template-columns: minmax(92px, 40%) 1fr;
  gap: 0.25rem 0.5rem;
  padding: 0.125rem 0;
}

.glsp-list-label {
  color: var(--glsp-list-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.glsp-list-value {
  color: var(--glsp-list-text);
  font-size: 0.9rem;
}

@media (max-width: 767.98px) {
  .glsp-list-table-wrap {
    display: none !important;
  }

  .glsp-list-cards {
    display: grid;
    gap: 0.75rem;
  }

  .glsp-list-item .actions,
  .glsp-list-item .table-actions {
    justify-content: flex-start;
    margin-top: 0.5rem;
  }

  .glsp-list-footer {
    justify-content: center;
  }
}
