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

:root {
  --navy-950:#0a0f1a;
  --navy-900:#0f172a;
  --navy-800:#1e293b;
  --navy-700:#334155;
  --navy-600:#475569;
  --navy-500:#64748b;
  --navy-400:#94a3b8;
  --navy-300:#cbd5e1;
  --navy-200:#e2e8f0;
  --navy-100:#f1f5f9;
  --navy-50:#f8fafc;
  --blue:#3b82f6;
  --blue-dark:#2563eb;
  --green:#22c55e;
  --red:#ef4444;
  --purple:#8b5cf6;
  --amber:#f59e0b;
  --bg:#fafbfc;
  --surface:#fff;
  --font:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}

body {
  font-family:var(--font);
  background:var(--bg);
  color:var(--navy-900);
  display:flex;
  min-height:100vh;
  font-size:14px;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width:64px;
  background:var(--navy-950);
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:16px 0;
  gap:4px;
  position:fixed;
  top:0;left:0;bottom:0;
  z-index:10;
}
.sidebar-logo {
  width:40px;height:40px;
  background:var(--blue);
  border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:800;font-size:13px;
  margin-bottom:12px;
  flex-shrink:0;
}
.sidebar-btn {
  width:44px;height:44px;
  border:none;background:transparent;
  color:var(--navy-500);
  border-radius:10px;
  cursor:pointer;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:2px;
  transition:all .2s;
  position:relative;
  flex-shrink:0;
}
.sidebar-btn svg { width:18px;height:18px; }
.sidebar-btn span { font-size:9px;font-weight:600;letter-spacing:.02em; }
.sidebar-btn:hover { background:rgba(255,255,255,.08);color:var(--navy-300); }
.sidebar-btn.active { background:rgba(59,130,246,.2);color:var(--blue); }
.sidebar-badge {
  position:absolute;top:6px;right:6px;
  background:var(--red);color:#fff;
  font-size:9px;font-weight:700;
  border-radius:99px;min-width:16px;height:16px;
  display:flex;align-items:center;justify-content:center;
  padding:0 3px;
}
.sidebar-divider {
  width:32px;height:1px;
  background:rgba(255,255,255,.08);
  margin:8px 0;
  flex-shrink:0;
}

/* ===== MAIN ===== */
.main {
  flex:1;
  margin-left:64px;
  display:flex;
  flex-direction:column;
  height:100vh;
  overflow:hidden;
}
.view { display:none;flex-direction:column;height:100%;overflow:hidden; }
.view.active { display:flex; }

/* ===== HEADER ===== */
.view-header {
  display:flex;align-items:center;gap:12px;
  padding:20px 32px;
  border-bottom:1px solid var(--navy-200);
  background:#fff;
  flex-shrink:0;
}
.view-header h2 {
  font-size:18px;font-weight:700;flex:1;
  display:flex;align-items:center;gap:8px;
}
.view-header h2 svg { width:20px;height:20px;color:var(--blue); }
.view-meta { font-size:13px;color:var(--navy-500); }

/* ===== BUTTONS ===== */
.btn {
  display:inline-flex;align-items:center;gap:6px;
  padding:8px 16px;border-radius:8px;
  font-size:13px;font-weight:500;
  cursor:pointer;border:none;
  transition:all .2s;
  font-family:var(--font);
}
.btn svg { width:14px;height:14px; }
.btn-primary { background:var(--blue);color:#fff; }
.btn-primary:hover { background:var(--blue-dark); }
.btn-ai { background:var(--purple);color:#fff; }
.btn-ai:hover { background:#7c3aed; }
.btn-secondary { background:var(--navy-100);color:var(--navy-700); }
.btn-secondary:hover { background:var(--navy-200); }
.btn-danger { background:#fee2e2;color:var(--red); }
.btn-danger:hover { background:#fecaca; }
.btn-success { background:#dcfce7;color:#16a34a; }
.btn-success:hover { background:#bbf7d0; }

/* ===== CAPTURAR ===== */
.capture-container {
  max-width:680px;margin:0 auto;
  padding:32px;width:100%;
  flex:1;overflow-y:auto;
}
.capture-input-wrap {
  background:#fff;
  border:2px solid var(--blue);
  border-radius:16px;
  padding:6px 6px 6px 20px;
  display:flex;align-items:center;gap:8px;
  box-shadow:0 4px 20px rgba(59,130,246,.12);
  margin-bottom:28px;
}
.capture-input-wrap input {
  flex:1;border:none;outline:none;
  font-size:16px;font-family:var(--font);
  color:var(--navy-900);background:transparent;
  padding:10px 0;
}
.capture-input-wrap input::placeholder { color:var(--navy-400); }
.capture-input-wrap button {
  width:44px;height:44px;
  background:var(--blue);border:none;border-radius:10px;
  color:#fff;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;transition:all .2s;
}
.capture-input-wrap button:hover { background:var(--blue-dark); }
.capture-input-wrap button svg { width:20px;height:20px; }
.capture-section-label {
  font-size:11px;font-weight:700;
  text-transform:uppercase;letter-spacing:.08em;
  color:var(--navy-400);margin-bottom:12px;
}
.inbox-item {
  background:#fff;border:1px solid var(--navy-200);
  border-radius:12px;padding:14px 16px;margin-bottom:8px;
  display:flex;align-items:center;gap:12px;
  transition:all .2s;
}
.inbox-item:hover { border-color:var(--navy-300);box-shadow:0 2px 8px rgba(0,0,0,.06); }
.inbox-item-body { flex:1; }
.inbox-item-text { font-size:15px;color:var(--navy-900); }
.inbox-item-source { font-size:11px;color:var(--navy-400);margin-top:2px; }
.inbox-item-del {
  width:28px;height:28px;border:none;background:transparent;
  color:var(--navy-300);border-radius:6px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:all .2s;opacity:0;flex-shrink:0;
}
.inbox-item:hover .inbox-item-del { opacity:1; }
.inbox-item-del:hover { background:#fee2e2;color:var(--red); }
.inbox-item-del svg { width:14px;height:14px; }
.inbox-empty {
  padding:48px 24px;text-align:center;
  color:var(--navy-400);font-size:14px;
}

/* ===== PROGRESS AI ===== */
.progress-container {
  background:#fff;border-bottom:1px solid var(--navy-200);
  padding:16px 32px;flex-shrink:0;
}
.progress-header { display:flex;justify-content:space-between;margin-bottom:8px; }
.progress-label { font-size:13px;font-weight:500;color:var(--navy-700); }
.progress-stats { font-size:13px;color:var(--navy-500); }
.progress-bar { height:6px;background:var(--navy-200);border-radius:99px;overflow:hidden; }
.progress-bar-fill { height:100%;background:var(--purple);border-radius:99px;transition:width .4s; }
.progress-status { font-size:12px;color:var(--navy-500);margin-top:6px; }

/* ===== ESCLARECER ===== */
.process-wrap {
  flex:1;display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  padding:32px;background:var(--bg);
  overflow-y:auto;
}
.process-progress { width:100%;max-width:560px;margin-bottom:32px; }
.process-progress-bar { height:4px;background:var(--navy-200);border-radius:99px;overflow:hidden; }
.process-progress-fill { height:100%;background:var(--blue);border-radius:99px;transition:width .4s; }
.process-counter { font-size:12px;color:var(--navy-400);margin-top:8px;text-align:center; }
.process-card {
  background:#fff;border-radius:20px;padding:40px;
  max-width:560px;width:100%;
  box-shadow:0 4px 32px rgba(0,0,0,.08);
}
.process-card-source {
  font-size:11px;color:var(--navy-400);
  text-transform:uppercase;letter-spacing:.08em;
  margin-bottom:12px;
}
.process-title-row {
  display:flex;align-items:flex-start;gap:8px;
  margin-bottom:32px;
}
.process-title {
  font-size:22px;font-weight:700;
  color:var(--navy-900);line-height:1.4;flex:1;
}
.process-edit-btn {
  width:32px;height:32px;border:none;background:transparent;
  color:var(--navy-300);border-radius:8px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;margin-top:4px;transition:all .2s;
}
.process-edit-btn:hover { background:var(--navy-100);color:var(--navy-600); }
.process-edit-btn svg { width:16px;height:16px; }
.process-title-input {
  font-size:20px;font-weight:700;
  padding:10px 14px;
  border:2px solid var(--blue);border-radius:10px;
  font-family:var(--font);color:var(--navy-900);
  outline:none;width:100%;
  margin-bottom:32px;display:none;
}
.process-question { text-align:center;margin-bottom:28px; }
.process-question-icon {
  width:56px;height:56px;background:var(--navy-50);
  border-radius:16px;
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 16px;color:var(--blue);
}
.process-question-icon svg { width:28px;height:28px; }
.process-question-text { font-size:18px;font-weight:600;color:var(--navy-800); }
.process-options { display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;margin-bottom:20px; }
.process-option {
  padding:8px 16px;
  border:1px solid var(--navy-200);border-radius:99px;
  background:#fff;font-size:13px;font-weight:500;
  cursor:pointer;transition:all .15s;
  display:flex;align-items:center;gap:6px;
  font-family:var(--font);color:var(--navy-700);
}
.process-option svg { width:14px;height:14px;flex-shrink:0; }
.process-option:hover { border-color:var(--blue);background:#eff6ff;color:var(--blue); }
.process-option.opt-yes { border-color:var(--green);color:#16a34a; }
.process-option.opt-yes:hover { background:#f0fdf4; }
.process-option.opt-no { border-color:var(--navy-300); }
.process-option.opt-no:hover { border-color:var(--navy-500);background:var(--navy-50);color:var(--navy-700); }
.process-option.opt-fast { border-color:var(--amber);color:#d97706; }
.process-option.opt-fast:hover { background:#fffbeb; }
.process-footer {
  display:flex;justify-content:space-between;align-items:center;
  padding-top:20px;border-top:1px solid var(--navy-100);
}
.process-btn-trash {
  padding:10px 16px;border:none;background:transparent;
  color:var(--navy-400);border-radius:8px;cursor:pointer;
  font-size:13px;font-weight:500;
  display:flex;align-items:center;gap:6px;
  transition:all .2s;font-family:var(--font);
}
.process-btn-trash:hover { background:#fee2e2;color:var(--red); }
.process-btn-trash svg { width:14px;height:14px; }
.process-btn-skip {
  padding:10px 16px;border:none;background:transparent;
  color:var(--navy-400);border-radius:8px;cursor:pointer;
  font-size:13px;font-weight:500;
  display:flex;align-items:center;gap:6px;
  transition:all .2s;font-family:var(--font);
}
.process-btn-skip:hover { background:var(--navy-100);color:var(--navy-700); }
.process-btn-skip svg { width:14px;height:14px; }
.process-done { text-align:center;padding:48px 24px; }
.process-done-icon {
  width:72px;height:72px;background:#dcfce7;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 20px;color:#16a34a;
}
.process-done-icon svg { width:36px;height:36px; }
.process-done h3 { font-size:22px;font-weight:700;margin-bottom:8px; }
.process-done p { color:var(--navy-500);margin-bottom:24px; }

/* ===== ORGANIZAR ===== */
.org-tabs {
  display:flex;gap:4px;
  padding:0 32px;
  border-bottom:1px solid var(--navy-200);
  background:#fff;flex-shrink:0;
  overflow-x:auto;
}
.org-tab {
  padding:12px 18px;font-size:13px;font-weight:500;
  color:var(--navy-500);border:none;background:transparent;
  cursor:pointer;border-bottom:2px solid transparent;
  margin-bottom:-1px;transition:all .2s;
  font-family:var(--font);
  display:flex;align-items:center;gap:6px;
  white-space:nowrap;flex-shrink:0;
}
.org-tab svg { width:14px;height:14px; }
.org-tab.active { color:var(--blue);border-bottom-color:var(--blue); }
.org-tab-badge {
  background:var(--navy-200);color:var(--navy-600);
  font-size:10px;font-weight:700;
  padding:1px 6px;border-radius:99px;
}
.org-tab.active .org-tab-badge { background:#dbeafe;color:var(--blue); }
.org-container { flex:1;overflow-y:auto;padding:24px 32px; }

/* ===== TASK ITEMS ===== */
.task-item {
  background:#fff;border:1px solid var(--navy-200);
  border-radius:12px;padding:14px 16px;margin-bottom:8px;
  display:flex;align-items:flex-start;gap:10px;
  transition:all .2s;
}
.task-item:hover { border-color:var(--navy-300);box-shadow:0 2px 8px rgba(0,0,0,.06); }
.drag-handle {
  color:var(--navy-300);cursor:grab;
  display:flex;align-items:center;padding:2px 0;
  opacity:0;transition:opacity .2s;flex-shrink:0;
  margin-top:2px;
}
.drag-handle svg { width:16px;height:16px; }
.task-item:hover .drag-handle { opacity:1; }
.task-item-content { flex:1;min-width:0; }
.task-item-title { font-size:15px;font-weight:500;color:var(--navy-900);margin-bottom:4px; }
.task-item-meta { display:flex;gap:8px;flex-wrap:wrap; }
.task-tag { font-size:11px;color:var(--navy-400); }
.task-tag-urgent { color:var(--red); }
.task-item-actions {
  display:flex;gap:4px;align-items:center;
  opacity:0;transition:opacity .2s;flex-shrink:0;
}
.task-item:hover .task-item-actions { opacity:1; }
.task-btn {
  width:30px;height:30px;border:none;background:transparent;
  color:var(--navy-400);border-radius:7px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:all .2s;
}
.task-btn svg { width:14px;height:14px; }
.task-btn:hover { background:var(--navy-100);color:var(--navy-700); }
.task-btn-danger:hover { background:#fee2e2;color:var(--red); }
.task-check {
  width:34px;height:34px;
  border:2px solid var(--navy-300);background:transparent;
  color:transparent;border-radius:50%;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:all .2s;flex-shrink:0;
}
.task-check svg { width:14px;height:14px; }
.task-check:hover { border-color:var(--green);background:#f0fdf4;color:var(--green); }
.ctx-filters { display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px; }
.ctx-filter {
  padding:5px 12px;border:1px solid var(--navy-200);
  border-radius:99px;font-size:12px;font-weight:500;
  cursor:pointer;background:#fff;color:var(--navy-600);
  transition:all .2s;font-family:var(--font);
}
.ctx-filter.active,.ctx-filter:hover { background:var(--blue);border-color:var(--blue);color:#fff; }
.org-empty { padding:40px 24px;text-align:center;color:var(--navy-400);font-size:14px; }

/* Inline edit form */
.task-edit-form {
  display:none;flex-direction:column;gap:8px;
  padding:12px 0 4px;
}
.task-edit-form.open { display:flex; }
.task-edit-row { display:flex;gap:8px;flex-wrap:wrap; }
.task-edit-input,.task-edit-select {
  padding:7px 10px;border:1px solid var(--navy-300);
  border-radius:8px;font-size:13px;font-family:var(--font);
  color:var(--navy-900);background:#fff;outline:none;
}
.task-edit-input:focus,.task-edit-select:focus { border-color:var(--blue); }
.task-edit-input { flex:1;min-width:160px; }
.task-edit-actions { display:flex;gap:6px; }

/* Sortable */
.sortable-ghost { opacity:.4; }
.sortable-drag { box-shadow:0 8px 24px rgba(0,0,0,.12); }

/* ===== REFLETIR ===== */
.review-wrap { max-width:600px;margin:0 auto;padding:32px;flex:1;overflow-y:auto; }
.review-intro {
  background:linear-gradient(135deg,#eff6ff,#f0fdf4);
  border-radius:16px;padding:24px;margin-bottom:28px;
  border:1px solid #dbeafe;
}
.review-intro h3 { font-size:16px;font-weight:700;margin-bottom:6px;color:var(--navy-800); }
.review-intro p { font-size:13px;color:var(--navy-600);line-height:1.6; }
.review-step {
  background:#fff;border:1px solid var(--navy-200);
  border-radius:12px;padding:16px 20px;margin-bottom:8px;
  display:flex;align-items:center;gap:14px;
  cursor:pointer;transition:all .2s;
}
.review-step:hover { border-color:var(--navy-300);box-shadow:0 2px 8px rgba(0,0,0,.06); }
.review-step.done { opacity:.5; }
.review-step.done .review-step-title { text-decoration:line-through; }
.review-step-check {
  width:24px;height:24px;border:2px solid var(--navy-300);
  border-radius:6px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  color:transparent;transition:all .2s;
}
.review-step-check svg { width:14px;height:14px; }
.review-step.done .review-step-check { background:var(--green);border-color:var(--green);color:#fff; }
.review-step-content { flex:1; }
.review-step-title { font-size:15px;font-weight:500;color:var(--navy-900); }
.review-step-desc { font-size:12px;color:var(--navy-500);margin-top:2px; }
.review-progress { text-align:center;margin-top:24px;color:var(--navy-500);font-size:13px; }

/* ===== ENGAJAR ===== */
.engage-wrap {
  flex:1;display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  padding:32px;background:var(--bg);overflow-y:auto;
}
.engage-ctx-filters { display:flex;gap:6px;flex-wrap:wrap;margin-bottom:32px; }
.engage-card {
  background:#fff;border-radius:20px;padding:48px 40px;
  max-width:560px;width:100%;
  box-shadow:0 4px 32px rgba(0,0,0,.08);text-align:center;
}
.engage-card-ctx {
  font-size:12px;font-weight:600;text-transform:uppercase;
  letter-spacing:.08em;color:var(--blue);margin-bottom:16px;
}
.engage-card-title {
  font-size:28px;font-weight:700;color:var(--navy-900);
  line-height:1.3;margin-bottom:40px;
}
.engage-card-actions { display:flex;flex-direction:column;gap:10px;align-items:center; }
.engage-btn-done {
  width:100%;padding:18px;background:var(--green);color:#fff;
  border:none;border-radius:14px;font-size:18px;font-weight:700;
  cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;
  transition:all .2s;font-family:var(--font);
}
.engage-btn-done svg { width:22px;height:22px; }
.engage-btn-done:hover { background:#16a34a;transform:translateY(-1px);box-shadow:0 4px 16px rgba(34,197,94,.3); }
.engage-btn-skip {
  padding:12px 24px;background:transparent;color:var(--navy-500);
  border:none;border-radius:10px;font-size:14px;font-weight:500;
  cursor:pointer;transition:all .2s;font-family:var(--font);
}
.engage-btn-skip:hover { background:var(--navy-100);color:var(--navy-700); }
.engage-counter { font-size:13px;color:var(--navy-400);margin-top:16px; }
.engage-empty { text-align:center;padding:48px 24px; }
.engage-empty-icon {
  width:64px;height:64px;background:#dcfce7;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 16px;color:#16a34a;
}
.engage-empty-icon svg { width:32px;height:32px; }
.engage-empty h3 { font-size:20px;font-weight:700;margin-bottom:8px; }
.engage-empty p { color:var(--navy-500);font-size:14px; }

/* ===== SETTINGS ===== */
.settings-wrap { max-width:560px;margin:0 auto;padding:32px;flex:1;overflow-y:auto; }
.settings-section {
  background:#fff;border:1px solid var(--navy-200);
  border-radius:14px;padding:20px;margin-bottom:16px;
}
.settings-section h3 { font-size:14px;font-weight:700;margin-bottom:4px; }
.settings-section p { font-size:12px;color:var(--navy-500);margin-bottom:16px;line-height:1.5; }
.ctx-item {
  display:flex;align-items:center;justify-content:space-between;
  padding:10px 12px;background:var(--navy-50);
  border-radius:8px;margin-bottom:6px;
}
.ctx-item-label { font-weight:500;font-size:14px; }
.ctx-item-actions { display:flex;gap:4px; }
.ctx-add { display:flex;gap:8px;flex-wrap:wrap;margin-top:12px; }
.ctx-add input {
  flex:1;min-width:120px;padding:8px 12px;
  border:1px solid var(--navy-300);border-radius:8px;
  font-size:13px;font-family:var(--font);outline:none;
}
.ctx-add input:focus { border-color:var(--blue); }

/* ===== CALENDÁRIO ===== */
.cal-nav-btn {
  width:36px;height:36px;border:none;background:var(--navy-100);
  border-radius:8px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  color:var(--navy-600);transition:all .2s;flex-shrink:0;
}
.cal-nav-btn:hover { background:var(--navy-200); }
.cal-nav-btn svg { width:18px;height:18px; }

.cal-wrap {
  flex:1;display:flex;flex-direction:column;
  overflow:hidden;padding:0 24px 24px;
}
.cal-grid-header {
  display:grid;grid-template-columns:repeat(7,1fr);
  gap:2px;margin-bottom:4px;
}
.cal-grid-header div {
  text-align:center;font-size:11px;font-weight:700;
  text-transform:uppercase;letter-spacing:.06em;
  color:var(--navy-400);padding:8px 0;
}
.cal-grid {
  display:grid;grid-template-columns:repeat(7,1fr);
  gap:2px;flex:1;
}
.cal-day {
  background:#fff;border:1px solid var(--navy-200);
  border-radius:10px;padding:8px;
  min-height:80px;cursor:pointer;
  transition:all .2s;display:flex;flex-direction:column;gap:3px;
  overflow:hidden;
}
.cal-day:hover { border-color:var(--blue);box-shadow:0 2px 8px rgba(59,130,246,.1); }
.cal-day.today { border-color:var(--blue);background:#eff6ff; }
.cal-day.other-month { background:var(--navy-50);opacity:.5; }
.cal-day.selected { border-color:var(--blue);box-shadow:0 0 0 2px rgba(59,130,246,.3); }
.cal-day-num {
  font-size:13px;font-weight:600;color:var(--navy-700);
  width:24px;height:24px;display:flex;align-items:center;justify-content:center;
  border-radius:50%;flex-shrink:0;
}
.cal-day.today .cal-day-num {
  background:var(--blue);color:#fff;
}
.cal-task-dot {
  font-size:11px;color:var(--navy-700);
  background:var(--navy-100);border-radius:4px;
  padding:1px 5px;white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;line-height:1.4;
}
.cal-task-dot.urgent { background:#fee2e2;color:var(--red); }
.cal-task-dot.done { opacity:.4;text-decoration:line-through; }
.cal-more { font-size:10px;color:var(--navy-400);padding:1px 4px; }

/* Day panel */
.cal-day-panel {
  position:fixed;right:0;top:0;bottom:0;width:320px;
  background:#fff;border-left:1px solid var(--navy-200);
  box-shadow:-4px 0 24px rgba(0,0,0,.08);
  display:flex;flex-direction:column;z-index:20;
}
.cal-day-panel-header {
  display:flex;align-items:center;justify-content:space-between;
  padding:20px 20px 16px;border-bottom:1px solid var(--navy-200);
  flex-shrink:0;
}
.cal-day-panel-title { font-size:16px;font-weight:700;color:var(--navy-900); }
.cal-day-panel-close {
  width:32px;height:32px;border:none;background:transparent;
  color:var(--navy-400);border-radius:8px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;transition:all .2s;
}
.cal-day-panel-close:hover { background:var(--navy-100);color:var(--navy-700); }
.cal-day-panel-close svg { width:16px;height:16px; }
.cal-day-panel-body { flex:1;overflow-y:auto;padding:16px 20px; }
.cal-panel-task {
  background:var(--navy-50);border:1px solid var(--navy-200);
  border-radius:10px;padding:12px 14px;margin-bottom:8px;
  display:flex;align-items:flex-start;gap:10px;
}
.cal-panel-task-content { flex:1;min-width:0; }
.cal-panel-task-title { font-size:14px;font-weight:500;color:var(--navy-900);margin-bottom:3px; }
.cal-panel-task-meta { font-size:11px;color:var(--navy-400); }
.cal-panel-task-check {
  width:28px;height:28px;border:2px solid var(--navy-300);
  background:transparent;color:transparent;border-radius:50%;
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:all .2s;flex-shrink:0;
}
.cal-panel-task-check svg { width:12px;height:12px; }
.cal-panel-task-check:hover { border-color:var(--green);background:#f0fdf4;color:var(--green); }
.cal-panel-empty { padding:32px 0;text-align:center;color:var(--navy-400);font-size:13px; }
.cal-panel-section { font-size:11px;font-weight:700;text-transform:uppercase;
  letter-spacing:.06em;color:var(--navy-400);margin:16px 0 8px; }
.cal-due-form {
  margin-top:16px;padding-top:16px;border-top:1px solid var(--navy-200);
}
.cal-due-form label { font-size:12px;font-weight:600;color:var(--navy-600);display:block;margin-bottom:6px; }
.cal-due-select {
  width:100%;padding:8px 10px;border:1px solid var(--navy-300);
  border-radius:8px;font-size:13px;font-family:var(--font);
  color:var(--navy-900);outline:none;margin-bottom:8px;
}
.cal-due-select:focus { border-color:var(--blue); }

/* ===== ORG ADD FORM ===== */
.org-add-form {
  display:flex;gap:8px;align-items:center;
  margin-bottom:16px;
  background:#fff;border:2px solid var(--blue);
  border-radius:12px;padding:6px 6px 6px 16px;
  box-shadow:0 2px 12px rgba(59,130,246,.08);
}
.org-add-input {
  flex:1;border:none;outline:none;
  font-size:15px;font-family:var(--font);
  color:var(--navy-900);background:transparent;
  padding:8px 0;
}
.org-add-input::placeholder { color:var(--navy-400); }

/* ===== MODAL PROJETO ===== */
.modal-overlay {
  position:fixed;inset:0;
  background:rgba(0,0,0,.4);
  display:flex;align-items:center;justify-content:center;
  z-index:100;padding:24px;
}
.modal-card {
  background:#fff;border-radius:20px;
  width:100%;max-width:520px;
  box-shadow:0 8px 48px rgba(0,0,0,.16);
  display:flex;flex-direction:column;gap:0;
  max-height:90vh;overflow-y:auto;
}
.modal-header {
  display:flex;align-items:center;gap:12px;
  padding:24px 24px 16px;border-bottom:1px solid var(--navy-100);
  flex-shrink:0;
}
.modal-icon { width:22px;height:22px;color:var(--blue);flex-shrink:0; }
.modal-title-input {
  flex:1;border:none;outline:none;
  font-size:18px;font-weight:700;
  font-family:var(--font);color:var(--navy-900);
  background:transparent;
}
.modal-title-input::placeholder { color:var(--navy-300); }
.modal-close {
  width:32px;height:32px;border:none;background:transparent;
  color:var(--navy-400);border-radius:8px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:all .2s;flex-shrink:0;
}
.modal-close:hover { background:var(--navy-100);color:var(--navy-700); }
.modal-close svg { width:16px;height:16px; }
.modal-section { padding:16px 24px;border-bottom:1px solid var(--navy-100); }
.modal-label {
  font-size:11px;font-weight:700;text-transform:uppercase;
  letter-spacing:.06em;color:var(--navy-400);
  display:block;margin-bottom:8px;
}
.modal-textarea {
  width:100%;padding:10px 12px;
  border:1px solid var(--navy-200);border-radius:10px;
  font-size:14px;font-family:var(--font);color:var(--navy-900);
  outline:none;resize:none;line-height:1.5;
}
.modal-textarea:focus { border-color:var(--blue); }
.modal-next-action {
  display:flex;align-items:center;gap:10px;
  padding:12px 14px;
  background:#f0fdf4;border:1px solid #bbf7d0;
  border-radius:10px;color:#16a34a;font-size:14px;font-weight:500;
}
.modal-next-action svg { width:16px;height:16px;flex-shrink:0; }
.modal-action-item {
  display:flex;align-items:center;gap:10px;
  padding:8px 0;border-bottom:1px solid var(--navy-100);
}
.modal-action-item:last-child { border-bottom:none; }
.modal-action-check {
  width:22px;height:22px;border:2px solid var(--navy-300);
  border-radius:5px;background:transparent;color:transparent;
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:all .2s;flex-shrink:0;
}
.modal-action-check svg { width:12px;height:12px; }
.modal-action-check:hover { border-color:var(--green);background:#f0fdf4;color:var(--green); }
.modal-action-check.done { background:var(--green);border-color:var(--green);color:#fff; }
.modal-action-title {
  flex:1;font-size:14px;color:var(--navy-800);
}
.modal-action-title.done { text-decoration:line-through;color:var(--navy-400); }
.modal-action-del {
  width:26px;height:26px;border:none;background:transparent;
  color:var(--navy-300);border-radius:6px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:all .2s;opacity:0;
}
.modal-action-item:hover .modal-action-del { opacity:1; }
.modal-action-del:hover { background:#fee2e2;color:var(--red); }
.modal-action-del svg { width:13px;height:13px; }
.modal-add-action {
  display:flex;gap:8px;align-items:center;margin-top:10px;
}
.modal-add-input {
  flex:1;padding:8px 12px;
  border:1px solid var(--navy-200);border-radius:8px;
  font-size:13px;font-family:var(--font);outline:none;
}
.modal-add-input:focus { border-color:var(--blue); }
.btn-sm { padding:8px 12px;font-size:12px; }
.btn-sm svg { width:14px;height:14px; }
.modal-footer {
  display:flex;justify-content:space-between;align-items:center;
  padding:16px 24px;flex-shrink:0;
}

/* ===== METAS ===== */
.goals-wrap { flex:1;overflow-y:auto;padding:24px 32px;max-width:680px;margin:0 auto;width:100%; }
.goals-horizon { margin-bottom:28px; }
.goals-horizon-title {
  font-size:11px;font-weight:700;text-transform:uppercase;
  letter-spacing:.08em;color:var(--navy-400);
  margin-bottom:12px;display:flex;align-items:center;gap:8px;
}
.goals-horizon-title svg { width:14px;height:14px; }
.goal-item {
  background:#fff;border:1px solid var(--navy-200);
  border-radius:12px;padding:14px 16px;margin-bottom:8px;
  display:flex;align-items:flex-start;gap:12px;transition:all .2s;
}
.goal-item:hover { border-color:var(--navy-300);box-shadow:0 2px 8px rgba(0,0,0,.06); }
.goal-check {
  width:28px;height:28px;border:2px solid var(--navy-300);
  border-radius:50%;background:transparent;color:transparent;
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:all .2s;flex-shrink:0;margin-top:2px;
}
.goal-check svg { width:13px;height:13px; }
.goal-check:hover { border-color:var(--green);background:#f0fdf4;color:var(--green); }
.goal-content { flex:1;min-width:0; }
.goal-title { font-size:15px;font-weight:500;color:var(--navy-900);margin-bottom:3px; }
.goal-notes { font-size:12px;color:var(--navy-500);line-height:1.5; }
.goal-del {
  width:28px;height:28px;border:none;background:transparent;
  color:var(--navy-300);border-radius:6px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:all .2s;opacity:0;flex-shrink:0;
}
.goal-item:hover .goal-del { opacity:1; }
.goal-del:hover { background:#fee2e2;color:var(--red); }
.goal-del svg { width:14px;height:14px; }
.goal-add-form {
  background:#fff;border:2px dashed var(--navy-200);
  border-radius:12px;padding:16px;margin-bottom:8px;
  display:none;flex-direction:column;gap:10px;
}
.goal-add-form.open { display:flex; }
.goal-add-row { display:flex;gap:8px;flex-wrap:wrap; }
.goal-add-input {
  flex:1;padding:8px 12px;border:1px solid var(--navy-300);
  border-radius:8px;font-size:14px;font-family:var(--font);outline:none;
}
.goal-add-input:focus { border-color:var(--blue); }
.goal-add-select {
  padding:8px 12px;border:1px solid var(--navy-300);
  border-radius:8px;font-size:13px;font-family:var(--font);outline:none;
}

/* ===== AGUARDANDO badge ===== */
#badge-aguardando { background:var(--amber);color:#fff; }

/* ===== REVISÃO PROJETO ===== */
.proj-review-badge {
  font-size:11px;color:var(--amber);font-weight:600;
  display:flex;align-items:center;gap:4px;margin-top:3px;
}
.proj-review-badge svg { width:12px;height:12px; }

/* ===== MIND SWEEP ===== */
.sweep-wrap {
  flex:1;display:flex;flex-direction:column;
  align-items:center;justify-content:flex-start;
  padding:32px;overflow-y:auto;background:var(--bg);
}

/* Intro */
.sweep-intro {
  max-width:560px;width:100%;text-align:center;padding:24px 0;
}
.sweep-intro-icon {
  width:72px;height:72px;background:linear-gradient(135deg,#eff6ff,#f0fdf4);
  border-radius:50%;display:flex;align-items:center;justify-content:center;
  margin:0 auto 20px;color:var(--blue);
}
.sweep-intro-icon svg { width:36px;height:36px; }
.sweep-intro h2 { font-size:24px;font-weight:700;margin-bottom:12px;color:var(--navy-900); }
.sweep-intro p { font-size:15px;color:var(--navy-600);line-height:1.7;margin-bottom:8px; }
.sweep-intro-rules {
  background:#fff;border:1px solid var(--navy-200);border-radius:14px;
  padding:20px 24px;margin:24px 0;text-align:left;
}
.sweep-intro-rules li {
  font-size:14px;color:var(--navy-700);line-height:1.8;
  list-style:none;padding-left:20px;position:relative;
}
.sweep-intro-rules li::before {
  content:'→';position:absolute;left:0;color:var(--blue);font-weight:700;
}

/* Progress bar */
.sweep-progress {
  width:100%;max-width:560px;margin-bottom:28px;
}
.sweep-progress-bar {
  height:6px;background:var(--navy-200);border-radius:99px;overflow:hidden;margin-bottom:6px;
}
.sweep-progress-fill {
  height:100%;background:linear-gradient(90deg,var(--blue),var(--purple));
  border-radius:99px;transition:width .4s;
}
.sweep-progress-label {
  display:flex;justify-content:space-between;
  font-size:12px;color:var(--navy-400);
}

/* Category header */
.sweep-category {
  width:100%;max-width:560px;
  display:flex;align-items:center;gap:10px;
  margin-bottom:20px;
}
.sweep-category-icon {
  width:40px;height:40px;background:var(--navy-100);
  border-radius:10px;display:flex;align-items:center;justify-content:center;
  color:var(--blue);flex-shrink:0;
}
.sweep-category-icon svg { width:20px;height:20px; }
.sweep-category-name { font-size:13px;font-weight:700;color:var(--navy-500);text-transform:uppercase;letter-spacing:.06em; }

/* Trigger card */
.sweep-card {
  background:#fff;border-radius:20px;padding:36px 40px;
  max-width:560px;width:100%;
  box-shadow:0 4px 32px rgba(0,0,0,.08);
  margin-bottom:20px;
}
.sweep-trigger {
  font-size:22px;font-weight:700;color:var(--navy-900);
  line-height:1.4;margin-bottom:28px;text-align:center;
}
.sweep-input-wrap {
  background:var(--navy-50);border:2px solid var(--navy-200);
  border-radius:12px;padding:6px 6px 6px 16px;
  display:flex;align-items:center;gap:8px;
  transition:border-color .2s;margin-bottom:12px;
}
.sweep-input-wrap:focus-within { border-color:var(--blue);background:#fff; }
.sweep-input-wrap input {
  flex:1;border:none;outline:none;
  font-size:15px;font-family:var(--font);
  color:var(--navy-900);background:transparent;padding:10px 0;
}
.sweep-input-wrap input::placeholder { color:var(--navy-400); }
.sweep-input-wrap button {
  width:40px;height:40px;background:var(--blue);border:none;
  border-radius:8px;color:#fff;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;transition:all .2s;
}
.sweep-input-wrap button:hover { background:var(--blue-dark); }
.sweep-input-wrap button svg { width:18px;height:18px; }

/* Captured items */
.sweep-captured {
  display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px;min-height:0;
}
.sweep-captured-tag {
  background:#eff6ff;color:var(--blue);
  font-size:12px;font-weight:500;
  padding:4px 10px;border-radius:99px;
  display:flex;align-items:center;gap:6px;
}
.sweep-captured-tag svg { width:12px;height:12px;cursor:pointer;opacity:.6; }
.sweep-captured-tag svg:hover { opacity:1; }

/* Nav buttons */
.sweep-nav {
  display:flex;justify-content:space-between;align-items:center;
  width:100%;max-width:560px;
}
.sweep-btn-skip {
  padding:12px 20px;border:none;background:transparent;
  color:var(--navy-400);border-radius:10px;font-size:14px;
  font-weight:500;cursor:pointer;transition:all .2s;font-family:var(--font);
  display:flex;align-items:center;gap:6px;
}
.sweep-btn-skip:hover { background:var(--navy-100);color:var(--navy-700); }
.sweep-btn-skip svg { width:14px;height:14px; }
.sweep-btn-next {
  padding:14px 28px;background:var(--blue);color:#fff;
  border:none;border-radius:12px;font-size:15px;font-weight:600;
  cursor:pointer;transition:all .2s;font-family:var(--font);
  display:flex;align-items:center;gap:8px;
}
.sweep-btn-next:hover { background:var(--blue-dark);transform:translateY(-1px); }
.sweep-btn-next svg { width:16px;height:16px; }

/* Done screen */
.sweep-done {
  max-width:560px;width:100%;text-align:center;padding:24px 0;
}
.sweep-done-icon {
  width:80px;height:80px;background:#dcfce7;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 20px;color:#16a34a;
}
.sweep-done-icon svg { width:40px;height:40px; }
.sweep-done h2 { font-size:24px;font-weight:700;margin-bottom:8px; }
.sweep-done p { font-size:15px;color:var(--navy-600);margin-bottom:24px;line-height:1.6; }
.sweep-done-count {
  font-size:48px;font-weight:800;color:var(--blue);margin-bottom:4px;
}
.sweep-done-label { font-size:14px;color:var(--navy-500);margin-bottom:32px; }

/* ===== CAL NEW TASK ===== */
.cal-new-task-wrap {
  display:flex;gap:8px;align-items:center;
}
.cal-due-input {
  flex:1;padding:8px 10px;
  border:1px solid var(--navy-300);border-radius:8px;
  font-size:13px;font-family:var(--font);outline:none;
}
.cal-due-input:focus { border-color:var(--blue); }

/* ===== CAL PANEL DRAG ===== */
.cal-panel-drag {
  color:var(--navy-300);cursor:grab;
  display:flex;align-items:center;
  opacity:0;transition:opacity .2s;flex-shrink:0;
}
.cal-panel-drag svg { width:14px;height:14px; }
.cal-panel-task:hover .cal-panel-drag { opacity:1; }

/* ===== CAL TASK EDIT FORM ===== */
.cal-panel-task-edit {
  width:28px;height:28px;border:none;background:transparent;
  color:var(--navy-300);border-radius:6px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:all .2s;opacity:0;flex-shrink:0;
}
.cal-panel-task:hover .cal-panel-task-edit { opacity:1; }
.cal-panel-task-edit:hover { background:var(--navy-100);color:var(--navy-700); }
.cal-panel-task-edit svg { width:13px;height:13px; }
.cal-task-edit-form {
  display:none;margin-top:8px;padding-top:8px;
  border-top:1px solid var(--navy-100);
}

/* ===== HOJE ===== */
.hoje-wrap {
  flex:1;overflow-y:auto;padding:24px 32px;
  max-width:680px;margin:0 auto;width:100%;
}
.hoje-date {
  font-size:13px;font-weight:600;color:var(--navy-400);
  text-transform:uppercase;letter-spacing:.08em;
  margin-bottom:20px;
}
.hoje-add-wrap { margin-bottom:16px; }
.hoje-section-label {
  display:flex;align-items:center;gap:6px;
  font-size:11px;font-weight:700;text-transform:uppercase;
  letter-spacing:.06em;color:var(--amber);
  margin:20px 0 10px;
}
.hoje-section-label svg { width:13px;height:13px; }
.hoje-task {
  background:#fff;border:1px solid var(--navy-200);
  border-radius:12px;padding:14px 16px;margin-bottom:8px;
  display:flex;align-items:center;gap:10px;
  transition:all .2s;
}
.hoje-task:hover { border-color:var(--navy-300);box-shadow:0 2px 8px rgba(0,0,0,.06); }
.hoje-task.done { opacity:.45; }
.hoje-task.done .hoje-task-title { text-decoration:line-through;color:var(--navy-400); }
.hoje-drag {
  color:var(--navy-300);cursor:grab;
  display:flex;align-items:center;
  opacity:0;transition:opacity .2s;flex-shrink:0;
}
.hoje-drag svg { width:16px;height:16px; }
.hoje-task:hover .hoje-drag { opacity:1; }
.hoje-task-content { flex:1;min-width:0; }
.hoje-task-title { font-size:15px;font-weight:500;color:var(--navy-900);margin-bottom:3px; }
.hoje-task-meta { font-size:11px;color:var(--navy-400); }
.hoje-task-check {
  width:34px;height:34px;
  border:2px solid var(--navy-300);background:transparent;
  color:transparent;border-radius:50%;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:all .2s;flex-shrink:0;
}
.hoje-task-check svg { width:14px;height:14px; }
.hoje-task-check:hover { border-color:var(--green);background:#f0fdf4;color:var(--green); }
.hoje-task.done .hoje-task-check { background:var(--green);border-color:var(--green);color:#fff; }
.hoje-empty {
  padding:48px 24px;text-align:center;color:var(--navy-400);font-size:14px;
}
.hoje-empty-icon {
  width:56px;height:56px;background:#dcfce7;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 16px;color:#16a34a;
}
.hoje-empty-icon svg { width:28px;height:28px; }

/* ===== HOJE — MODO FOCO (bloco amarelo) ===== */
#view-hoje {
  background: #fef9c3;
}
#view-hoje .view-header {
  background: #fef08a;
  border-bottom: 2px solid #fde047;
}
#view-hoje .view-header h2 { color: #713f12; }
#view-hoje .view-header h2 svg { color: #ca8a04; }
#view-hoje .view-meta { color: #92400e; }

.hoje-wrap {
  background: transparent;
}
.hoje-date {
  color: #92400e;
  font-family: 'Georgia', serif;
  font-size: 14px;
  font-weight: normal;
  letter-spacing: .04em;
  text-transform: none;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #fde047;
}

/* Linhas do bloco */
.hoje-task {
  background: transparent;
  border: none;
  border-bottom: 1px solid #fde047;
  border-radius: 0;
  padding: 14px 4px;
  margin-bottom: 0;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}
.hoje-task:hover {
  background: rgba(253,224,71,.2);
  border-color: #fde047;
  box-shadow: none;
}
.hoje-task-title {
  font-size: 16px;
  font-weight: 500;
  color: #1c1917;
  font-family: 'Georgia', serif;
  position: relative;
}
.hoje-task-meta { color: #a16207; }

/* Check circle — amarelo */
.hoje-task-check {
  border-color: #fbbf24;
}
.hoje-task-check:hover {
  border-color: #ca8a04;
  background: #fef08a;
  color: #ca8a04;
}
.hoje-task.done .hoje-task-check {
  background: #ca8a04;
  border-color: #ca8a04;
  color: #fff;
}

/* Animação de risco */
.hoje-task-title::after {
  content: '';
  position: absolute;
  left: -4px; top: 50%;
  width: 0; height: 2px;
  background: #92400e;
  border-radius: 2px;
  transition: width .4s cubic-bezier(.4,0,.2,1);
  transform: translateY(-50%);
}
.hoje-task.done .hoje-task-title::after {
  width: calc(100% + 8px);
}

/* Drag handle */
.hoje-drag { color: #fbbf24; }
.hoje-task:hover .hoje-drag { opacity: .6; }

/* Empty state */
.hoje-empty-icon { background: #fef08a; color: #ca8a04; }

/* Add form no estilo bloco */
#view-hoje .org-add-form {
  background: transparent;
  border: none;
  border-bottom: 2px dashed #fbbf24;
  border-radius: 0;
  padding: 8px 4px;
  box-shadow: none;
}
#view-hoje .org-add-input {
  font-family: 'Georgia', serif;
  font-size: 16px;
  color: #1c1917;
}
#view-hoje .org-add-input::placeholder { color: #a16207; }

/* Section label urgentes */
.hoje-section-label { color: #b45309; }

/* ===== PROCESS INLINE ===== */
.process-inline-divider {
  display:flex;align-items:center;gap:12px;
  margin:24px 0 16px;
}
.process-inline-divider::before,
.process-inline-divider::after {
  content:'';flex:1;height:1px;background:var(--navy-200);
}
.process-inline-divider span {
  font-size:11px;font-weight:700;text-transform:uppercase;
  letter-spacing:.08em;color:var(--navy-400);white-space:nowrap;
}

/* ===== PROGRESS AI MELHORADO ===== */
.progress-ai-header {
  display:flex;align-items:center;gap:10px;margin-bottom:12px;
}
.progress-ai-icon {
  width:32px;height:32px;background:linear-gradient(135deg,#eff6ff,#f5f3ff);
  border-radius:8px;display:flex;align-items:center;justify-content:center;
  color:var(--blue);flex-shrink:0;
}
.progress-ai-icon svg { width:16px;height:16px; }
.progress-ai-title { font-size:14px;font-weight:600;color:var(--navy-800); }
.progress-ai-stats {
  display:flex;justify-content:space-between;
  font-size:12px;color:var(--navy-500);margin:6px 0 8px;
}
.progress-current {
  font-size:13px;color:var(--navy-600);margin-bottom:10px;
  min-height:20px;
}
.progress-log {
  max-height:180px;overflow-y:auto;
  display:flex;flex-direction:column;gap:4px;
}
.progress-log-item {
  display:flex;align-items:center;gap:8px;
  padding:6px 10px;background:var(--navy-50);
  border-radius:8px;font-size:12px;
  animation:fadeIn .3s ease;
}
.progress-log-icon { font-size:14px;flex-shrink:0; }
.progress-log-title { flex:1;color:var(--navy-800);overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.progress-log-action { color:var(--navy-400);font-size:11px;flex-shrink:0; }
.progress-log-error { background:#fee2e2; }
.progress-log-error .progress-log-title { color:var(--red); }
@keyframes fadeIn { from { opacity:0;transform:translateY(4px); } to { opacity:1;transform:none; } }

/* ===== SCHEDULE PICKER ===== */
.schedule-picker {
  background:var(--navy-50);border:1px solid var(--navy-200);
  border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:12px;
}
.schedule-picker-label {
  display:flex;align-items:center;gap:8px;
  font-size:13px;font-weight:600;color:var(--navy-700);
}
.schedule-picker-label svg { width:16px;height:16px;color:var(--blue); }
.schedule-picker-input {
  padding:10px 14px;border:2px solid var(--blue);border-radius:10px;
  font-size:15px;font-family:var(--font);outline:none;
  color:var(--navy-900);background:#fff;
}
.schedule-picker-actions { display:flex;gap:8px; }

/* ===== CAL SEARCH ===== */
.cal-search-wrap { margin-bottom:4px; }
.cal-search-result {
  padding:10px 12px;border-radius:8px;cursor:pointer;
  border:1px solid var(--navy-200);margin-bottom:4px;
  transition:all .15s;background:#fff;
}
.cal-search-result:hover { background:var(--navy-50);border-color:var(--blue); }
.cal-search-result-title { font-size:13px;font-weight:500;color:var(--navy-900); }
.cal-search-result-meta { font-size:11px;color:var(--navy-400);margin-top:2px; }

/* ===== PROJECTS TABLE ===== */
.projects-table {
  background:#fff;
  border:1px solid var(--navy-200);
  border-radius:12px;
  overflow:hidden;
}
.projects-table-header,
.projects-table-row {
  display:grid;
  grid-template-columns: 28px 1fr 1fr 90px;
  align-items:center;
}
.projects-table-header {
  padding:8px 16px;
  background:var(--navy-50);
  border-bottom:1px solid var(--navy-200);
  font-size:11px; font-weight:700;
  text-transform:uppercase; letter-spacing:.06em; color:var(--navy-400);
}
.projects-table-row {
  padding:12px 16px;
  border-bottom:1px solid var(--navy-100);
  cursor:pointer; transition:background .15s;
}
.projects-table-row:last-child { border-bottom:none; }
.projects-table-row:hover { background:var(--navy-50); }
.projects-table-row.needs-review { background:#fff; }
.projects-table-row.needs-review:hover { background:var(--navy-50); }
.pt-col-drag {
  color:var(--navy-300);cursor:grab;opacity:0;transition:opacity .2s;
  display:flex;align-items:center;
}
.pt-col-drag svg { width:14px;height:14px; }
.projects-table-row:hover .pt-col-drag { opacity:1; }
.pt-col-name {
  display:flex;align-items:center;gap:8px;
  min-width:0;padding-right:16px;
}
.pt-project-name {
  font-size:14px;font-weight:500;color:var(--navy-900);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.pt-review-badge {
  display:inline-block;flex-shrink:0;
  width:6px;height:6px;border-radius:50%;
  background:var(--red);margin-left:8px;
  vertical-align:middle;
}
.pt-col-next {
  font-size:13px;color:var(--navy-500);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  padding-right:16px;
}
.pt-col-review { font-size:12px;color:var(--navy-400);text-align:right; }
.pt-loading { color:var(--navy-300);font-size:12px; }
@media (max-width:768px) {
  .projects-table-header,
  .projects-table-row { grid-template-columns: 28px 1fr; }
  .projects-table-header .pt-col-next,
  .projects-table-header .pt-col-review,
  .projects-table-row .pt-col-next,
  .projects-table-row .pt-col-review { display:none; }
}

/* ===== CONFIRM TOAST ===== */
.confirm-toast {
  position:fixed; bottom:80px; left:50%; transform:translateX(-50%);
  background:var(--navy-900); color:#fff; border-radius:12px;
  padding:12px 16px; display:flex; align-items:center; gap:10px;
  font-size:13px; z-index:200; box-shadow:0 4px 24px rgba(0,0,0,.3);
  animation:slideUp .2s ease; white-space:nowrap;
}
.btn-confirm-yes {
  background:var(--red); color:#fff; border:none; border-radius:8px;
  padding:6px 12px; font-size:12px; cursor:pointer; font-family:var(--font); font-weight:600;
}
.btn-confirm-no {
  background:transparent; color:rgba(255,255,255,.6); border:none;
  padding:6px 8px; font-size:12px; cursor:pointer; font-family:var(--font);
}
@keyframes slideUp {
  from { opacity:0; transform:translateX(-50%) translateY(10px); }
  to { opacity:1; transform:translateX(-50%) translateY(0); }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width:768px) {
  .sidebar {
    position:fixed; bottom:0; left:0; right:0;
    flex-direction:row; height:60px; overflow-x:auto;
    padding:0; border-top:1px solid var(--navy-200);
    border-right:none; z-index:50; top:auto; width:auto;
  }
  .sidebar-btn {
    flex-direction:column; min-width:56px;
    padding:6px 8px; font-size:9px; gap:2px;
    height:auto; width:auto;
  }
  .sidebar-btn svg { width:18px; height:18px; }
  .sidebar-logo { display:none; }
  .sidebar-divider { display:none; }
  .main { margin-left:0; padding-bottom:70px; }
  .view-header { flex-wrap:wrap; gap:8px; padding:12px 16px; }
  .org-tabs { overflow-x:auto; -webkit-overflow-scrolling:touch; flex-wrap:nowrap; }
  .org-tab { white-space:nowrap; flex-shrink:0; }
  .cal-day-panel {
    width:100%; position:fixed; bottom:60px; left:0; right:0;
    max-height:70vh; border-radius:16px 16px 0 0; z-index:40;
    top:auto;
  }
  .modal-card { max-height:95vh; border-radius:16px 16px 0 0; margin:auto 0 0; }
  .modal-overlay { align-items:flex-end; padding:0; }
  .hoje-task { min-height:56px; }
  .task-item-actions { opacity:1 !important; }
  .task-btn { opacity:1 !important; }
  .cal-panel-task-edit { opacity:1 !important; }
  .drag-handle { opacity:0.4 !important; }
  .hoje-drag { opacity:0.4 !important; }
  .cal-panel-drag { opacity:0.4 !important; }
}

/* ===== TOUCH DEVICE ===== */
.touch-device .task-item-actions { opacity:1 !important; }
.touch-device .task-btn { opacity:1 !important; }
.touch-device .drag-handle { opacity:0.5 !important; }
.touch-device .hoje-drag { opacity:0.5 !important; }
.touch-device .cal-panel-drag { opacity:0.5 !important; }
.touch-device .cal-panel-task-edit { opacity:1 !important; }
.touch-device .modal-action-del { opacity:1 !important; }
.touch-device .goal-del { opacity:1 !important; }

/* ===== HOJE — foco nas 3 primeiras ===== */
.hoje-task.dimmed {
  opacity: 0.38;
  transition: opacity .2s;
}
.hoje-task.dimmed:hover {
  opacity: 0.75;
}

/* ===== AGENTE FLUTUANTE ===== */
.agent-bubble {
  position:fixed;bottom:24px;right:24px;
  width:52px;height:52px;border-radius:50%;
  background:linear-gradient(135deg,#3b82f6,#8b5cf6);
  color:#fff;border:none;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 20px rgba(59,130,246,.4);
  z-index:100;transition:transform .2s,box-shadow .2s;
}
.agent-bubble:hover { transform:scale(1.08);box-shadow:0 6px 28px rgba(59,130,246,.5); }
.agent-bubble svg { width:22px;height:22px; }
@media(max-width:768px){
  .agent-bubble { bottom:72px;right:16px;width:46px;height:46px; }
}

.agent-panel {
  position:fixed;bottom:88px;right:24px;
  width:360px;max-height:520px;
  background:#fff;border-radius:20px;
  box-shadow:0 8px 40px rgba(0,0,0,.18);
  display:none;flex-direction:column;
  z-index:100;overflow:hidden;
  border:1px solid var(--navy-200);
  animation:agentIn .2s ease;
}
.agent-panel.open { display:flex; }
@keyframes agentIn {
  from { opacity:0;transform:translateY(12px) scale(.97); }
  to   { opacity:1;transform:none; }
}
@media(max-width:768px){
  .agent-panel {
    bottom:70px;right:8px;left:8px;width:auto;max-height:60vh;
  }
}

.agent-header {
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 16px;border-bottom:1px solid var(--navy-100);
  background:linear-gradient(135deg,#eff6ff,#f5f3ff);
}
.agent-header-info { display:flex;align-items:center;gap:10px; }
.agent-avatar {
  width:34px;height:34px;border-radius:50%;
  background:linear-gradient(135deg,#3b82f6,#8b5cf6);
  display:flex;align-items:center;justify-content:center;color:#fff;
}
.agent-avatar svg { width:16px;height:16px; }
.agent-name { font-size:13px;font-weight:700;color:var(--navy-900); }
.agent-model { font-size:10px;color:var(--navy-400);font-weight:500; }
.agent-close {
  width:28px;height:28px;border:none;background:transparent;
  color:var(--navy-400);cursor:pointer;border-radius:6px;
  display:flex;align-items:center;justify-content:center;
}
.agent-close:hover { background:var(--navy-100); }
.agent-close svg { width:14px;height:14px; }

.agent-messages {
  flex:1;overflow-y:auto;padding:16px;
  display:flex;flex-direction:column;gap:10px;
}
.agent-msg { display:flex;flex-direction:column;gap:2px; }
.agent-msg-ai .agent-msg-text {
  background:var(--navy-50);border-radius:4px 14px 14px 14px;
  padding:10px 14px;font-size:13px;color:var(--navy-800);
  max-width:90%;line-height:1.5;
}
.agent-msg-user .agent-msg-text {
  background:linear-gradient(135deg,#3b82f6,#8b5cf6);
  color:#fff;border-radius:14px 14px 4px 14px;
  padding:10px 14px;font-size:13px;
  max-width:90%;align-self:flex-end;line-height:1.5;
}
.agent-msg-user { align-items:flex-end; }
.agent-typing .agent-msg-text {
  background:var(--navy-50);border-radius:4px 14px 14px 14px;
  padding:10px 14px;
}
.agent-typing-dots { display:flex;gap:4px;align-items:center; }
.agent-typing-dots span {
  width:6px;height:6px;border-radius:50%;background:var(--navy-400);
  animation:typingDot 1.2s infinite;
}
.agent-typing-dots span:nth-child(2) { animation-delay:.2s; }
.agent-typing-dots span:nth-child(3) { animation-delay:.4s; }
@keyframes typingDot {
  0%,60%,100% { transform:translateY(0); }
  30% { transform:translateY(-4px); }
}

.agent-input-wrap {
  display:flex;align-items:flex-end;gap:8px;
  padding:12px 14px;border-top:1px solid var(--navy-100);
}
.agent-input {
  flex:1;border:1px solid var(--navy-200);border-radius:12px;
  padding:8px 12px;font-size:13px;font-family:var(--font);
  outline:none;resize:none;max-height:100px;line-height:1.4;
  color:var(--navy-900);
}
.agent-input:focus { border-color:var(--blue); }
.agent-send {
  width:36px;height:36px;border-radius:10px;border:none;
  background:linear-gradient(135deg,#3b82f6,#8b5cf6);
  color:#fff;cursor:pointer;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  transition:opacity .2s;
}
.agent-send:disabled { opacity:.4;cursor:default; }
.agent-send svg { width:15px;height:15px; }

/* ===== HOJE — edição inline ===== */
.hoje-task-title[contenteditable="true"] {
  outline:none;border-bottom:2px solid var(--blue);
  padding-bottom:2px;cursor:text;
}
