/* flipper-demo.css — réplica pixel-fiel do Flipper Hub.
   - Sidebar: 60px (Icon Rail) + 196px (Secondary Panel) = 256px
   - Drawer slide-up de baixo pra cima
   - Light theme (alinhado ao site marketing)
   - Phosphor icons regular weight via inline SVG */

.fhd-light {
  /* Tokens locais — escopo do app */
  --fhd-bg: #F5F7FA;            /* canvas */
  --fhd-rail: #FFFFFF;          /* icon rail */
  --fhd-panel: #FFFFFF;         /* secondary panel */
  --fhd-surface: #FFFFFF;       /* cards */
  --fhd-surface-2: #F5F7FA;     /* hover / sub-cards */
  --fhd-border: rgba(20, 24, 31, 0.08);
  --fhd-border-strong: rgba(20, 24, 31, 0.14);
  --fhd-text: #14181F;
  --fhd-text-muted: rgba(20, 24, 31, 0.62);
  --fhd-text-subtle: rgba(20, 24, 31, 0.42);
  --fhd-primary: #3A82F6;
  --fhd-primary-bg: rgba(58, 130, 246, 0.12);
  --fhd-primary-fg: #FFFFFF;
  --fhd-success: #12B76A;
  --fhd-success-bg: rgba(18, 183, 106, 0.12);
  --fhd-success-fg: #047A47;
  --fhd-warn: #F59E0B;
  --fhd-warn-bg: rgba(245, 158, 11, 0.14);
  --fhd-warn-fg: #B7740A;
  --fhd-danger: #EF4444;
  --fhd-danger-bg: rgba(239, 68, 68, 0.12);
  --fhd-violet: #7A4FC7;
  --fhd-coin: #E0A828;
  --fhd-coin-bg: rgba(224, 168, 40, 0.16);
}

.fhd-app {
  display: grid;
  grid-template-columns: 60px 196px 1fr;
  background: var(--fhd-bg);
  color: var(--fhd-text);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0;
  text-align: left;
  height: 100%;
  min-height: 0;
  position: relative;
}
.fhd-app:has(.fhd-rail + .fhd-canvas) {
  grid-template-columns: 60px 1fr;
}

/* ── Icon Rail (60px) ──────────────────────────────────────────────────── */
.fhd-rail {
  width: 60px;
  background: var(--fhd-rail);
  border-right: 1px solid var(--fhd-border);
  display: flex; flex-direction: column;
  padding: 12px 0;
  gap: 10px;
}
.fhd-rail-logo {
  appearance: none; border: 0; background: transparent;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  align-self: center;
  border-radius: 8px;
  cursor: pointer;
  transition: background 120ms;
  margin-bottom: 4px;
}
.fhd-rail-logo:hover { background: rgba(20,24,31,0.04); }
.fhd-rail-logo img { width: 26px; height: 26px; border-radius: 6px; }
.fhd-rail-nav {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0 0;
  flex: 1;
}
.fhd-rail-foot { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 8px; border-top: 1px solid var(--fhd-border); }
.fhd-rail-it {
  appearance: none; border: 0; background: transparent;
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--fhd-text-muted);
  position: relative;
  transition: background 120ms, color 120ms;
}
.fhd-rail-it:hover { background: rgba(20,24,31,0.06); color: var(--fhd-text); }
.fhd-rail-it.is-active { background: rgba(20,24,31,0.10); color: var(--fhd-text); }
.fhd-rail-dot {
  position: absolute; top: 7px; right: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--fhd-danger);
  border: 2px solid var(--fhd-rail);
}
.fhd-rail-fhc {
  appearance: none;
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.20);
  color: #F59E0B;
  transition: background 120ms;
}
.fhd-rail-fhc:hover { background: rgba(245, 158, 11, 0.22); }
.fhd-rail-av {
  appearance: none; border: 0;
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  background: linear-gradient(135deg, var(--fhd-primary), var(--fhd-violet));
  color: #fff;
  font-weight: 600; font-size: 12px;
  letter-spacing: 0.04em;
}

/* ── Secondary Panel (196px) ───────────────────────────────────────────── */
.fhd-panel {
  width: 196px;
  background: var(--fhd-panel);
  border-right: 1px solid var(--fhd-border);
  display: flex; flex-direction: column;
  padding: 12px;
  gap: 6px;
  overflow-y: auto;
}
.fhd-panel-h {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px 14px;
  margin-bottom: 4px;
}
.fhd-panel-t {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  color: var(--fhd-text);
  letter-spacing: -0.015em;
}
.fhd-panel-nav { display: flex; flex-direction: column; gap: 1px; }
.fhd-panel-it {
  appearance: none; border: 0; background: transparent;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--fhd-text);
  font-family: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 120ms, color 120ms;
}
.fhd-panel-ic {
  display: flex; align-items: center; justify-content: center;
  color: var(--fhd-text-muted);
  flex-shrink: 0;
}
.fhd-panel-it:hover { background: rgba(20,24,31,0.05); }
.fhd-panel-it:hover .fhd-panel-ic { color: var(--fhd-text); }
.fhd-panel-it.sub {
  font-size: 12px;
  color: var(--fhd-text-muted);
  padding-left: 22px;
  font-weight: 500;
}
.fhd-panel-it.sub .fhd-panel-ic { color: var(--fhd-text-subtle); }
.fhd-panel-it.is-active {
  background: var(--fhd-primary);
  color: var(--fhd-primary-fg);
  font-weight: 600;
}
.fhd-panel-it.is-active .fhd-panel-ic { color: var(--fhd-primary-fg); }
.fhd-panel-it.sub.is-active {
  background: var(--fhd-primary-bg);
  color: var(--fhd-primary);
  font-weight: 600;
}
.fhd-panel-it.sub.is-active .fhd-panel-ic { color: var(--fhd-primary); }

/* ── Canvas ─────────────────────────────────────────────────────────────── */
.fhd-canvas {
  display: flex; flex-direction: column;
  overflow: auto;
  min-height: 0;
  position: relative;
}
.fhd-canvas-body {
  padding: 16px 24px 24px;
  display: flex; flex-direction: column;
  gap: 14px;
}

/* ── PageHeader (espelha components/page-layout/page-header.tsx) ────────── */
.fhd-ph {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 0;
}
.fhd-ph.has-tabs { padding-right: 0; }
.fhd-ph-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fhd-ph-ic {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--fhd-primary-bg);
  color: var(--fhd-primary);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(58, 130, 246, 0.20);
  flex-shrink: 0;
}
.fhd-ph-tt { min-width: 0; overflow: hidden; }
.fhd-ph-t {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--fhd-text);
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fhd-ph-s { font-size: 13px; color: var(--fhd-text-muted); margin-top: 2px; }
.fhd-ph-r { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }

/* PillTabs no header (espelha pill-tabs.tsx) */
.fhd-ph-tabs {
  display: flex; gap: 4px; align-items: center;
  justify-self: center;
  flex-wrap: nowrap;
}
.fhd-ph-tab {
  appearance: none; border: 0; background: transparent;
  position: relative;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: inherit; font-size: 14px; font-weight: 500;
  color: var(--fhd-text-muted);
  cursor: pointer;
  transition: color 120ms;
}
.fhd-ph-tab:hover { color: var(--fhd-text); }
.fhd-ph-tab.is-on {
  color: var(--fhd-primary);
  background: var(--fhd-primary-bg);
  border: 1px solid rgba(58, 130, 246, 0.20);
  padding: 7px 15px;
}

/* ── Toolbar de busca + filtros + Plus quadrado ─────────────────────────── */
.fhd-toolbar {
  display: flex; align-items: center; gap: 8px;
}
.fhd-searchbar {
  flex: 1; min-width: 0;
  height: 48px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--fhd-border);
  background: var(--fhd-surface);
  color: var(--fhd-text-muted);
}
.fhd-searchbar input {
  flex: 1; min-width: 0;
  appearance: none; border: 0; background: transparent;
  font-family: inherit; font-size: 14px;
  color: var(--fhd-text);
  outline: none;
}
.fhd-searchbar input::placeholder { color: var(--fhd-text-subtle); }
.fhd-icon-btn-sq {
  appearance: none; border: 1px solid var(--fhd-border);
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--fhd-surface);
  color: var(--fhd-text-muted);
  cursor: pointer;
  transition: border-color 120ms, color 120ms, background 120ms;
  flex-shrink: 0;
}
.fhd-icon-btn-sq:hover { border-color: var(--fhd-border-strong); color: var(--fhd-text); }
.fhd-btn-primary-sq {
  appearance: none; border: 0;
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--fhd-primary); color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(58, 130, 246, 0.5);
  transition: background 120ms, transform 80ms;
  flex-shrink: 0;
}
.fhd-btn-primary-sq:hover { background: #2A6FE0; }
.fhd-btn-primary-sq:active { transform: scale(0.97); }

/* PillTabs de status (Abertos / Pendente / ...) */
.fhd-pill-tabs {
  display: flex; gap: 4px; align-items: center; flex-wrap: wrap;
}
.fhd-pill-tab {
  appearance: none; border: 0; background: transparent;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--fhd-text-muted);
  cursor: pointer;
  transition: color 120ms, background 120ms;
}
.fhd-pill-tab:hover { color: var(--fhd-text); }
.fhd-pill-tab.is-on {
  color: var(--fhd-primary);
  background: var(--fhd-primary-bg);
  border: 1px solid rgba(58, 130, 246, 0.20);
  padding: 7px 13px;
}

/* Toolbar 2: view-toggle + contador */
.fhd-toolbar2 {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: -4px;
}
.fhd-counter {
  font-size: 13px;
  color: var(--fhd-text-muted);
  font-variant-numeric: tabular-nums;
}

/* Buttons */
.fhd-btn-primary {
  appearance: none; border: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--fhd-primary); color: #fff;
  font-family: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(58, 130, 246, 0.5);
  transition: background 120ms, transform 80ms;
}
.fhd-btn-primary:hover { background: #2A6FE0; }
.fhd-btn-ghost {
  appearance: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px;
  border-radius: 8px;
  background: transparent; border: 1px solid var(--fhd-border);
  color: var(--fhd-text-muted);
  font-family: inherit; font-size: 12px; font-weight: 500;
  cursor: pointer;
  transition: background 120ms, color 120ms;
}
.fhd-btn-ghost:hover { background: rgba(20,24,31,0.05); color: var(--fhd-text); }
.fhd-btn-ghost.sm { padding: 4px 8px; font-size: 11px; }
.fhd-icon-btn {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--fhd-border);
  background: transparent;
  cursor: pointer;
  color: var(--fhd-text-muted);
  transition: background 120ms;
}
.fhd-icon-btn:hover { background: rgba(20,24,31,0.06); color: var(--fhd-text); }

/* ── KPI ────────────────────────────────────────────────────────────────── */
.fhd-grid-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fhd-kpi {
  background: var(--fhd-surface);
  border: 1px solid var(--fhd-border);
  border-radius: 12px;
  padding: 14px 16px;
}
.fhd-kpi-lbl { font-size: 12px; color: var(--fhd-text-muted); }
.fhd-kpi-v {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--fhd-text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.fhd-kpi-sub { margin-top: 4px; font-size: 11px; color: var(--fhd-text-subtle); font-weight: 500; }
.fhd-kpi-sub.pos { color: var(--fhd-success-fg); }

/* ── Cards / charts grid ───────────────────────────────────────────────── */
.fhd-grid-3 { display: grid; grid-template-columns: 1.1fr 0.9fr 0.9fr; gap: 12px; }
.fhd-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fhd-card {
  background: var(--fhd-surface);
  border: 1px solid var(--fhd-border);
  border-radius: 12px;
  padding: 14px 16px;
}
.fhd-card-h {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.fhd-card-t {
  font-size: 13px;
  font-weight: 600;
  color: var(--fhd-text);
}

/* ── Funil ─────────────────────────────────────────────────────────────── */
.fhd-funil {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  height: 140px;
  align-items: end;
  padding-bottom: 22px;
}
.fhd-funil-col {
  display: flex; flex-direction: column; align-items: center;
  height: 100%; justify-content: flex-end;
  position: relative;
  gap: 3px;
}
.fhd-funil-num {
  font-size: 11px; color: var(--fhd-text-muted);
  font-weight: 500;
  min-height: 14px;
}
.fhd-funil-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  min-height: 2px;
}
.fhd-funil-lbl {
  position: absolute; bottom: -18px;
  font-size: 10px; color: var(--fhd-text-subtle);
  text-align: center;
}

/* ── Donut ─────────────────────────────────────────────────────────────── */
.fhd-donut-wrap { display: flex; align-items: center; gap: 16px; padding: 6px 0; }
.fhd-donut { width: 110px; height: 110px; flex-shrink: 0; }
.fhd-donut-leg { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--fhd-text); }
.fhd-donut-leg em { color: var(--fhd-text-muted); font-style: normal; font-size: 11px; }
.lg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }

/* ── Hbar ──────────────────────────────────────────────────────────────── */
.fhd-hbar { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.fhd-hbar-row { display: grid; grid-template-columns: 28px 1fr 38px; gap: 8px; align-items: center; }
.fhd-hbar-lbl { font-size: 12px; font-weight: 600; color: var(--fhd-text-muted); }
.fhd-hbar-track { height: 8px; background: rgba(20,24,31,0.06); border-radius: 999px; overflow: hidden; }
.fhd-hbar-fill { height: 100%; background: linear-gradient(90deg, var(--fhd-primary), #6090F8); border-radius: 999px; }
.fhd-hbar-num { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--fhd-text); text-align: right; }

/* ── Tabs ──────────────────────────────────────────────────────────────── */
.fhd-tabs {
  margin-left: auto;
  display: flex;
  background: rgba(20,24,31,0.06);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}
.fhd-tabs.row { margin-left: 0; align-self: flex-start; }
.fhd-cart-tabs {
  display: flex;
  background: var(--fhd-surface);
  border: 1px solid var(--fhd-border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  width: fit-content;
}
.fhd-tab {
  appearance: none; border: 0; background: transparent;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: inherit; font-size: 12px; font-weight: 500;
  color: var(--fhd-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 120ms, color 120ms;
}
.fhd-tab.is-on {
  background: var(--fhd-primary);
  color: #fff;
  font-weight: 600;
}
.fhd-tab.pill { padding: 6px 14px; font-size: 12px; }

/* ── View toggle ───────────────────────────────────────────────────────── */
.fhd-view-toggle {
  display: flex; gap: 0;
  border: 1px solid var(--fhd-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--fhd-surface);
}
.fhd-view-toggle button {
  appearance: none; border: 0; background: transparent;
  padding: 7px 9px;
  cursor: pointer;
  color: var(--fhd-text-muted);
  display: flex; align-items: center;
  transition: background 120ms, color 120ms;
}
.fhd-view-toggle button.is-on { background: var(--fhd-primary-bg); color: var(--fhd-primary); }

/* ── Property cards ────────────────────────────────────────────────────── */
.fhd-pcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.fhd-pcard {
  appearance: none; border: 1px solid var(--fhd-border);
  background: var(--fhd-surface);
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 120ms, transform 160ms ease;
}
.fhd-pcard:hover { border-color: rgba(58, 130, 246, 0.45); transform: translateY(-2px); }
.fhd-pcard-img {
  position: relative;
  height: 110px;
  background: linear-gradient(135deg, rgba(58,130,246,0.18), rgba(122,79,199,0.18));
  display: flex; align-items: center; justify-content: center;
  color: rgba(20,24,31,0.55);
}
.fhd-pcard-st { position: absolute; top: 10px; left: 10px; }
.fhd-pcard-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.fhd-pcard-id { font-size: 11px; color: var(--fhd-text-subtle); font-variant-numeric: tabular-nums; }
.fhd-pcard-t { font-size: 14px; color: var(--fhd-text); font-weight: 600; letter-spacing: -0.005em; line-height: 1.25; }
.fhd-pcard-loc { font-size: 12px; color: var(--fhd-text-muted); }
.fhd-pcard-specs {
  display: flex; gap: 12px;
  font-size: 11px; color: var(--fhd-text-muted);
  margin-top: 2px;
}
.fhd-pcard-specs span { display: inline-flex; align-items: center; gap: 4px; }
.fhd-pcard-flows {
  display: flex; gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.fhd-flow-pill {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(20,24,31,0.06);
  color: var(--fhd-text-muted);
  text-transform: uppercase;
}
.fhd-flow-pill.flow-done { background: var(--fhd-success-bg); color: var(--fhd-success-fg); }
.fhd-flow-pill.flow-doing { background: var(--fhd-warn-bg); color: var(--fhd-warn-fg); }
.fhd-flow-pill.flow-pend { background: rgba(20,24,31,0.04); color: var(--fhd-text-subtle); }
.fhd-flow-more {
  font-size: 9px; font-weight: 700;
  padding: 2px 6px;
  color: var(--fhd-text-subtle);
}
.fhd-pcard-foot {
  display: flex; align-items: center; gap: 8px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--fhd-border);
}
.fhd-pcard-progress { font-size: 11px; color: var(--fhd-text-muted); }
.fhd-pcard-margin { font-size: 12px; font-weight: 700; margin-left: auto; }
.fhd-pcard-margin.pos { color: var(--fhd-success-fg); }
.fhd-pcard-av {
  width: 24px; height: 24px;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px; font-weight: 600;
  letter-spacing: 0.04em;
}
.fhd-pcard-av.sm { width: 22px; height: 22px; font-size: 9px; }
.fhd-pcard-tic {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--fhd-primary-bg);
  color: var(--fhd-primary);
  display: flex; align-items: center; justify-content: center;
}

/* ── Tabela (Lista view) ───────────────────────────────────────────────── */
.fhd-table {
  background: var(--fhd-surface);
  border: 1px solid var(--fhd-border);
  border-radius: 12px;
  overflow: hidden;
}
.fhd-table-h, .fhd-table-r {
  display: grid;
  grid-template-columns: 56px minmax(220px, 1.5fr) 130px 1fr 56px 28px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}
.fhd-table-h {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fhd-text-subtle);
  font-weight: 700;
  background: rgba(20,24,31,0.02);
  border-bottom: 1px solid var(--fhd-border);
}
.fhd-table-r {
  appearance: none; border: 0;
  border-bottom: 1px solid var(--fhd-border);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 120ms;
}
.fhd-table-r:last-child { border-bottom: 0; }
.fhd-table-r:hover { background: rgba(20,24,31,0.03); }
.td-id { font-size: 12px; color: var(--fhd-text-muted); font-variant-numeric: tabular-nums; }
.td-nm { display: flex; align-items: center; gap: 12px; min-width: 0; }
.td-cv { color: var(--fhd-text-subtle); display: flex; justify-content: flex-end; }
.td-lc { font-size: 12px; color: var(--fhd-text); }

/* ── Pílulas de status ─────────────────────────────────────────────────── */
.fhd-pill {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(20,24,31,0.06); color: var(--fhd-text);
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px;
}
.fhd-pill.st-pendente     { background: rgba(20,24,31,0.06); color: var(--fhd-text-muted); }
.fhd-pill.st-em-andamento { background: var(--fhd-primary-bg); color: var(--fhd-primary); }
.fhd-pill.st-pausado      { background: var(--fhd-warn-bg); color: var(--fhd-warn-fg); }
.fhd-pill.st-concluido    { background: var(--fhd-success-bg); color: var(--fhd-success-fg); }
.fhd-pill.st-cancelado    { background: var(--fhd-danger-bg); color: #FCA5A5; }
.t-pill {
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
  background: var(--fhd-primary-bg); color: var(--fhd-primary);
  flex-shrink: 0;
  white-space: nowrap;
}
.t-pill.warn { background: var(--fhd-warn-bg); color: var(--fhd-warn-fg); }
.t-pill.pos { background: var(--fhd-success-bg); color: var(--fhd-success-fg); }

/* ── Tarefas / decisões / propostas ────────────────────────────────────── */
.fhd-todo { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.fhd-todo li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: rgba(20,24,31,0.03);
  border: 1px solid var(--fhd-border);
  border-radius: 8px;
  font-size: 12px; color: var(--fhd-text);
  line-height: 1.4;
}
.fhd-todo li.done { opacity: 0.5; }
.fhd-todo li.done .fhd-todo-t { text-decoration: line-through; }
.fhd-todo-check {
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--fhd-border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: transparent;
}
.fhd-todo li.done .fhd-todo-check { background: var(--fhd-success); border-color: var(--fhd-success); color: #fff; }
.fhd-todo-pin {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--fhd-primary-bg);
  color: var(--fhd-primary);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fhd-todo-warn {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--fhd-warn-bg);
  color: var(--fhd-warn-fg);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-weight: 700; font-size: 12px;
}
.fhd-todo-t { flex: 1; min-width: 0; }

/* ── Drawer slide-up ───────────────────────────────────────────────────── */
.fhd-drawer-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: 50;
  display: flex; align-items: flex-end;
  animation: fhdFadeIn 200ms ease;
}
.fhd-drawer {
  width: 100%;
  max-height: 92%;
  background: var(--fhd-bg);
  border-top: 1px solid var(--fhd-border);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -16px 48px rgba(0,0,0,0.55), 0 -2px 12px rgba(0,0,0,0.35);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: fhdSlideUp 360ms cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes fhdFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fhdSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.fhd-drawer-h {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 16px 20px 12px;
  gap: 12px;
  border-bottom: 1px solid var(--fhd-border);
}
.fhd-drawer-hl { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.fhd-drawer-ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--fhd-primary-bg);
  border: 1px solid rgba(58, 130, 246, 0.20);
  color: var(--fhd-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fhd-drawer-id { font-size: 11px; color: var(--fhd-text-subtle); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.fhd-drawer-t {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: var(--fhd-text);
  margin: 2px 0 2px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.fhd-drawer-s { font-size: 12px; color: var(--fhd-text-muted); }
.fhd-drawer-hr { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.fhd-drawer-tabs {
  display: flex; gap: 2px;
  padding: 10px 20px;
  background: rgba(20,24,31,0.02);
  border-bottom: 1px solid var(--fhd-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.fhd-drawer-tabs::-webkit-scrollbar { display: none; }
.fhd-drawer-body {
  padding: 16px 20px 24px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
}

/* ── Steps bar (Pendente → Em Andamento → Concluído) ──────────────────── */
.fhd-steps {
  display: flex; align-items: center; gap: 0;
  padding: 6px 4px;
  background: var(--fhd-surface);
  border: 1px solid var(--fhd-border);
  border-radius: 12px;
  padding: 12px 18px;
}
.fhd-step {
  appearance: none; border: 0; background: transparent;
  display: flex; align-items: center; gap: 8px;
  padding: 0;
  flex: 1;
  cursor: pointer;
  position: relative;
  font-family: inherit;
}
.fhd-step:not(:last-child)::after {
  content: ''; flex: 1; height: 2px; background: var(--fhd-border-strong); margin: 0 8px;
  border-radius: 999px;
}
.fhd-step.done:not(:last-child)::after { background: var(--fhd-success); }
.fhd-step-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--fhd-border-strong);
  flex-shrink: 0;
}
.fhd-step.done .fhd-step-dot { background: var(--fhd-success); }
.fhd-step.cur .fhd-step-dot {
  background: var(--fhd-primary);
  box-shadow: 0 0 0 4px rgba(58, 130, 246, 0.20);
}
.fhd-step-lbl { font-size: 12px; color: var(--fhd-text-muted); font-weight: 500; }
.fhd-step.done .fhd-step-lbl { color: var(--fhd-success-fg); }
.fhd-step.cur .fhd-step-lbl { color: var(--fhd-primary); font-weight: 600; }

/* ── Stat row dentro do drawer ─────────────────────────────────────────── */
.fhd-stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.fhd-stat-row.lg {
  background: var(--fhd-surface);
  border: 1px solid var(--fhd-border);
  border-radius: 12px;
  padding: 14px 16px;
}
.fhd-stat-l { font-size: 11px; color: var(--fhd-text-muted); }
.fhd-stat-v {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600;
  color: var(--fhd-text);
  margin-top: 2px;
  letter-spacing: -0.01em;
}
.fhd-stat-v.pos { color: var(--fhd-success-fg); }

/* Details grid */
.fhd-det-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Progress bar */
.fhd-pbar { height: 8px; background: rgba(20,24,31,0.06); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.fhd-pbar-fill { height: 100%; background: linear-gradient(90deg, var(--fhd-primary), #6090F8); border-radius: 999px; }
.fhd-pbar-meta {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--fhd-text-muted);
  margin-top: 6px;
}

/* Timeline */
.fhd-tline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.fhd-tline li { display: flex; align-items: flex-start; gap: 12px; position: relative; }
.fhd-tline li > span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--fhd-border-strong);
  margin-top: 6px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.fhd-tline li:not(:last-child)::before {
  content: ''; position: absolute;
  top: 16px; left: 4.5px; width: 1px;
  bottom: -10px; background: var(--fhd-border);
}
.fhd-tline li.done > span { background: var(--fhd-success); }
.fhd-tline li.cur > span {
  background: var(--fhd-primary);
  box-shadow: 0 0 0 4px rgba(58, 130, 246, 0.20);
}
.fhd-tline li b { display: block; font-size: 12px; color: var(--fhd-text); font-weight: 600; }
.fhd-tline li em { font-style: normal; font-size: 11px; color: var(--fhd-text-muted); }

/* Spec list */
.fhd-spec {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  margin: 0;
}
.fhd-spec > div {
  display: grid; grid-template-columns: 160px 1fr;
  padding: 8px 0;
  border-bottom: 1px solid var(--fhd-border);
}
.fhd-spec > div:nth-last-child(-n+2) { border-bottom: 0; }
.fhd-spec dt { font-size: 12px; color: var(--fhd-text-muted); margin: 0; }
.fhd-spec dd { font-size: 12px; color: var(--fhd-text); font-weight: 500; margin: 0; }

/* Flow list (Fluxos tab) */
.fhd-flow-list { display: flex; flex-direction: column; gap: 6px; }
.fhd-flow-row {
  display: grid; grid-template-columns: 1fr 130px 130px;
  align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(20,24,31,0.03);
  border: 1px solid var(--fhd-border);
}
.fhd-flow-l { display: flex; align-items: center; gap: 10px; }
.fhd-flow-ic {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--fhd-surface-2);
  color: var(--fhd-text-muted);
  display: flex; align-items: center; justify-content: center;
}
.fhd-flow-tipo { font-size: 12px; color: var(--fhd-text); font-weight: 500; }
.fhd-flow-data { font-size: 11px; color: var(--fhd-text-muted); text-align: right; }

/* Financeiro extrato */
.fhd-fin { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.fhd-fin li {
  display: grid; grid-template-columns: 60px 110px 1fr 100px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--fhd-border);
  font-size: 12px;
}
.fhd-fin li:last-child { border-bottom: 0; }
.fhd-fin-d { color: var(--fhd-text-muted); font-variant-numeric: tabular-nums; }
.fhd-fin-c {
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px;
  background: rgba(20,24,31,0.05);
  color: var(--fhd-text-muted);
  letter-spacing: 0.04em; text-transform: uppercase;
  width: fit-content;
}
.fhd-fin-t { color: var(--fhd-text); }
.fhd-fin-v { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; color: var(--fhd-text); }
.fhd-fin-v.neg { color: #FCA5A5; }
.fhd-fin-v.pos { color: var(--fhd-success-fg); }

/* Participantes */
.fhd-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.fhd-person {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: rgba(20,24,31,0.03);
  border: 1px solid var(--fhd-border);
  border-radius: 8px;
}
.fhd-person-av {
  width: 36px; height: 36px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.fhd-person-n { font-size: 13px; color: var(--fhd-text); font-weight: 600; }
.fhd-person-r { font-size: 11px; color: var(--fhd-text-muted); margin-top: 1px; }

/* Histórico */
.fhd-hist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.fhd-hist li {
  display: flex; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--fhd-border);
}
.fhd-hist li:last-child { border-bottom: 0; }
.fhd-hist-av {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--fhd-surface-2);
  color: var(--fhd-text);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.fhd-hist-body { display: flex; flex-direction: column; gap: 2px; }
.fhd-hist-acao { font-size: 12px; color: var(--fhd-text); line-height: 1.45; }
.fhd-hist-acao strong { font-weight: 600; }
.fhd-hist-meta { color: var(--fhd-text-muted); }
.fhd-hist-quando { font-size: 11px; color: var(--fhd-text-subtle); }

/* Placeholders */
.fhd-placeholder {
  background: var(--fhd-surface);
  border: 1px dashed var(--fhd-border-strong);
  border-radius: 12px;
  padding: 60px 24px;
  text-align: center;
  color: var(--fhd-text-muted);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.fhd-placeholder-ic {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--fhd-primary-bg);
  color: var(--fhd-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.fhd-placeholder-t { font-size: 14px; color: var(--fhd-text); font-weight: 600; }
.fhd-placeholder-s { font-size: 12px; color: var(--fhd-text-muted); max-width: 360px; }
.fhd-empty-t { font-size: 12px; color: var(--fhd-text-muted); padding: 16px 0; text-align: center; }

/* ── Mobile ────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .fhd-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .fhd-grid-kpi { grid-template-columns: repeat(2, 1fr); }
  .fhd-stat-row { grid-template-columns: repeat(2, 1fr); }
  .fhd-det-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .fhd-app { grid-template-columns: 60px 1fr; min-height: 0; }
  .fhd-panel { display: none; }
  .fhd-grid-kpi, .fhd-stat-row, .fhd-stat-row.lg { grid-template-columns: 1fr; }
  .fhd-canvas-body { padding: 8px 16px 20px; }
  .fhd-search { padding: 12px 16px 8px; }
  .fhd-table-h { display: none; }
  .fhd-table-r { grid-template-columns: 1fr; gap: 4px; padding: 12px; }
  .fhd-table-r .td-id, .fhd-table-r .td-cv { display: none; }
  .fhd-spec { grid-template-columns: 1fr; }
  .fhd-spec > div:nth-last-child(2) { border-bottom: 1px solid var(--fhd-border); }
  .fhd-drawer { max-height: 96%; }
}

/* ── Garimpo Leilões + Leads Kanban ─────────────────────────────────────── */

/* Header title with caret dropdown */
.fhl-title-row { display: inline-flex; align-items: center; gap: 8px; color: var(--fhd-text-muted); }
.fhl-title-row svg { color: var(--fhd-text-subtle); }

/* Toolbar 2 — chip buttons (Cards / Data Inclusão / Kanban) + counter pill */
.fhd-toolbar2-l { display: flex; align-items: center; gap: 8px; }
.fhd-toolbar2-r { display: flex; align-items: center; gap: 8px; }
.fhd-chip-btn {
  appearance: none;
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--fhd-surface);
  border: 1px solid var(--fhd-border);
  color: var(--fhd-text);
  font-family: inherit; font-size: 12px; font-weight: 500;
  cursor: pointer;
}
.fhd-chip-btn:hover { border-color: var(--fhd-border-strong); }
.fhd-chip-btn-on { background: var(--fhd-primary-bg); border-color: rgba(58, 130, 246, 0.20); color: var(--fhd-primary); font-weight: 600; }
.fhd-counter-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--fhd-primary-bg);
  color: var(--fhd-primary);
  font-size: 12px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.fhd-counter-pill span { color: var(--fhd-text-muted); font-weight: 500; }
.fhd-icon-btn-ghost {
  appearance: none; border: 0; background: transparent;
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--fhd-text-muted);
  cursor: pointer;
}
.fhd-icon-btn-ghost:hover { background: rgba(20,24,31,0.05); color: var(--fhd-text); }

/* Filter button "active" state (filled blue) */
.fhd-icon-btn-sq.fhd-filter-on {
  background: var(--fhd-primary);
  color: #fff;
  border-color: transparent;
  position: relative;
}
.fhd-icon-btn-sq.fhd-filter-on:hover { background: #2A6FE0; }
.fhd-filter-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  background: #fff; color: var(--fhd-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  border: 2px solid var(--fhd-bg);
}

/* Searchbar with active chip inside */
.fhd-searchbar-chips { padding-left: 8px; gap: 8px; }
.fhd-chip-active {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px;
  background: rgba(20,24,31,0.06);
  border-radius: 6px;
  font-size: 12px; font-weight: 500;
  color: var(--fhd-text);
  flex-shrink: 0;
}
.fhd-chip-active svg { color: var(--fhd-text-muted); cursor: pointer; }

/* ── Cards de leilão (espelha components/leiloes/leilao-card.tsx) ───────── */
.fhl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 12px;
}
.fhl-card {
  display: flex; flex-direction: column;
  background: var(--fhd-surface);
  border: 1px solid var(--fhd-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 200ms, box-shadow 200ms, border-color 200ms;
  box-shadow: 0 1px 2px rgba(20,24,31,0.04);
}
.fhl-card:hover {
  transform: scale(1.02);
  border-color: var(--fhd-border-strong);
  box-shadow: 0 8px 24px rgba(20,24,31,0.10);
}
.fhl-img-wrap {
  position: relative;
  height: 160px;
  background: var(--fhd-surface-2);
  overflow: hidden;
}
.fhl-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.fhl-img-badge {
  position: absolute; top: 8px; left: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--fhd-text);
  border-radius: 4px;
  font-size: 11px; font-weight: 500;
  backdrop-filter: blur(4px);
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms, color 120ms;
}
.fhl-img-badge:hover { background: var(--fhd-primary); color: #fff; }
.fhl-img-bottom {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  z-index: 2;
}
.fhl-img-type {
  display: inline-flex; align-items: center;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--fhd-text);
  border-radius: 4px;
  font-size: 11px; font-weight: 500;
  backdrop-filter: blur(4px);
}
.fhl-img-actions {
  display: inline-flex; gap: 0;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  padding: 1px;
  backdrop-filter: blur(4px);
}
.fhl-img-actions button {
  appearance: none; border: 0; background: transparent;
  width: 22px; height: 22px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(20,24,31,0.55);
  cursor: pointer;
  transition: background 120ms, color 120ms;
}
.fhl-img-actions button:hover { background: rgba(20,24,31,0.08); color: #14181F; }
.fhl-body {
  padding: 12px 12px 0;
  display: flex; flex-direction: column; gap: 4px;
  min-height: 80px;
}
.fhl-t-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.fhl-t {
  font-size: 14px; font-weight: 500;
  color: var(--fhd-text);
  letter-spacing: -0.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0; flex: 1;
}
.fhl-disc {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 4px;
  background: #10B981; color: #fff;
  font-size: 11px; font-weight: 600;
  letter-spacing: -0.01em;
}
.fhl-desc {
  font-size: 12px;
  color: var(--fhd-text-muted);
  line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fhl-end {
  font-size: 12px;
  color: var(--fhd-text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fhl-specs {
  display: flex; gap: 12px;
  font-size: 12px;
  color: var(--fhd-text);
  margin-top: 2px;
}
.fhl-specs span { display: inline-flex; align-items: center; gap: 4px; }
.fhl-specs svg { color: var(--fhd-text-muted); }
.fhl-prices {
  margin: 8px 12px 0;
  padding-top: 8px;
  border-top: 1px solid var(--fhd-border);
  display: flex; flex-direction: column; gap: 8px;
}
.fhl-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.fhl-price-row.past .fhl-price-lbl,
.fhl-price-row.past .fhl-price-v,
.fhl-price-row.past .fhl-price-date {
  color: var(--fhd-text-subtle);
  text-decoration: line-through;
}
.fhl-price-lbl-block { display: flex; flex-direction: column; gap: 2px; }
.fhl-price-lbl { font-size: 13px; font-weight: 500; color: var(--fhd-text); }
.fhl-price-date { font-size: 11px; color: var(--fhd-text-muted); font-variant-numeric: tabular-nums; line-height: 1.3; }
.fhl-price-v {
  font-size: 13px; font-weight: 600;
  color: var(--fhd-text);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.fhl-foot {
  padding: 10px 12px 10px;
  margin-top: auto;
  font-size: 10px;
  color: var(--fhd-text-subtle);
}

/* ── Kanban Leads ─────────────────────────────────────────────────────── */
.fhk-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 14px;
  align-items: start;
}
.fhk-col {
  display: flex; flex-direction: column;
  min-height: 480px;
  border-radius: 12px;
  overflow: hidden;
}
.fhk-col[data-color="warn"]    { background: rgba(245, 158, 11, 0.06); }
.fhk-col[data-color="cyan"]    { background: rgba(6, 182, 212, 0.06); }
.fhk-col[data-color="success"] { background: rgba(16, 185, 129, 0.06); }
.fhk-col-h {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px 14px;
  border-top: 3px solid;
}
.fhk-col-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.fhk-col-l {
  flex: 1;
  font-weight: 600;
  font-size: 13px;
  color: var(--fhd-text);
  letter-spacing: -0.01em;
}
.fhk-col-c {
  font-size: 13px; font-weight: 500;
  color: var(--fhd-text-muted);
  font-variant-numeric: tabular-nums;
}
.fhk-col-body {
  padding: 0 12px 16px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.fhk-empty {
  padding: 32px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--fhd-text-subtle);
  font-size: 12px;
}
.fhk-empty-ic {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(20,24,31,0.04);
  display: flex; align-items: center; justify-content: center;
  color: var(--fhd-text-subtle);
}
.fhk-card {
  background: #fff;
  border: 1px solid var(--fhd-border);
  border-radius: 10px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  cursor: pointer;
  transition: border-color 120ms, box-shadow 120ms, transform 120ms;
  box-shadow: 0 1px 2px rgba(20,24,31,0.04);
}
.fhk-card:hover { border-color: var(--fhd-border-strong); box-shadow: 0 4px 12px rgba(20,24,31,0.06); transform: translateY(-1px); }
.fhk-h {
  display: grid; grid-template-columns: auto 1fr 44px;
  align-items: start; gap: 8px;
  margin-bottom: -2px;
}
.fhk-id {
  font-size: 13px; font-weight: 500;
  color: var(--fhd-text-subtle);
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.fhk-t {
  font-size: 13px; font-weight: 700;
  color: var(--fhd-text);
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.fhk-thumb {
  width: 44px; height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--fhd-border);
}
.fhk-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px; font-weight: 500;
  width: fit-content;
}
.fhk-st-warn    { background: rgba(245, 158, 11, 0.14); color: #B7740A; }
.fhk-st-success { background: rgba(18, 183, 106, 0.14); color: #047A47; }
.fhk-st-orange  { background: rgba(245, 158, 11, 0.14); color: #B7740A; }
.fhk-row {
  display: flex; flex-direction: column; gap: 4px;
}
.fhk-row-lbl {
  font-size: 12px; font-weight: 400;
  color: var(--fhd-text-muted);
  letter-spacing: 0;
  text-transform: none;
}
.fhk-row-v {
  font-size: 13px;
  color: var(--fhd-text);
  display: inline-flex; align-items: center; gap: 6px;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.fhk-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.fhk-pill {
  padding: 3px 10px;
  background: rgba(20,24,31,0.05);
  border-radius: 6px;
  font-size: 12px;
  color: var(--fhd-text);
  font-weight: 400;
}
.fhk-link {
  color: var(--fhd-primary);
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
}
.fhk-link svg { color: var(--fhd-primary); }
.fhk-av {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 10px; font-weight: 700;
  flex-shrink: 0;
}
