/* ==========================================================================
   GERETT — FERRAMENTA ORGANIZACIONAL (PDP)
   ========================================================================== */

/* === Cabeçalho da página === */
.ft-header { padding: 140px 24px 48px; max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 2; }
.ft-header .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; margin-bottom: 28px; transition: color .2s var(--ease-fluid); }
.ft-header .back-link:hover { color: var(--brand); }
.ft-header h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 10px 0 18px; }
.ft-header .accent { background: linear-gradient(120deg, var(--c-eng-blue), var(--c-laser-cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ft-header > p { max-width: 760px; color: var(--text-secondary); font-size: 1.08rem; line-height: 1.7; }
.ft-header strong { color: var(--text); }

/* === Seções === */
.ft-section { max-width: var(--max-w); margin: 0 auto; padding: 20px 24px 90px; position: relative; z-index: 2; }

/* =========================================================
   APP PDP
   ========================================================= */
.pdp-app { --pdp-blue: var(--brand); }
.pdp-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 1px 3px var(--shadow); }
.pdp-empty { text-align: center; padding: 70px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--bg-alt); }
.pdp-empty svg { opacity: .45; margin-bottom: 14px; }
.pdp-empty h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.pdp-empty p { color: var(--text-secondary); max-width: 480px; margin: 0 auto 22px; line-height: 1.65; }

.pdp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--bg-card); color: var(--text); font-family: var(--font-body); font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: transform .15s var(--ease-spring), box-shadow .2s, filter .2s, background .2s; white-space: nowrap; }
.pdp-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px var(--shadow-md); }
.pdp-btn:active { transform: scale(.98); }
.pdp-btn.primary { background: linear-gradient(135deg, var(--c-eng-blue), var(--c-electric-blue)); border-color: transparent; color: #fff; }
.pdp-btn.primary:hover { filter: brightness(1.08); }
.pdp-btn.danger { color: #E5484D; border-color: rgba(229,72,77,.35); }
.pdp-btn.danger:hover { background: rgba(229,72,77,.08); }
.pdp-btn.small { padding: 6px 12px; font-size: 0.78rem; }
.pdp-btn:disabled { opacity: .45; pointer-events: none; }

/* === Dashboard === */
.pdp-dash-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.pdp-dash-head h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; }
.pdp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.pdp-prod-card { padding: 22px; display: flex; flex-direction: column; gap: 12px; transition: transform .25s var(--ease-expo), box-shadow .25s var(--ease-expo); cursor: pointer; position: relative; }
.pdp-prod-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px var(--shadow-md); }
.pdp-prod-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.pdp-prod-top h3 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.pdp-menu-btn { background: none; border: none; color: var(--text-tertiary); cursor: pointer; padding: 4px; border-radius: 8px; display: grid; place-items: center; }
.pdp-menu-btn:hover { background: var(--bg-alt); color: var(--text); }
.pdp-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pdp-badge { font-size: 0.7rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--radius-full); background: var(--brand-light); color: var(--brand); }
.pdp-badge.gray { background: var(--bg-alt); color: var(--text-secondary); }
.pdp-badge.warn { background: rgba(184,115,51,.14); color: var(--c-copper-light); }
.pdp-mini-progress { height: 7px; border-radius: 99px; background: var(--bg-alt); overflow: hidden; }
.pdp-mini-progress span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--c-eng-blue), var(--c-laser-cyan)); transition: width .5s var(--ease-expo); }
.pdp-prod-meta { display: flex; justify-content: space-between; color: var(--text-tertiary); font-size: 0.78rem; }

/* === Cabeçalho do produto === */
.pdp-prod-head { padding: 26px 26px 20px; display: flex; flex-direction: column; gap: 14px; }
.pdp-prod-titlebar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pdp-backdash { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); background: none; border: none; font: inherit; font-size: 0.85rem; cursor: pointer; padding: 0; }
.pdp-backdash:hover { color: var(--brand); }
.pdp-prod-head h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 8px; }
.pdp-pend-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: var(--c-copper-light); background: rgba(184,115,51,.12); border: 1px solid rgba(184,115,51,.3); padding: 5px 11px; border-radius: var(--radius-full); cursor: default; }
.pdp-overall { display: flex; align-items: center; gap: 12px; }
.pdp-overall-bar { flex: 1; height: 9px; border-radius: 99px; background: var(--bg-alt); overflow: hidden; }
.pdp-overall-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--c-eng-blue), var(--c-laser-cyan)); transition: width .5s var(--ease-expo); }
.pdp-overall b { font-family: var(--font-mono); font-size: 0.85rem; min-width: 44px; text-align: right; }

/* === Stepper === */
.pdp-stepper { display: flex; overflow-x: auto; gap: 4px; padding: 14px 18px 16px; border-top: 1px solid var(--border); scrollbar-width: thin; }
.pdp-step { flex: 1; min-width: 118px; background: none; border: none; text-align: left; padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; position: relative; display: flex; flex-direction: column; gap: 5px; color: var(--text-secondary); transition: background .2s; font-family: var(--font-body); }
.pdp-step:hover { background: var(--bg-alt); }
.pdp-step .st-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 800; font-family: var(--font-display); background: var(--bg-alt); color: var(--text-tertiary); border: 1.5px solid var(--border-strong); }
.pdp-step .st-nome { font-size: 0.76rem; font-weight: 600; line-height: 1.25; }
.pdp-step.active { background: var(--brand-light); }
.pdp-step.active .st-num { background: var(--brand); border-color: var(--brand); color: #fff; }
.pdp-step.active .st-nome { color: var(--text); }
.pdp-step.done .st-num { background: #1FA36B; border-color: #1FA36B; color: #fff; }
.pdp-step.locked { opacity: .55; cursor: not-allowed; }
.pdp-st-row { display: flex; align-items: center; gap: 8px; }

/* === Corpo do produto === */
.pdp-phase { padding: 24px 26px 28px; border-top: 1px solid var(--border); }
.pdp-phase h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.pdp-phase-desc { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.65; margin: 6px 0 20px; }
.pdp-subsec { margin-bottom: 30px; }
.pdp-subsec > h4 { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 14px; }
.pdp-subsec > h4::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Checklists */
.pdp-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pdp-check li { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-alt); font-size: 0.92rem; line-height: 1.5; cursor: pointer; transition: border-color .2s, background .2s; }
.pdp-check li:hover { border-color: var(--border-strong); }
.pdp-check li input { accent-color: var(--brand); width: 17px; height: 17px; margin-top: 1px; cursor: pointer; flex-shrink: 0; }
.pdp-check li.checked { color: var(--text-tertiary); text-decoration: line-through; background: transparent; }
.pdp-check-extra { font-size: 0.72rem; color: var(--text-tertiary); display: block; }

/* Gate */
.pdp-gatebox { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 22px; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--hero-glow-1), transparent), var(--bg-alt); border: 1px solid var(--border-strong); }
.pdp-gatebox .gb-info strong { font-family: var(--font-display); font-size: 1rem; }
.pdp-gatebox .gb-info p { margin: 4px 0 0; font-size: 0.84rem; color: var(--text-secondary); }
.pdp-gate-approved { display: inline-flex; align-items: center; gap: 7px; color: #1FA36B; font-weight: 700; font-size: 0.88rem; }

/* Documentos */
.pdp-doc-list { display: grid; gap: 8px; }
.pdp-doc-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-alt); flex-wrap: wrap; }
.pdp-doc-item .di-name { font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.pdp-doc-item .di-name svg { color: var(--brand); flex-shrink: 0; }
.pdp-doc-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Requisitos */
.pdp-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
table.pdp-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 640px; }
.pdp-table th { text-align: left; padding: 11px 13px; font-family: var(--font-display); font-weight: 700; font-size: 0.74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-tertiary); background: var(--bg-alt); border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.pdp-table td { padding: 11px 13px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-secondary); }
.pdp-table tr:last-child td { border-bottom: none; }
.pdp-table .mono { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text); white-space: nowrap; }
.pdp-pill { display: inline-block; font-size: 0.68rem; font-weight: 800; letter-spacing: .04em; padding: 3px 9px; border-radius: 99px; }
.pdp-pill.must { background: rgba(229,72,77,.14); color: #E5484D; }
.pdp-pill.should { background: rgba(184,115,51,.16); color: var(--c-copper-light); }
.pdp-pill.could { background: rgba(31,163,107,.15); color: #1FA36B; }
.pdp-inline-actions { display: flex; gap: 4px; }
.pdp-iconbtn { background: none; border: 1px solid var(--border); border-radius: 8px; width: 28px; height: 28px; display: grid; place-items: center; color: var(--text-secondary); cursor: pointer; transition: all .15s; }
.pdp-iconbtn:hover { border-color: var(--border-strong); color: var(--text); background: var(--bg-alt); }
.pdp-iconbtn.del:hover { color: #E5484D; border-color: rgba(229,72,77,.4); }
.pdp-addrow { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; margin-top: 12px; }
.pdp-input, .pdp-select, .pdp-textarea { padding: 10px 13px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--bg-card); color: var(--text); font-family: var(--font-body); font-size: 0.9rem; outline: none; transition: border-color .2s, box-shadow .2s; width: 100%; box-sizing: border-box; }
.pdp-input:focus, .pdp-select:focus, .pdp-textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.pdp-textarea { resize: vertical; min-height: 220px; font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.7; }
select.pdp-select { width: auto; min-width: 130px; cursor: pointer; }

/* Kanban */
.pdp-kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pdp-kcol { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.pdp-kcol h5 { font-size: 0.72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-tertiary); display: flex; justify-content: space-between; margin: 2px 2px 4px; }
.pdp-kcard { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 0.85rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; cursor: grab; }
.pdp-kcard.dragging { opacity: .5; }
.pdp-kcol.dragover { border-color: var(--brand); border-style: dashed; }
.pdp-task-form { display: flex; gap: 8px; margin-top: 12px; }

/* Decisões e histórico */
.pdp-adr { border-left: 3px solid var(--brand); padding: 10px 14px; background: var(--bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 10px; }
.pdp-adr .adr-date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-tertiary); }
.pdp-adr strong { display: block; font-size: 0.92rem; margin: 3px 0 4px; }
.pdp-adr p { margin: 0; font-size: 0.84rem; color: var(--text-secondary); line-height: 1.55; }
.pdp-hist { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.pdp-hist li { display: flex; gap: 12px; padding: 9px 2px; border-bottom: 1px dashed var(--border); font-size: 0.83rem; color: var(--text-secondary); }
.pdp-hist .h-time { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-tertiary); white-space: nowrap; padding-top: 2px; }
.pdp-hist b { color: var(--text); font-weight: 600; }

/* Alerta de normas */
.pdp-alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: var(--radius-sm); background: rgba(229,72,77,.09); border: 1px solid rgba(229,72,77,.3); color: var(--text-secondary); font-size: 0.86rem; line-height: 1.55; margin-bottom: 18px; }
.pdp-alert svg { color: #E5484D; flex-shrink: 0; margin-top: 1px; }

/* =========================================================
   Modais
   ========================================================= */
.pdp-overlay { position: fixed; inset: 0; background: rgba(5,8,12,.62); backdrop-filter: blur(6px); z-index: 2000; display: grid; place-items: center; padding: 20px; animation: pdpFadeIn .22s var(--ease-fluid); }
@keyframes pdpFadeIn { from { opacity: 0; } }
.pdp-modal { width: min(640px, 100%); max-height: 86vh; overflow-y: auto; background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 30px 80px var(--shadow-lg); animation: pdpPop .28s var(--ease-spring); }
@keyframes pdpPop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.pdp-modal.wide { width: min(760px, 100%); }
.pdp-modal h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 6px; }
.pdp-modal .m-sub { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; }
.m-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

.crit-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.crit-list li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-alt); font-size: 0.9rem; line-height: 1.5; }
.crit-list input { accent-color: var(--brand); width: 17px; height: 17px; margin-top: 1px; flex-shrink: 0; }
.crit-list li.opt { opacity: .6; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 7px; }
.radio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.radio-tile { position: relative; display: block; cursor: pointer; }
.radio-tile input { position: absolute; opacity: 0; }
.radio-tile .rt-box { display: block; padding: 13px 14px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 600; text-align: center; transition: all .18s; color: var(--text-secondary); }
.radio-tile .rt-box small { display: block; font-weight: 400; font-size: 0.72rem; margin-top: 3px; color: var(--text-tertiary); }
.radio-tile input:checked + .rt-box { border-color: var(--brand); background: var(--brand-light); color: var(--brand); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.check-tile { display: flex; gap: 9px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer; font-size: 0.86rem; line-height: 1.4; transition: all .18s; }
.check-tile:hover { border-color: var(--brand); }
.check-tile input { accent-color: var(--brand); width: 16px; height: 16px; margin-top: 1px; }
.check-tile.on { border-color: var(--brand); background: var(--brand-light); }
.wiz-steps { display: flex; gap: 6px; margin-bottom: 22px; }
.wiz-steps span { flex: 1; height: 4px; border-radius: 99px; background: var(--bg-alt); }
.wiz-steps span.on { background: var(--brand); }

/* Tour */
.tour-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 14px; }
.tour-list li { display: flex; gap: 13px; align-items: flex-start; }
.tour-list .t-num { width: 30px; height: 30px; border-radius: 10px; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; flex-shrink: 0; }
.tour-list strong { display: block; font-size: 0.94rem; margin-bottom: 2px; }
.tour-list p { margin: 0; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.55; }

/* Toasts */
#pdpToastRoot { position: fixed; bottom: 24px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.pdp-toast { display: flex; align-items: center; gap: 10px; background: var(--bg-card); color: var(--text); border: 1px solid var(--border-strong); border-left: 3px solid #1FA36B; border-radius: var(--radius-sm); padding: 13px 18px; font-size: 0.88rem; font-weight: 500; box-shadow: 0 12px 34px var(--shadow-lg); animation: toastIn .3s var(--ease-spring); max-width: 340px; }
.pdp-toast.info { border-left-color: var(--brand); }
.pdp-toast.out { animation: toastOut .3s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* Impressão / PDF */
@media print {
  body * { visibility: hidden !important; }
  #pdpPrintRoot, #pdpPrintRoot * { visibility: visible !important; }
  #pdpPrintRoot { position: absolute; inset: 0; padding: 32px; color: #111; background: #fff; }
  .navbar, .mobile-bottom-nav, .contact-fab, .scroll-top, .footer, .noise-overlay, .progress-bar { display: none !important; }
}

/* Responsivo */
@media (max-width: 900px) {
  .ft-header { padding-top: 118px; }
}
@media (max-width: 640px) {
  .ft-section { padding: 16px 14px 70px; }
  .pdp-modal { padding: 22px 18px; }
  .pdp-kanban { grid-template-columns: 1fr; }
  .pdp-phase { padding: 20px 16px 24px; }
  .pdp-prod-head { padding: 20px 16px; }
  .pdp-stepper { padding: 12px 10px 14px; }
  .pdp-step { min-width: 104px; }
  .pdp-addrow { grid-template-columns: 1fr; }
  #pdpToastRoot { left: 16px; right: 16px; bottom: 90px; }
}


/* ==========================================================================
   FERRAMENTA ORGANIZACIONAL · MÓDULO GESTÃO DE PROJETOS (GP)
   ========================================================================== */
.gp-tabs {
  max-width: var(--max-w);
  margin: -6px auto 26px;
  padding: 0 20px;
}
.gp-tabs-inner {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: 0 6px 24px var(--shadow);
  width: fit-content;
  margin: 0 auto;
}
.gp-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.25s var(--ease-fluid), color 0.25s var(--ease-fluid);
  min-height: 44px;
}
.gp-tab:hover { color: var(--text); }
.gp-tab.active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px hsla(var(--brand-h), var(--brand-s), var(--brand-l), 0.35);
}

/* ---------- utilidades compartilhadas do módulo ---------- */
.gp-ui .sr-only, #gpPrintRoot .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.gp-ui .hint { display: block; color: var(--text-tertiary); font-size: 0.85rem; line-height: 1.5; }
.gp-ui .small { font-size: 0.82rem; color: var(--text-secondary); }
.gp-ui .warn {
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.35);
  color: #B45309;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-top: 14px;
}
[data-theme="dark"] .gp-ui .warn { color: #FBBF24; }
.gp-ui .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 500;
}
.gp-ui .tag-ok {
  display: inline-block;
  background: rgba(22, 163, 74, 0.14);
  color: #15803D;
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 600;
}
[data-theme="dark"] .gp-ui .tag-ok { color: #4ADE80; }
.gp-ui .tag-no {
  display: inline-block;
  background: rgba(220, 38, 38, 0.12);
  color: #B91C1C;
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 600;
}
[data-theme="dark"] .gp-ui .tag-no { color: #F87171; }
.gp-ui .tag-milestone {
  display: inline-block;
  background: rgba(0, 229, 255, 0.14);
  color: #0891B2;
  border-radius: var(--radius-full);
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
[data-theme="dark"] .gp-ui .tag-milestone { color: #67E8F9; }
.gp-ui .big-tag { font-size: 1rem !important; padding: 8px 16px !important; margin-top: 12px; }

/* semáforos */
.gp-ui .dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  flex: 0 0 auto;
}
.gp-ui .dot.g { background: #16A34A; }
.gp-ui .dot.y { background: #D97706; }
.gp-ui .dot.r { background: #DC2626; }

/* severidade */
.sev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}
.sev.sev-green { background: #16A34A; }
.sev.sev-yellow { background: #D97706; }
.sev.sev-red { background: #DC2626; }

/* ---------- botões ---------- */
.gp-ui .btn, .gp-ui .linklike {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.15s var(--ease-fluid), box-shadow 0.2s var(--ease-fluid),
    background 0.2s var(--ease-fluid), border-color 0.2s var(--ease-fluid);
  min-height: 40px;
  padding: 8px 18px;
  line-height: 1.3;
}
.gp-ui .btn:active { transform: scale(0.97); }
.gp-ui .btn-primary {
  background: var(--brand);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 4px 12px hsla(var(--brand-h), var(--brand-s), var(--brand-l), 0.28);
}
.gp-ui .btn-primary:hover { background: var(--brand-dark); }
.gp-ui .btn-soft {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.gp-ui .btn-soft:hover { border-color: var(--brand); color: var(--brand); }
.gp-ui .btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}
.gp-ui .btn-ghost:hover { color: var(--text); background: var(--bg-alt); }
.gp-ui .btn-danger {
  background: #DC2626;
  color: #fff;
  border: 1px solid transparent;
}
.gp-ui .btn-danger:hover { background: #B91C1C; }
.gp-ui .btn-danger-outline {
  background: transparent;
  color: #DC2626;
  border: 1px solid rgba(220, 38, 38, 0.45);
}
.gp-ui .btn-danger-outline:hover { background: rgba(220, 38, 38, 0.08); }
.gp-ui .icon-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s var(--ease-fluid);
}
.gp-ui .icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.gp-ui .icon-btn.danger:hover { border-color: #DC2626; color: #DC2626; background: rgba(220, 38, 38, 0.07); }
.gp-ui .mini {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.18s var(--ease-fluid);
}
.gp-ui .mini:hover { border-color: var(--brand); color: var(--brand); }
.gp-ui .mini.edit:hover { border-color: var(--c-copper); color: var(--c-copper); }
.gp-ui .linklike {
  background: none;
  border: 0;
  color: var(--brand);
  padding: 2px 0;
  min-height: 0;
  text-align: left;
  font-size: 0.92rem;
}
.gp-ui .linklike:hover { text-decoration: underline; }

/* ---------- modais ---------- */
.ft-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 14, 17, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
}
.ft-modal {
  position: fixed;
  z-index: 1001;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px));
  max-height: min(86vh, 760px);
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px var(--shadow-lg);
}
.ft-modal-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 14px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  z-index: 2;
}
.ft-modal-head h3 { margin: 0; font-family: var(--font-display); font-size: 1.15rem; }
.ft-x {
  appearance: none;
  border: 0;
  background: var(--bg-alt);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}
.ft-x:hover { color: var(--text); background: var(--border); }
.ft-modal-body { padding: 20px 22px; }
.ft-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
  background: var(--bg-card);
}
.ft-confirm { color: var(--text-secondary); line-height: 1.6; }
body.no-scroll { overflow: hidden; }

/* ---------- toast ---------- */
.gp-toast { z-index: 1100; }

/* ---------- shell ---------- */
.gp-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px 90px;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.gp-side {
  position: sticky;
  top: calc(var(--nav-h) + 18px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  box-shadow: 0 8px 30px var(--shadow);
}
.gp-nav-group { display: flex; flex-direction: column; gap: 2px; }
.gp-nav-group h6 {
  margin: 0 0 6px;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.gp-nav-item {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.18s var(--ease-fluid);
  min-height: 38px;
}
.gp-nav-item:hover { background: var(--bg-alt); color: var(--text); }
.gp-nav-item.active {
  background: linear-gradient(135deg, hsla(var(--brand-h), var(--brand-s), var(--brand-l), 0.14), hsla(var(--brand-h), var(--brand-s), var(--brand-l), 0.05));
  color: var(--brand);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--brand);
}
.gp-main { min-width: 0; }
.gp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.gp-head-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gp-head-l select {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  max-width: 380px;
  cursor: pointer;
}
.gp-minidots { display: inline-flex; gap: 5px; }
.gp-head-r { display: flex; gap: 8px; flex-wrap: wrap; }
.gp-module-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  margin: 10px 0 18px;
}
.gp-content { display: flex; flex-direction: column; gap: 18px; }

/* ---------- cards ---------- */
.gp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px var(--shadow);
  overflow: hidden;
}
.gp-card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px 12px;
}
.gp-card-h h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
}
.gp-card-b { padding: 4px 20px 18px; }
.gp-card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-strong);
}
.gp-exportbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--c-copper);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}
.gp-exportbar > span { font-size: 0.88rem; color: var(--text-secondary); font-weight: 500; }
.gp-exportbar div, .gp-exportbar { gap: 10px; }
.gp-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* ---------- KV / resumos ---------- */
.gp-kv { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.gp-kv dt { color: var(--text-tertiary); font-size: 0.86rem; }
.gp-kv dd { margin: 0; font-weight: 600; text-align: right; font-family: var(--font-mono); font-size: 0.9rem; }
.gp-kv dt.total { color: var(--text); font-weight: 700; }
.gp-kv dd.total { color: var(--brand); font-weight: 800; font-size: 1.05rem; }
.gp-kv .good, .gp-kv dd.good { color: #16A34A; }
.gp-kv .bad, .gp-kv dd.bad { color: #DC2626; }
.gp-kv dd.warn { color: #D97706; }

/* ---------- formulários ---------- */
.gp-form { display: flex; flex-direction: column; gap: 14px; }
.gp-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gp-field > span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.gp-ui input[type="text"], .gp-ui input[type="number"], .gp-ui input[type="date"],
.gp-ui select, .gp-ui textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color 0.2s var(--ease-fluid), box-shadow 0.2s var(--ease-fluid);
}
.gp-ui textarea { resize: vertical; min-height: 64px; line-height: 1.55; }
.gp-ui input:focus, .gp-ui select:focus, .gp-ui textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px hsla(var(--brand-h), var(--brand-s), var(--brand-l), 0.18);
}
.gp-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.gp-form-row.row-3, .gp-form-row.gp-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gp-form-foot { display: flex; gap: 10px; flex-wrap: wrap; }
.gp-form-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.gp-form-inline input, .gp-form-inline select { width: auto; flex: 1 1 180px; }
.gp-addrow { display: flex; gap: 8px; margin-top: 10px; }
.gp-addrow input { flex: 1 1 auto; }
.gp-checks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.gp-ui .chk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.gp-ui .chk.big { font-size: 0.95rem; color: var(--text); padding: 6px 0; }
.gp-ui .chk input { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; }

/* ---------- listas editáveis ---------- */
.gp-listedit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gp-listedit li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.88rem;
}
.gp-li-x {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 6px;
}
.gp-li-x:hover { color: #DC2626; background: rgba(220, 38, 38, 0.08); }
.gp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- tabelas ---------- */
.gp-scrollx { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.gp-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.gp-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 8px 10px;
  border-bottom: 2px solid var(--border-strong);
  white-space: nowrap;
}
.gp-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.gp-table tbody tr:hover td { background: var(--bg-alt); }
.gp-table tr.sel td { background: hsla(var(--brand-h), var(--brand-s), var(--brand-l), 0.07); }
.gp-th-actions { width: 76px; }
.gp-rowactions { white-space: nowrap; text-align: right; }
.gp-rowactions .btn { min-height: 32px; padding: 4px 12px; font-size: 0.8rem; }
.gp-rowactions .icon-btn + .icon-btn, .gp-rowactions .btn + .icon-btn { margin-left: 6px; }
.gp-tsempty { text-align: center; color: var(--text-tertiary); padding: 22px 10px !important; }
.gp-table .cp { color: #DC2626; font-weight: 700; }
.gp-table.raci th, .gp-table.raci td { text-align: center; }
.gp-table.raci td:first-child { text-align: left; }
.raci-cell select {
  width: 58px !important;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 6px 4px !important;
}

/* status pills */
.gp-status {
  display: inline-block;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 10px;
  white-space: nowrap;
}
.st-idle { background: var(--bg-alt); color: var(--text-secondary); }
.st-run { background: rgba(0, 128, 255, 0.13); color: #0069CC; }
.st-ok { background: rgba(22, 163, 74, 0.14); color: #15803D; }
.st-late { background: rgba(220, 38, 38, 0.12); color: #B91C1C; }
.st-block { background: repeating-linear-gradient(45deg, rgba(120,120,130,.18) 0 6px, transparent 6px 12px); color: var(--text-secondary); }
[data-theme="dark"] .st-run { color: #7CC4FF; }
[data-theme="dark"] .st-ok { color: #4ADE80; }
[data-theme="dark"] .st-late { color: #F87171; }

/* barra de progresso */
.gp-pctbar {
  position: relative;
  height: 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.gp-pctbar.slim { height: 8px; margin: 8px 0 4px; }
.gp-pctbar span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; transition: width 0.4s var(--ease-fluid); }
.gp-pctbar span.low { background: var(--c-electric-blue); }
.gp-pctbar span.mid { background: var(--brand); }
.gp-pctbar span.ok { background: #16A34A; }
.gp-pctbar em {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ---------- SWOT ---------- */
.gp-swot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gp-swot-q { border-radius: var(--radius-sm); padding: 14px; border: 1px solid var(--border); }
.gp-swot-q h5 { margin: 0 0 10px; font-family: var(--font-display); font-size: 0.92rem; font-weight: 700; }
.gp-swot-q.pos  { background: rgba(22, 163, 74, 0.07);  border-color: rgba(22, 163, 74, 0.3); }
.gp-swot-q.neg  { background: rgba(220, 38, 38, 0.06);  border-color: rgba(220, 38, 38, 0.28); }
.gp-swot-q.pos2 { background: rgba(0, 128, 255, 0.07);  border-color: rgba(0, 128, 255, 0.3); }
.gp-swot-q.neg2 { background: rgba(184, 115, 51, 0.09); border-color: rgba(184, 115, 51, 0.35); }

/* ---------- stakeholders matrix ---------- */
.gp-stk-matrix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gp-stk-q { border-radius: var(--radius-sm); padding: 14px; border: 1px solid var(--border); min-height: 110px; }
.gp-stk-q h5 { margin: 0 0 4px; font-size: 0.9rem; font-family: var(--font-display); }
.gp-stk-q .chip { margin: 6px 6px 0 0; }
.gp-stk-q.q1 { background: rgba(217, 119, 6, 0.08); }
.gp-stk-q.q2 { background: rgba(220, 38, 38, 0.07); }
.gp-stk-q.q3 { background: var(--bg-alt); }
.gp-stk-q.q4 { background: rgba(0, 128, 255, 0.07); }

/* ---------- matriz de calor ---------- */
.gp-heatwrap { overflow-x: auto; margin-top: 10px; }
.gp-heat { border-collapse: separate; border-spacing: 4px; min-width: 320px; }
.gp-heat th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  padding: 4px 8px;
}
.gp-heat td {
  width: 52px;
  height: 40px;
  text-align: center;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}
.gp-heat td.h-green { background: #16A34A; }
.gp-heat td.h-yellow { background: #D97706; }
.gp-heat td.h-red { background: #DC2626; }
.gp-legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-size: 0.8rem; color: var(--text-secondary); }
.lg { display: inline-block; width: 18px; height: 12px; border-radius: 4px; }
.lg.h-green { background: #16A34A; }
.lg.h-yellow { background: #D97706; }
.lg.h-red { background: #DC2626; }

/* ---------- Gantt ---------- */
.gp-gantt-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px dashed var(--border);
}
.gp-gantt-row:last-child { border-bottom: 0; }
.gp-gantt-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gp-gantt-track {
  position: relative;
  height: 22px;
  background:
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px 48px),
    var(--bg-alt);
  border-radius: 6px;
  overflow: hidden;
}
.gp-bar {
  position: absolute;
  top: 4px;
  height: 14px;
  border-radius: 5px;
  min-width: 8px;
}
.gp-bar.norm { background: linear-gradient(135deg, var(--c-electric-blue), var(--brand)); opacity: 0.85; }
.gp-bar.crit { background: linear-gradient(135deg, var(--c-copper-light), var(--c-copper)); }
.gp-bar.done { background: linear-gradient(135deg, #22C55E, #16A34A) !important; opacity: 1 !important; }
.gp-bar.late { background: linear-gradient(135deg, #EF4444, #B91C1C) !important; }
.gp-bar.block { background: repeating-linear-gradient(45deg, #8892A0 0 6px, #6B7280 6px 12px) !important; }
.gp-bl-bar {
  position: absolute;
  top: 8px;
  height: 6px;
  border-radius: 3px;
  border: 1px dashed var(--c-copper);
  background: transparent;
}
.gp-milestone {
  position: absolute;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--c-laser-cyan);
  border: 2px solid #0891B2;
  transform: translateX(-6px) rotate(45deg);
  border-radius: 2px;
}

/* ---------- kanban execução ---------- */
.gp-kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(168px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.gp-kanban-col {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gp-kanban-col header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 8px;
  border-bottom: 2px solid var(--border-strong);
}
.gp-kanban-col h5 { margin: 0; font-size: 0.8rem; font-family: var(--font-display); }
.gp-kanban-col .cnt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 1px 8px;
}
.gp-kanban-col.st-run header { border-color: var(--c-electric-blue); }
.gp-kanban-col.st-ok header { border-color: #16A34A; }
.gp-kanban-col.st-late header { border-color: #DC2626; }
.gp-kanban-col.st-block header { border-color: var(--c-copper); }
.gp-kanban-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 3px 10px var(--shadow);
}
.gp-kanban-card strong { font-size: 0.84rem; line-height: 1.35; }
.kan-move { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }

/* ---------- dashboard ---------- */
.gp-health { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.gp-health-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.gp-health-item div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gp-health-item strong { font-size: 0.86rem; }
.gp-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.gp-kpi {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 6px 20px var(--shadow);
}
.gp-kpi h5 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}
.gp-kpi strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; }
.gp-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.gp-steps li::marker { color: var(--brand); font-weight: 700; }
.gp-toprisks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gp-toprisks li { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; flex-wrap: wrap; }
.gp-toprisks em { color: var(--text-tertiary); font-style: normal; font-size: 0.8rem; }

/* custos viz */
.gp-cost-line { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 8px; }
.gp-cost-line .lbl { font-size: 0.82rem; color: var(--text-secondary); }
.gp-cost-track { height: 12px; background: var(--bg-alt); border-radius: var(--radius-full); overflow: hidden; }
.gp-cost-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--c-electric-blue), var(--brand)); border-radius: inherit; }
.gp-cost-line em { font-style: normal; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; }

/* ajuda / fluxo / checklist */
.gp-help { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; color: var(--text-secondary); }
.gp-flow { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; color: var(--text-secondary); }
.gp-flow li::marker { color: var(--c-copper); font-weight: 700; }
.gp-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }

/* estado vazio */
.gp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 46px 24px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  background: var(--bg-card);
}
.gp-empty p { margin: 0; max-width: 480px; line-height: 1.6; font-size: 0.94rem; }

/* ---------- impressão GP ---------- */
#gpPrintRoot { display: none; }
@media print {
  html.gp-printing body * { visibility: hidden !important; }
  html.gp-printing #gpPrintRoot, html.gp-printing #gpPrintRoot * { visibility: visible !important; }
  html.gp-printing #gpPrintRoot {
    display: block !important;
    position: absolute;
    inset: 0;
    padding: 36px;
    color: #111;
    background: #fff;
    font-family: Georgia, 'Times New Roman', serif;
  }
  #gpPrintRoot h1 { font-size: 20pt; border-bottom: 2.5px solid #222; padding-bottom: 6px; margin: 0 0 4px; }
  #gpPrintRoot h2 { font-size: 13pt; margin: 18px 0 6px; color: #003; }
  #gpPrintRoot h3 { font-size: 11.5pt; margin: 14px 0 4px; }
  #gpPrintRoot .pr-meta { color: #666; font-size: 9pt; margin: 0 0 14px; }
  #gpPrintRoot table { border-collapse: collapse; width: 100%; margin: 8px 0; }
  #gpPrintRoot th, #gpPrintRoot td { border: 1px solid #888; padding: 5px 8px; font-size: 9.5pt; text-align: left; }
  #gpPrintRoot li, #gpPrintRoot p { font-size: 10.5pt; line-height: 1.5; }
}

/* ---------- responsivo GP ---------- */
@media (max-width: 1024px) {
  .gp-shell { grid-template-columns: 200px minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 900px) {
  .gp-shell { grid-template-columns: 1fr; padding: 0 14px 80px; }
  .gp-side {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding: 10px;
    gap: 14px;
    scrollbar-width: thin;
  }
  .gp-nav-group { flex-direction: row; align-items: center; gap: 4px; }
  .gp-nav-group h6 { writing-mode: vertical-rl; transform: rotate(180deg); padding: 0; margin: 0 4px 0 0; font-size: 0.6rem; }
  .gp-nav-item { white-space: nowrap; min-height: 40px; }
  .gp-kanban { grid-template-columns: repeat(5, minmax(178px, 240px)); }
  .gp-grid-2 { grid-template-columns: 1fr; }
  .gp-gantt-row { grid-template-columns: 130px minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .gp-form-row, .gp-form-row.gp-row-3 { grid-template-columns: 1fr; }
  .gp-swot { grid-template-columns: 1fr; }
  .gp-stk-matrix { grid-template-columns: 1fr; }
  .gp-gantt-row { grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
  .gp-head-l select { max-width: 210px; }
  .gp-tab { padding: 10px 14px; font-size: 0.85rem; }
}

/* ---------- Kaizen (Melhoria Contínua) ---------- */
.gp-ui { --text-1: var(--text); --text-2: var(--text-secondary); --ok: #16A34A; --danger: #DC2626; }
.gp-ui .kz-det { margin: 8px 0 0; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-alt); overflow: hidden; }
.gp-ui .kz-det summary { cursor: pointer; padding: 9px 12px; font-size: 0.82rem; font-weight: 600; color: var(--text-2); list-style: none; display: flex; align-items: center; gap: 8px; user-select: none; }
.gp-ui .kz-det summary::-webkit-details-marker { display: none; }
.gp-ui .kz-det summary::before { content: '+'; font-weight: 800; color: var(--brand); width: 14px; flex: none; }
.gp-ui .kz-det[open] summary::before { content: '\2212'; }
.gp-ui .kz-det[open] summary { border-bottom: 1px solid var(--border); }
.gp-ui .kz-det p { padding: 10px 12px; margin: 0; font-size: 0.86rem; line-height: 1.6; color: var(--text-2); }
.gp-ui .gp-li-check { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.gp-ui .gp-li-check:last-child { border-bottom: none; }
.gp-ui .chk.big { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; line-height: 1.5; cursor: pointer; margin: 6px 0; }
.gp-ui .chk.big input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--brand); flex: none; cursor: pointer; }
.gp-ui .gp-tplgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tplcard { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); }
.tplcard strong { font-size: 0.9rem; }
.tplcard .hint { flex: 1; }
.gp-ui .btn-sm { padding: 7px 12px; font-size: 0.8rem; border-radius: 9px; }
.gp-ui .gp-inp { width: 100%; padding: 10px 12px; font-size: 0.92rem; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg-card); color: var(--text-1); }
.gp-ui .gp-kcards { display: flex; flex-direction: column; gap: 8px; }
.gp-ui .gp-kanban-card h6 { margin: 0 0 6px; font-size: 0.84rem; line-height: 1.35; cursor: pointer; }
.gp-ui .gp-kmeta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.74rem; color: var(--text-2); }
.gp-ui .gp-kactions { display: flex; gap: 6px; justify-content: flex-end; margin-top: 8px; }
