/* ============================================================
   FOKUS-MODUS — modernes, ruhiges Interface. Alles unter
   .focus-root genamespaced; die klassische Ansicht (style.css)
   bleibt unberührt. Keine Emojis, eigenes SVG-Icon-Set (.vi).
   ============================================================ */
.focus-root {
  --f-bg: #f7f7f5;
  --f-card: #ffffff;
  --f-ink: #191919;
  --f-muted: #8a8a86;
  --f-line: #ececea;
  --f-red: #eb3924;
  --f-red-soft: #fdeae7;
  --f-green: #1d9e55;
  --f-green-soft: #e6f6ec;
  --f-blue: #2563eb;
  --f-blue-soft: #e9f0fe;
  --f-amber: #b45309;
  --f-amber-soft: #fdf3e0;
  --f-shadow: 0 1px 2px rgba(20, 20, 18, .05), 0 8px 28px rgba(20, 20, 18, .07);
  --f-radius: 16px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--f-bg);
  color: var(--f-ink);
  font-family: "Poppins", system-ui, sans-serif;
}
.focus-root * { box-sizing: border-box; }
/* Neutralisiert die globalen Neo-Brutalism-Styles aus style.css (harte Schatten, Hover-Versatz) —
   der Fokus-Modus hat seine eigene, weiche Formensprache. */
.focus-root button, .focus-root select, .focus-root input, .focus-root label, .focus-root a {
  box-shadow: none;
}
.focus-root button:hover, .focus-root button:active {
  transform: none;
  box-shadow: none;
}
.focus-root .vi { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: -3px; }
.focus-root .f-muted { color: var(--f-muted); }
.focus-root .small { font-size: 12px; }
.focus-root button { font-family: inherit; cursor: pointer; }
.focus-root input, .focus-root select, .focus-root textarea { font-family: inherit; font-size: 14px; color: var(--f-ink); }

/* ---------- Topbar ---------- */
.f-topbar {
  display: flex; align-items: center; gap: 18px;
  padding: 10px 20px; background: var(--f-card);
  border-bottom: 1px solid var(--f-line);
  flex: 0 0 auto;
}
.f-brand { font-weight: 800; font-size: 16px; letter-spacing: -.2px; white-space: nowrap; }
.f-brand span { color: var(--f-muted); font-weight: 500; }
.f-tabs { display: flex; gap: 4px; background: var(--f-bg); border-radius: 12px; padding: 4px; }
.f-tabs button {
  display: inline-flex; align-items: center; gap: 7px;
  border: none; background: transparent; border-radius: 9px;
  padding: 7px 13px; font-size: 13px; font-weight: 600; color: var(--f-muted);
  transition: all .12s;
}
.f-tabs button:hover { color: var(--f-ink); }
.f-tabs button.active { background: var(--f-card); color: var(--f-ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.f-badge {
  background: var(--f-red); color: #fff; border-radius: 10px;
  font-size: 11px; font-weight: 700; padding: 1px 7px; line-height: 1.5;
}
.f-topmeta { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; }
.f-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 1px solid var(--f-line); border-radius: 10px;
  background: var(--f-card); color: var(--f-ink); transition: all .12s;
}
.f-iconbtn:hover { background: var(--f-bg); }
.f-iconbtn:disabled { opacity: .4; cursor: default; }
.f-modebtn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--f-line); border-radius: 10px; background: var(--f-card);
  padding: 7px 12px; font-size: 12px; font-weight: 600;
}
.f-modebtn:hover { background: var(--f-bg); }
.f-user { display: inline-flex; align-items: center; gap: 6px; color: var(--f-muted); font-weight: 500; }

/* ---------- Inbox-Layout ---------- */
.f-inbox { display: flex; flex: 1; min-height: 0; }

/* Drawer (Mail-Liste) */
.f-drawer {
  display: flex; flex: 0 0 auto; min-height: 0;
  background: var(--f-card); border-right: 1px solid var(--f-line);
  width: 340px; transition: width .18s ease;
}
.f-drawer.collapsed { width: 52px; }
.f-drawer-toggle {
  flex: 0 0 auto; width: 52px; border: none; background: transparent;
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 14px;
  color: var(--f-muted); border-right: 1px solid transparent;
}
.f-drawer:not(.collapsed) .f-drawer-toggle { width: 34px; border-right: 1px solid var(--f-line); }
.f-drawer-toggle:hover { color: var(--f-ink); background: var(--f-bg); }
.f-drawer-inner { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.f-filters { padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 7px; border-bottom: 1px solid var(--f-line); }
.f-filters select, .f-search {
  width: 100%; padding: 7px 10px; border: 1px solid var(--f-line); border-radius: 9px;
  background: var(--f-bg); font-size: 12px;
}
.f-filter-row { display: flex; gap: 7px; }
.f-maillist { list-style: none; margin: 0; padding: 8px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.f-mailitem {
  padding: 10px 12px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: all .1s; background: var(--f-bg);
}
.f-mailitem:hover { border-color: var(--f-line); background: #f0f0ee; }
.f-mailitem.active { background: var(--f-card); border-color: var(--f-ink); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.f-mailitem.fst-erledigt { opacity: .5; }
.f-mi-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.f-mi-date { font-size: 11px; color: var(--f-muted); }
.f-mi-from { font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.f-mi-count { background: var(--f-blue-soft); color: var(--f-blue); font-size: 10px; font-weight: 700; border-radius: 8px; padding: 0 6px; }
.f-mi-subj { font-size: 12px; color: var(--f-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-mi-meta { display: flex; gap: 8px; font-size: 10px; color: var(--f-muted); margin-top: 3px; }
.f-empty { color: var(--f-muted); text-align: center; padding: 18px; font-size: 13px; }

/* Kategorie-Chips */
.f-chip {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .2px;
  border-radius: 7px; padding: 2px 8px; text-transform: uppercase;
  background: #eee; color: #555;
}
.f-chip.fcat-reklamation { background: var(--f-red-soft); color: var(--f-red); }
.f-chip.fcat-wunsch { background: var(--f-blue-soft); color: var(--f-blue); }
.f-chip.fcat-bestellfrage { background: var(--f-amber-soft); color: var(--f-amber); }
.f-chip.fcat-setup { background: var(--f-green-soft); color: var(--f-green); }
.f-chip.fcat-software { background: #efe9fd; color: #6d28d9; }
.f-chip.fcat-auszahlung { background: #e0f2f1; color: #0f766e; }
.f-chip.fcat-pending { background: #eee; color: var(--f-muted); }

/* Bühne + Karte */
.f-stage {
  flex: 1; min-width: 0; min-height: 0;
  display: flex; align-items: stretch; justify-content: center; gap: 6px;
  padding: 14px 10px 0;
}
.f-stagecol { display: flex; flex-direction: column; min-width: 0; width: min(880px, 100%); min-height: 0; }
.f-progress { text-align: center; color: var(--f-muted); font-size: 12px; font-weight: 600; padding-bottom: 8px; }
.f-nav {
  align-self: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--f-line); background: var(--f-card); color: var(--f-ink);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--f-shadow);
  transition: all .12s; flex: 0 0 auto;
}
.f-nav:hover:not(:disabled) { transform: scale(1.06); }
.f-nav:disabled { opacity: .25; cursor: default; box-shadow: none; }
.f-card {
  background: var(--f-card); border-radius: var(--f-radius); box-shadow: var(--f-shadow);
  display: flex; flex-direction: column; min-height: 0; overflow-y: auto; flex: 1;
  animation: f-slide-in .16s ease;
}
@keyframes f-slide-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.f-card-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  padding: 20px 24px 12px; flex-wrap: wrap;
}
.f-card-who h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.f-card-who .f-muted { font-size: 12px; }
.f-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.f-status-select {
  border: 1px solid var(--f-line); border-radius: 9px; padding: 5px 9px; font-size: 12px;
  font-weight: 600; background: var(--f-bg);
}
.f-status-select.fst-offen { background: var(--f-amber-soft); color: var(--f-amber); }
.f-status-select.fst-wartet { background: var(--f-blue-soft); color: var(--f-blue); }
.f-status-select.fst-produktion { background: #efe9fd; color: #6d28d9; }
.f-status-select.fst-erledigt { background: var(--f-green-soft); color: var(--f-green); }

.f-warn, .f-known {
  display: flex; align-items: flex-start; gap: 9px; margin: 0 24px 10px;
  padding: 10px 14px; border-radius: 11px; font-size: 13px; line-height: 1.45;
}
.f-warn { background: var(--f-amber-soft); color: var(--f-amber); }
.f-warn.small { font-size: 11px; padding: 6px 10px; margin: 0 0 8px; }
.f-known { background: var(--f-red-soft); color: #9a2418; }
.f-ai {
  display: flex; gap: 10px; align-items: flex-start; margin: 0 24px 12px;
  padding: 11px 14px; background: var(--f-bg); border-radius: 11px; font-size: 13px; line-height: 1.5;
}
.f-ai .vi { color: var(--f-red); margin-top: 1px; }

/* Shopify-Chip + Popover */
.f-shopify { margin: 0 24px 12px; position: relative; }
.f-shopchip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--f-line); border-radius: 11px; background: var(--f-card);
  padding: 8px 13px; font-size: 12.5px; font-weight: 600;
}
.f-shopchip:hover { background: var(--f-bg); }
.f-shoppop {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0;
  background: var(--f-card); border: 1px solid var(--f-line); border-radius: 13px;
  box-shadow: var(--f-shadow); padding: 14px 16px; width: min(420px, 90%);
  font-size: 13px; line-height: 1.5;
}
.f-shop-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.f-shop-price { margin-left: auto; font-weight: 700; }
.f-shop-line { display: flex; gap: 7px; align-items: baseline; margin: 3px 0; flex-wrap: wrap; }
.f-shop-items { margin: 6px 0; padding-left: 18px; }
.f-shop-track a { color: var(--f-blue); }

/* Mail-Body */
.f-card-body { padding: 4px 24px 16px; }
.f-msg-subject { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.f-msg-body { font-size: 14.5px; line-height: 1.62; word-break: break-word; }
.f-msg-body a { color: var(--f-blue); }
.f-msg-body details { margin-top: 8px; }
.f-attachments { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.f-attach-img img { max-width: 180px; max-height: 140px; border-radius: 10px; border: 1px solid var(--f-line); }
.f-attach-file {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--f-line); border-radius: 10px; padding: 7px 12px;
  font-size: 12px; color: var(--f-ink); text-decoration: none; background: var(--f-bg);
}

/* Verlauf */
.f-thread-wrap { border-top: 1px solid var(--f-line); margin-top: auto; }
.f-threadbtn {
  width: 100%; display: flex; align-items: center; gap: 9px;
  padding: 12px 24px; border: none; background: transparent;
  font-size: 13px; font-weight: 600; color: var(--f-muted);
}
.f-threadbtn:hover { color: var(--f-ink); background: var(--f-bg); }
.f-threadbtn .vi:last-child { margin-left: auto; }
.f-thread { padding: 4px 24px 18px; display: flex; flex-direction: column; gap: 12px; }
.f-bubble {
  max-width: 86%; padding: 11px 15px; border-radius: 14px; font-size: 13.5px;
  background: var(--f-bg); align-self: flex-start;
}
.f-bubble.out { background: var(--f-green-soft); align-self: flex-end; }
.f-bubble.current { outline: 2px solid var(--f-ink); }
.f-bubble-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px; font-size: 12px; }
.f-bubble-subj { font-weight: 600; font-size: 12.5px; margin-bottom: 4px; }

/* ---------- Composer-Dock ---------- */
.f-dock {
  margin: 12px 0 14px; background: var(--f-card); border-radius: var(--f-radius);
  box-shadow: var(--f-shadow); padding: 12px 16px; flex: 0 0 auto;
}
.f-dock-meta { display: flex; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.f-dock-meta label { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; flex: 1; min-width: 220px; }
.f-dock-meta input { flex: 1; padding: 7px 10px; border: 1px solid var(--f-line); border-radius: 9px; }
.f-dock-main textarea {
  width: 100%; border: 1px solid var(--f-line); border-radius: 11px; padding: 11px 13px;
  font-size: 14px; line-height: 1.55; resize: vertical; min-height: 86px; background: var(--f-bg);
}
.f-dock-main textarea:focus { outline: none; border-color: var(--f-ink); background: var(--f-card); }
.f-dock-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.f-tool {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--f-line); border-radius: 9px; background: var(--f-card);
  padding: 5px 10px; font-size: 12px; font-weight: 600; color: var(--f-ink);
}
.f-tool:hover:not(:disabled) { background: var(--f-bg); }
.f-tool:disabled { opacity: .45; cursor: default; }
.f-tool .vi { width: 15px; height: 15px; }
.f-pdf input { display: none; }
.f-pdf.active { background: var(--f-blue-soft); border-color: var(--f-blue); color: var(--f-blue); }
.f-spacer { flex: 1; }
.f-dock-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.f-act {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--f-line); border-radius: 11px; background: var(--f-card);
  padding: 9px 15px; font-size: 13px; font-weight: 700; color: var(--f-ink);
  transition: all .12s;
}
.f-act:hover:not(:disabled) { background: var(--f-bg); }
.f-act:disabled { opacity: .5; cursor: default; }
.f-act.primary { background: var(--f-ink); border-color: var(--f-ink); color: #fff; }
.f-act.primary:hover:not(:disabled) { background: #000; }
.f-act.done { background: var(--f-green-soft); border-color: transparent; color: var(--f-green); }
.f-act.ghost { border-color: transparent; color: var(--f-muted); }
.f-act.ghost:hover { color: var(--f-ink); }
.f-act.suggested { box-shadow: 0 0 0 2px var(--f-red); }
.f-result { font-size: 12.5px; font-weight: 600; margin-top: 8px; }
.f-result.ok { color: var(--f-green); }
.f-result.err { color: var(--f-red); }

/* Leerzustand */
.f-stage-empty { align-items: center; }
.f-empty-card { text-align: center; color: var(--f-muted); }
.f-empty-card .vi { width: 44px; height: 44px; opacity: .4; }

/* ---------- Action-Sheet / Modals ---------- */
.f-sheet-backdrop {
  position: fixed; inset: 0; background: rgba(20, 20, 18, .38); z-index: 200;
  display: flex; align-items: flex-end; justify-content: center; padding: 20px;
  backdrop-filter: blur(2px);
}
.f-sheet {
  background: var(--f-card); border-radius: 18px; box-shadow: 0 18px 60px rgba(0,0,0,.25);
  width: min(760px, 100%); max-height: 84vh; overflow-y: auto; padding: 18px 22px;
  animation: f-sheet-up .18s ease;
}
@keyframes f-sheet-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.f-sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 15px; }
.f-sheet-sec { padding: 10px 0; border-top: 1px solid var(--f-line); }
.f-sheet-sec:first-of-type { border-top: none; }
.f-sheet-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--f-muted); margin-bottom: 8px; }
.f-sheet-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.f-sheet-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--f-line); border-radius: 10px; background: var(--f-card);
  padding: 8px 13px; font-size: 12.5px; font-weight: 600; color: var(--f-ink); text-decoration: none;
}
.f-sheet-btn:hover:not(:disabled) { background: var(--f-bg); }
.f-sheet-btn:disabled { opacity: .45; cursor: default; }
.f-sheet-btn.primary { background: var(--f-ink); border-color: var(--f-ink); color: #fff; }
.f-sheet-btn.suggested { box-shadow: 0 0 0 2px var(--f-red); }
.f-picker label { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; font-size: 13px; }
.f-picker input[type="number"] { width: 52px; padding: 4px 6px; border: 1px solid var(--f-line); border-radius: 7px; }
.f-ordersearch { display: inline-flex; }
.f-ordersearch input { width: 120px; padding: 7px 10px; border: 1px solid var(--f-line); border-radius: 10px 0 0 10px; border-right: none; }
.f-ordersearch button { border: 1px solid var(--f-line); border-radius: 0 10px 10px 0; background: var(--f-bg); padding: 0 10px; }
.f-help dl { display: grid; grid-template-columns: 90px 1fr; gap: 7px 14px; margin: 8px 0 4px; font-size: 13px; }
.f-help dt { font-weight: 700; font-family: ui-monospace, monospace; background: var(--f-bg); border-radius: 7px; padding: 2px 8px; text-align: center; }
.f-help dd { margin: 0; align-self: center; }
.f-refund-amount { font-size: 22px; font-weight: 800; margin: 8px 0 2px; }

/* ---------- Seiten (Compose/Adresse/Austausch/Widerruf) ---------- */
.f-page { flex: 1; overflow-y: auto; padding: 22px 18px; display: flex; justify-content: center; align-items: flex-start; }
.f-page .f-card { max-width: 980px; width: 100%; flex: 0 1 auto; overflow: visible; padding: 22px 26px; }
.f-compose { max-width: 760px; }
.f-compose h1, .f-table-card h1 { margin: 0 0 12px; font-size: 19px; display: flex; align-items: center; gap: 9px; }
.f-page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.f-page-head h1 { margin: 0; }
.f-form-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.f-form-row label { width: 60px; font-size: 12px; font-weight: 700; color: var(--f-muted); }
.f-form-row input, .f-form-row select { flex: 1; padding: 9px 12px; border: 1px solid var(--f-line); border-radius: 10px; background: var(--f-bg); }
.f-compose textarea {
  width: 100%; border: 1px solid var(--f-line); border-radius: 11px; padding: 12px 14px;
  font-size: 14px; line-height: 1.55; resize: vertical; background: var(--f-bg); margin-top: 4px;
}
.f-check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }

/* Tabellen */
.f-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.f-table th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .4px;
  color: var(--f-muted); padding: 8px 10px; border-bottom: 1px solid var(--f-line);
}
.f-table td { padding: 9px 10px; border-bottom: 1px solid var(--f-line); vertical-align: top; }
.f-table tr:last-child td { border-bottom: none; }
.f-row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.f-phase { padding: 5px 8px; border: 1px solid var(--f-line); border-radius: 8px; font-size: 12px; background: var(--f-bg); }
.f-replied { color: var(--f-green); font-size: 11px; font-weight: 700; }
.f-inline-panel { background: var(--f-bg); border-radius: 12px; padding: 14px; margin: 4px 0 10px; }
.f-quote { background: var(--f-card); border: 1px solid var(--f-line); border-radius: 9px; padding: 9px 11px; font-size: 12.5px; max-height: 110px; overflow: auto; white-space: pre-line; margin-bottom: 8px; }
.f-ainote { color: var(--f-blue); font-size: 12.5px; margin-bottom: 8px; }
.f-addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; max-width: 540px; margin-bottom: 8px; }
.f-addr-grid input { padding: 8px 10px; border: 1px solid var(--f-line); border-radius: 9px; background: var(--f-card); }
.f-addr-grid input.wide { grid-column: 1 / 3; }
.f-addr-compare { display: flex; gap: 26px; flex-wrap: wrap; font-size: 13px; margin-bottom: 10px; }
.f-mini-thread { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow: auto; }
.f-mini-bubble { padding: 7px 10px; border-radius: 9px; background: var(--f-blue-soft); }
.f-mini-bubble.out { background: var(--f-green-soft); }
.f-mini-snippet { white-space: pre-line; max-height: 88px; overflow: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .f-drawer { position: fixed; left: 0; top: 55px; bottom: 0; z-index: 120; box-shadow: var(--f-shadow); }
  .f-drawer.collapsed { position: static; box-shadow: none; }
  .f-nav { display: none; }
  .f-stage { padding: 10px 8px 0; }
  .f-tabs button span.f-badge { display: none; }
  .f-tabs button { padding: 7px 9px; }
}

/* Kunden-Card: Shopify-Kunde + Match-Qualität (ersetzt den nackten Chip) */
.focus-root .f-custcard {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: var(--f-card); border: 1px solid var(--f-line); border-radius: 12px;
  padding: 10px 14px; cursor: pointer; font-family: inherit; font-size: 13px;
  color: var(--f-ink); /* style.css setzt Buttons global auf weiß */
}
.focus-root .f-custcard:hover { background: var(--f-bg); }
.focus-root .f-cust-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--f-bg);
  display: inline-flex; align-items: center; justify-content: center; color: var(--f-muted); flex: 0 0 auto;
}
.focus-root .f-cust-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.focus-root .f-cust-name { font-weight: 700; font-size: 14px; }
.focus-root .f-cust-order { color: var(--f-muted); white-space: nowrap; }
.focus-root .f-matchbadge {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px;
}
.focus-root .f-matchbadge .vi { width: 12px; height: 12px; }
.focus-root .f-matchbadge.ok { background: #e8f7ee; color: #157347; }
.focus-root .f-matchbadge.warn { background: #fdf0e0; color: #b4610a; }

/* ============ catch-it-Branding: mehr Farbe, mehr Identität ============ */
/* Papier-Ton + das feine Straba-Grid als Hintergrund */
.focus-root {
  background:
    linear-gradient(rgba(27,27,27,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,27,27,.025) 1px, transparent 1px),
    #f6f4ee;
  background-size: 28px 28px, 28px 28px, auto;
}
/* Logo-Badge: schwarzer Kasten, "it" im Marken-Rot */
.focus-root .f-logo {
  display: inline-block; background: var(--f-ink); color: #fff;
  font-weight: 800; letter-spacing: -.3px; padding: 4px 12px; border-radius: 9px;
}
.focus-root .f-logo i { font-style: normal; color: var(--f-red); margin-left: 3px; }
.focus-root .f-brand-sub { color: var(--f-muted); font-weight: 500; }
/* Aktiver Tab in Marken-Rot */
.focus-root .f-tabs button.active { background: var(--f-red); color: #fff; box-shadow: 0 2px 8px rgba(235,57,36,.35); }
/* Fortschritt: aktuelle Position rot */
.focus-root .f-progress b { color: var(--f-red); }
/* Mail-Karte: Akzentkante oben in der Kategoriefarbe */
.focus-root .f-card { border-top: 4px solid var(--f-line); }
.focus-root .f-card.fedge-reklamation { border-top-color: var(--f-red); }
.focus-root .f-card.fedge-wunsch { border-top-color: var(--f-blue); }
.focus-root .f-card.fedge-bestellfrage { border-top-color: #f5b301; }
.focus-root .f-card.fedge-setup { border-top-color: var(--f-green); }
.focus-root .f-card.fedge-software { border-top-color: #6d28d9; }
.focus-root .f-card.fedge-auszahlung { border-top-color: #0f766e; }
/* Verlauf-Bubbles: Kunde im S-Bahn-Blau, wir in Grün */
.focus-root .f-bubble.in { background: #e9f0fe; border-left: 3px solid #034ea2; }
.focus-root .f-bubble.out { border-right: 3px solid var(--f-green); }
/* Kunden-Avatar in Pastellrot */
.focus-root .f-cust-avatar { background: var(--f-red-soft); color: var(--f-red); }
/* Aktive Mail im Drawer mit rotem Rand */
.focus-root .f-mailitem.active { border-color: var(--f-red); box-shadow: 0 2px 8px rgba(235,57,36,.18); }
/* Senden-Button im Marken-Rot */
.focus-root .f-act.primary { background: var(--f-red); color: #fff; border-color: var(--f-red); }
.focus-root .f-act.primary:hover:not(:disabled) { background: #d32d1a; }
/* Navigation: roter Akzent beim Hover */
.focus-root .f-nav:hover:not(:disabled) { border-color: var(--f-red); color: var(--f-red); }
/* KI-Zeile: Sparkles bleibt rot, Zeile bekommt zarten roten Schimmer links */
.focus-root .f-ai { border-left: 3px solid var(--f-red-soft); }

/* ============ Wissen-View ============ */
.focus-root .f-wissenbtn.active { background: var(--f-red); color: #fff; border-color: var(--f-red); }
.focus-root .f-tokenbadge { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.focus-root .f-tokenbadge.ok { background: var(--f-green-soft); color: var(--f-green); }
.focus-root .f-tokenbadge.warn { background: var(--f-amber-soft); color: var(--f-amber); }
.focus-root .f-tokenbadge.hot { background: var(--f-red-soft); color: var(--f-red); }
.focus-root .f-kcard {
  background: var(--f-card); border-radius: var(--f-radius); box-shadow: var(--f-shadow);
  padding: 16px 18px; margin-bottom: 14px;
}
.focus-root .f-kcard h2 { margin: 0 0 10px; font-size: 15px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.focus-root .f-kcard-live { border-top: 4px solid var(--f-blue); }
.focus-root .f-netpre { white-space: pre-wrap; font-family: inherit; font-size: 12.5px; background: var(--f-bg); border-radius: 10px; padding: 10px 12px; margin: 0; color: #444; }
.focus-root .f-kentry { border: 1px solid var(--f-line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.focus-root .f-kentry.inactive { opacity: .45; }
.focus-root .f-kentry.expired { border-color: var(--f-red); }
.focus-root .f-kentry-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.focus-root .f-ktitle { font-weight: 700; font-size: 13px; border: 1px solid transparent; border-radius: 7px; padding: 4px 8px; background: transparent; flex: 1; min-width: 160px; }
.focus-root .f-ktitle:hover, .focus-root .f-ktitle:focus { border-color: var(--f-line); background: var(--f-bg); outline: none; }
.focus-root .f-ktoggle { display: inline-flex; gap: 4px; align-items: center; font-size: 11px; color: var(--f-muted); cursor: pointer; }
.focus-root .f-kdate { font-size: 11px; border: 1px solid var(--f-line); border-radius: 7px; padding: 3px 6px; }
.focus-root .f-kexpired { font-size: 10px; font-weight: 800; color: var(--f-red); text-transform: uppercase; }
.focus-root .f-kcontent { width: 100%; border: 1px solid var(--f-line); border-radius: 8px; padding: 7px 10px; font-size: 13px; resize: vertical; background: #fff; }
.focus-root .f-kcontent:focus { outline: none; border-color: var(--f-red); }
.focus-root .f-knew { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.focus-root .f-knew .f-ktitle { flex: 0 0 200px; border-color: var(--f-line); background: var(--f-bg); }
.focus-root .f-kcontent-inline { flex: 1; min-width: 220px; border: 1px solid var(--f-line); border-radius: 8px; padding: 6px 10px; font-size: 13px; background: var(--f-bg); }
.focus-root .f-iconbtn.small { width: 28px; height: 28px; }
.focus-root .f-iconbtn.danger:hover { border-color: var(--f-red); color: var(--f-red); }
.focus-root .f-okmsg { color: var(--f-green); }
.focus-root .f-errmsg { color: var(--f-red); }
/* Trainboard-Städte-Check-Chip in der Mail-Karte */
.focus-root .f-citycheck {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px;
  border-radius: 10px; padding: 8px 12px; margin: 0 22px 10px;
}
.focus-root .f-citycheck.hit { background: var(--f-green-soft); color: var(--f-green); }
.focus-root .f-citycheck.miss { background: var(--f-bg); color: var(--f-muted); }
.focus-root .f-page-col { flex-direction: column; flex-wrap: nowrap; overflow-y: auto; align-items: stretch; }
.focus-root .f-page-col .f-kcard { width: min(880px, 100%); margin-left: auto; margin-right: auto; flex: 0 0 auto; }
.focus-root .f-page-col > p, .focus-root .f-page-col > .f-page-head { width: min(880px, 100%); margin-left: auto; margin-right: auto; }
