/* ===================================
   Ferramentas de Planejamento - CSS
   =================================== */
:root {
    --primary-color: #1a365d;
    --primary-dark: #0f2a4d;
    --primary-light: #2d5a8a;
    --secondary-color: #d4af37;
    --secondary-dark: #b8941f;
    --accent-blue: #2563eb;
    --accent-green: #059669;
    --accent-red: #dc2626;
    --accent-purple: #7c3aed;
    --accent-orange: #ea580c;
    --accent-teal: #0891b2;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --font-primary: 'Inter', -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-primary);
    background: var(--gray-50);
    color: var(--gray-700);
    min-height: 100vh;
}

/* ===================================
   Header
   =================================== */
.tools-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.2s;
    white-space: nowrap;
}
.back-btn:hover { background: rgba(255,255,255,0.15); color: var(--white); }

.header-title { flex: 1; }
.header-title h1 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}
.header-title p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}

.header-badge {
    background: var(--secondary-color);
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

/* ===================================
   Tab Navigation
   =================================== */
.tools-tabs {
    background: var(--white);
    border-bottom: 2px solid var(--gray-200);
    position: sticky;
    top: 57px;
    z-index: 99;
}

.tabs-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 0;
    overflow-x: auto;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-500);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    margin-bottom: -2px;
}
.tab-btn:hover { color: var(--primary-color); }
.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
}
.tab-btn i { font-size: 0.95rem; }

/* ===================================
   Tool Panels
   =================================== */
.tool-panel { display: none; }
.tool-panel.active { display: block; }

.tool-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* ===================================
   Biblioteca de Prompts
   =================================== */
.prompt-library-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
    gap: 20px;
    align-items: start;
}

.prompt-profile-card,
.prompt-generator-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 22px;
}

.prompt-card-heading {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.prompt-card-heading > i {
    color: var(--white);
    background: var(--primary-color);
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.prompt-generator-card .prompt-card-heading > i { background: var(--accent-teal); }
.prompt-card-heading h3 { color: var(--primary-color); font-size: 1rem; margin: 1px 0 3px; }
.prompt-card-heading p { color: var(--gray-500); font-size: 0.8rem; line-height: 1.4; }

.prompt-profile-fields { display: grid; gap: 13px; }
.prompt-profile-fields label,
.prompt-output-header label {
    color: var(--gray-600);
    display: grid;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 5px;
}

.prompt-profile-fields input,
.prompt-profile-fields textarea,
.generated-prompt {
    color: var(--gray-700);
    font: 0.86rem/1.5 var(--font-primary);
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    padding: 9px 11px;
    width: 100%;
    resize: vertical;
    background: var(--white);
}

.prompt-profile-fields input:focus,
.prompt-profile-fields textarea:focus,
.generated-prompt:focus { outline: none; border-color: var(--accent-blue); }

.prompt-template-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.prompt-template-btn {
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: 6px;
    color: var(--gray-600);
    cursor: pointer;
    font: 600 0.8rem var(--font-primary);
    padding: 8px 11px;
    transition: all 0.2s;
}
.prompt-template-btn:hover { border-color: var(--primary-light); color: var(--primary-color); }
.prompt-template-btn.active { background: var(--primary-color); border-color: var(--primary-color); color: var(--white); }

.prompt-output-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.btn-prompt-copy {
    background: var(--accent-teal);
    border: 0;
    border-radius: 6px;
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 600 0.8rem var(--font-primary);
    padding: 8px 11px;
}
.btn-prompt-copy:hover { opacity: 0.9; }
.generated-prompt { background: var(--gray-50); min-height: 480px; white-space: pre-wrap; }

@media (max-width: 900px) {
    .prompt-library-layout { grid-template-columns: 1fr; }
}

/* ===================================
   Section Title
   =================================== */
.section-title {
    text-align: center;
    margin-bottom: 24px;
}
.section-title h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 6px;
}
.section-title p {
    color: var(--gray-500);
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   Canvas Actions Bar
   =================================== */
.canvas-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.canvas-actions-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.canvas-example-select {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray-600);
}
.canvas-example-select label { font-weight: 600; white-space: nowrap; }
.canvas-example-select select {
    padding: 6px 10px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 0.85rem;
    background: var(--white);
    cursor: pointer;
}

.btn-clear {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 6px; font-size: 0.82rem;
    font-weight: 600; cursor: pointer; border: 1px solid var(--gray-300);
    background: var(--white); color: var(--gray-600); transition: all 0.2s;
}
.btn-clear:hover { background: var(--gray-100); }

.btn-save {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 16px; border-radius: 6px; font-size: 0.82rem;
    font-weight: 600; cursor: pointer; border: none;
    background: var(--accent-green); color: var(--white); transition: all 0.2s;
}
.btn-save:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-print {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 6px; font-size: 0.82rem;
    font-weight: 600; cursor: pointer; border: 1px solid var(--primary-color);
    background: var(--white); color: var(--primary-color); transition: all 0.2s;
}
.btn-print:hover { background: var(--primary-color); color: var(--white); }

/* ===================================
   Objetivos de Longo Prazo
   =================================== */
.obj-lp-block {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    margin-bottom: 20px;
    overflow: hidden;
}

.obj-lp-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
}
.obj-lp-header > i {
    font-size: 1.2rem;
    opacity: 0.9;
    flex-shrink: 0;
}
.obj-lp-title {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.obj-lp-subtitle {
    display: block;
    font-size: 0.72rem;
    opacity: 0.75;
    margin-top: 1px;
}

.obj-lp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.obj-lp-card {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--gray-200);
}
.obj-lp-card:last-child { border-right: none; }

.obj-lp-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.obj-lp-card-header i { font-size: 0.85rem; }

.obj-lp-prazo {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255,255,255,0.25);
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: none;
    letter-spacing: 0;
}

.obj-trimestral { background: #d97706; }
.obj-semestral  { background: #2563eb; }
.obj-anual      { background: #059669; }
.obj-bienal     { background: #7c3aed; }

.obj-lp-textarea {
    flex: 1;
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-top: 1px solid var(--gray-100);
    font-size: 0.85rem;
    font-family: var(--font-primary);
    color: var(--gray-700);
    background: var(--gray-50);
    resize: none;
    min-height: 110px;
    line-height: 1.6;
    transition: background 0.2s;
}
.obj-lp-textarea:focus {
    outline: none;
    background: var(--white);
}

.obj-lp-card--full {
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
}

.obj-lp-textarea--full {
    min-height: 80px;
}

.obj-t1 { background: #d97706; }
.obj-t2 { background: #2563eb; }
.obj-t3 { background: #059669; }
.obj-t4 { background: #7c3aed; }

@media (max-width: 768px) {
    .obj-lp-grid { grid-template-columns: 1fr; }
    .obj-lp-card { border-right: none; border-bottom: 1px solid var(--gray-200); }
    .obj-lp-card:last-child { border-bottom: none; }
    .obj-lp-card--full { border-bottom: 1px solid var(--gray-200); }
}

/* ===================================
   Canvas Grid — Business Model Canvas
   =================================== */
.canvas-board {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gray-300);
    overflow: hidden;
}

/* BMC Main Grid: 5 cols × 2 rows */
.bmc-main {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.2fr 1fr 1.1fr;
    grid-template-rows: 1fr 1fr;
    border-bottom: 2px solid var(--gray-300);
}

.bmc-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Cell placement */
.bmc-partners     { grid-column: 1; grid-row: 1 / 3; border-right: 2px solid var(--gray-300); }
.bmc-activities   { grid-column: 2; grid-row: 1;     border-right: 2px solid var(--gray-300); border-bottom: 2px solid var(--gray-300); }
.bmc-value        { grid-column: 3; grid-row: 1 / 3; border-right: 2px solid var(--gray-300); }
.bmc-relationships{ grid-column: 4; grid-row: 1;     border-right: 2px solid var(--gray-300); border-bottom: 2px solid var(--gray-300); }
.bmc-segments     { grid-column: 5; grid-row: 1 / 3; }
.bmc-resources    { grid-column: 2; grid-row: 2;     border-right: 2px solid var(--gray-300); }
.bmc-channels     { grid-column: 4; grid-row: 2;     border-right: 2px solid var(--gray-300); }
.bmc-costs        { border-right: 2px solid var(--gray-300); }

.canvas-cell {
    display: flex;
    flex-direction: column;
}

.canvas-cell-header {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

/* BMC color palette */
.bmc-blue       { background: #3b82f6; }
.bmc-light-blue { background: #60a5fa; }
.bmc-orange     { background: #f97316; }
.bmc-gold       { background: #d97706; }
.bmc-teal       { background: #0d9488; }

/* Legacy color classes kept for compatibility */
.canvas-cell-header.blue   { background: var(--accent-blue); }
.canvas-cell-header.red    { background: var(--accent-red); }
.canvas-cell-header.green  { background: var(--accent-green); }
.canvas-cell-header.purple { background: var(--accent-purple); }
.canvas-cell-header.teal   { background: var(--accent-teal); }
.canvas-cell-header.orange { background: var(--accent-orange); }
.canvas-cell-header.navy   { background: var(--primary-color); }

.canvas-cell-subtitle {
    font-size: 0.68rem;
    font-weight: 500;
    opacity: 0.85;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
}

.canvas-fields { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.canvas-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.canvas-field label i { font-size: 0.65rem; }

.canvas-field textarea,
.canvas-field input[type="text"] {
    width: 100%;
    padding: 7px 9px;
    border: 1px solid var(--gray-200);
    border-radius: 5px;
    font-size: 0.8rem;
    font-family: var(--font-primary);
    color: var(--gray-700);
    background: var(--gray-50);
    resize: vertical;
    transition: border-color 0.2s;
    min-height: 56px;
}
.canvas-field textarea:focus,
.canvas-field input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--white);
}
.canvas-field input[type="text"] { min-height: unset; }

/* Canal selector */
.canal-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.canal-select {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid var(--gray-200);
    border-radius: 5px;
    font-size: 0.8rem;
    background: var(--white);
    cursor: pointer;
    min-width: 140px;
}
.btn-add-canal {
    padding: 7px 14px;
    background: var(--accent-green);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.btn-add-canal:hover { opacity: 0.85; }

.canais-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }

.canal-item {
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    overflow: hidden;
}
.canal-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    background: var(--gray-100);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-700);
}
.canal-item-header i { margin-right: 6px; }
.btn-remove-canal {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--accent-red);
    font-size: 0.85rem;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background 0.15s;
}
.btn-remove-canal:hover { background: rgba(220,38,38,0.1); }
.canal-item-body { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 10px; }
.canal-item-body .canvas-field { margin: 0; }

/* ===================================
   Save Toast
   =================================== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--gray-800);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast i { color: #4ade80; }

/* ===================================
   Kanban - Plano de Trabalho
   =================================== */
.kanban-toolbar {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.kanban-board-select {
    display: flex;
    align-items: center;
    gap: 8px;
}
.kanban-board-select label { font-size: 0.82rem; font-weight: 600; color: var(--gray-600); white-space: nowrap; }
.kanban-board-select select {
    padding: 7px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 0.85rem;
    background: var(--white);
    cursor: pointer;
    min-width: 160px;
}

.kanban-toolbar-btns { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }

.btn-kanban {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 6px; font-size: 0.82rem;
    font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.btn-kanban-primary { background: var(--accent-blue); color: var(--white); border: none; }
.btn-kanban-primary:hover { opacity: 0.9; }
.btn-kanban-danger { background: var(--accent-red); color: var(--white); border: none; }
.btn-kanban-danger:hover { opacity: 0.9; }
.btn-kanban-outline { background: var(--white); color: var(--gray-600); border: 1px solid var(--gray-300); }
.btn-kanban-outline:hover { background: var(--gray-100); }

/* ── Progress Bar ─────────────────────────────────────────────────────── */
.kanban-progress-wrap {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.kanban-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.kanban-progress-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 6px;
}

.kanban-progress-pct {
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent-blue);
    min-width: 42px;
    text-align: right;
}

.kanban-progress-bar-bg {
    height: 10px;
    background: var(--gray-200);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 10px;
}

.kanban-progress-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    transition: width 0.5s ease;
}

.kanban-progress-bar-fill[data-pct="100"] {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.kanban-progress-phrase {
    font-size: 0.82rem;
    color: var(--gray-500);
    font-style: italic;
    margin: 0;
    text-align: center;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.kanban-column {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 480px;
}

.kanban-column-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border-bottom: 2px solid var(--gray-200);
}
.kanban-col-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; color: var(--gray-700); }
.kanban-col-title i { font-size: 0.9rem; }
.col-todo .kanban-col-title i { color: var(--gray-500); }
.col-doing .kanban-col-title i { color: var(--accent-orange); }
.col-review .kanban-col-title i { color: var(--accent-purple); }
.kanban-count {
    background: var(--accent-blue);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.kanban-add-btn {
    width: 100%;
    padding: 8px;
    background: none;
    border: 1px dashed var(--gray-300);
    border-radius: 6px;
    color: var(--gray-500);
    font-size: 0.82rem;
    cursor: pointer;
    margin: 10px 0 4px;
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.kanban-add-btn:hover { background: var(--white); border-color: var(--accent-blue); color: var(--accent-blue); }

.kanban-cards {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 200px;
}

.kanban-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    cursor: grab;
    transition: box-shadow 0.2s, transform 0.1s;
    position: relative;
}
.kanban-card:hover { box-shadow: var(--shadow-md); }
.kanban-card.dragging { opacity: 0.5; cursor: grabbing; }

.kanban-card-title { font-weight: 600; font-size: 0.85rem; color: var(--gray-800); margin-bottom: 4px; }
.kanban-card-desc { font-size: 0.77rem; color: var(--gray-500); line-height: 1.5; margin-bottom: 8px; }
.kanban-card-footer { display: flex; align-items: center; justify-content: space-between; }
.kanban-card-meta { display: flex; align-items: center; gap: 6px; }

.priority-badge {
    font-size: 0.65rem; font-weight: 700; padding: 2px 7px;
    border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em;
}
.priority-alta { background: #fee2e2; color: var(--accent-red); }
.priority-media { background: #fef3c7; color: #b45309; }
.priority-baixa { background: #d1fae5; color: var(--accent-green); }

.kanban-card-date { font-size: 0.68rem; color: var(--gray-400); }
.kanban-card-actions { display: flex; gap: 4px; }
.btn-card-action {
    background: none; border: none; cursor: pointer;
    padding: 3px 5px; border-radius: 4px; color: var(--gray-400);
    font-size: 0.8rem; transition: all 0.15s;
}
.btn-card-action:hover { background: var(--gray-100); color: var(--gray-700); }
.btn-card-del:hover { color: var(--accent-red); background: #fee2e2; }
.btn-card-edit:hover { color: var(--accent-blue); background: #dbeafe; }
.kanban-card.drag-indicator-top { border-top: 3px solid var(--accent-blue); }
.kanban-card.drag-indicator-bottom { border-bottom: 3px solid var(--accent-blue); }

.kanban-empty {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 32px 16px; color: var(--gray-400);
    font-size: 0.82rem; text-align: center; gap: 8px;
}
.kanban-empty i { font-size: 1.8rem; }

/* ===================================
   Kanban Add Task Modal
   =================================== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    width: 100%; max-width: 440px;
    transform: translateY(-10px); transition: transform 0.2s;
}
.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-title { font-weight: 700; font-size: 1rem; color: var(--primary-color); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.modal-form { display: flex; flex-direction: column; gap: 12px; }
.modal-form label { font-size: 0.8rem; font-weight: 600; color: var(--gray-600); margin-bottom: 3px; display: block; }
.modal-form input, .modal-form textarea, .modal-form select {
    width: 100%; padding: 9px 12px; border: 1px solid var(--gray-300);
    border-radius: 6px; font-size: 0.85rem; font-family: var(--font-primary);
    color: var(--gray-700); background: var(--white); transition: border-color 0.2s;
}
.modal-form input:focus, .modal-form textarea:focus, .modal-form select:focus {
    outline: none; border-color: var(--accent-blue);
}
.modal-form textarea { min-height: 80px; resize: vertical; }
.modal-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.btn-modal-cancel {
    padding: 8px 16px; border-radius: 6px; font-size: 0.85rem; font-weight: 600;
    cursor: pointer; border: 1px solid var(--gray-300); background: var(--white); color: var(--gray-600);
}
.btn-modal-confirm {
    padding: 8px 18px; border-radius: 6px; font-size: 0.85rem; font-weight: 600;
    cursor: pointer; border: none; background: var(--accent-blue); color: var(--white);
}
.btn-modal-confirm:hover { opacity: 0.9; }

/* ===================================
   Funil de Vendas
   =================================== */
.funil-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.funil-stat-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 16px;
    text-align: center;
}
.funil-stat-card .stat-number {
    font-size: 1.8rem; font-weight: 800;
    color: var(--primary-color); line-height: 1;
    margin-bottom: 4px;
}
.funil-stat-card .stat-label {
    font-size: 0.75rem; color: var(--gray-500); font-weight: 500;
}
.funil-stat-card.highlight .stat-number { color: var(--accent-green); }

.funil-add-bar {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.funil-add-bar .form-field { display: flex; flex-direction: column; gap: 4px; }
.funil-add-bar label { font-size: 0.78rem; font-weight: 600; color: var(--gray-600); }
.funil-add-bar input, .funil-add-bar select {
    padding: 8px 12px; border: 1px solid var(--gray-300);
    border-radius: 6px; font-size: 0.85rem; font-family: var(--font-primary);
    color: var(--gray-700); background: var(--white);
}
.funil-add-bar input:focus, .funil-add-bar select:focus { outline: none; border-color: var(--accent-blue); }
.funil-add-bar input[name="prospect_name"] { width: 200px; }
.funil-add-bar input[name="prospect_area"] { width: 170px; }
.funil-add-bar select[name="prospect_stage"] { width: 160px; }
.btn-add-prospect {
    padding: 8px 18px; background: var(--primary-color); color: var(--white);
    border: none; border-radius: 6px; font-size: 0.85rem; font-weight: 600;
    cursor: pointer; transition: opacity 0.2s; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-add-prospect:hover { opacity: 0.9; }

.funil-board {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    overflow-x: auto;
}

.funil-column {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-width: 160px;
    display: flex;
    flex-direction: column;
}

.funil-col-header {
    padding: 10px 12px;
    text-align: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.funil-col-header.stage-0 { background: #6366f1; }
.funil-col-header.stage-1 { background: var(--accent-blue); }
.funil-col-header.stage-2 { background: var(--accent-orange); }
.funil-col-header.stage-3 { background: #8b5cf6; }
.funil-col-header.stage-4 { background: var(--accent-green); }
.funil-col-header.stage-5 { background: var(--accent-teal); }

.funil-col-count {
    display: inline-block;
    background: rgba(255,255,255,0.3);
    border-radius: 999px;
    font-size: 0.68rem;
    padding: 1px 8px;
    margin-top: 3px;
}

.funil-cards {
    padding: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 300px;
}

.prospect-card {
    background: var(--white);
    border-radius: 6px;
    padding: 10px 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    font-size: 0.8rem;
    cursor: default;
}
.prospect-name { font-weight: 700; color: var(--gray-800); margin-bottom: 2px; font-size: 0.82rem; }
.prospect-area { font-size: 0.72rem; color: var(--gray-500); margin-bottom: 8px; }
.prospect-date { font-size: 0.68rem; color: var(--gray-400); }

.prospect-actions {
    display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap;
}
.btn-move {
    font-size: 0.68rem; padding: 3px 7px;
    border-radius: 4px; border: 1px solid var(--gray-200);
    background: var(--gray-50); color: var(--gray-600);
    cursor: pointer; transition: all 0.15s;
    display: inline-flex; align-items: center; gap: 3px;
}
.btn-move:hover { background: var(--primary-color); color: var(--white); border-color: var(--primary-color); }
.btn-move-fwd { background: #eff6ff; border-color: var(--accent-blue); color: var(--accent-blue); }
.btn-move-fwd:hover { background: var(--accent-blue); color: var(--white); }
.btn-prospect-del { color: var(--accent-red); border-color: #fee2e2; background: #fff5f5; }
.btn-prospect-del:hover { background: var(--accent-red); color: var(--white); border-color: var(--accent-red); }

.funil-empty {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 20px 8px;
    color: var(--gray-400); font-size: 0.75rem; text-align: center; gap: 6px;
}
.funil-empty i { font-size: 1.4rem; }

/* ===================================
   Canvas de Diagnóstico Estratégico
   =================================== */

/* ── Row 1: 3 colunas ── */
.diag-row1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.diag-block {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.diag-block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    color: var(--white);
    flex-shrink: 0;
}
.diag-block-header > i { font-size: 1.15rem; opacity: 0.9; flex-shrink: 0; }
.diag-block-title {
    display: block;
    font-family: var(--font-display);
    font-size: 0.97rem;
    font-weight: 700;
}
.diag-block-sub { display: block; font-size: 0.7rem; opacity: 0.82; margin-top: 1px; }

/* Header colors */
.diag-blue  { background: linear-gradient(135deg, #1d6fa8, #3498db); }
.diag-red   { background: linear-gradient(135deg, #b93535, #e74c3c); }
.diag-green { background: linear-gradient(135deg, #1a9e55, #2ecc71); }

.diag-block-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Forças 2×2 inner grid */
.diag-forcas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Mercado Jurídico 2×2 grid (oportunidades + ameaças) */
.diag-mercado-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Oportunidade fields (green tint) */
.diag-field--oportunidade textarea {
    border-color: #27ae60;
    background: #eafaf1;
}
.diag-field--oportunidade textarea:focus { border-color: #1e8449; background: var(--white); }
.diag-field--oportunidade label { color: #1e7e46; }

/* Ameaça fields (red tint) */
.diag-field--ameaca textarea {
    border-color: #e74c3c;
    background: #fdf2f2;
}
.diag-field--ameaca textarea:focus { border-color: #c0392b; background: var(--white); }
.diag-field--ameaca label { color: #922b21; }

/* Insights fields (amber tint) — span full width in both grids */
.diag-mercado-insights,
.diag-forcas-insights {
    grid-column: 1 / -1;
}
.diag-field--insights textarea {
    border-color: #f39c12;
    background: #fef9ec;
}
.diag-field--insights textarea:focus { border-color: #d68910; background: var(--white); }
.diag-field--insights label { color: #9a6108; }

/* Shared field styles */
.diag-field label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gray-500);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.diag-field label i { font-size: 0.65rem; }

.diag-field textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: var(--font-primary);
    color: var(--gray-700);
    background: var(--gray-50);
    resize: vertical;
    min-height: 64px;
    line-height: 1.5;
    transition: border-color 0.2s, background 0.2s;
}
.diag-field textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--white);
}

/* Highlighted field (ameaças e oportunidades) */
.diag-field--highlight textarea {
    border-color: #e67e22;
    background: #fef9f4;
}
.diag-field--highlight textarea:focus { border-color: #e67e22; background: var(--white); }
.diag-field--highlight label { color: #a0530c; }

/* ── Row 2: Matriz Cruzada ── */
.diag-row2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.diag-cruzada-block {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.diag-cruzada-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    color: var(--white);
    flex-shrink: 0;
}
.diag-cruzada-header > i { font-size: 1.1rem; opacity: 0.9; flex-shrink: 0; }
.diag-cruzada-title {
    display: block;
    font-family: var(--font-display);
    font-size: 0.93rem;
    font-weight: 700;
}
.diag-cruzada-sub { display: block; font-size: 0.67rem; opacity: 0.82; margin-top: 1px; line-height: 1.35; }

/* Cruzada header colors */
.diag-cruzada-fo   { border-top: 3px solid #27ae60; }
.diag-cruzada-fo   .diag-cruzada-header { background: linear-gradient(135deg, #1a9e55, #27ae60); }
.diag-cruzada-fa   { border-top: 3px solid #e67e22; }
.diag-cruzada-fa   .diag-cruzada-header { background: linear-gradient(135deg, #ca6a10, #e67e22); }
.diag-cruzada-fraqo { border-top: 3px solid #8e44ad; }
.diag-cruzada-fraqo .diag-cruzada-header { background: linear-gradient(135deg, #6c2fa0, #8e44ad); }

.diag-cruzada-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.diag-cruzada-body .diag-field textarea { min-height: 70px; }

/* ── Exemplos Práticos ── */
.diag-examples-block {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.diag-examples-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}
.diag-examples-header i { color: var(--secondary-color); }

.diag-ex-tabs {
    display: flex;
    gap: 0;
    padding: 0 20px;
    border-bottom: 1px solid var(--gray-200);
    overflow-x: auto;
}
.diag-ex-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 18px;
    font-size: 0.85rem; font-weight: 600;
    color: var(--gray-500);
    background: none; border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer; white-space: nowrap;
    transition: all 0.2s;
    margin-bottom: -1px;
}
.diag-ex-tab:hover { color: var(--primary-color); }
.diag-ex-tab.active { color: var(--primary-color); border-bottom-color: var(--secondary-color); }

.diag-ex-content { display: none; padding: 20px; }
.diag-ex-content.active { display: block; }

/* Example row 1: 3 cols */
.diag-ex-row1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.diag-ex-card {
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 0.79rem;
}
.diag-ex-card-header {
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.diag-ex-blue  .diag-ex-card-header { background: #2980b9; }
.diag-ex-red   .diag-ex-card-header { background: #c0392b; }
.diag-ex-green .diag-ex-card-header { background: #27ae60; }

.diag-ex-item {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    line-height: 1.5;
    color: var(--gray-700);
    font-size: 0.77rem;
}
.diag-ex-item:last-child { border-bottom: none; }
.diag-ex-item strong { color: var(--gray-800); display: block; margin-bottom: 2px; }
.diag-ex-item i { margin-right: 3px; }

.diag-ex-blue  .diag-ex-item { background: #eaf4fb; }
.diag-ex-red   .diag-ex-item { background: #fdf2f2; }
.diag-ex-green .diag-ex-item { background: #eafaf1; }
.diag-ex-orange { background: #fef5e7 !important; border-left: 3px solid #e67e22; }
.diag-ex-green-item { background: #eafaf1 !important; border-left: 3px solid #27ae60; }

/* 2-col inner grid for forcas */
.diag-ex-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.diag-ex-grid2 .diag-ex-item { border-right: 1px solid rgba(0,0,0,0.06); }
.diag-ex-grid2 .diag-ex-item:nth-child(2),
.diag-ex-grid2 .diag-ex-item:nth-child(4) { border-right: none; }
.diag-ex-grid2 .diag-ex-item:nth-child(3),
.diag-ex-grid2 .diag-ex-item:nth-child(4) { border-top: 1px solid rgba(0,0,0,0.08); }

/* Matriz Cruzada example row */
.diag-ex-cruzada-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 4px;
}

.diag-ex-cruzada-card {
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 0.79rem;
}

.diag-ex-cruzada-header {
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.74rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.diag-ex-cruzada-fo   .diag-ex-cruzada-header { background: #27ae60; }
.diag-ex-cruzada-fa   .diag-ex-cruzada-header { background: #e67e22; }
.diag-ex-cruzada-fraqo .diag-ex-cruzada-header { background: #8e44ad; }

.diag-ex-cruzada-fo   .diag-ex-item { background: #f4fbf7; }
.diag-ex-cruzada-fa   .diag-ex-item { background: #fdf5ec; }
.diag-ex-cruzada-fraqo .diag-ex-item { background: #f8f2fd; }

/* Responsive */
@media (max-width: 1100px) {
    .diag-row2 { grid-template-columns: 1fr; }
    .diag-ex-cruzada-row { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .diag-row1 { grid-template-columns: 1fr; }
    .diag-ex-row1 { grid-template-columns: 1fr; }
    .diag-row2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .diag-forcas-grid { grid-template-columns: 1fr; }
    .diag-mercado-grid { grid-template-columns: 1fr; }
    .diag-ex-grid2 { grid-template-columns: 1fr; }
    .diag-ex-cruzada-row { grid-template-columns: 1fr; }
}

/* ===================================
   PESTEL Analysis
   =================================== */
.pestel-profile-group {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.pestel-profile-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pestel-profile-field label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 5px;
}
.pestel-profile-field select {
    padding: 6px 10px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 0.82rem;
    background: var(--white);
    cursor: pointer;
    min-width: 150px;
}

.btn-pestel-example {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 6px; font-size: 0.82rem;
    font-weight: 600; cursor: pointer; border: none;
    background: var(--accent-purple); color: var(--white);
    transition: opacity 0.2s;
    white-space: nowrap;
    align-self: flex-end;
}
.btn-pestel-example:hover { opacity: 0.88; }

.pestel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.pestel-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pestel-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--white);
}

.pestel-letter {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    flex-shrink: 0;
}

.pestel-card-title {
    display: block;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
}
.pestel-card-sub {
    display: block;
    font-size: 0.7rem;
    opacity: 0.82;
    margin-top: 1px;
}

/* PESTEL color palette */
.pestel-p .pestel-card-header { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.pestel-e .pestel-card-header { background: linear-gradient(135deg, #059669, #10b981); }
.pestel-s .pestel-card-header { background: linear-gradient(135deg, #d97706, #f59e0b); }
.pestel-t .pestel-card-header { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.pestel-ec .pestel-card-header { background: linear-gradient(135deg, #047857, #34d399); }
.pestel-l .pestel-card-header { background: linear-gradient(135deg, #b91c1c, #ef4444); }

.pestel-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.pestel-field label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gray-500);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.pestel-field label i { font-size: 0.65rem; }
.pestel-field label .fa-arrow-up { color: var(--accent-green); }
.pestel-field label .fa-arrow-down { color: var(--accent-red); }
.pestel-field label .fa-lightbulb { color: #d97706; }

.pestel-field textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: var(--font-primary);
    color: var(--gray-700);
    background: var(--gray-50);
    resize: vertical;
    min-height: 60px;
    line-height: 1.5;
    transition: border-color 0.2s, background 0.2s;
}
.pestel-field textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--white);
}

/* PESTEL Summary Block */
.pestel-summary-block {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    margin-bottom: 20px;
    overflow: hidden;
}
.pestel-summary-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
}
.pestel-summary-header > i { font-size: 1.2rem; opacity: 0.9; }
.pestel-summary-title {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
}
.pestel-summary-sub { display: block; font-size: 0.72rem; opacity: 0.75; margin-top: 1px; }
.pestel-summary-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.pestel-summary-body .pestel-field {
    padding: 14px 16px;
    border-right: 1px solid var(--gray-200);
}
.pestel-summary-body .pestel-field:last-child { border-right: none; }
.pestel-summary-body .pestel-field textarea { min-height: 80px; }

/* PESTEL Examples Block */
.pestel-examples-block {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}
.pestel-examples-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}
.pestel-examples-header i { color: var(--secondary-color); }

.pestel-examples-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--gray-200);
    padding: 0 20px;
    overflow-x: auto;
}
.pestel-ex-tab {
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    margin-bottom: -1px;
}
.pestel-ex-tab:hover { color: var(--primary-color); }
.pestel-ex-tab.active { color: var(--primary-color); border-bottom-color: var(--secondary-color); }

.pestel-ex-content { display: none; padding: 16px 20px; }
.pestel-ex-content.active { display: block; }

.pestel-ex-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.pestel-ex-table thead th {
    background: var(--gray-100);
    padding: 9px 12px;
    text-align: left;
    font-weight: 700;
    color: var(--gray-600);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--gray-200);
}
.pestel-ex-table tbody td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: top;
    line-height: 1.5;
    color: var(--gray-700);
}
.pestel-ex-table tbody tr:last-child td { border-bottom: none; }
.pestel-ex-table tbody tr:hover td { background: var(--gray-50); }

.ex-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    font-size: 0.7rem; font-weight: 800;
    color: var(--white); margin-right: 4px;
}
.ex-p  { background: #3b82f6; }
.ex-e  { background: #059669; }
.ex-s  { background: #d97706; }
.ex-t  { background: #7c3aed; }
.ex-ec { background: #047857; }
.ex-l  { background: #dc2626; }

.row-p td:first-child { font-weight: 600; }
.row-e td:first-child { font-weight: 600; }
.row-s td:first-child { font-weight: 600; }
.row-t td:first-child { font-weight: 600; }
.row-ec td:first-child { font-weight: 600; }
.row-l td:first-child { font-weight: 600; }

/* ===================================
   SWOT Analysis
   =================================== */
.swot-matrix {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.swot-quadrant {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.swot-quadrant-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 2px solid var(--gray-100);
}

.swot-icon-badge {
    width: 40px; height: 40px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: var(--white);
    flex-shrink: 0;
}
.swot-s-color { background: linear-gradient(135deg, #059669, #10b981); }
.swot-w-color { background: linear-gradient(135deg, #dc2626, #f87171); }
.swot-o-color { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.swot-t-color { background: linear-gradient(135deg, #d97706, #fbbf24); }

.swot-q-title {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
}
.swot-q-title em { font-style: italic; font-size: 0.82rem; color: var(--gray-400); font-family: var(--font-primary); font-weight: 400; }
.swot-q-sub { display: block; font-size: 0.72rem; color: var(--gray-500); margin-top: 1px; }

.swot-quadrant-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.swot-hint {
    font-size: 0.74rem;
    font-style: italic;
    padding: 6px 10px;
    border-radius: 5px;
    line-height: 1.4;
}
.swot-hint-s { background: #ecfdf5; color: #065f46; }
.swot-hint-w { background: #fef2f2; color: #991b1b; }
.swot-hint-o { background: #eff6ff; color: #1e40af; }
.swot-hint-t { background: #fffbeb; color: #92400e; }

.swot-field label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gray-500);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.swot-field label i { font-size: 0.65rem; }

.swot-field textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: var(--font-primary);
    color: var(--gray-700);
    background: var(--gray-50);
    resize: vertical;
    min-height: 60px;
    line-height: 1.5;
    transition: border-color 0.2s, background 0.2s;
}
.swot-field textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--white);
}

.swot-tags-area {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 10px;
}

.swot-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 600;
}
.swot-tag-s { background: #d1fae5; color: #065f46; }
.swot-tag-w { background: #fee2e2; color: #991b1b; }
.swot-tag-o { background: #dbeafe; color: #1e40af; }
.swot-tag-t { background: #fef3c7; color: #92400e; }

.btn-remove-tag {
    background: none; border: none; cursor: pointer;
    font-size: 0.75rem; opacity: 0.6; padding: 0; line-height: 1;
    transition: opacity 0.15s;
}
.btn-remove-tag:hover { opacity: 1; }

.btn-add-swot-item {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px; border-radius: 6px; font-size: 0.78rem;
    font-weight: 600; cursor: pointer;
    border: 1px dashed var(--gray-300);
    background: none; color: var(--gray-500);
    transition: all 0.2s;
    align-self: flex-start;
}
.btn-add-swot-item:hover { border-color: var(--accent-blue); color: var(--accent-blue); background: #eff6ff; }

/* SWOT Action Block */
.swot-action-block {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    margin-bottom: 20px;
    overflow: hidden;
}
.swot-action-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
}
.swot-action-header > i { font-size: 1.2rem; opacity: 0.9; }
.swot-action-title { display: block; font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.swot-action-sub { display: block; font-size: 0.72rem; opacity: 0.75; margin-top: 1px; }

.swot-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.swot-action-card {
    padding: 16px 20px;
    border-right: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}
.swot-action-card:nth-child(2) { border-right: none; }
.swot-action-card:nth-child(3) { border-bottom: none; }
.swot-action-card:nth-child(4) { border-right: none; border-bottom: none; }

.swot-action-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--gray-700);
}
.swot-combo {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.75rem;
    font-weight: 800;
    background: var(--gray-100);
    border-radius: 5px;
    padding: 2px 6px;
}
.combo-s { color: #059669; }
.combo-w { color: #dc2626; }
.combo-o { color: #2563eb; }
.combo-t { color: #d97706; }

.swot-action-desc {
    font-size: 0.77rem;
    color: var(--gray-500);
    margin-bottom: 8px;
    line-height: 1.5;
}

.swot-action-card textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: var(--font-primary);
    color: var(--gray-700);
    background: var(--gray-50);
    resize: vertical;
    min-height: 70px;
    line-height: 1.5;
    transition: border-color 0.2s, background 0.2s;
}
.swot-action-card textarea:focus { outline: none; border-color: var(--accent-blue); background: var(--white); }

.swot-action-so .swot-action-card-header { color: #059669; }
.swot-action-wo .swot-action-card-header { color: #2563eb; }
.swot-action-st .swot-action-card-header { color: #d97706; }
.swot-action-wt .swot-action-card-header { color: #dc2626; }

/* SWOT Examples Block */
.swot-examples-block {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}
.swot-examples-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}
.swot-examples-header i { color: var(--secondary-color); }

.swot-ex-case { display: none; padding: 20px; }
.swot-ex-case.active { display: block; }

.swot-ex-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.swot-ex-matrix {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.swot-ex-q {
    border-radius: var(--radius);
    overflow: hidden;
}
.swot-ex-q-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.swot-ex-s .swot-ex-q-header { background: #059669; }
.swot-ex-w .swot-ex-q-header { background: #dc2626; }
.swot-ex-o .swot-ex-q-header { background: #2563eb; }
.swot-ex-t .swot-ex-q-header { background: #d97706; }

.swot-ex-q ul {
    list-style: none;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.swot-ex-s ul { background: #f0fdf4; }
.swot-ex-w ul { background: #fef2f2; }
.swot-ex-o ul { background: #eff6ff; }
.swot-ex-t ul { background: #fffbeb; }

.swot-ex-q ul li {
    font-size: 0.78rem;
    color: var(--gray-700);
    padding-left: 12px;
    position: relative;
    line-height: 1.5;
}
.swot-ex-q ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gray-400);
}

.swot-ex-insights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.swot-ex-insight {
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--gray-700);
}
.swot-ex-insight span {
    font-weight: 700;
    margin-right: 4px;
}
.swot-ex-insight-so { background: #f0fdf4; border-left: 3px solid #059669; }
.swot-ex-insight-so span { color: #059669; }
.swot-ex-insight-wo { background: #eff6ff; border-left: 3px solid #2563eb; }
.swot-ex-insight-wo span { color: #2563eb; }
.swot-ex-insight-st { background: #fffbeb; border-left: 3px solid #d97706; }
.swot-ex-insight-st span { color: #d97706; }
.swot-ex-insight-wt { background: #fef2f2; border-left: 3px solid #dc2626; }
.swot-ex-insight-wt span { color: #dc2626; }

.swot-ex-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    flex-wrap: wrap;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-500);
}
.swot-ex-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px; border-radius: 999px; font-size: 0.8rem;
    font-weight: 600; cursor: pointer;
    border: 1px solid var(--gray-300);
    background: var(--white); color: var(--gray-600);
    transition: all 0.2s;
}
.swot-ex-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
.swot-ex-btn.active { background: var(--primary-color); color: var(--white); border-color: var(--primary-color); }

.ex-s-badge { background: #059669; }
.ex-w-badge { background: #dc2626; }
.ex-o-badge { background: #2563eb; }
.ex-t-badge { background: #d97706; }

/* ===================================
   Canvas de Desenvolvimento de Branding
   =================================== */

.branding-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.branding-block {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.branding-block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    color: var(--white);
    flex-shrink: 0;
}
.branding-block-header > i { font-size: 1.15rem; opacity: 0.9; flex-shrink: 0; }
.branding-block-title {
    display: block;
    font-family: var(--font-display);
    font-size: 0.97rem;
    font-weight: 700;
}
.branding-block-sub { display: block; font-size: 0.7rem; opacity: 0.82; margin-top: 1px; }

.brand-purple { background: linear-gradient(135deg, #6c2fa0, #8e44ad); }
.brand-blue   { background: linear-gradient(135deg, #1d6fa8, #3498db); }
.brand-amber  { background: linear-gradient(135deg, #c0700c, #e8942b); }
.brand-teal   { background: linear-gradient(135deg, #0e7568, #16a085); }
.brand-green  { background: linear-gradient(135deg, #1a9e55, #2ecc71); }
.brand-red    { background: linear-gradient(135deg, #b93535, #e74c3c); }

.branding-block-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.branding-field label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gray-500);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.branding-field label i { font-size: 0.65rem; }
.branding-field label.label-green { color: var(--accent-green); }
.branding-field label.label-red   { color: var(--accent-red); }

.branding-field textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: var(--font-primary);
    color: var(--gray-700);
    background: var(--gray-50);
    resize: vertical;
    min-height: 64px;
    line-height: 1.5;
    transition: border-color 0.2s, background 0.2s;
}
.branding-field textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--white);
}

.branding-field--highlight textarea {
    border-color: #6c2fa0;
    background: #f9f5ff;
}
.branding-field--highlight textarea:focus { background: var(--white); }
.branding-field--highlight label { color: #6c2fa0; }

.branding-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.branding-two-col .branding-field textarea { min-height: 54px; }

/* ── Archetype Selector ── */
.archetype-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.archetype-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7px 4px 6px;
    border-radius: 8px;
    border: 2px solid var(--gray-200);
    background: var(--gray-50);
    cursor: pointer;
    text-align: center;
    transition: all 0.18s;
    gap: 2px;
    line-height: 1;
}
.archetype-pill:hover { border-color: var(--accent-blue); background: #eff6ff; }
.archetype-pill.selected {
    border-color: var(--accent-blue);
    background: var(--accent-blue);
    color: var(--white);
}
.archetype-pill i { font-size: 0.88rem; margin-bottom: 2px; }
.archetype-pill span { font-size: 0.67rem; font-weight: 700; }
.archetype-pill small { font-size: 0.56rem; opacity: 0.72; }
.archetype-pill.selected small { opacity: 0.88; }

.archetype-desc-box {
    font-size: 0.74rem;
    color: #1d6fa8;
    background: #eff6ff;
    border-radius: 6px;
    padding: 6px 10px;
    border: 1px solid #bfdbfe;
    display: none;
    line-height: 1.5;
}
.archetype-desc-box.visible { display: block; }

/* ── Tone Sliders ── */
.tone-sliders {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 4px 0;
}
.tone-slider-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tone-pole {
    font-size: 0.67rem;
    font-weight: 600;
    color: var(--gray-500);
    min-width: 70px;
    white-space: nowrap;
}
.tone-slider-item .tone-pole:last-child { text-align: right; }
.tone-range {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: var(--gray-300);
    border-radius: 99px;
    outline: none;
    cursor: pointer;
}
.tone-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 2px solid var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    cursor: pointer;
}
.tone-range::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 2px solid var(--white);
    cursor: pointer;
}

/* ── Color Palette Builder ── */
.color-palette-builder {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.color-swatch-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}
.color-input {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 2px;
    background: transparent;
    flex-shrink: 0;
}
.color-input::-webkit-color-swatch { border-radius: 6px; border: none; }
.color-input::-webkit-color-swatch-wrapper { padding: 0; }
.color-swatch-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.color-swatch-label {
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-500);
    letter-spacing: 0.05em;
}
.color-sig-input {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid var(--gray-200);
    border-radius: 5px;
    font-size: 0.75rem;
    font-family: var(--font-primary);
    color: var(--gray-700);
    background: var(--white);
}
.color-sig-input:focus { outline: none; border-color: var(--accent-blue); }

/* ── Value Block (full width) ── */
.branding-value-block {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    margin-bottom: 14px;
}
.branding-value-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}
.branding-value-header > i { font-size: 1.1rem; opacity: 0.9; }
.branding-value-title { display: block; font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.branding-value-sub { display: block; font-size: 0.7rem; opacity: 0.8; margin-top: 1px; }

.branding-value-body {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.branding-value-body .branding-field {
    padding: 14px 16px;
    border-right: 1px solid var(--gray-200);
}
.branding-value-body .branding-field:last-child { border-right: none; }
.branding-value-body .branding-field textarea { min-height: 72px; }

/* ── Examples Block ── */
.branding-examples-block {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    margin-bottom: 14px;
}
.branding-examples-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}
.branding-ex-tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    background: var(--white);
}
.branding-ex-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--gray-500);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    margin-bottom: -2px;
}
.branding-ex-tab:hover { color: var(--primary-color); }
.branding-ex-tab.active { color: var(--primary-color); border-bottom-color: var(--secondary-color); }

.branding-ex-content { display: none; padding: 16px; }
.branding-ex-content.active { display: block; }

.branding-ex-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}
.branding-ex-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}
.branding-ex-card-header {
    padding: 8px 12px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--white);
}
.branding-ex-item {
    padding: 7px 12px;
    font-size: 0.77rem;
    color: var(--gray-700);
    line-height: 1.5;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.branding-ex-item:last-child { border-bottom: none; }

.brand-ex-purple { background: #fdf7ff; }
.brand-ex-purple .branding-ex-card-header { background: linear-gradient(135deg, #6c2fa0, #8e44ad); }
.brand-ex-blue   { background: #f0f7ff; }
.brand-ex-blue   .branding-ex-card-header { background: linear-gradient(135deg, #1d6fa8, #3498db); }
.brand-ex-amber  { background: #fff8f0; }
.brand-ex-amber  .branding-ex-card-header { background: linear-gradient(135deg, #c0700c, #e8942b); }
.brand-ex-teal   { background: #f0faf8; }
.brand-ex-teal   .branding-ex-card-header { background: linear-gradient(135deg, #0e7568, #16a085); }
.brand-ex-green  { background: #f0faf5; }
.brand-ex-green  .branding-ex-card-header { background: linear-gradient(135deg, #1a9e55, #2ecc71); }
.brand-ex-red    { background: #fff5f5; }
.brand-ex-red    .branding-ex-card-header { background: linear-gradient(135deg, #b93535, #e74c3c); }

/* ── Value row in examples ── */
.branding-ex-value-row {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-lg);
    padding: 14px 16px;
}
.branding-ex-value-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}
.branding-ex-value-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.branding-ex-value-item {
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.15);
}
.branding-ex-value-item strong { color: var(--white); }
.branding-ex-value-highlight {
    background: rgba(212,175,55,0.28);
    border-color: var(--secondary-color);
}

/* ===================================
   Análise Competitiva
   =================================== */
.comp-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 4px;
    margin: 16px 0 10px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 2px solid var(--gray-200);
}
.comp-section-label i { color: var(--secondary-color); font-size: 0.9rem; }

/* Competitive analysis card color palette */
.comp-dir .pestel-card-header { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.comp-ind .pestel-card-header { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.comp-sub .pestel-card-header { background: linear-gradient(135deg, #ea580c, #fb923c); }
.comp-dig .pestel-card-header { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.comp-pos .pestel-card-header { background: linear-gradient(135deg, #059669, #34d399); }
.comp-exp .pestel-card-header { background: linear-gradient(135deg, #b91c1c, #f87171); }

/* Competitive analysis example tabs */
.comp-ex-tab {
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    margin-bottom: -1px;
}
.comp-ex-tab:hover { color: var(--primary-color); }
.comp-ex-tab.active { color: var(--primary-color); border-bottom-color: var(--secondary-color); }

.comp-ex-content { display: none; padding: 16px 20px; }
.comp-ex-content.active { display: block; }

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1100px) {
    .funil-board { grid-template-columns: repeat(3, 1fr); }
    .funil-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
    .bmc-main {
        grid-template-columns: 1fr 1fr 1.2fr 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .kanban-board { grid-template-columns: 1fr; }
    /* BMC stacks to single column on tablet */
    .bmc-main {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
    }
    .bmc-partners     { grid-column: 1 / 3; grid-row: auto; border-right: none; border-bottom: 2px solid var(--gray-300); }
    .bmc-activities   { grid-column: 1;     grid-row: auto; border-bottom: 2px solid var(--gray-300); }
    .bmc-resources    { grid-column: 2;     grid-row: auto; border-bottom: 2px solid var(--gray-300); }
    .bmc-value        { grid-column: 1 / 3; grid-row: auto; border-right: none; border-bottom: 2px solid var(--gray-300); }
    .bmc-relationships{ grid-column: 1;     grid-row: auto; border-bottom: 2px solid var(--gray-300); }
    .bmc-channels     { grid-column: 2;     grid-row: auto; border-bottom: 2px solid var(--gray-300); }
    .bmc-segments     { grid-column: 1 / 3; grid-row: auto; border-right: none; }
    .bmc-bottom { grid-template-columns: 1fr; }
    .bmc-costs { border-right: none; border-bottom: 2px solid var(--gray-300); }
}

@media (max-width: 640px) {
    .bmc-main { grid-template-columns: 1fr; }
    .bmc-partners, .bmc-activities, .bmc-resources, .bmc-value,
    .bmc-relationships, .bmc-channels, .bmc-segments {
        grid-column: 1; border-right: none;
        border-bottom: 2px solid var(--gray-300);
    }
}

@media (max-width: 640px) {
    .tool-container { padding: 16px 12px; }
    .funil-board { grid-template-columns: repeat(2, 1fr); }
    .funil-add-bar input[name="prospect_name"],
    .funil-add-bar input[name="prospect_area"],
    .funil-add-bar select[name="prospect_stage"] { width: 100%; }
    .kanban-toolbar { flex-direction: column; align-items: stretch; }
    .kanban-toolbar-btns { margin-left: 0; }
    .header-inner { padding: 10px 14px; }
    .tab-btn { padding: 10px 14px; font-size: 0.82rem; }
}

@media print {
    .tools-header, .tools-tabs, .canvas-actions { display: none !important; }
    body { background: white; }
    .canvas-board { box-shadow: none; border: 1px solid #ccc; }
}

@media (max-width: 900px) {
    .pestel-grid { grid-template-columns: 1fr 1fr; }
    .pestel-summary-body { grid-template-columns: 1fr; }
    .pestel-summary-body .pestel-field { border-right: none; border-bottom: 1px solid var(--gray-200); }
    .pestel-summary-body .pestel-field:last-child { border-bottom: none; }
    .swot-action-grid { grid-template-columns: 1fr; }
    .swot-action-card { border-right: none; }
    .swot-ex-matrix { grid-template-columns: 1fr; }
    .swot-ex-insights { grid-template-columns: 1fr; }
    /* Branding */
    .branding-row { grid-template-columns: 1fr; }
    .branding-value-body { grid-template-columns: 1fr 1fr; }
    .branding-value-body .branding-field:nth-child(2) { border-right: none; }
    .branding-value-body .branding-field:nth-child(3),
    .branding-value-body .branding-field:nth-child(4) { border-top: 1px solid var(--gray-200); }
    .branding-value-body .branding-field:nth-child(4) { border-right: none; }
    .branding-ex-grid { grid-template-columns: 1fr 1fr; }
    .branding-ex-value-items { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .pestel-grid { grid-template-columns: 1fr; }
    .swot-matrix { grid-template-columns: 1fr; }
    .pestel-profile-group { flex-direction: column; align-items: stretch; }
    .pestel-profile-field select { width: 100%; min-width: unset; }
    .btn-pestel-example { width: 100%; justify-content: center; }
    /* Branding */
    .archetype-selector { grid-template-columns: repeat(2, 1fr); }
    .branding-two-col { grid-template-columns: 1fr; }
    .branding-ex-grid { grid-template-columns: 1fr; }
    .branding-ex-value-items { grid-template-columns: 1fr; }
    .branding-value-body { grid-template-columns: 1fr; }
    .branding-value-body .branding-field { border-right: none; border-bottom: 1px solid var(--gray-200); }
    .branding-value-body .branding-field:last-child { border-bottom: none; }
}

/* ===================================
   DIAGNÓSTICO: PONTOS FORTES E FRACOS
   =================================== */

/* Hidden state */
.pf-hidden { display: none !important; }

/* Screens */
.pf-screen { animation: pf-fade-in 0.35s ease; }
@keyframes pf-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Intro Card ── */
.pf-intro-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 5vw, 56px);
    box-shadow: var(--shadow-md);
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}
.pf-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fdf6e6;
    color: #a9822f;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 18px;
    border: 1px solid #f0d990;
}
.pf-title {
    font-family: var(--font-display);
    font-size: clamp(22px, 3.5vw, 30px);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 14px;
    line-height: 1.25;
}
.pf-intro-text {
    color: var(--gray-500);
    font-size: 15px;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 28px;
}

/* Dimension preview grid */
.pf-dimensoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 32px;
    text-align: left;
}
.pf-dim-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
}
.pf-dim-tag i { font-size: 14px; }

/* Identification form */
.pf-form-id { max-width: 500px; margin: 0 auto; }
.pf-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 16px;
    text-align: left;
}
.pf-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}
.pf-field input {
    padding: 10px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font-primary);
    color: var(--gray-700);
    background: var(--white);
    transition: border-color 0.2s;
    outline: none;
}
.pf-field input:focus { border-color: var(--primary-light); }

/* Buttons */
.pf-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    margin-top: 8px;
}
.pf-btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.pf-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    border-radius: var(--radius);
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: background 0.2s;
}
.pf-btn-outline:hover { background: var(--gray-100); }
.pf-btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: background 0.2s;
    border: none;
}
.pf-btn-nav.prev {
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1.5px solid var(--gray-200);
}
.pf-btn-nav.prev:hover { background: var(--gray-200); }
.pf-btn-nav.next {
    background: var(--primary-color);
    color: var(--white);
}
.pf-btn-nav.next:hover { background: var(--primary-dark); }

/* ── Quiz Header / Progress ── */
.pf-quiz-header {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 18px 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}
.pf-progress-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 6px;
    text-align: right;
}
.pf-progress-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 99px;
    overflow: hidden;
}
.pf-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary-color));
    border-radius: 99px;
    transition: width 0.4s ease;
}

/* ── Dimension Card ── */
.pf-dim-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 20px;
}
.pf-dim-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
}
.pf-dim-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.pf-dim-card-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.pf-dim-card-num { font-size: 12px; opacity: 0.75; margin-top: 2px; }
.pf-dim-card-body { padding: 20px 24px; }

/* Likert question */
.pf-question {
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}
.pf-question:last-child { border-bottom: none; }
.pf-question-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 12px;
    line-height: 1.55;
}
.pf-likert {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.pf-likert-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.pf-likert-option input[type="radio"] { display: none; }
.pf-likert-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-500);
    transition: all 0.15s;
    user-select: none;
}
.pf-likert-option:hover .pf-likert-btn { border-color: var(--primary-light); color: var(--primary-color); background: #eef3fa; }
.pf-likert-option input:checked + .pf-likert-btn {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(26,54,93,0.3);
}
.pf-likert-label { font-size: 10px; color: var(--gray-400); text-align: center; max-width: 50px; line-height: 1.2; }

/* Open question */
.pf-open-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 20px;
}
.pf-open-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #2d5a8a, #3b78b8);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
}
.pf-open-body { padding: 18px 24px; }
.pf-open-body textarea {
    width: 100%;
    min-height: 80px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--font-primary);
    color: var(--gray-700);
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}
.pf-open-body textarea:focus { border-color: var(--primary-light); }

/* Navigation row */
.pf-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    margin-bottom: 32px;
}

/* ── Results ── */
.pf-results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
    padding-bottom: 40px;
    flex-wrap: wrap;
}
.pf-result-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}
.pf-result-header h2 {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--white);
    margin-bottom: 6px;
}
.pf-result-meta { font-size: 13px; opacity: 0.8; margin-bottom: 24px; }
.pf-score-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.pf-score-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.pf-score-num { font-size: 30px; font-weight: 800; line-height: 1; }
.pf-score-of { font-size: 11px; opacity: 0.7; }
.pf-score-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: var(--secondary-color);
    color: var(--primary-dark);
    margin-top: 8px;
}
.pf-score-info { flex: 1; }
.pf-score-info p { font-size: 14px; opacity: 0.85; line-height: 1.6; max-width: 520px; }

/* Chart section */
.pf-chart-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: center;
}
.pf-chart-wrap { width: 100%; max-width: 460px; }

/* Dimension table */
.pf-dim-table-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    overflow-x: auto;
}
.pf-section-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pf-dim-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pf-dim-table th {
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid var(--gray-200);
}
.pf-dim-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    vertical-align: middle;
}
.pf-dim-table tr:last-child td { border-bottom: none; }
.pf-badge-class {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.pf-badge-excelente { background: #dcfce7; color: #15803d; }
.pf-badge-forte { background: #d1fae5; color: #065f46; }
.pf-badge-estavel { background: #fef3c7; color: #92400e; }
.pf-badge-atencao { background: #ffedd5; color: #c2410c; }
.pf-badge-critico { background: #fee2e2; color: #991b1b; }

/* Score bar in table */
.pf-score-bar-wrap { display: flex; align-items: center; gap: 8px; }
.pf-score-bar-bg { flex: 1; height: 6px; background: var(--gray-200); border-radius: 99px; overflow: hidden; min-width: 60px; }
.pf-score-bar-fill { height: 100%; border-radius: 99px; transition: width 0.6s ease; }

/* Forças/Fraquezas */
.pf-ff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
@media (max-width: 700px) { .pf-ff-grid { grid-template-columns: 1fr; } }
.pf-ff-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-md);
}
.pf-ff-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
}
.pf-ff-header.forcas { color: #15803d; }
.pf-ff-header.fraquezas { color: #b91c1c; }
.pf-ff-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
    color: var(--gray-700);
    padding: 7px 0;
    border-bottom: 1px solid var(--gray-100);
    line-height: 1.5;
}
.pf-ff-item:last-child { border-bottom: none; }
.pf-ff-item .pf-ff-icon { flex-shrink: 0; margin-top: 2px; font-size: 13px; }
.pf-ff-item .pf-ff-icon.pos { color: #22c55e; }
.pf-ff-item .pf-ff-icon.neg { color: #ef4444; }

/* 90-day priorities */
.pf-priorities-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}
.pf-priority-item {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}
.pf-priority-item:last-child { border-bottom: none; }
.pf-priority-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}
.pf-priority-body { flex: 1; }
.pf-priority-dim { font-size: 12px; font-weight: 700; color: var(--primary-light); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.pf-priority-rec { font-size: 14px; color: var(--gray-700); line-height: 1.55; }

/* Comments section */
.pf-comments-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}
.pf-comment-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}
.pf-comment-item:last-child { border-bottom: none; }
.pf-comment-dim {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}
.pf-comment-text { font-size: 13.5px; color: var(--gray-600); line-height: 1.6; }

/* Open answers */
.pf-open-answers-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}
.pf-open-answer {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}
.pf-open-answer:last-child { border-bottom: none; }
.pf-open-answer-q { font-size: 13px; font-weight: 700; color: var(--primary-color); margin-bottom: 5px; }
.pf-open-answer-a { font-size: 14px; color: var(--gray-700); line-height: 1.6; font-style: italic; }

/* Print */
@media print {
    .tools-header, .tools-tabs, .pf-results-actions, #pf-screen-intro, #pf-screen-quiz { display: none !important; }
    #pontos-fortes-panel { display: block !important; }
    #pf-screen-results { display: block !important; }
    .pf-hidden { display: none !important; }
}

@media (max-width: 600px) {
    .pf-intro-card { padding: 24px 18px; }
    .pf-dim-card-header { padding: 14px 16px; }
    .pf-dim-card-body { padding: 14px 16px; }
    .pf-likert-btn { width: 38px; height: 38px; font-size: 13px; }
    .pf-result-header { padding: 22px 18px; }
    .pf-score-circle { width: 76px; height: 76px; }
    .pf-score-num { font-size: 26px; }
}
