/* ═══════════════════════════════════════════════════════════════
   IEJA Project Manager — Public CSS v1.0.0
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────── */
.ieja-pub-wrap {
  --ieja-primary:       #4f46e5;
  --ieja-primary-dark:  #4338ca;
  --ieja-primary-hover: #4338ca;
  --ieja-primary-light: #eef2ff;
  --ieja-success-light: #dcfce7;
  --ieja-danger-light:  #fee2e2;
  --ieja-warning-light: #fef3c7;
  --ieja-info-light:    #dbeafe;
  --ieja-border-hover:  #cbd5e1;
  --ieja-bg:           #F8FAFC;
  --ieja-surface:      #FFFFFF;
  --ieja-border:       #E2E8F0;
  --ieja-text:         #1E293B;
  --ieja-text-muted:   #64748B;
  --ieja-text-light:   #94A3B8;
  --ieja-shadow:       0 4px 6px -1px rgba(0,0,0,.08);
  --ieja-radius:       12px;
  --ieja-font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  font-family: var(--ieja-font);
  color: var(--ieja-text);
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}
.ieja-pub-wrap * { box-sizing: border-box; }

/* Dark theme */
.ieja-theme-dark {
  --ieja-bg:        #0F172A;
  --ieja-surface:   #1E293B;
  --ieja-border:    #334155;
  --ieja-text:      #F1F5F9;
  --ieja-text-muted:#94A3B8;
  --ieja-text-light:#64748B;
}
.ieja-theme-dark .ieja-pub-header { background: var(--ieja-surface); }
.ieja-theme-dark .ieja-pub-card   { background: var(--ieja-surface); border-color: var(--ieja-border); }

/* ── Project Header ─────────────────────────────────────────── */
.ieja-pub-header {
  background: var(--ieja-surface);
  border: 1px solid var(--ieja-border);
  border-radius: var(--ieja-radius);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--ieja-shadow);
}
.ieja-pub-header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ieja-pub-project-info { display: flex; gap: 14px; align-items: flex-start; }
.ieja-pub-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.ieja-pub-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--ieja-text);
  line-height: 1.2;
}
.ieja-pub-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ieja-pub-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.ieja-pub-meta-item { font-size: 13px; color: var(--ieja-text-muted); }
.ieja-pub-stats { display: flex; gap: 20px; flex-shrink: 0; }
.ieja-pub-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ieja-pub-stat-n { font-size: 24px; font-weight: 800; color: var(--ieja-text); line-height: 1; }
.ieja-pub-stat-l { font-size: 11px; color: var(--ieja-text-muted); text-transform: uppercase; letter-spacing:.04em; }
.ieja-pub-excerpt {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--ieja-text-muted);
  line-height: 1.6;
  padding-top: 12px;
  border-top: 1px solid var(--ieja-border);
}

/* ── Timeline ───────────────────────────────────────────────── */
.ieja-pub-timeline { padding: 8px 0 40px; }

.ieja-pub-item {
  display: flex;
  gap: 20px;
  opacity: 0;
  animation: ieja-pub-appear 0.5s ease forwards;
}
@keyframes ieja-pub-appear {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ieja-pub-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
  padding-top: 6px;
}
.ieja-pub-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--ieja-surface);
  z-index: 1;
  position: relative;
}
.ieja-pub-line {
  width: 2px;
  flex: 1;
  min-height: 32px;
  background: var(--ieja-border);
  margin-top: 4px;
}

/* ── Timeline Card ──────────────────────────────────────────── */
.ieja-pub-card {
  flex: 1;
  background: var(--ieja-surface);
  border: 1px solid var(--ieja-border);
  border-radius: var(--ieja-radius);
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: var(--ieja-shadow);
  transition: box-shadow .2s ease, transform .2s ease;
}
.ieja-pub-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  transform: translateX(4px);
}
.ieja-pub-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.ieja-pub-card-date { display: flex; align-items: baseline; gap: 8px; }
.ieja-pub-date-main { font-size: 13px; font-weight: 600; color: var(--ieja-text-muted); }
.ieja-pub-date-time { font-size: 12px; color: var(--ieja-text-light); }
.ieja-pub-act-status {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
}
.ieja-pub-card-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--ieja-text);
  line-height: 1.3;
}
.ieja-pub-card-desc {
  font-size: 14px;
  color: var(--ieja-text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.ieja-pub-card-desc p { margin: 0 0 6px; }
.ieja-pub-card-user {
  font-size: 12px;
  color: var(--ieja-text-light);
  margin-bottom: 10px;
}

/* ── Attachments ────────────────────────────────────────────── */
.ieja-pub-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--ieja-border);
}
.ieja-pub-image-link { display: block; border-radius: 8px; overflow: hidden; }
.ieja-pub-img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform .2s ease;
  display: block;
}
.ieja-pub-img:hover { transform: scale(1.04); }
.ieja-pub-file-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--ieja-bg);
  border: 1px solid var(--ieja-border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--ieja-primary);
  text-decoration: none;
  transition: background .2s;
}
.ieja-pub-file-link:hover { background: var(--ieja-border); }

/* ── Empty State ────────────────────────────────────────────── */
.ieja-pub-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ieja-text-muted);
}
.ieja-pub-empty span { font-size: 48px; display: block; margin-bottom: 12px; }
.ieja-pub-empty p { font-size: 15px; }
.ieja-pub-empty-msg { color: var(--ieja-text-muted); font-size: 14px; }

/* ── Projects Grid ──────────────────────────────────────────── */
.ieja-pub-projects-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .ieja-pub-projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ieja-pub-projects-grid { grid-template-columns: 1fr; } }

.ieja-pub-project-card {
  background: var(--ieja-surface);
  border: 1px solid var(--ieja-border);
  border-radius: var(--ieja-radius);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: var(--ieja-shadow);
  transition: box-shadow .25s, transform .25s;
  opacity: 0;
  animation: ieja-pub-appear 0.5s ease forwards;
}
.ieja-pub-project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.ieja-pub-pc-thumb img { width: 100%; height: 160px; object-fit: cover; display: block; }
.ieja-pub-pc-color { height: 4px; }
.ieja-pub-pc-body { padding: 16px; flex: 1; }
.ieja-pub-pc-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ieja-text);
  margin: 0 0 8px;
}
.ieja-pub-pc-body p { font-size: 13px; color: var(--ieja-text-muted); margin-bottom: 12px; line-height: 1.5; }
.ieja-pub-pc-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.ieja-pub-date-small { font-size: 12px; color: var(--ieja-text-muted); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .ieja-pub-header-inner { flex-direction: column; }
  .ieja-pub-item { gap: 12px; }
  .ieja-pub-title { font-size: 18px; }
  .ieja-pub-card { padding: 14px; }
  .ieja-pub-card-title { font-size: 15px; }
}

/* ════════════════════════════════════════════════════════════════
   IEJA Front Page SPA — Template full-width (width: 100%)
   Usado quando a página "IEJA Projetos" é selecionada em
   Configurações → Leitura → Página estática → Página inicial
   ════════════════════════════════════════════════════════════════ */

:root {
  --ieja-fp-primary:      #4F46E5;
  --ieja-fp-primary-dark: #4338CA;
  --ieja-fp-primary-lt:   #EEF2FF;
  --ieja-fp-success:      #10B981;
  --ieja-fp-danger:       #EF4444;
  --ieja-fp-warning:      #F59E0B;
  --ieja-fp-info:         #3B82F6;
  --ieja-fp-bg:           #F1F5F9;
  --ieja-fp-surface:      #FFFFFF;
  --ieja-fp-border:       #E2E8F0;
  --ieja-fp-text:         #1E293B;
  --ieja-fp-muted:        #64748B;
  --ieja-fp-light:        #94A3B8;
  --ieja-fp-shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --ieja-fp-shadow-md:    0 4px 12px rgba(0,0,0,.1);
  --ieja-fp-radius:       12px;
  --ieja-fp-radius-sm:    8px;
  --ieja-fp-font:         -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
}

/* Dark mode */
.ieja-fp-dark {
  --ieja-fp-bg:      #0F172A;
  --ieja-fp-surface: #1E293B;
  --ieja-fp-border:  #334155;
  --ieja-fp-text:    #F1F5F9;
  --ieja-fp-muted:   #94A3B8;
  --ieja-fp-light:   #64748B;
  --ieja-fp-primary-lt: #1E1B4B;
}

/* Base */
.ieja-front-page-body {
  margin: 0;
  padding: 0;
  background: var(--ieja-fp-bg);
  font-family: var(--ieja-fp-font);
  color: var(--ieja-fp-text);
}

#ieja-front-page,
.ieja-fp-wrap {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ieja-fp-bg);
  box-sizing: border-box;
}

/* ── Header ─────────────────────────────────────────────────── */
.ieja-fp-header {
  background: var(--ieja-fp-surface);
  border-bottom: 1px solid var(--ieja-fp-border);
  box-shadow: var(--ieja-fp-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}
.ieja-fp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  width: 100%;
  box-sizing: border-box;
}
.ieja-fp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ieja-fp-logo-icon { font-size: 26px; }
.ieja-fp-logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--ieja-fp-text);
  letter-spacing: -.02em;
}
.ieja-fp-header-actions { display: flex; gap: 10px; align-items: center; }

/* ── Buttons ─────────────────────────────────────────────────── */
.ieja-fp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--ieja-fp-radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--ieja-fp-font);
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: all .2s ease;
}
.ieja-fp-btn-primary {
  background: var(--ieja-fp-primary);
  color: #fff;
  border-color: var(--ieja-fp-primary);
}
.ieja-fp-btn-primary:hover {
  background: var(--ieja-fp-primary-dark);
  border-color: var(--ieja-fp-primary-dark);
  box-shadow: 0 4px 12px rgba(79,70,229,.35);
}
.ieja-fp-btn-outline {
  background: transparent;
  color: var(--ieja-fp-primary);
  border-color: var(--ieja-fp-primary);
}
.ieja-fp-btn-outline:hover {
  background: var(--ieja-fp-primary);
  color: #fff;
}
.ieja-fp-link {
  font-size: 13px;
  color: var(--ieja-fp-primary);
  font-weight: 600;
  text-decoration: none;
}
.ieja-fp-link:hover { text-decoration: underline; }

/* ── Main ────────────────────────────────────────────────────── */
.ieja-fp-main {
  flex: 1;
  width: 100%;
  padding: 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Stats ───────────────────────────────────────────────────── */
.ieja-fp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  width: 100%;
}
.ieja-fp-stat {
  background: var(--ieja-fp-surface);
  border: 1px solid var(--ieja-fp-border);
  border-radius: var(--ieja-fp-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--ieja-fp-shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.ieja-fp-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--ieja-fp-shadow-md);
}
.ieja-fp-stat-total  { border-left: 4px solid var(--ieja-fp-primary); }
.ieja-fp-stat-active { border-left: 4px solid var(--ieja-fp-info); }
.ieja-fp-stat-done   { border-left: 4px solid var(--ieja-fp-success); }
.ieja-fp-stat-late   { border-left: 4px solid var(--ieja-fp-danger); }
.ieja-fp-stat-review { border-left: 4px solid var(--ieja-fp-warning); }
.ieja-fp-stat-tasks  { border-left: 4px solid #14B8A6; }
.ieja-fp-stat-icon   { font-size: 28px; line-height: 1; }
.ieja-fp-stat-body   { display: flex; flex-direction: column; gap: 2px; }
.ieja-fp-stat-n {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: var(--ieja-fp-text);
}
.ieja-fp-stat-l {
  font-size: 12px;
  color: var(--ieja-fp-muted);
  font-weight: 500;
}

/* ── Cards ───────────────────────────────────────────────────── */
.ieja-fp-card {
  background: var(--ieja-fp-surface);
  border: 1px solid var(--ieja-fp-border);
  border-radius: var(--ieja-fp-radius);
  box-shadow: var(--ieja-fp-shadow-sm);
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}
.ieja-fp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--ieja-fp-border);
}
.ieja-fp-card-header h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--ieja-fp-text);
}
.ieja-fp-card-body { padding: 24px; }

/* ── Grid chart + atividades ─────────────────────────────────── */
.ieja-fp-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  width: 100%;
}

/* ── Activity ────────────────────────────────────────────────── */
.ieja-fp-activity-list { list-style: none; padding: 0; margin: 0; }
.ieja-fp-activity-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ieja-fp-border);
}
.ieja-fp-activity-item:last-child { border-bottom: none; }
.ieja-fp-activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ieja-fp-primary);
  flex-shrink: 0;
  margin-top: 6px;
}
.ieja-fp-activity-body { flex: 1; font-size: 13px; }
.ieja-fp-activity-body strong { display: block; font-weight: 600; color: var(--ieja-fp-text); }
.ieja-fp-activity-body span  { display: block; color: var(--ieja-fp-muted); font-size: 12px; }
.ieja-fp-activity-body em    { display: inline-block; background: var(--ieja-fp-primary-lt); color: var(--ieja-fp-primary); padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 600; font-style: normal; margin-top: 2px; }
.ieja-fp-activity-body time  { display: block; font-size: 11px; color: var(--ieja-fp-light); margin-top: 2px; }

/* ── Projects grid ───────────────────────────────────────────── */
.ieja-fp-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  width: 100%;
}
.ieja-fp-project-card {
  background: var(--ieja-fp-bg);
  border: 1px solid var(--ieja-fp-border);
  border-radius: var(--ieja-fp-radius-sm);
  padding: 16px;
  transition: transform .2s, box-shadow .2s;
}
.ieja-fp-project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ieja-fp-shadow-md);
  background: var(--ieja-fp-surface);
}
.ieja-fp-pc-title { font-size: 15px; font-weight: 700; color: var(--ieja-fp-text); margin-bottom: 8px; }
.ieja-fp-pc-meta  { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.ieja-fp-pc-excerpt { font-size: 12px; color: var(--ieja-fp-muted); line-height: 1.5; margin: 0; }

/* ── Badge & Date ────────────────────────────────────────────── */
.ieja-fp-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.ieja-fp-date { font-size: 11px; color: var(--ieja-fp-muted); }

/* ── Loading & Empty ─────────────────────────────────────────── */
.ieja-fp-loading {
  text-align: center;
  padding: 40px;
  color: var(--ieja-fp-muted);
  font-size: 13px;
}
.ieja-fp-loading::before {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--ieja-fp-border);
  border-top-color: var(--ieja-fp-primary);
  border-radius: 50%;
  animation: ieja-fp-spin .8s linear infinite;
  margin: 0 auto 12px;
}
@keyframes ieja-fp-spin { to { transform: rotate(360deg); } }
.ieja-fp-empty { text-align: center; color: var(--ieja-fp-muted); font-size: 13px; padding: 16px 0; }

/* ── Footer ──────────────────────────────────────────────────── */
.ieja-fp-footer {
  text-align: center;
  padding: 20px 32px;
  font-size: 12px;
  color: var(--ieja-fp-light);
  border-top: 1px solid var(--ieja-fp-border);
  background: var(--ieja-fp-surface);
}
.ieja-fp-footer p { margin: 0; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .ieja-fp-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .ieja-fp-grid { grid-template-columns: 1fr; }
  .ieja-fp-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ieja-fp-main { padding: 16px; }
  .ieja-fp-header-inner { padding: 12px 16px; }
  .ieja-fp-stats { grid-template-columns: 1fr 1fr; }
  .ieja-fp-projects-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════
   IEJA Front Page — SPA Layout completo
   ════════════════════════════════════════════════════════════════ */

/* ── Variables ───────────────────────────────────────────────── */
#ieja-fp-root {
  --ieja-fp-primary:      #4F46E5;
  --ieja-fp-primary-dk:   #4338CA;
  --ieja-fp-primary-lt:   #EEF2FF;
  --ieja-fp-success:      #10B981;
  --ieja-fp-danger:       #EF4444;
  --ieja-fp-warning:      #F59E0B;
  --ieja-fp-info:         #3B82F6;
  --ieja-fp-bg:           #F1F5F9;
  --ieja-fp-surface:      #FFFFFF;
  --ieja-fp-border:       #E2E8F0;
  --ieja-fp-text:         #1E293B;
  --ieja-fp-muted:        #64748B;
  --ieja-fp-light:        #94A3B8;
  --ieja-fp-sidebar-w:    240px;
  --ieja-fp-topbar-h:     60px;
  --ieja-fp-shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --ieja-fp-shadow-md:    0 4px 12px rgba(0,0,0,.1);
  --ieja-fp-radius:       12px;
  --ieja-fp-radius-sm:    8px;
  --ieja-fp-font:         -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
}
#ieja-fp-root.ieja-fp-dark {
  --ieja-fp-bg:       #0F172A;
  --ieja-fp-surface:  #1E293B;
  --ieja-fp-border:   #334155;
  --ieja-fp-text:     #F1F5F9;
  --ieja-fp-muted:    #94A3B8;
  --ieja-fp-light:    #64748B;
  --ieja-fp-primary-lt: #1E1B4B;
}

/* ── Base ────────────────────────────────────────────────────── */
.ieja-fp-body { margin:0; padding:0; background:var(--ieja-fp-bg); font-family:var(--ieja-fp-font); }
#ieja-fp-root {
  display:flex; min-height:100vh; width:100%; background:var(--ieja-fp-bg);
  font-family:var(--ieja-fp-font); color:var(--ieja-fp-text); box-sizing:border-box;
}
#ieja-fp-root * { box-sizing:border-box; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.ieja-fp-sidebar {
  width: var(--ieja-fp-sidebar-w);
  min-height: 100vh;
  background: var(--ieja-fp-surface);
  border-right: 1px solid var(--ieja-fp-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.ieja-fp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--ieja-fp-border);
}
.ieja-fp-brand-icon { font-size: 22px; }
.ieja-fp-brand-name { font-size: 15px; font-weight: 800; color: var(--ieja-fp-text); }
.ieja-fp-nav { padding: 12px 8px; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ieja-fp-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--ieja-fp-radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ieja-fp-muted);
  text-decoration: none;
  transition: all .15s;
  cursor: pointer;
}
.ieja-fp-nav-item:hover { background: var(--ieja-fp-bg); color: var(--ieja-fp-text); }
.ieja-fp-nav-item.active { background: var(--ieja-fp-primary-lt); color: var(--ieja-fp-primary); font-weight: 700; }
.ieja-fp-nav-icon { font-size: 16px; }
.ieja-fp-sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--ieja-fp-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ieja-fp-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ieja-fp-text);
}
.ieja-fp-avatar { width:32px; height:32px; border-radius:50%; object-fit:cover; }
.ieja-fp-logout { font-size: 12px; color: var(--ieja-fp-muted); text-decoration: none; }
.ieja-fp-logout:hover { color: var(--ieja-fp-danger); }

/* ── Content ─────────────────────────────────────────────────── */
.ieja-fp-content { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* ── Topbar ──────────────────────────────────────────────────── */
.ieja-fp-topbar {
  height: var(--ieja-fp-topbar-h);
  background: var(--ieja-fp-surface);
  border-bottom: 1px solid var(--ieja-fp-border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.ieja-fp-view-title { flex: 1; font-size: 18px; font-weight: 700; margin: 0; }
.ieja-fp-topbar-actions { display: flex; align-items: center; gap: 8px; }
.ieja-fp-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--ieja-fp-text);
  padding: 4px;
}
.ieja-fp-theme-btn {
  background: none;
  border: 1px solid var(--ieja-fp-border);
  border-radius: var(--ieja-fp-radius-sm);
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
  transition: all .15s;
}
.ieja-fp-theme-btn:hover { background: var(--ieja-fp-bg); }

/* ── Main ────────────────────────────────────────────────────── */
.ieja-fp-main { flex: 1; padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
.ieja-fp-view { display: flex; flex-direction: column; gap: 20px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.ieja-fp-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--ieja-fp-radius-sm);
  font-size: 13px; font-weight: 600; font-family: var(--ieja-fp-font);
  cursor: pointer; border: 1.5px solid transparent;
  text-decoration: none; transition: all .15s; white-space: nowrap; line-height: 1;
}
.ieja-fp-btn-primary { background: var(--ieja-fp-primary); color: #fff; border-color: var(--ieja-fp-primary); }
.ieja-fp-btn-primary:hover { background: var(--ieja-fp-primary-dk); border-color: var(--ieja-fp-primary-dk); box-shadow: 0 4px 12px rgba(79,70,229,.3); }
.ieja-fp-btn-outline { background: transparent; color: var(--ieja-fp-primary); border-color: var(--ieja-fp-primary); }
.ieja-fp-btn-outline:hover { background: var(--ieja-fp-primary); color: #fff; }
.ieja-fp-btn-ghost { background: transparent; color: var(--ieja-fp-muted); border-color: var(--ieja-fp-border); }
.ieja-fp-btn-ghost:hover { background: var(--ieja-fp-bg); color: var(--ieja-fp-text); }
.ieja-fp-btn-danger { background: var(--ieja-fp-danger); color: #fff; border-color: var(--ieja-fp-danger); }
.ieja-fp-btn-sm { padding: 6px 12px; font-size: 12px; }
.ieja-fp-link-btn { background: none; border: none; color: var(--ieja-fp-primary); font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; }
.ieja-fp-link-btn:hover { text-decoration: underline; }

/* ── Forms ───────────────────────────────────────────────────── */
.ieja-fp-input, .ieja-fp-select, .ieja-fp-textarea {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--ieja-fp-border); border-radius: var(--ieja-fp-radius-sm);
  font-family: var(--ieja-fp-font); font-size: 13px;
  color: var(--ieja-fp-text); background: var(--ieja-fp-surface); transition: border-color .15s;
  appearance: none; -webkit-appearance: none;
}
.ieja-fp-input:focus, .ieja-fp-select:focus, .ieja-fp-textarea:focus {
  outline: none; border-color: var(--ieja-fp-primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.ieja-fp-textarea { resize: vertical; min-height: 80px; }
.ieja-fp-color-input { padding: 4px; height: 42px; cursor: pointer; }
.ieja-fp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ieja-fp-form-group label { display: block; font-size: 11px; font-weight: 700; color: var(--ieja-fp-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }
.ieja-fp-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ieja-fp-search-box { flex: 1; min-width: 200px; }

/* ── Cards ───────────────────────────────────────────────────── */
.ieja-fp-card { background: var(--ieja-fp-surface); border: 1px solid var(--ieja-fp-border); border-radius: var(--ieja-fp-radius); box-shadow: var(--ieja-fp-shadow-sm); overflow: hidden; }
.ieja-fp-card-hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--ieja-fp-border); }
.ieja-fp-card-hd h3 { font-size: 14px; font-weight: 700; margin: 0; }
.ieja-fp-card-bd { padding: 20px; }

/* ── Stats ───────────────────────────────────────────────────── */
.ieja-fp-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.ieja-fp-stat {
  background: var(--ieja-fp-surface); border: 1px solid var(--ieja-fp-border);
  border-radius: var(--ieja-fp-radius); padding: 18px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--ieja-fp-shadow-sm); transition: transform .2s;
}
.ieja-fp-stat:hover { transform: translateY(-2px); box-shadow: var(--ieja-fp-shadow-md); }
.ieja-fp-stat-total  { border-left: 4px solid var(--ieja-fp-primary); }
.ieja-fp-stat-active { border-left: 4px solid var(--ieja-fp-info); }
.ieja-fp-stat-done   { border-left: 4px solid var(--ieja-fp-success); }
.ieja-fp-stat-late   { border-left: 4px solid var(--ieja-fp-danger); }
.ieja-fp-stat-review { border-left: 4px solid var(--ieja-fp-warning); }
.ieja-fp-stat-icon { font-size: 26px; }
.ieja-fp-stat-body { display: flex; flex-direction: column; gap: 2px; }
.ieja-fp-stat-n { font-size: 28px; font-weight: 800; line-height: 1; color: var(--ieja-fp-text); }
.ieja-fp-stat-l { font-size: 11px; color: var(--ieja-fp-muted); font-weight: 500; }

/* ── Dashboard grid ──────────────────────────────────────────── */
.ieja-fp-dash-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; }

/* ── Activity list ───────────────────────────────────────────── */
.ieja-fp-act-list { list-style: none; padding: 0; margin: 0; }
.ieja-fp-act-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--ieja-fp-border); }
.ieja-fp-act-item:last-child { border-bottom: none; }
.ieja-fp-act-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ieja-fp-primary); flex-shrink: 0; margin-top: 6px; }
.ieja-fp-act-body { flex: 1; font-size: 13px; }
.ieja-fp-act-body strong { display: block; font-weight: 600; color: var(--ieja-fp-text); }
.ieja-fp-act-body span  { display: block; color: var(--ieja-fp-muted); font-size: 12px; }
.ieja-fp-act-body em    { display: inline-block; background: var(--ieja-fp-primary-lt); color: var(--ieja-fp-primary); padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 600; font-style: normal; }
.ieja-fp-act-body time  { display: block; font-size: 11px; color: var(--ieja-fp-light); }

/* ── Mini grid (dash projects) ───────────────────────────────── */
.ieja-fp-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 12px; }
.ieja-fp-mini-card { background: var(--ieja-fp-bg); border: 1px solid var(--ieja-fp-border); border-radius: var(--ieja-fp-radius-sm); padding: 12px 14px; transition: all .2s; }
.ieja-fp-mini-card:hover { background: var(--ieja-fp-surface); box-shadow: var(--ieja-fp-shadow-md); }
.ieja-fp-mini-title { background: none; border: none; font-size: 14px; font-weight: 600; color: var(--ieja-fp-text); cursor: pointer; padding: 0; display: block; text-align: left; margin-bottom: 8px; }
.ieja-fp-mini-title:hover { color: var(--ieja-fp-primary); }
.ieja-fp-mini-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── Projects grid ───────────────────────────────────────────── */
.ieja-fp-projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 16px; }
.ieja-fp-project-card { background: var(--ieja-fp-surface); border: 1px solid var(--ieja-fp-border); border-radius: var(--ieja-fp-radius); overflow: hidden; box-shadow: var(--ieja-fp-shadow-sm); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.ieja-fp-project-card:hover { transform: translateY(-3px); box-shadow: var(--ieja-fp-shadow-md); }
.ieja-fp-pc-bar { height: 4px; }
.ieja-fp-pc-body { padding: 14px; flex: 1; }
.ieja-fp-pc-title { background: none; border: none; font-size: 15px; font-weight: 700; color: var(--ieja-fp-text); cursor: pointer; padding: 0; text-align: left; display: block; margin-bottom: 6px; }
.ieja-fp-pc-title:hover { color: var(--ieja-fp-primary); }
.ieja-fp-pc-excerpt { font-size: 12px; color: var(--ieja-fp-muted); margin-bottom: 10px; line-height: 1.5; }
.ieja-fp-pc-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.ieja-fp-pc-dates { display: flex; gap: 8px; font-size: 11px; color: var(--ieja-fp-muted); }
.ieja-fp-pc-footer { padding: 10px 14px; border-top: 1px solid var(--ieja-fp-border); display: flex; align-items: center; justify-content: space-between; }
.ieja-fp-priority { font-size: 11px; font-weight: 700; }
.ieja-fp-pagination { display: flex; gap: 6px; justify-content: center; padding: 8px 0; }
.ieja-fp-page-btn { width: 36px; height: 36px; border-radius: var(--ieja-fp-radius-sm); border: 1.5px solid var(--ieja-fp-border); background: var(--ieja-fp-surface); color: var(--ieja-fp-text); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; }
.ieja-fp-page-btn:hover, .ieja-fp-page-btn.active { background: var(--ieja-fp-primary); border-color: var(--ieja-fp-primary); color: #fff; }

/* ── Kanban ──────────────────────────────────────────────────── */
.ieja-fp-kanban-board { display: grid; grid-template-columns: repeat(5, minmax(220px,1fr)); gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.ieja-fp-kcol { background: var(--ieja-fp-bg); border: 1px solid var(--ieja-fp-border); border-radius: var(--ieja-fp-radius); overflow: hidden; }
.ieja-fp-kcol-hd { padding: 12px 14px; background: var(--ieja-fp-surface); border-bottom: 1px solid var(--ieja-fp-border); display: flex; align-items: center; justify-content: space-between; }
.ieja-fp-kcol-hd h3 { font-size: 13px; font-weight: 700; margin: 0; color: var(--ieja-fp-text); }
.ieja-fp-kcol-count { background: var(--ieja-fp-border); color: var(--ieja-fp-muted); border-radius: 10px; padding: 1px 7px; font-size: 11px; font-weight: 700; }
.ieja-fp-kcol-body { padding: 8px; min-height: 200px; display: flex; flex-direction: column; gap: 8px; }
.ieja-fp-kcard { background: var(--ieja-fp-surface); border: 1px solid var(--ieja-fp-border); border-radius: var(--ieja-fp-radius-sm); padding: 12px; cursor: grab; transition: box-shadow .2s, transform .2s; user-select: none; }
.ieja-fp-kcard:hover { box-shadow: var(--ieja-fp-shadow-md); transform: translateY(-2px); }
.ieja-fp-kcard-title { font-size: 13px; font-weight: 600; color: var(--ieja-fp-text); margin-bottom: 4px; }
.ieja-fp-kcard-client { font-size: 11px; color: var(--ieja-fp-muted); margin-bottom: 6px; }
.ieja-fp-kcard-footer { display: flex; align-items: center; gap: 6px; }
.ieja-fp-kcard-empty { font-size: 12px; color: var(--ieja-fp-light); text-align: center; padding: 16px 0; }
.ieja-fp-kcard-ghost { opacity: .4; background: var(--ieja-fp-primary-lt) !important; border: 2px dashed var(--ieja-fp-primary) !important; }
.ieja-fp-kbtn { background: var(--ieja-fp-bg); border: 1px solid var(--ieja-fp-border); border-radius: 6px; padding: 3px 7px; cursor: pointer; font-size: 12px; transition: all .15s; line-height: 1; }
.ieja-fp-kbtn:hover { background: var(--ieja-fp-primary-lt); }

/* ── Project detail ──────────────────────────────────────────── */
.ieja-fp-project-header { margin-bottom: 4px; }
.ieja-fp-proj-hd-inner { background: var(--ieja-fp-surface); border: 1px solid var(--ieja-fp-border); border-radius: var(--ieja-fp-radius); padding: 20px 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; box-shadow: var(--ieja-fp-shadow-sm); }
.ieja-fp-proj-hd-title { font-size: 20px; font-weight: 800; margin: 0 0 8px; color: var(--ieja-fp-text); }
.ieja-fp-proj-hd-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ieja-fp-meta-item { font-size: 12px; color: var(--ieja-fp-muted); }
.ieja-fp-proj-hd-actions { display: flex; gap: 8px; flex-shrink: 0; }
.ieja-fp-proj-hd-desc { background: var(--ieja-fp-surface); border: 1px solid var(--ieja-fp-border); border-radius: var(--ieja-fp-radius); padding: 16px 24px; font-size: 14px; color: var(--ieja-fp-muted); line-height: 1.7; margin-top: 8px; }
.ieja-fp-project-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }
.ieja-fp-project-side { display: flex; flex-direction: column; gap: 16px; }

/* ── Timeline ────────────────────────────────────────────────── */
.ieja-fp-timeline { display: flex; flex-direction: column; }
.ieja-fp-tl-item { display: flex; gap: 14px; }
.ieja-fp-tl-connector { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 22px; padding-top: 4px; }
.ieja-fp-tl-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--ieja-fp-surface); z-index: 1; }
.ieja-fp-tl-line { width: 2px; flex: 1; background: var(--ieja-fp-border); min-height: 20px; margin-top: 4px; }
.ieja-fp-tl-card { flex: 1; background: var(--ieja-fp-surface); border: 1px solid var(--ieja-fp-border); border-radius: var(--ieja-fp-radius-sm); padding: 14px; margin-bottom: 14px; box-shadow: var(--ieja-fp-shadow-sm); transition: all .2s; position: relative; }
.ieja-fp-tl-card:hover { box-shadow: var(--ieja-fp-shadow-md); border-color: var(--ieja-fp-primary); transform: translateX(3px); }
.ieja-fp-tl-hd { margin-bottom: 8px; }
.ieja-fp-tl-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ieja-fp-tl-title { font-size: 14px; font-weight: 700; margin: 0; color: var(--ieja-fp-text); cursor: grab; }
.ieja-fp-tl-status { font-size: 11px; font-weight: 700; flex-shrink: 0; }
.ieja-fp-tl-meta { display: flex; gap: 12px; font-size: 11px; color: var(--ieja-fp-muted); margin-bottom: 4px; }
.ieja-fp-tl-actions { position: absolute; top: 10px; right: 10px; display: none; gap: 4px; }
.ieja-fp-tl-card:hover .ieja-fp-tl-actions { display: flex; }
.ieja-fp-tl-btn { background: var(--ieja-fp-bg); border: 1px solid var(--ieja-fp-border); border-radius: 6px; padding: 3px 7px; cursor: pointer; font-size: 13px; transition: all .15s; line-height: 1; }
.ieja-fp-tl-btn:hover { background: var(--ieja-fp-primary-lt); }
.ieja-fp-tl-desc { font-size: 13px; color: var(--ieja-fp-muted); line-height: 1.6; margin-bottom: 8px; }
.ieja-fp-tl-atts { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; border-top: 1px solid var(--ieja-fp-border); margin-bottom: 8px; }
.ieja-fp-tl-foot { padding-top: 8px; border-top: 1px solid var(--ieja-fp-border); }
.ieja-fp-tl-empty { text-align: center; padding: 48px 24px; color: var(--ieja-fp-muted); }
.ieja-fp-tl-empty-icon { font-size: 48px; margin-bottom: 12px; }

/* Attachments */
.ieja-fp-att { display: flex; align-items: center; gap: 6px; background: var(--ieja-fp-bg); border: 1px solid var(--ieja-fp-border); border-radius: 6px; padding: 4px 8px; font-size: 12px; }
.ieja-fp-att-img { width: 32px; height: 32px; object-fit: cover; border-radius: 4px; }
.ieja-fp-att-icon { font-size: 16px; }
.ieja-fp-att-name { color: var(--ieja-fp-primary); text-decoration: none; font-size: 11px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ieja-fp-att-del { background: none; border: none; cursor: pointer; color: var(--ieja-fp-danger); font-size: 14px; padding: 0; line-height: 1; }

/* History */
.ieja-fp-hist-list { list-style: none; padding: 0; margin: 0; max-height: 300px; overflow-y: auto; }
.ieja-fp-hist-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--ieja-fp-border); font-size: 12px; }
.ieja-fp-hist-item:last-child { border-bottom: none; }
.ieja-fp-hist-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ieja-fp-primary); flex-shrink: 0; margin-top: 5px; }
.ieja-fp-hist-item > div strong { display: block; font-weight: 600; color: var(--ieja-fp-text); }
.ieja-fp-hist-item > div span { display: block; color: var(--ieja-fp-muted); }
.ieja-fp-hist-item > div time { font-size: 10px; color: var(--ieja-fp-light); }

/* ── Modal ───────────────────────────────────────────────────── */
.ieja-fp-modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.6); backdrop-filter: blur(4px); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ieja-fp-modal { background: var(--ieja-fp-surface); border-radius: var(--ieja-fp-radius); box-shadow: 0 20px 40px rgba(0,0,0,.2); width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; }
.ieja-fp-modal-hd { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--ieja-fp-border); }
.ieja-fp-modal-hd h3 { font-size: 16px; font-weight: 700; margin: 0; }
.ieja-fp-modal-close { background: var(--ieja-fp-bg); border: 1px solid var(--ieja-fp-border); border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; line-height: 1; color: var(--ieja-fp-muted); transition: all .15s; }
.ieja-fp-modal-close:hover { background: var(--ieja-fp-danger); color: #fff; border-color: var(--ieja-fp-danger); }
.ieja-fp-modal-bd { padding: 24px; }
.ieja-fp-modal-ft { padding: 14px 24px; border-top: 1px solid var(--ieja-fp-border); display: flex; justify-content: flex-end; gap: 10px; background: var(--ieja-fp-bg); }
.ieja-fp-form-group { margin-bottom: 0; }
.ieja-fp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── Toast ───────────────────────────────────────────────────── */
#ieja-fp-toasts { position: fixed; bottom: 24px; right: 24px; z-index: 200000; display: flex; flex-direction: column; gap: 8px; }
.ieja-fp-toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--ieja-fp-surface); border: 1px solid var(--ieja-fp-border); border-radius: var(--ieja-fp-radius); box-shadow: var(--ieja-fp-shadow-md); font-size: 13px; font-weight: 500; min-width: 240px; animation: ieja-fp-toast-in .3s ease; }
.ieja-fp-toast-success { border-left: 4px solid var(--ieja-fp-success); }
.ieja-fp-toast-error   { border-left: 4px solid var(--ieja-fp-danger); }
.ieja-fp-toast-info    { border-left: 4px solid var(--ieja-fp-info); }
@keyframes ieja-fp-toast-in { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }

/* ── Badge / misc ────────────────────────────────────────────── */
.ieja-fp-badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.ieja-fp-small-date { font-size: 11px; color: var(--ieja-fp-muted); }
.ieja-fp-loading { text-align: center; padding: 40px; color: var(--ieja-fp-muted); font-size: 13px; }
.ieja-fp-loading::before { content:''; display:block; width:28px; height:28px; border:3px solid var(--ieja-fp-border); border-top-color:var(--ieja-fp-primary); border-radius:50%; animation:ieja-fp-spin .8s linear infinite; margin:0 auto 10px; }
@keyframes ieja-fp-spin { to { transform:rotate(360deg); } }
.ieja-fp-empty { text-align: center; color: var(--ieja-fp-muted); font-size: 13px; padding: 16px 0; margin: 0; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ieja-fp-kanban-board { grid-template-columns: repeat(3, minmax(200px,1fr)); }
  .ieja-fp-stats { grid-template-columns: repeat(3,1fr); }
  .ieja-fp-dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .ieja-fp-project-layout { grid-template-columns: 1fr; }
  .ieja-fp-stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .ieja-fp-sidebar { position: fixed; left: -260px; top: 0; z-index: 200; height: 100vh; transition: left .25s; box-shadow: var(--ieja-fp-shadow-md); }
  .ieja-fp-sidebar.open { left: 0; }
  .ieja-fp-menu-toggle { display: block; }
  .ieja-fp-main { padding: 16px; }
  .ieja-fp-stats { grid-template-columns: repeat(2,1fr); }
  .ieja-fp-kanban-board { grid-template-columns: repeat(2,minmax(180px,1fr)); }
  .ieja-fp-projects-grid { grid-template-columns: 1fr; }
  .ieja-fp-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ieja-fp-stats { grid-template-columns: 1fr 1fr; }
  .ieja-fp-proj-hd-inner { flex-direction: column; }
}

/* ── Biblioteca (Library) ────────────────────────────────────── */
.ieja-fp-lib-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.ieja-fp-lib-toolbar-left,
.ieja-fp-lib-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ieja-fp-lib-project-sel {
  padding: 7px 12px;
  border: 1px solid var(--ieja-fp-border);
  border-radius: 8px;
  font-size: 13px;
  background: var(--ieja-fp-surface);
  color: var(--ieja-fp-text);
  min-width: 200px;
}
.ieja-fp-lib-orderby {
  padding: 7px 10px;
  border: 1px solid var(--ieja-fp-border);
  border-radius: 8px;
  font-size: 13px;
  background: var(--ieja-fp-surface);
  color: var(--ieja-fp-text);
}
.ieja-fp-lib-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--ieja-fp-primary);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.ieja-fp-lib-upload-label:hover { background: var(--ieja-fp-primary-dark, #1d5fa8); }
.ieja-fp-lib-upload-input { display: none; }

/* Category filters */
.ieja-fp-lib-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.ieja-fp-lib-filter {
  padding: 5px 14px;
  border: 1.5px solid var(--ieja-fp-border);
  border-radius: 20px;
  background: var(--ieja-fp-surface);
  color: var(--ieja-fp-text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s;
}
.ieja-fp-lib-filter:hover { border-color: var(--ieja-fp-primary); color: var(--ieja-fp-primary); }
.ieja-fp-lib-filter.active {
  background: var(--ieja-fp-primary);
  border-color: var(--ieja-fp-primary);
  color: #fff;
}

/* Progress bar */
.ieja-fp-lib-progress {
  width: 100%;
  height: 4px;
  background: var(--ieja-fp-border);
  border-radius: 2px;
  margin-bottom: 12px;
  display: none;
  overflow: hidden;
}
.ieja-fp-lib-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--ieja-fp-primary);
  border-radius: 2px;
  transition: width .2s;
}

/* File grid */
.ieja-fp-lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.ieja-fp-lib-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ieja-fp-muted);
  font-size: 13px;
  padding: 32px;
}
.ieja-fp-lib-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ieja-fp-muted);
  font-size: 13px;
  padding: 32px;
  background: var(--ieja-fp-surface);
  border: 2px dashed var(--ieja-fp-border);
  border-radius: 12px;
}

/* File card */
.ieja-fp-lib-card {
  background: var(--ieja-fp-surface);
  border: 1px solid var(--ieja-fp-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .15s;
}
.ieja-fp-lib-card:hover {
  box-shadow: var(--ieja-fp-shadow-md);
  transform: translateY(-2px);
}
.ieja-fp-lib-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--ieja-fp-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--ieja-fp-border);
  overflow: hidden;
}
.ieja-fp-lib-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ieja-fp-lib-icon { font-size: 36px; }
.ieja-fp-lib-card-body {
  padding: 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ieja-fp-lib-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ieja-fp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ieja-fp-lib-card-meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--ieja-fp-muted);
  flex-wrap: wrap;
}
.ieja-fp-lib-card-desc {
  font-size: 11px;
  color: var(--ieja-fp-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ieja-fp-lib-card-actions {
  padding: 8px 12px;
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--ieja-fp-border);
  align-items: center;
}
.ieja-fp-lib-card-actions .ieja-fp-btn-sm {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid var(--ieja-fp-border);
  background: var(--ieja-fp-surface);
  color: var(--ieja-fp-text);
  cursor: pointer;
  transition: background .15s;
  flex: 1;
  text-align: center;
}
.ieja-fp-lib-card-actions .ieja-fp-btn-sm:hover { background: var(--ieja-fp-bg); }
.ieja-fp-lib-card-actions .ieja-fp-btn-danger {
  border-color: #fca5a5;
  color: var(--ieja-fp-danger);
  flex: 0;
  padding: 4px 8px;
}
.ieja-fp-lib-card-actions .ieja-fp-btn-danger:hover { background: #fee2e2; }

@media (max-width: 768px) {
  .ieja-fp-lib-grid { grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); }
  .ieja-fp-lib-toolbar { flex-direction: column; align-items: flex-start; }
}

/* ── Modo visitante (não logado) ─────────────────────────────── */
/* Sem sidebar: o conteúdo ocupa toda a largura automaticamente (#ieja-fp-root é flex). */
.ieja-fp-guest .ieja-fp-menu-toggle,
.ieja-fp-guest #ieja-fp-new-project-btn,
.ieja-fp-guest .ieja-fp-edit-proj,
.ieja-fp-guest .ieja-fp-del-proj,
.ieja-fp-guest #ieja-fp-add-act-btn,
.ieja-fp-guest .ieja-fp-add-act-trigger,
.ieja-fp-guest .ieja-fp-tl-actions,
.ieja-fp-guest .ieja-fp-att-del,
.ieja-fp-guest .ieja-fp-lib-upload-label,
.ieja-fp-guest .ieja-fp-lib-toolbar-right { display: none !important; }

/* Centraliza/limita a área de conteúdo no modo visitante para leitura confortável */
.ieja-fp-guest .ieja-fp-main { max-width: 1180px; margin: 0 auto; width: 100%; }

/* ── Link de acompanhamento por projeto ──────────────────────── */
.ieja-fp-pc-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--ieja-fp-border);
  font-size: 13px;
}
.ieja-fp-pc-link-ico { font-size: 14px; flex-shrink: 0; }
.ieja-fp-pc-link-url {
  flex: 1;
  min-width: 0;
  color: var(--ieja-fp-primary);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.ieja-fp-pc-link-url:hover { text-decoration: underline; }
.ieja-fp-copy-link { flex-shrink: 0; cursor: pointer; }

/* ── Projetos Recentes — cards em destaque (clicáveis, com thumbnail) ── */
.ieja-fp-feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.ieja-fp-feat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ieja-fp-surface);
  border: 1px solid var(--ieja-fp-border);
  border-radius: var(--ieja-fp-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: var(--ieja-fp-shadow-sm);
  outline: none;
}
.ieja-fp-feat-card:hover,
.ieja-fp-feat-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--ieja-fp-shadow-md);
  border-color: var(--accent, var(--ieja-fp-primary));
}
.ieja-fp-feat-card:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #4F46E5) 35%, transparent); }

.ieja-fp-feat-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ieja-fp-bg);
}
.ieja-fp-feat-thumb-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.ieja-fp-feat-card:hover .ieja-fp-feat-thumb-img { transform: scale(1.05); }
.ieja-fp-feat-thumb-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
}
.ieja-fp-feat-status {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: var(--ieja-fp-shadow-sm);
}
.ieja-fp-feat-body { padding: 14px 16px 6px; flex: 1; }
.ieja-fp-feat-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ieja-fp-text);
  line-height: 1.3;
}
.ieja-fp-feat-excerpt {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--ieja-fp-muted);
  line-height: 1.45;
}
.ieja-fp-feat-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 12px; font-weight: 600;
}
.ieja-fp-feat-date { color: var(--ieja-fp-muted); }
.ieja-fp-feat-cta {
  padding: 10px 16px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent, var(--ieja-fp-primary));
}
@media (max-width: 600px) {
  .ieja-fp-feat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ieja-fp-feat-cta { display: none; }
}

/* ── Seletor de Thumbnail (modal de projeto) ───────────────────── */
.ieja-fp-thumb-picker{display:flex;align-items:center;gap:14px;}
.ieja-fp-thumb-preview{width:104px;height:104px;flex:0 0 104px;border:1px dashed var(--ieja-fp-border,#d1d5db);border-radius:10px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:var(--ieja-fp-bg-soft,#f9fafb);}
.ieja-fp-thumb-preview img{width:100%;height:100%;object-fit:cover;display:block;}
.ieja-fp-thumb-empty{font-size:12px;color:var(--ieja-fp-muted,#9ca3af);text-align:center;padding:0 8px;}
.ieja-fp-thumb-actions{display:flex;flex-direction:column;gap:8px;align-items:flex-start;}

/* ── Card de projeto clicável (abre o projeto) ─────────────────── */
.ieja-fp-card-open{cursor:pointer;transition:transform .12s ease, box-shadow .12s ease;}
.ieja-fp-card-open:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.10);}
.ieja-fp-card-open:focus-visible{outline:2px solid var(--ieja-fp-primary,#4F46E5);outline-offset:2px;}
.ieja-fp-pc-link-url{cursor:pointer;}
