:root {
  --ui-density: 1;
}

.ts-page .ts-main {
  padding: 1rem 1.25rem;
  max-width: calc(960px * var(--ui-density));
  margin-left: auto;
  margin-right: auto;
}

.ts-status.ts-status--error {
  color: #c0392b;
}

.ts-meta {
  margin: 0.75rem 0 1rem;
  font-size: 0.88rem;
  color: var(--muted, #64748b);
  line-height: 1.45;
  white-space: pre-line;
}

.ts-empty-cell {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.ts-empty-detail-line {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  color: var(--gc-muted, #8b9bb0);
  line-height: 1.45;
}

.ts-empty-detail-line:last-child {
  margin-bottom: 0;
}

.ts-empty-actions {
  margin-top: 0.75rem;
}

.ts-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin: 0 0 0.75rem;
}

.ts-toolbar-order {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.ts-toolbar-stored {
  display: inline-flex;
}

.ts-report-btn {
  font: inherit;
  font-size: 0.875rem;
  padding: 0.35rem 0.75rem;
  border-radius: calc(6px * var(--ui-density));
  border: 1px solid var(--gc-border, rgba(255, 255, 255, 0.14));
  background: transparent;
  color: var(--gc-accent, #5b9fd4);
  cursor: pointer;
  margin-left: auto;
  white-space: nowrap;
}

.ts-report-btn:hover:not(:disabled) {
  filter: brightness(1.12);
  border-color: var(--gc-accent, #5b9fd4);
}

.ts-report-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ts-report-btn--primary {
  background: var(--gc-accent, #5b9fd4);
  color: #0f1419;
  border-color: var(--gc-accent, #5b9fd4);
}

.ts-report-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.62);
}

.ts-report-modal-overlay[hidden] {
  display: none !important;
}

.ts-report-modal-content {
  width: min(calc(520px * var(--ui-density)), 100%);
  max-height: min(90vh, calc(720px * var(--ui-density)));
  overflow: auto;
  background: var(--gc-panel, #161d27);
  border: 1px solid var(--gc-border, #2a3544);
  border-radius: calc(10px * var(--ui-density));
  color: var(--gc-text, #e8edf4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.ts-report-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--gc-border, #2a3544);
}

.ts-report-modal-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.ts-report-modal-close {
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.15rem 0.45rem;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.75;
}

.ts-report-modal-close:hover {
  opacity: 1;
}

.ts-report-modal-body {
  padding: 0.85rem 1rem 1rem;
}

.ts-report-modal-body label {
  display: block;
  margin: 0.65rem 0 0.25rem;
  font-size: 0.82rem;
  color: var(--gc-muted, #8b9bb0);
}

.ts-report-hint,
.ts-report-note {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--gc-muted, #8b9bb0);
  line-height: 1.45;
}

.ts-report-listing {
  margin: 0.75rem 0 0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--gc-border, #2a3544);
  border-radius: calc(6px * var(--ui-density));
  background: var(--gc-bg, #0f1419);
}

.ts-report-listing-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gc-muted, #8b9bb0);
  margin-bottom: 0.35rem;
}

.ts-report-listing-title {
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
}

.ts-report-listing-price {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--gc-muted, #8b9bb0);
  font-variant-numeric: tabular-nums;
}

.ts-report-input {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.55rem;
  border-radius: calc(6px * var(--ui-density));
  border: 1px solid var(--gc-border, #2a3544);
  background: var(--gc-bg, #0f1419);
  color: inherit;
  box-sizing: border-box;
}

.ts-report-input:focus {
  outline: 2px solid var(--gc-accent, #5b9fd4);
  outline-offset: 1px;
}

.ts-report-honeypot {
  position: absolute;
  left: calc(-9999px * var(--ui-density));
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ts-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.85rem;
}

.ts-report-status {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  min-height: 1.2em;
}

.ts-report-status--ok {
  color: var(--gc-good, #3ecf8e);
}

.ts-report-status--err {
  color: var(--gc-bad, #e85d6a);
}

.ts-toolbar-btn {
  font: inherit;
  font-size: 0.875rem;
  padding: 0.35rem 0.75rem;
  border-radius: calc(6px * var(--ui-density));
  border: 1px solid var(--gc-border, rgba(255, 255, 255, 0.14));
  background: rgba(255, 255, 255, 0.04);
  color: var(--gc-text, inherit);
  cursor: pointer;
}

.ts-toolbar-btn:hover:not(:disabled) {
  filter: brightness(1.08);
}

.ts-toolbar-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ts-toolbar-btn--active {
  border-color: var(--gc-accent, #5b9fd4);
  box-shadow: 0 0 0 1px var(--gc-accent, #5b9fd4);
}

.ts-table-wrap {
  overflow: auto;
  max-height: min(70vh, calc(720px * var(--ui-density)));
  border: 1px solid var(--gc-border, #2a3544);
  border-radius: calc(8px * var(--ui-density));
}

.ts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ts-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--gc-panel, #161d27);
  box-shadow: 0 1px 0 var(--gc-border, #2a3544);
}

.ts-table th,
.ts-table td {
  border-bottom: 1px solid var(--gc-border, #2a3544);
  padding: 0.45rem 0.65rem;
  vertical-align: top;
  text-align: left;
}

.ts-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.ts-col-price {
  width: 7rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ts-col-report {
  width: 5.5rem;
  white-space: nowrap;
  text-align: right;
}

.ts-col-title {
  word-break: break-word;
}

.ts-row-report-btn {
  font: inherit;
  font-size: 0.78rem;
  padding: 0.2rem 0.45rem;
  border-radius: calc(4px * var(--ui-density));
  border: 1px solid transparent;
  background: transparent;
  color: var(--gc-accent, #5b9fd4);
  cursor: pointer;
}

.ts-row-report-btn:hover {
  border-color: var(--gc-accent, #5b9fd4);
  background: rgba(91, 159, 212, 0.08);
}

