/* Namespaced styles to avoid global conflicts */
:root {
  --dlns-bg: #0f172a;
  --dlns-panel: #111827;
  --dlns-muted: #94a3b8;
  --dlns-text: #e5e7eb;
  --dlns-accent: #22c55e;
}
.dlns-body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial;
  background: var(--dlns-bg);
  color: var(--dlns-text);
}
.dlns-container {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 16px;
}
.dlns-card {
  background: var(--dlns-panel);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.dlns-title {
  margin: 0 0 12px;
  font-size: 22px;
}
.dlns-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.dlns-input {
  flex: 1;
  min-width: 240px;
  background: #0b1220;
  color: var(--dlns-text);
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
}
.dlns-input:focus {
  border-color: #334155;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}
.dlns-btn,
.dlns-btn-secondary {
  background: var(--dlns-accent);
  color: #052e16;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.dlns-btn:disabled,
.dlns-btn-secondary.dlns-disabled {
  background: #334155;
  color: var(--dlns-muted);
  cursor: not-allowed;
}
.dlns-progress {
  margin-top: 12px;
  font-size: 14px;
  color: var(--dlns-muted);
  white-space: pre-line;
  background: #0b1220;
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 10px;
  min-height: 64px;
}
.dlns-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.dlns-table-wrap {
  margin-top: 16px;
  overflow: auto;
  border: 1px solid #1f2937;
  border-radius: 8px;
}
table.dlns-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
thead.dlns-thead {
  background: #0b1220;
  position: sticky;
  top: 0;
}
th.dlns-th,
td.dlns-td {
  border-bottom: 1px solid #1f2937;
  padding: 8px 10px;
  text-align: left;
}
tr.dlns-tr:nth-child(even) td.dlns-td {
  background: #0f1627;
}
.dlns-note {
  font-size: 12px;
  color: var(--dlns-muted);
  margin-top: 6px;
}
.dlns-instructions {
  margin-top: 16px;
  padding: 12px;
  background: #0b1220;
  border: 1px solid #1f2937;
  border-radius: 8px;
}
.dlns-instructions .dlns-note {
  margin: 4px 0;
}

.dlns-toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--dlns-muted);
  font-size: 13px;
}

.dlns-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--dlns-accent);
}

.dlns-detail-section {
  margin-top: 18px;
}

.dlns-subtitle {
  margin: 0 0 6px;
  font-size: 18px;
}

.dlns-muted {
  color: var(--dlns-muted);
}

.dlns-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.dlns-items {
  min-width: 320px;
  line-height: 1.5;
}

.dlns-detail-table td.dlns-td {
  vertical-align: top;
}

.dlns-detail-row td.dlns-td {
  padding-top: 6px;
  padding-bottom: 6px;
}

.dlns-timeline {
  border: 1px solid #223047;
  border-radius: 8px;
  background: #0b1220;
  padding: 4px 6px;
}

.dlns-timeline summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #d9e5f3;
  outline: none;
}

.dlns-timeline-list {
  margin-top: 8px;
  max-height: 210px;
  overflow-y: auto;
  padding-right: 4px;
  font-size: 12px;
  line-height: 1.45;
}

.dlns-chip {
  display: inline-block;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25px;
  margin-right: 6px;
}

.dlns-chip-buy {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.dlns-chip-sell {
  background: rgba(248, 113, 113, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.35);
}
