
.dtx-root, .dtx-card { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.dtx-wrap { max-width: 1400px; margin: 0 auto; padding: 16px; }
.dtx-card { background: #111; color: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 10px 24px rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.10); }
.dtx-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.dtx-col { display: flex; flex-direction: column; gap: 10px; }
.dtx-title { font-size: 18px; font-weight: 700; }
.dtx-subtitle { font-size: 13px; color: rgba(255,255,255,0.72); }
.dtx-muted { font-size: 12px; color: rgba(255,255,255,0.62); }
.dtx-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08); padding: 8px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.10); }

.dtx-notice { width: 100%; box-sizing: border-box; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 10px 12px; }
.dtx-notice .dtx-subtitle { margin: 0; }
.dtx-btn { cursor: pointer; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.08); color: #fff; padding: 10px 12px; border-radius: 12px; font-weight: 650; font-size: 13px; }
.dtx-btn:hover { background: rgba(255,255,255,0.12); }
.dtx-btn.primary { background: rgba(255,255,255,0.18); }
.dtx-btn.danger { background: rgba(255,85,85,0.18); border-color: rgba(255,85,85,0.25); }
.dtx-btn:disabled { opacity: .45; cursor: not-allowed; }

.dtx-input, .dtx-select, .dtx-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.35);
  color: #fff;
  outline: none;
}
.dtx-textarea { min-height: 90px; resize: vertical; }
.dtx-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.dtx-span-12 { grid-column: span 12; }
.dtx-span-8 { grid-column: span 8; }
.dtx-span-6 { grid-column: span 6; }
.dtx-span-4 { grid-column: span 4; }
.dtx-span-3 { grid-column: span 3; }
@media (max-width: 900px) {
  .dtx-span-8, .dtx-span-6, .dtx-span-4, .dtx-span-3 { grid-column: span 12; }
}
.dtx-hr { height: 1px; background: rgba(255,255,255,0.10); margin: 12px 0; }
.dtx-list { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.dtx-item { grid-column: span 6; }
@media (max-width: 900px) { .dtx-item { grid-column: span 12; } }
.dtx-item .dtx-card { height: 100%; display: flex; flex-direction: column; gap: 10px; }
.dtx-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.dtx-badge { font-size: 11px; padding: 5px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85); }
.dtx-kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 10px; font-size: 13px; }
@media (max-width: 600px) { .dtx-kv { grid-template-columns: 1fr; } }
.dtx-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dtx-table th, .dtx-table td { border-bottom: 1px solid rgba(255,255,255,0.10); padding: 8px 6px; text-align: left; }
.dtx-table th { color: rgba(255,255,255,0.75); font-weight: 700; }
.dtx-pre { background: rgba(0,0,0,0.40); border: 1px solid rgba(255,255,255,0.10); border-radius: 12px; padding: 12px; overflow:auto; max-height: 380px; white-space: pre-wrap; word-break: break-word; }
.dtx-toast { position: fixed; right: 16px; bottom: 16px; max-width: 360px; z-index: 99999; }
.dtx-toast .dtx-card { padding: 12px; }
.dtx-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 99998; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dtx-modal { max-width: 720px; width: 100%; }
.dtx-small { font-size: 12px; opacity: 0.8; }

.dtx-dexi { position: fixed; left: 16px; bottom: 16px; z-index: 99997; }
.dtx-dexi button { border-radius: 999px; padding: 10px 14px; }
.dtx-dexi-panel { position: fixed; left: 16px; bottom: 66px; width: 340px; max-width: calc(100vw - 32px); z-index: 99997; }
.dtx-chatlog { max-height: 240px; overflow:auto; display:flex; flex-direction:column; gap:8px; }
.dtx-bubble { padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.06); font-size: 13px; }
.dtx-bubble.me { background: rgba(255,255,255,0.10); }
