/* ═══════════════════════════════════════════════════════════
   DyeTech ERP v3 – Dark Industrial Theme
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg:        #080C14;
  --surface:   #0D1420;
  --surface2:  #111827;
  --surface3:  #161E2E;
  --border:    #1E293B;
  --borderBr:  #263548;
  --primary:   #0EA5E9;
  --primaryDk: #0284C7;
  --accent:    #F43F5E;
  --success:   #10B981;
  --warning:   #F59E0B;
  --purple:    #A855F7;
  --teal:      #14B8A6;
  --text:      #F1F5F9;
  --text2:     #94A3B8;
  --text3:     #475569;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(0,0,0,.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Be Vietnam Pro', 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
}

/* Scrollbar */
::-webkit-scrollbar            { width: 5px; height: 5px; }
::-webkit-scrollbar-track      { background: transparent; }
::-webkit-scrollbar-thumb      { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover{ background: var(--borderBr); }

/* ── APP SHELL ────────────────────────────────────────────── */
#dte-root, .dte-app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
.dte-sidebar {
  width: 235px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: width .25s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
  position: relative;
  z-index: 100;
}
.dte-sidebar.collapsed { width: 64px; }

.dte-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}
.dte-brand-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #0EA5E9, #A855F7);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(14,165,233,.35);
}
.dte-brand-name  { font-size: 13px; font-weight: 900; color: var(--text); white-space: nowrap; }
.dte-brand-sub   { font-size: 9.5px; color: var(--text3); letter-spacing: 1px; text-transform: uppercase; }

.dte-nav { flex: 1; padding: 10px 8px; overflow-y: auto; }
.dte-nav-group-label {
  font-size: 9.5px; color: var(--text3); text-transform: uppercase;
  letter-spacing: 1.5px; font-weight: 700; padding: 8px 8px 4px;
  white-space: nowrap;
}
.dte-nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 9px;
  cursor: pointer; border: none; width: 100%;
  background: transparent; color: var(--text2);
  font-weight: 500; font-size: 13px; text-align: left;
  margin-bottom: 2px; transition: all .15s;
  font-family: inherit; white-space: nowrap;
  position: relative;
}
.dte-nav-item:hover  { background: rgba(14,165,233,.08); color: var(--text); }
.dte-nav-item.active {
  background: rgba(14,165,233,.15); color: var(--primary);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(14,165,233,.2);
}
.dte-nav-icon { font-size: 17px; flex-shrink: 0; }
.dte-nav-badge {
  margin-left: auto; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 800; padding: 1px 6px;
  border-radius: 20px; flex-shrink: 0;
}
.dte-sidebar-user {
  padding: 12px 14px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 9px;
}
.dte-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; color: #fff; flex-shrink: 0;
}

/* ── MAIN ────────────────────────────────────────────────── */
.dte-main {
  flex: 1; display: flex; flex-direction: column;
  min-width: 0; overflow: hidden;
}

/* ── HEADER ──────────────────────────────────────────────── */
.dte-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 58px;
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0; position: relative; z-index: 50;
}
.dte-header h1 {
  font-size: 16px; font-weight: 900; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.dte-header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.dte-clock {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
}
.dte-clock-time {
  font-size: 18px; font-weight: 700; color: var(--primary);
  letter-spacing: 2px; line-height: 1;
}
.dte-clock-date { font-size: 10px; color: var(--text3); margin-top: 2px; }

/* ── CONTENT ─────────────────────────────────────────────── */
.dte-content {
  flex: 1; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 18px;
}

/* ── CARDS ───────────────────────────────────────────────── */
.dte-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.dte-card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(0deg, var(--surface), var(--surface3));
  display: flex; align-items: center; justify-content: space-between;
}
.dte-card-title {
  font-size: 14px; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 7px;
}
.dte-card-body { padding: 16px 18px; }

/* ── STAT CARDS ──────────────────────────────────────────── */
.dte-stat-grid { display: grid; gap: 14px; }
.dte-stat-grid-4 { grid-template-columns: repeat(4,1fr); }
.dte-stat-grid-5 { grid-template-columns: repeat(5,1fr); }
.dte-stat-grid-3 { grid-template-columns: repeat(3,1fr); }
.dte-stat-grid-2 { grid-template-columns: repeat(2,1fr); }

.dte-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.dte-stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--c, var(--primary)), transparent);
}
.dte-stat-icon  { font-size: 22px; margin-bottom: 8px; }
.dte-stat-value {
  font-size: 28px; font-weight: 900; color: var(--text); line-height: 1;
  font-family: 'JetBrains Mono', monospace;
}
.dte-stat-label { font-size: 12px; color: var(--text2); font-weight: 600; margin-top: 5px; }
.dte-stat-sub   { font-size: 11px; color: var(--text3); margin-top: 2px; }
.dte-stat-trend { font-size: 11px; font-weight: 700; }
.dte-stat-trend.up   { color: var(--success); }
.dte-stat-trend.down { color: var(--accent); }

/* ── GRID LAYOUTS ────────────────────────────────────────── */
.dte-grid-2-1  { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.dte-grid-1-2  { display: grid; grid-template-columns: 1fr 2fr; gap: 18px; }
.dte-grid-2    { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dte-grid-3    { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }

/* ── BADGES ──────────────────────────────────────────────── */
.dte-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.dte-badge-red    { background: rgba(244,63,94,.15);  color: #f43f5e; border: 1px solid rgba(244,63,94,.3); }
.dte-badge-yellow { background: rgba(245,158,11,.15); color: #f59e0b; border: 1px solid rgba(245,158,11,.3); }
.dte-badge-green  { background: rgba(16,185,129,.15); color: #10b981; border: 1px solid rgba(16,185,129,.3); }
.dte-badge-blue   { background: rgba(14,165,233,.15); color: #0ea5e9; border: 1px solid rgba(14,165,233,.3); }
.dte-badge-purple { background: rgba(168,85,247,.15); color: #a855f7; border: 1px solid rgba(168,85,247,.3); }
.dte-badge-gray   { background: rgba(71,85,105,.2);   color: #94a3b8; border: 1px solid rgba(71,85,105,.3); }
.dte-badge-teal   { background: rgba(20,184,166,.15); color: #14b8a6; border: 1px solid rgba(20,184,166,.3); }

/* ── PROGRESS BAR ────────────────────────────────────────── */
.dte-bar-track { background: var(--border); border-radius: 10px; overflow: hidden; }
.dte-bar-fill  {
  height: 100%; border-radius: 10px;
  transition: width .8s cubic-bezier(.4,0,.2,1);
}

/* ── TABLE ───────────────────────────────────────────────── */
.dte-table-wrap { overflow-x: auto; }
.dte-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.dte-table thead tr { background: var(--surface3); }
.dte-table th {
  padding: 10px 16px; text-align: left;
  color: var(--text2); font-weight: 700;
  font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .8px; white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.dte-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.dte-table tbody tr:hover { background: rgba(255,255,255,.02); }
.dte-table td { padding: 11px 16px; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.dte-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700; cursor: pointer;
  border: none; font-family: inherit; transition: all .15s;
  white-space: nowrap;
}
.dte-btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 0 16px rgba(14,165,233,.3);
}
.dte-btn-primary:hover { background: var(--primaryDk); }
.dte-btn-ghost {
  background: transparent; border: 1px solid var(--border);
  color: var(--text2);
}
.dte-btn-ghost:hover { border-color: var(--borderBr); color: var(--text); }
.dte-btn-danger  { background: rgba(244,63,94,.12); border: 1px solid rgba(244,63,94,.3); color: var(--accent); }
.dte-btn-success { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3); color: var(--success); }
.dte-btn-sm { padding: 5px 11px; font-size: 12px; }

/* ── FORM ────────────────────────────────────────────────── */
.dte-form-row { display: grid; gap: 14px; margin-bottom: 14px; }
.dte-form-row-2 { grid-template-columns: 1fr 1fr; }
.dte-form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.dte-form-group { display: flex; flex-direction: column; gap: 5px; }
.dte-label { font-size: 11.5px; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: .5px; }
.dte-input, .dte-select, .dte-textarea {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 13px;
  color: var(--text); font-size: 13px; font-family: inherit;
  outline: none; width: 100%;
  transition: border-color .15s;
}
.dte-input:focus, .dte-select:focus, .dte-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}
.dte-select { cursor: pointer; }
.dte-textarea { resize: vertical; min-height: 90px; }
input::placeholder, textarea::placeholder { color: var(--text3); }

/* ── MODAL ───────────────────────────────────────────────── */
.dte-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.dte-modal {
  background: var(--surface); border: 1px solid var(--borderBr);
  border-radius: var(--radius); box-shadow: var(--shadow);
  width: 100%; max-width: 640px; max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden;
}
.dte-modal-lg { max-width: 860px; }
.dte-modal-header {
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.dte-modal-title { font-size: 16px; font-weight: 800; color: var(--text); }
.dte-modal-close {
  background: transparent; border: none; color: var(--text3);
  font-size: 20px; cursor: pointer; padding: 2px 6px;
  border-radius: 6px; transition: all .15s;
}
.dte-modal-close:hover { color: var(--text); background: var(--surface2); }
.dte-modal-body { padding: 20px 22px; overflow-y: auto; flex: 1; }
.dte-modal-footer {
  padding: 14px 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* ── MACHINE CARD ────────────────────────────────────────── */
.dte-machine-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
  cursor: pointer; transition: all .15s;
}
.dte-machine-card:hover  { border-color: var(--borderBr); }
.dte-machine-card.active { outline: 2px solid var(--primary); }
.dte-machine-card.critical {
  border-color: rgba(244,63,94,.4);
  box-shadow: 0 0 20px rgba(244,63,94,.12);
}
.dte-machine-card.warning {
  border-color: rgba(245,158,11,.3);
  box-shadow: 0 0 16px rgba(245,158,11,.08);
}

/* ── STATUS DOT ──────────────────────────────────────────── */
.dte-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}
.dte-dot-green  { background: var(--success); box-shadow: 0 0 6px var(--success); }
.dte-dot-yellow { background: var(--warning); animation: pulse-dot 1.5s infinite; }
.dte-dot-red    { background: var(--accent);  animation: pulse-dot 1s infinite; }
.dte-dot-gray   { background: var(--text3); }

/* ── ALERT ITEMS ─────────────────────────────────────────── */
.dte-alert-item {
  border-radius: 10px; padding: 10px 13px; margin-bottom: 8px;
  border: 1px solid var(--border);
}
.dte-alert-item.critical {
  background: rgba(244,63,94,.07);
  border-color: rgba(244,63,94,.25);
}
.dte-alert-item.warning {
  background: rgba(245,158,11,.07);
  border-color: rgba(245,158,11,.2);
}
.dte-alert-item.info {
  background: rgba(14,165,233,.06);
  border-color: rgba(14,165,233,.15);
}

/* ── FILTER BAR ──────────────────────────────────────────── */
.dte-filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.dte-search {
  flex: 1; min-width: 200px;
}
.dte-search-input {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 13px 8px 36px;
  color: var(--text); font-size: 13px; font-family: inherit;
  outline: none; width: 100%;
}
.dte-search-input:focus { border-color: var(--primary); }
.dte-search-wrap { position: relative; }
.dte-search-icon {
  position: absolute; left: 11px; top: 50%;
  transform: translateY(-50%); color: var(--text3); font-size: 14px;
}

/* ── LOGIN ───────────────────────────────────────────────── */
.dte-login-screen {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.dte-login-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px 44px;
  width: 100%; max-width: 420px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.dte-login-logo {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, #0EA5E9, #A855F7);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 20px; 
  box-shadow: 0 0 30px rgba(14,165,233,.4);
}
.dte-login-title {
  font-size: 22px; font-weight: 900; color: var(--text);
  text-align: center; margin-bottom: 4px;
}
.dte-login-sub {
  font-size: 12px; color: var(--text3); text-align: center; margin-bottom: 28px;
}

/* ── AI CHAT ─────────────────────────────────────────────── */
.dte-chat-wrap {
  display: flex; flex-direction: column; height: 100%;
}
.dte-chat-messages {
  flex: 1; overflow-y: auto; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.dte-chat-msg { display: flex; gap: 10px; }
.dte-chat-msg.user { flex-direction: row-reverse; }
.dte-chat-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.dte-chat-avatar.ai   { background: linear-gradient(135deg,#0ea5e9,#a855f7); }
.dte-chat-avatar.user { background: var(--surface3); border: 1px solid var(--border); }
.dte-chat-bubble {
  max-width: 80%; padding: 10px 14px;
  font-size: 13px; color: var(--text); line-height: 1.65;
  white-space: pre-wrap;
}
.dte-chat-bubble.ai {
  background: var(--surface3); border: 1px solid var(--border);
  border-radius: 4px 13px 13px 13px;
}
.dte-chat-bubble.user {
  background: rgba(14,165,233,.12); border: 1px solid rgba(14,165,233,.25);
  border-radius: 13px 4px 13px 13px;
}
.dte-chat-input-row {
  padding: 12px 18px; border-top: 1px solid var(--border);
}
.dte-chat-suggestions {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
}
.dte-chat-suggest-btn {
  background: rgba(14,165,233,.08); border: 1px solid rgba(14,165,233,.2);
  color: var(--primary); padding: 4px 10px; border-radius: 20px;
  font-size: 11px; cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.dte-chat-suggest-btn:hover { background: rgba(14,165,233,.18); }
.dte-chat-input-wrap { display: flex; gap: 8px; }
.dte-chat-input {
  flex: 1; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 13px; color: var(--text);
  font-size: 13px; outline: none; font-family: inherit;
  transition: border-color .15s;
}
.dte-chat-input:focus { border-color: var(--primary); }
.dte-chat-send {
  background: var(--primary); border: none; border-radius: 10px;
  color: #fff; padding: 9px 18px; cursor: pointer;
  font-size: 13px; font-weight: 700; font-family: inherit;
}

/* ── COLOR SWATCH ────────────────────────────────────────── */
.dte-swatch {
  width: 28px; height: 28px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.1); flex-shrink: 0;
}

/* ── DETAIL VIEW ─────────────────────────────────────────── */
.dte-detail-section {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 12px;
}
.dte-detail-section-title {
  font-size: 11px; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.dte-detail-text {
  font-size: 13px; color: var(--text2); line-height: 1.7;
  white-space: pre-wrap;
}

/* ── TABS ────────────────────────────────────────────────── */
.dte-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.dte-tab {
  padding: 9px 16px; font-size: 13px; font-weight: 600;
  color: var(--text2); cursor: pointer; border: none;
  background: transparent; font-family: inherit;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all .15s;
}
.dte-tab:hover  { color: var(--text); }
.dte-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }

/* ── TOAST ───────────────────────────────────────────────── */
.dte-toast-wrap {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.dte-toast {
  background: var(--surface); border: 1px solid var(--borderBr);
  border-radius: 10px; padding: 12px 18px;
  font-size: 13px; color: var(--text);
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  display: flex; align-items: center; gap: 10px;
  min-width: 260px; max-width: 360px;
  animation: slideIn .25s ease;
}
.dte-toast.success { border-left: 3px solid var(--success); }
.dte-toast.error   { border-left: 3px solid var(--accent); }
.dte-toast.info    { border-left: 3px solid var(--primary); }

/* ── LOADING ─────────────────────────────────────────────── */
.dte-loading {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 30px;
}
.dte-spin {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  animation: spin .8s linear infinite;
}
.dte-typing-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary);
  animation: bounce .9s infinite;
}
.dte-typing-dot:nth-child(2) { animation-delay: .15s; }
.dte-typing-dot:nth-child(3) { animation-delay: .3s; }

/* ── TIMELINE (Planning) ─────────────────────────────────── */
.dte-timeline-wrap { overflow-x: auto; }
.dte-timeline-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.dte-timeline-label {
  width: 90px; font-size: 11px; font-weight: 700;
  color: var(--text); font-family: 'JetBrains Mono', monospace; flex-shrink: 0;
}
.dte-timeline-track {
  flex: 1; height: 28px; background: var(--surface2);
  border-radius: 6px; position: relative; overflow: hidden;
}
.dte-timeline-bar {
  position: absolute; height: 100%; border-radius: 4px;
  display: flex; align-items: center; padding-left: 8px;
  font-size: 10px; color: var(--text); font-weight: 600;
}
.dte-timeline-now {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: var(--accent); z-index: 2;
}

/* ── ENERGY BAR CHART ────────────────────────────────────── */
.dte-bar-chart {
  display: flex; align-items: flex-end;
  gap: 5px; height: 80px; padding: 0 2px;
}
.dte-bar-col {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 4px; height: 100%;
}
.dte-bar-col-inner { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.dte-bar-col-bar {
  width: 100%; border-radius: 3px 3px 0 0;
  transition: height .5s cubic-bezier(.4,0,.2,1);
}
.dte-bar-col-label { font-size: 9px; color: var(--text3); white-space: nowrap; }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes spin        { to { transform: rotate(360deg); } }
@keyframes pulse-dot   { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.4;transform:scale(1.3);} }
@keyframes bounce      { 0%,80%,100%{transform:translateY(0);} 40%{transform:translateY(-7px);} }
@keyframes slideIn     { from{transform:translateX(20px);opacity:0;} to{transform:translateX(0);opacity:1;} }
@keyframes fadeIn      { from{opacity:0;} to{opacity:1;} }
@keyframes scaleIn     { from{transform:scale(.95);opacity:0;} to{transform:scale(1);opacity:1;} }

.dte-fade-in  { animation: fadeIn  .25s ease; }
.dte-scale-in { animation: scaleIn .2s ease; }

/* ── MISC ────────────────────────────────────────────────── */
.mono { font-family: 'JetBrains Mono', monospace; }
.txt-primary  { color: var(--primary); }
.txt-accent   { color: var(--accent); }
.txt-success  { color: var(--success); }
.txt-warning  { color: var(--warning); }
.txt-muted    { color: var(--text2); }
.txt-dim      { color: var(--text3); }
.fw-900 { font-weight: 900; }
.fw-700 { font-weight: 700; }
.gap-8  { display: flex; align-items: center; gap: 8px; }
.gap-12 { display: flex; align-items: center; gap: 12px; }
.ml-auto{ margin-left: auto; }
