/* ─────────────────────────────────────────────────────────────
   mini-ui.css — Tiny realistic UI mocks (Inbox, CRM, Quote, Chat, KB, Dash)
   Used inside Use-Case portals and Selected Work case studies.
   ───────────────────────────────────────────────────────────── */

.mui {
  background: var(--bg-card);
  border: 0.5px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(14,14,12,.04), 0 14px 32px rgba(14,14,12,.06);
  padding: 14px;
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.005em;
  width: 100%;
  user-select: none;
  position: relative;
  overflow: hidden;
}

/* Bar / header */
.mui-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--line);
  margin-bottom: 10px;
  font-weight: 500;
}
.mui-bar-l { display:flex; align-items:center; gap: 8px;}
.mui-bar-t { font-weight: 500; color: var(--ink); }
.mui-bar-sub { font-size: 11px; color: var(--muted); font-weight:400; }
.mui-bar-r  { color: var(--muted); font-size: 11.5px; }
.mui-bar-tag {
  font-size: 9.5px; font-weight:600; letter-spacing: 0.06em; text-transform:uppercase;
  background: var(--accent-soft); color: var(--accent);
  padding: 2px 6px; border-radius: 4px;
}
.mui-circle { width: 10px; height: 10px; border-radius: 99px; background: var(--accent); }
.mui-avatar {
  width: 22px; height: 22px; border-radius: 99px;
  background: var(--ink); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
}

/* INBOX */
.mui-list { display: flex; flex-direction: column; gap: 1px; }
.mui-row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 10px; align-items: center;
  padding: 7px 4px;
  border-radius: 6px;
}
.mui-row.active { background: var(--bg-elev); outline: 0.5px solid var(--line); }
.mui-dot { width: 6px; height: 6px; border-radius: 99px; background: var(--muted-2); }
.mui-dot[data-c="neu"] { background: var(--accent); }
.mui-dot[data-c="in_arbeit"] { background: #1F6F3F; }
.mui-dot[data-c="abgeschlossen"] { background: var(--muted-2); }
.mui-row-n { font-weight: 500; font-size: 12.5px; }
.mui-row-t { color: var(--muted); font-size: 11.5px; margin-top: 1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.mui-row-time { color: var(--muted-2); font-size: 11px; }

/* CRM */
.mui-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mui-col { display: flex; flex-direction: column; gap: 4px; }
.mui-col-h {
  display: flex; justify-content: space-between;
  font-size: 10.5px; color: var(--muted); font-weight: 500;
  letter-spacing: 0.02em; padding: 0 2px 4px;
  border-bottom: 0.5px dashed var(--line-2);
}
.mui-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-elev);
  border: 0.5px solid var(--line);
  border-radius: 6px;
  padding: 5px 7px;
  font-size: 11px; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mui-pill.empty { color: var(--muted-2); justify-content: center;}
.mui-pill-dot { width: 4px; height: 4px; border-radius:99px; background: var(--accent); flex: none;}

/* QUOTE */
.mui-quote-body { display: flex; flex-direction: column; gap: 6px; }
.mui-line {
  display: flex; justify-content: space-between;
  border-bottom: 0.5px dashed var(--line);
  padding: 4px 0;
  font-size: 12px;
}
.mui-line:last-of-type { border: 0; }
.mui-progress {
  height: 4px;
  background: var(--line);
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
}
.mui-progress > span { display:block; height:100%; background: var(--accent); }
.mui-foot {
  display: flex; justify-content: space-between; margin-top: 6px;
  font-size: 11px; color: var(--muted);
}

/* CHAT */
.mui-chat-body { display: flex; flex-direction: column; gap: 6px; }
.bubble {
  font-size: 12px; line-height: 1.4;
  padding: 7px 10px; border-radius: 12px;
  max-width: 85%;
}
.bubble.user { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 4px;}
.bubble.bot  { align-self: flex-start; background: var(--bg-elev); color: var(--ink); border: 0.5px solid var(--line); border-bottom-left-radius: 4px;}
.bubble.small { background: transparent; border: 0; padding: 2px 0;}
.bot-actions { display:flex; gap: 6px; }
.bot-chip {
  font-size: 11px; padding: 4px 8px;
  border: 0.5px solid var(--line-2); border-radius: 99px;
  background: var(--bg-card); color: var(--ink);
}

/* KB / Search */
.mui-search {
  display: flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 10px;
  background: var(--bg-elev);
  border: 0.5px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
}
.mui-search-icon { color: var(--muted); font-size: 12px; }
.mui-search-q { color: var(--ink); font-size: 12px; flex: 1; }
.mui-search-key {
  font-family: var(--font-mono); font-size: 10px;
  background: var(--bg-card); padding: 1px 5px; border-radius: 3px;
  border: 0.5px solid var(--line-2); color: var(--muted);
}
.mui-results { display: flex; flex-direction: column; gap: 6px; }
.mui-res {
  border-left: 1.5px solid var(--accent);
  padding: 4px 8px;
  background: linear-gradient(90deg, var(--accent-soft), transparent 60%);
  border-radius: 0 6px 6px 0;
}
.mui-res-t { font-size: 12px; font-weight: 500; }
.mui-res-s { font-size: 10.5px; color: var(--muted); margin-top: 1px;}

/* DASH */
.mui-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 8px;
}
.mui-stat {
  background: var(--bg-elev);
  border: 0.5px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}
.mui-stat-l { font-size: 11px; color: var(--muted); }
.mui-stat-v {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500; letter-spacing: -0.025em;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.mui-stat-u { font-size: 12px; color: var(--muted); margin-left: 1px; }
.mui-stat-d { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.mui-spark { grid-column: 1 / -1; height: 40px; padding: 4px 4px; }
.mui-spark svg { width: 100%; height: 100%; }
