/* ==========================================================================
   WORK STAGE - DESIGN SYSTEM
   Fundo escuro, neutro, alta legibilidade. A cor do cliente é o único destaque.
   ========================================================================== */

:root {
  --bg-main: #151B1E;
  --bg-surface: #20282B;
  --bg-card: #2D3538;
  --bg-card-hover: #364145;
  --bg-card-active: #3C484C;
  --border-subtle: #354044;
  --border-focus: #59676D;

  --text-main: #F4F6F6;
  --text-secondary: #AAB5B8;
  --text-muted: #7E8B8F;
  --text-inverse: #151B1E;
  --accent-primary: #E42837;
  --accent-on-primary: #FFFFFF;
  --brand-navy: #001E46;
  --brand-charcoal: #2D3538;

  --accent-urgent: #ef4444;
  --accent-doing: #f59e0b;
  --accent-print: #416FA8;
  --accent-digital: #a855f7;
  --accent-success: #10b981;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-modal: 0 20px 40px rgba(0, 0, 0, 0.6);
  --transition: 0.15s ease;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.5;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.topbar {
  height: 56px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
  z-index: 20;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.3px;
  color: var(--text-main);
}

.brand-badge {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #E42837, #B91F2B);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.nav-tab:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.nav-tab.active {
  background-color: var(--bg-card);
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.tab-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.badge {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 10px;
}

.badge-warning {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--accent-doing);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-install-app {
  background-color: rgba(0, 30, 70, 0.5);
  border: 1px solid rgba(65, 111, 168, 0.55);
  color: #AFC7E8;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-install-app svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-install-app:hover {
  background-color: #416FA8;
  color: #fff;
}

.btn-quick-capture {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-quick-capture svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-quick-capture:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-focus);
}

.key-shortcut {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   BANNER DE TAREFAS ATRASADAS
   ========================================================================== */
.yesterday-banner {
  background-color: rgba(245, 158, 11, 0.12);
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #fde68a;
  animation: fadeIn 0.2s ease;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.banner-action-btn {
  background-color: var(--accent-doing);
  color: #000;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.banner-action-btn:hover {
  background-color: #d97706;
}

/* ==========================================================================
   CONTEÚDO PRINCIPAL & TELAS
   ========================================================================== */
.main-content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.screen-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  padding: 24px 32px;
}

.screen-view.active {
  display: flex;
}

/* ==========================================================================
   TELA 1: HOJE
   ========================================================================== */
.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.date-navigator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-nav-btn {
  width: 32px;
  height: 32px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.date-nav-btn:hover {
  background-color: var(--bg-card);
  border-color: var(--border-focus);
}

.date-display {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.4px;
  padding: 0 6px;
}

.date-today-btn {
  background-color: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.date-today-btn:hover {
  color: var(--text-main);
  border-color: var(--border-focus);
}

.date-picker-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.date-nav-calendar {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

.header-summary {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.header-summary strong {
  color: var(--text-main);
}

/* Seções de destaque: Urgente e Fazendo */
.urgent-section, .doing-section {
  margin-bottom: 28px;
  padding: 16px;
  border-radius: var(--radius-md);
  background-color: rgba(239, 68, 68, 0.05);
  border: 1px dashed rgba(239, 68, 68, 0.3);
}

.doing-section {
  background-color: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.3);
}

.section-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.text-urgent { color: var(--accent-urgent); }
.text-doing { color: var(--accent-doing); }

.section-subtitle {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: normal;
}

.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

/* Agrupamento por cliente no Hoje */
.today-clients-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.today-client-group {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.today-client-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.today-client-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.client-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.today-client-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.today-client-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.04);
  transition: var(--transition);
}

.btn-icon-link:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   CARDS DE TAREFA (Usados no Hoje, Board e Inbox)
   ========================================================================== */
.task-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left-width: 4px;
}

.task-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-focus);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.task-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.task-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
  word-break: break-word;
}

.task-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.tag-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.tag-badge-qty {
  background-color: rgba(0, 30, 70, 0.5);
  color: var(--accent-print);
  font-weight: 700;
}

.tag-badge-urgent {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--accent-urgent);
}

.tag-badge-stage {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.task-notes-preview {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Ações Rápidas no Hover do Card */
.task-hover-actions {
  display: none;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.task-card:hover .task-hover-actions {
  display: flex;
}

.quick-action-btn {
  background-color: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.quick-action-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}

.quick-action-btn.btn-done:hover {
  background-color: var(--accent-success);
  color: #fff;
}

/* ==========================================================================
   TELA 2: BOARD (KANBAN 10 ETAPAS)
   ========================================================================== */
#viewBoard {
  padding: 16px 20px;
}

.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.board-filters {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.filter-select, .filter-search {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: inherit;
  font-size: 12.5px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  outline: none;
}

.filter-select:focus, .filter-search:focus {
  border-color: var(--border-focus);
}

.filter-search {
  width: 200px;
}

.board-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.kanban-wrapper {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
}

.kanban-board {
  display: flex;
  gap: 12px;
  height: 100%;
  min-width: max-content;
}

.kanban-column {
  --stage-color: #64748B;
  width: 290px;
  flex: 0 0 290px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--stage-color) 10%, var(--bg-surface)) 0%,
    color-mix(in srgb, var(--stage-color) 4%, var(--bg-surface-alt)) 100%);
  border: 1px solid color-mix(in srgb, var(--stage-color) 38%, var(--border-subtle));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--stage-color) 16%, transparent), 0 8px 24px rgba(5, 8, 20, 0.18);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  max-height: 100%;
  min-width: 0;
  transition: width .18s ease, flex-basis .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.kanban-column.is-collapsed {
  width: 62px;
  flex-basis: 62px;
  min-width: 62px;
  min-height: 160px;
}

.kanban-column.drag-over {
  border-color: #38bdf8;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.14), rgba(56, 189, 248, 0.05));
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.32), 0 10px 24px rgba(12, 46, 91, 0.2);
}

.kanban-column-header {
  min-height: 46px;
  padding: 9px 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--stage-color) 52%, var(--border-subtle));
  border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--stage-color) 72%, #0B1220) 0%,
    color-mix(in srgb, var(--stage-color) 55%, #121A2B) 100%);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #F8FAFC;
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 14%, transparent);
}

.col-header-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1 1 auto;
}

.col-stage-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--stage-color) 40%, transparent), 0 0 14px color-mix(in srgb, var(--stage-color) 52%, transparent);
}

.col-stage-icon { flex: 0 0 auto; }
.col-stage-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.col-count {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #FFFFFF;
  background: color-mix(in srgb, var(--stage-color) 55%, #0F172A);
  border: 1px solid color-mix(in srgb, white 12%, var(--stage-color));
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.kanban-column-toggle {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, white 11%, var(--stage-color));
  border-radius: 7px;
  background: rgba(255,255,255,0.08);
  color: #F8FAFC;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.kanban-column-toggle:hover { color: #FFFFFF; background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.22); transform: translateY(-1px); }

.kanban-column.is-collapsed .kanban-column-header {
  min-height: 100%;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-start;
  padding: 9px 5px;
  gap: 10px;
  border-bottom: 0;
  border-radius: var(--radius-md);
}
.kanban-column.is-collapsed .col-header-left { flex: 0 0 auto; flex-direction: column; gap: 9px; }
.kanban-column.is-collapsed .col-stage-name { writing-mode: vertical-rl; transform: rotate(180deg); overflow: visible; text-overflow: clip; white-space: nowrap; max-height: 210px; }
.kanban-column.is-collapsed .col-count { margin-top: 1px; }
.kanban-column.is-collapsed .kanban-column-toggle { order: -1; }
.kanban-column.is-collapsed .kanban-cards-list { display: none; }

.kanban-cards-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 80px;
}

.task-card.is-board-card { border-left-width: 1px; border-left-color: var(--border-subtle) !important; box-shadow: 0 6px 14px rgba(2, 6, 23, 0.14); }
.task-card.is-board-card:hover { border-left-color: var(--border-focus) !important; box-shadow: 0 12px 22px rgba(2, 6, 23, 0.22); }
.task-card-board-meta { display:flex; align-items:center; flex-wrap:wrap; gap:5px; margin-top:-2px; }
.task-deadline-indicator,.task-approval-indicator { display:inline-flex; align-items:center; gap:4px; min-width:0; padding:2px 6px; border-radius:5px; font-size:9px; font-weight:750; line-height:1.35; }
.task-deadline-indicator.is-overdue { color:#FF8585; background:rgba(217,74,74,.13); }
.task-deadline-indicator.is-today,.task-deadline-indicator.is-soon { color:#F0BD65; background:rgba(214,154,40,.13); }
.task-deadline-indicator.is-on-time { color:#78CBA7; background:rgba(32,163,107,.11); }
.task-deadline-indicator.is-no-date { color:var(--text-muted); background:rgba(148,163,184,.08); }
.task-deadline-indicator.is-completed { color:var(--text-muted); background:rgba(148,163,184,.08); }
.task-approval-indicator.is-waiting { color:#83B9F5; background:rgba(71,134,213,.14); }
.task-approval-indicator.is-changes { color:#F0A16C; background:rgba(224,120,50,.14); }
.task-card-progress-track { height:4px; width:100%; margin:1px 0 3px; overflow:hidden; border-radius:99px; background:color-mix(in srgb,var(--text-muted) 17%,transparent); }
.task-card-progress-track span { display:block; height:100%; border-radius:inherit; background:#32A879; transition:width .2s ease; }
.board-auto-collapse-control { display:inline-flex; align-items:center; gap:7px; min-height:30px; padding:5px 9px; border:1px solid var(--border-subtle); border-radius:7px; background:var(--bg-card); color:var(--text-secondary); font-size:10px; font-weight:700; cursor:pointer; white-space:nowrap; }
.board-auto-collapse-control input { accent-color:var(--accent-primary); width:13px; height:13px; margin:0; }

.board-horizon-summary { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin:0 0 10px; }
.board-horizon-chip { display:inline-flex; align-items:center; gap:8px; min-height:29px; padding:4px 9px; border:1px solid var(--border-subtle); border-radius:7px; background:var(--bg-card); color:var(--text-secondary); font:inherit; font-size:10px; cursor:pointer; transition:background .15s ease,border-color .15s ease,color .15s ease; }
.board-horizon-chip strong { min-width:15px; color:var(--text-main); font-size:10px; font-variant-numeric:tabular-nums; text-align:center; }
.board-horizon-chip:hover,.board-horizon-chip.is-active { border-color:color-mix(in srgb,var(--chip-color,var(--accent-primary)) 55%,var(--border-subtle)); background:color-mix(in srgb,var(--chip-color,var(--accent-primary)) 13%,var(--bg-card)); color:var(--text-main); }
.board-horizon-chip.is-attention { --chip-color:#FF4D5E; }
.board-horizon-chip.is-danger { --chip-color:#FF4D5E; }
.board-horizon-chip.is-warning { --chip-color:#FFB020; }
.board-horizon-chip.is-success { --chip-color:#16C172; }
.board-horizon-chip.is-info { --chip-color:#2E7DFF; }
.board-horizon-chip.is-purple { --chip-color:#C05CFF; }
.board-horizon-chip.is-muted { --chip-color:#6D7C96; }
.board-horizon-chip.is-slate { --chip-color:#7A8BA7; }
.board-horizon-chip.is-neutral { --chip-color:var(--accent-primary); }
.board-horizon-chip.is-attention strong { color:#FF8A96; }
.board-horizon-chip.is-danger strong { color:#FF8A96; }
.board-horizon-chip.is-warning strong { color:#FFD27A; }
.board-horizon-chip.is-success strong { color:#78E2AE; }
.board-horizon-chip.is-info strong { color:#9DC2FF; }
.board-horizon-chip.is-purple strong { color:#E0B6FF; }
@media (max-width:760px) { .board-horizon-summary { overflow-x:auto; flex-wrap:nowrap; padding-bottom:3px; } .board-horizon-chip { flex:0 0 auto; } }

/* ==========================================================================
   TELA 3: INBOX
   ========================================================================== */
.inbox-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.keyboard-hints {
  display: flex;
  gap: 14px;
}

.hint-item {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hint-item kbd {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.inbox-container {
  max-width: 800px;
}

.inbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inbox-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
}

.inbox-item:hover, .inbox-item.selected {
  background-color: var(--bg-card-hover);
  border-color: #38bdf8;
  transform: translateX(4px);
}

.inbox-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.inbox-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-muted);
}

.inbox-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

.inbox-item-actions {
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   TELA 4: CLIENTES
   ========================================================================== */
.clients-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.client-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: var(--transition);
}

.client-card:hover {
  border-color: var(--border-focus);
  background-color: #161a25;
}

.client-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.client-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.client-color-pill {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.client-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.client-slug-tag {
  font-size: 12px;
  color: var(--text-muted);
  font-family: monospace;
}

.client-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-quick-btn {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.client-quick-btn:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.1);
}

.client-meta-box {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.client-meta-box strong {
  color: var(--text-secondary);
}

.client-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   ESTADO VAZIO (EMPTY STATE)
   ========================================================================== */
.empty-state {
  margin: auto;
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.empty-state h3 {
  color: var(--text-main);
  font-size: 18px;
  margin-bottom: 6px;
}

/* ==========================================================================
   MODAL DE CAPTURA RÁPIDA (CTRL + K)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  z-index: 100;
  animation: fadeIn 0.15s ease;
}

.quick-capture-dialog {
  width: 660px;
  background-color: #171b26;
  border: 1px solid #2e364a;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.qc-input-wrap {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.qc-prompt {
  font-size: 20px;
  margin-right: 14px;
  color: #ff9800;
}

.qc-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 16px;
  color: var(--text-main);
  font-weight: 500;
}

.qc-input::placeholder {
  color: #64748b;
  font-size: 14px;
}

.qc-tags-container {
  padding: 14px 20px;
  min-height: 48px;
  background-color: #12151e;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.qc-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.qc-hint code {
  color: #38bdf8;
  background-color: rgba(56, 189, 248, 0.1);
  padding: 1px 5px;
  border-radius: 3px;
}

.qc-live-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.qc-live-tag-client {
  color: #fff;
}

.qc-live-tag-generic {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.qc-live-tag-dest {
  background-color: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.qc-footer {
  padding: 10px 20px;
  border-top: 1px solid var(--border-subtle);
  background-color: #141822;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qc-client-suggestions {
  display: flex;
  gap: 8px;
}

.client-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.8;
  transition: var(--transition);
}

.client-chip:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.qc-shortcuts {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}

.qc-shortcuts kbd {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 2px 5px;
  border-radius: 3px;
  color: var(--text-secondary);
}

/* ==========================================================================
   MODAIS PADRÃO (DETALHES / CLIENTE)
   ========================================================================== */
.task-detail-dialog, .client-modal-dialog {
  width: 580px;
  background-color: #171b26;
  border: 1px solid #2e364a;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.task-client-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  color: #fff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.detail-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-row {
  display: flex;
  gap: 14px;
}

.form-row > * {
  flex: 1;
}

.form-input, .form-textarea {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 13.5px;
  padding: 8px 12px;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--border-focus);
}

.form-textarea {
  resize: vertical;
}

.form-checkbox-wrap {
  justify-content: flex-end;
  padding-bottom: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.color-picker-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-input {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
}

.color-hex-label {
  font-size: 13px;
  font-family: monospace;
  color: var(--text-secondary);
}

.color-swatches {
  display: flex;
  gap: 8px;
}

.swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.swatch:hover {
  transform: scale(1.15);
  border-color: #fff;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.actions-right {
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   BOTÕES GERAIS
   ========================================================================== */
.btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--accent-primary);
  color: var(--accent-on-primary);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  color: var(--text-main);
  background-color: var(--bg-card);
}

.btn-danger {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--accent-urgent);
}

.btn-danger:hover {
  background-color: var(--accent-urgent);
  color: #fff;
}

.btn-success-focus {
  background-color: var(--accent-success);
  color: #fff;
  font-weight: 700;
}

.btn-success-focus:hover {
  background-color: #059669;
}

/* ==========================================================================
   FASE 2: ESTILOS DE ESFORÇO & BOTÃO MODO FOCO
   ========================================================================== */
.tag-badge-effort {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.tag-badge-effort.effort-rapida {
  background-color: rgba(234, 179, 8, 0.12);
  color: #facc15;
}

.tag-badge-effort.effort-longa {
  background-color: rgba(168, 85, 247, 0.12);
  color: #c084fc;
}

.quick-action-btn.btn-focus {
  background-color: color-mix(in srgb, var(--accent-primary) 15%, transparent);
  color: var(--accent-primary);
  font-weight: 700;
}

.quick-action-btn.btn-focus:hover {
  background-color: var(--accent-primary);
  color: var(--accent-on-primary);
}

/* ==========================================================================
   FASE 2: PÁGINA DETALHADA DO CLIENTE
   ========================================================================== */
#viewClienteDetalhe {
  padding: 20px 28px;
}

.client-detail-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.btn-back {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}

.btn-back:hover {
  color: var(--text-main);
  transform: translateX(-3px);
}

.client-detail-hero {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top-width: 4px;
}

.client-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.client-hero-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.client-hero-color {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

.client-hero-title-group h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.client-hero-slug {
  font-size: 13px;
  color: var(--text-muted);
  font-family: monospace;
}

.client-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-hero-action {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-hero-action:hover {
  color: var(--text-main);
  border-color: var(--border-focus);
  background-color: var(--bg-card-hover);
}

.btn-hero-action.btn-wa {
  background-color: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}

.btn-hero-action.btn-wa:hover {
  background-color: #10b981;
  color: #fff;
}

.client-hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  font-size: 13.5px;
  color: var(--text-main);
  font-weight: 500;
  word-break: break-word;
}

/* Sub-abas do Cliente */
.client-subtabs-bar {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.client-subtabs {
  display: flex;
  gap: 10px;
}

.client-subtab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.client-subtab:hover {
  color: var(--text-secondary);
}

.client-subtab.active {
  background-color: var(--bg-surface);
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.client-subtab-pane {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.client-subtab-pane.active {
  display: flex;
}

/* Caderno de Anotações do Cliente */
.client-notes-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notes-header h3 {
  font-size: 16px;
  color: var(--text-main);
}

.save-status {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.notes-tip {
  font-size: 12.5px;
  color: var(--text-muted);
}

.client-notes-editor {
  background-color: #10121a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: "Cascadia Code", "Fira Code", monospace, var(--font-family);
  font-size: 13px;
  line-height: 1.6;
  padding: 16px;
  outline: none;
  resize: vertical;
  transition: var(--transition);
}

.client-notes-editor:focus {
  border-color: var(--border-focus);
}

/* Histórico de Entregues */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0.85;
}

.history-item:hover {
  opacity: 1;
  background-color: var(--bg-card);
}

.history-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.history-check {
  color: var(--accent-success);
  font-size: 16px;
}

.history-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: line-through;
  opacity: 0.75;
}

.history-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   FASE 2: MODO FOCO IMERSIVO (TECLA 'F')
   ========================================================================== */
.focus-mode-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(8, 10, 15, 0.94);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.focus-mode-container {
  width: 900px;
  max-width: 92vw;
  height: 90vh;
  background-color: #12151f;
  border: 1px solid #283042;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.focus-topbar {
  height: 60px;
  padding: 0 24px;
  background-color: #161a26;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.focus-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.focus-badge-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: #fff;
}

.focus-badge-stage {
  font-size: 12px;
  color: var(--text-secondary);
  background-color: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.effort-selector {
  display: flex;
  gap: 6px;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 3px;
  border-radius: 8px;
}

.effort-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.effort-pill:hover {
  color: var(--text-main);
}

.effort-pill.active {
  background-color: var(--bg-card);
  color: #ff9800;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.focus-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.shortcut-tip {
  font-size: 12px;
  color: var(--text-muted);
}

.shortcut-tip kbd {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-secondary);
}

.focus-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.focus-close-btn:hover {
  color: var(--text-main);
}

/* Área Central do Modo Foco */
.focus-main {
  flex: 1;
  overflow-y: auto;
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.focus-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.focus-task-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.focus-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Barra de Progresso do Modo Foco */
.focus-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.progress-bar-bg {
  height: 8px;
  background-color: #212636;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), #10b981);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Checklist de Etapas */
.focus-checklist-section, .focus-notes-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.section-heading h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.heading-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.focus-steps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.step-item:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-focus);
}

.step-item.step-done {
  opacity: 0.6;
  background-color: rgba(0, 0, 0, 0.2);
}

.step-item.step-done .step-text {
  text-decoration: line-through;
}

.step-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.step-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-success);
  cursor: pointer;
}

.step-text {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.4;
  word-break: break-word;
}

.step-del-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition);
}

.step-del-btn:hover {
  color: var(--accent-urgent);
  background-color: rgba(239, 68, 68, 0.1);
}

.add-step-wrap {
  display: flex;
  gap: 8px;
}

.new-step-input {
  flex: 1;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 13.5px;
  padding: 9px 14px;
  outline: none;
  transition: var(--transition);
}

.new-step-input:focus {
  border-color: var(--accent-primary);
}

.step-presets-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
}

.preset-label {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-right: 4px;
}

.preset-btn {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.preset-btn:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.09);
  border-color: var(--border-focus);
}

.focus-notes-textarea {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 14px;
  outline: none;
  resize: vertical;
  transition: var(--transition);
}

.focus-notes-textarea:focus {
  border-color: var(--border-focus);
}

/* Rodapé do Modo Foco */
.focus-footer {
  padding: 16px 24px;
  background-color: #141724;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}

.focus-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mini Fila Apagada no Rodapé */
.focus-mini-queue {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-top: 4px;
}

.queue-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.queue-cards-row {
  display: flex;
  gap: 8px;
}

.mini-queue-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  border-left-width: 3px;
}

.mini-queue-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  opacity: 1;
}

.mini-queue-card.current {
  background-color: color-mix(in srgb, var(--accent-primary) 15%, transparent);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* Modal de Celebração */
.celebration-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  animation: fadeIn 0.15s ease;
}

.celebration-card {
  background-color: #1a1e2b;
  border: 1px solid #38bdf8;
  border-radius: var(--radius-lg);
  padding: 36px 48px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.celebration-icon {
  font-size: 54px;
  animation: bounce 0.6s ease infinite alternate;
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.celebration-card h2 {
  font-size: 22px;
  color: #38bdf8;
}

.celebration-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scrollbars discretas */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #2a3044;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3e4760;
}

/* ========================================================================== 
   ESTABILIZAÇÃO + CENTRAL DE LEMBRETES
   ========================================================================== */
.btn-reminders {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: var(--transition);
}

.btn-reminders:hover {
  border-color: var(--accent, #8b9cff);
  color: var(--text-main);
}

.btn-reminders svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-reminders .badge {
  margin-left: 1px;
}

.connection-status {
  max-width: 170px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.3;
  text-align: right;
}

.connection-status.is-offline {
  color: #f59e0b;
}

.reminder-editor {
  padding: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.reminder-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reminder-editor-heading .checkbox-label {
  color: var(--text-main);
}

.reminder-editor-hint,
.reminder-editor-note {
  color: var(--text-muted);
  font-size: 11px;
}

.reminder-editor-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.reminder-options-row {
  align-items: center;
}

.reminder-check-options {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding-top: 17px;
}

.reminder-check-options .checkbox-label {
  font-size: 12px;
}

.reminder-editor-note {
  margin: 0;
}

.reminders-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: min(78vh, 760px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  overflow: auto;
  border: 1px solid #2e364a;
  border-radius: var(--radius-lg);
  background: #171b26;
  box-shadow: var(--shadow-modal);
}

.reminders-subtitle {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.notification-permission-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.notification-permission-card strong {
  font-size: 13px;
}

.notification-permission-card p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 11px;
}

.notification-permission-card .btn {
  flex-shrink: 0;
}

.reminders-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reminders-list-header h4 {
  margin: 0;
  font-size: 13px;
}

.reminders-list-header span {
  color: var(--text-muted);
  font-size: 11px;
}

.reminders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
}

.reminder-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--reminder-color, #718096);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
}

.reminder-list-main {
  min-width: 0;
}

.reminder-list-title {
  overflow: hidden;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reminder-list-meta {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 10px;
}

.reminder-list-time {
  flex-shrink: 0;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 650;
  text-align: right;
}

.reminders-empty {
  padding: 24px 12px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

.alarm-overlay {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 7, 12, 0.82);
  backdrop-filter: blur(7px);
}

.alarm-dialog {
  width: min(460px, 100%);
  padding: 30px;
  border: 1px solid rgba(248, 190, 76, 0.42);
  border-radius: 18px;
  background: #191d28;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  text-align: center;
  animation: alarm-arrive 220ms ease-out;
}

@keyframes alarm-arrive {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.alarm-icon {
  margin-bottom: 8px;
  font-size: 38px;
}

.alarm-eyebrow {
  margin: 0 0 9px;
  color: #f5bd54;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.alarm-dialog h2 {
  margin: 0;
  color: var(--text-main);
  font-size: 21px;
}

.alarm-task-title {
  margin: 16px 0 5px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.alarm-task-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.alarm-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .connection-status { display: none; }
}

@media (max-width: 640px) {
  .btn-reminders span:not(.badge) { display: none; }
  .btn-reminders { width: 36px; justify-content: center; padding: 0; }
  .reminder-editor-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .reminder-options-row { flex-direction: column; }
  .reminder-check-options { width: 100%; padding-top: 0; }
  .notification-permission-card { align-items: flex-start; flex-direction: column; }
  .alarm-actions { flex-direction: column-reverse; }
  .alarm-actions .btn { width: 100%; }
}

.tag-badge-reminder {
  color: #f4c66b;
  background: rgba(245, 158, 11, 0.11);
  border: 1px solid rgba(245, 158, 11, 0.2);
}


/* ========================================================================== 
   WORK STAGE 1.2 — DASHBOARD, AGENDA, APARÊNCIA E GESTÃO
   ========================================================================== */
.btn-settings {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border-subtle);
  color: var(--text-secondary); background: var(--bg-surface); font-size: 18px; cursor: pointer;
}
.btn-settings:hover { color: var(--text-main); border-color: var(--accent-primary); }
.nav-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tab.active { box-shadow: inset 0 -2px 0 var(--accent-primary); }

.eyebrow { color: var(--accent-primary); font-size: 10px; font-weight: 800; letter-spacing: .15em; margin-bottom: 6px; }
.dashboard-header { align-items: flex-end; }
.dashboard-header h1 { font-size: 28px; letter-spacing: -.7px; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 12px; margin-bottom: 18px; }
.metric-card { background: linear-gradient(145deg, var(--bg-card), var(--bg-surface)); border: 1px solid var(--border-subtle); border-radius: 13px; padding: 15px; min-width: 0; }
.metric-card-top { display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--text-secondary); font-size:11px; font-weight:650; }
.metric-symbol { display:grid; place-items:center; width:25px; height:25px; border-radius:8px; color:var(--accent-primary); background:color-mix(in srgb, var(--accent-primary) 14%, transparent); font-weight:800; }
.metric-card strong { display:block; font-size:27px; line-height:1.2; margin:9px 0 3px; font-weight:750; }
.metric-card small { color:var(--text-muted); font-size:10px; }
.metric-1 .metric-symbol, .metric-1 strong { color:#F08B8B; }
.metric-3 .metric-symbol { color:#7CA8D9; }
.dashboard-columns { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
.dashboard-panel, .dashboard-finance-panel { background:var(--bg-surface); border:1px solid var(--border-subtle); border-radius:14px; padding:17px; min-width:0; }
.dashboard-panel-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:12px; }
.dashboard-panel-heading h3 { font-size:14px; font-weight:750; }
.dashboard-panel-heading .subtitle { font-size:10px; margin-top:3px; }
.panel-indicator, .section-chip { color:var(--accent-primary); background:color-mix(in srgb, var(--accent-primary) 12%, transparent); border:1px solid color-mix(in srgb, var(--accent-primary) 25%, transparent); border-radius:20px; padding:4px 8px; font-size:9px; font-weight:800; letter-spacing:.08em; white-space:nowrap; }
.text-action { border:0; background:transparent; color:var(--accent-primary); font:inherit; font-size:11px; font-weight:700; cursor:pointer; }
.dashboard-task-list { display:flex; flex-direction:column; }
.dashboard-task-row { display:flex; align-items:center; gap:10px; width:100%; padding:10px 2px; background:transparent; border:0; border-bottom:1px solid var(--border-subtle); color:var(--text-main); text-align:left; cursor:pointer; }
.dashboard-task-row:last-child { border-bottom:0; }
.dashboard-task-row:hover .dashboard-task-copy strong { color:var(--accent-primary); }
.dashboard-task-dot { width:7px; height:7px; border-radius:50%; background:var(--accent-primary); flex-shrink:0; }
.dashboard-task-dot.is-overdue { background:#F08B8B; box-shadow:0 0 0 4px rgba(240,139,139,.12); }
.dashboard-task-copy { display:flex; flex-direction:column; gap:2px; flex:1; min-width:0; }
.dashboard-task-copy strong { font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-task-copy small { color:var(--text-muted); font-size:9px; }
.dashboard-task-date { color:var(--text-secondary); font-size:10px; white-space:nowrap; }
.dashboard-task-date.is-overdue { color:#F08B8B; font-weight:700; }
.dashboard-empty, .cost-empty { color:var(--text-muted); font-size:11px; padding:16px 4px; }
.dashboard-finance-panel { margin-bottom:14px; }
.financial-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.financial-metric { display:flex; flex-direction:column; gap:5px; padding:12px; background:var(--bg-card); border-radius:10px; }
.financial-metric span { color:var(--text-muted); font-size:10px; }
.financial-metric strong { font-size:16px; }
.financial-metric .financial-result { color:var(--accent-primary); }

.agenda-toolbar { display:flex; justify-content:space-between; align-items:flex-end; gap:18px; margin-bottom:18px; }
.agenda-toolbar h2 { font-size:25px; }
.agenda-controls { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.agenda-controls > strong { min-width:170px; text-align:center; font-size:12px; }
.agenda-mode-switch { display:flex; padding:3px; background:var(--bg-surface); border:1px solid var(--border-subtle); border-radius:9px; }
.agenda-mode { border:0; border-radius:6px; padding:6px 11px; color:var(--text-secondary); background:transparent; cursor:pointer; font:inherit; font-size:11px; }
.agenda-mode.active { color:var(--text-main); background:var(--bg-card); box-shadow:inset 0 0 0 1px var(--border-focus); }
.agenda-calendar { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); border:1px solid var(--border-subtle); border-radius:12px; overflow:hidden; background:var(--bg-surface); }
.agenda-weekday { padding:10px; text-align:center; color:var(--text-muted); font-size:10px; font-weight:800; border-bottom:1px solid var(--border-subtle); background:var(--bg-card); }
.agenda-day { min-height:125px; border-right:1px solid var(--border-subtle); border-bottom:1px solid var(--border-subtle); padding:7px; min-width:0; }
.agenda-calendar.is-month .agenda-day { min-height:108px; }
.agenda-day:nth-child(7n) { border-right:0; }
.agenda-day.is-other-month { opacity:.38; }
.agenda-day.is-today { background:color-mix(in srgb, var(--accent-primary) 7%, var(--bg-surface)); }
.agenda-day.is-selected { box-shadow:inset 0 0 0 1px var(--accent-primary); }
.agenda-day-number { display:grid; place-items:center; width:25px; height:25px; border:0; border-radius:50%; color:var(--text-secondary); background:transparent; font:inherit; font-size:11px; cursor:pointer; }
.agenda-day.is-today .agenda-day-number { background:var(--accent-primary); color:var(--accent-on-primary); font-weight:800; }
.agenda-day-items { display:flex; flex-direction:column; gap:4px; margin-top:5px; }
.agenda-task-chip { display:block; width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:left; padding:4px 6px; border:0; border-left:2px solid var(--accent-primary); border-radius:4px; background:var(--bg-card); color:var(--text-main); font:inherit; font-size:9px; cursor:pointer; }
.agenda-task-chip.is-urgent { border-left-color:#EF7777; }
.agenda-task-chip:hover { background:var(--bg-card-hover); }
.agenda-more { color:var(--text-muted); font-size:9px; padding-left:5px; }

.task-extra-section { border:1px solid var(--border-subtle); background:rgba(255,255,255,.018); border-radius:11px; padding:14px; margin:4px 0 14px; }
.task-extra-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:12px; }
.task-extra-heading h4 { font-size:12px; font-weight:800; }
.task-extra-heading p { color:var(--text-muted); font-size:10px; margin-top:3px; }
.task-extra-section .form-row { gap:10px; }
.task-extra-section .form-group { flex:1; min-width:0; }
.finance-sale-field { max-width:240px; }
.cost-editor-header { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:10px 0 8px; color:var(--text-secondary); font-size:11px; }
.btn-small { padding:5px 9px; font-size:10px; }
.cost-items-editor { display:flex; flex-direction:column; gap:6px; }
.cost-item-row { display:grid; grid-template-columns:minmax(130px,2fr) minmax(110px,1fr) minmax(85px,.8fr) minmax(85px,.8fr) 28px; gap:6px; align-items:center; }
.cost-item-row .form-input { min-width:0; padding:7px 8px; font-size:10px; }
.cost-remove { border:0; border-radius:6px; width:26px; height:28px; background:rgba(228,40,55,.12); color:#F08B8B; font-size:17px; cursor:pointer; }
.cost-summary { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:14px; padding-top:10px; color:var(--text-muted); font-size:10px; }
.cost-summary strong { color:var(--text-main); }

.settings-dialog { width:min(760px,96vw); max-height:90vh; overflow-y:auto; padding:22px; border:1px solid var(--border-subtle); border-radius:16px; background:var(--bg-surface); box-shadow:var(--shadow-modal); }
.settings-section { padding:15px 0; border-bottom:1px solid var(--border-subtle); }
.settings-section:last-of-type { border-bottom:0; }
.theme-swatches { display:flex; flex-wrap:wrap; gap:9px; margin:12px 0; }
.theme-swatch { display:flex; align-items:center; gap:7px; padding:7px 10px; border:1px solid var(--border-subtle); border-radius:9px; background:var(--bg-card); color:var(--text-secondary); font:inherit; font-size:10px; cursor:pointer; }
.theme-swatch span { width:17px; height:17px; border-radius:50%; background:var(--swatch); box-shadow:0 0 0 2px rgba(255,255,255,.08); }
.theme-swatch.selected { border-color:var(--accent-primary); color:var(--text-main); }
.custom-theme-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; color:var(--text-secondary); font-size:11px; }
.custom-theme-row input[type=color] { width:35px; height:30px; padding:2px; background:var(--bg-card); border:1px solid var(--border-subtle); border-radius:6px; }
.settings-save-status { color:var(--text-muted); font-size:10px; margin-top:8px; }
.professional-form { display:grid; grid-template-columns:1.2fr 1fr 1fr auto; gap:7px; margin:12px 0; }
.professional-form .form-input { min-width:0; padding:8px; font-size:10px; }
.professional-list { display:flex; flex-direction:column; gap:6px; }
.professional-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 11px; border:1px solid var(--border-subtle); border-radius:8px; background:var(--bg-card); }
.professional-row > div { display:flex; flex-direction:column; gap:2px; }
.professional-row strong { font-size:11px; }
.professional-row small { color:var(--text-muted); font-size:9px; }
.professional-row.is-inactive { opacity:.5; }
.settings-footnote { margin-top:13px; padding:11px; border-radius:8px; background:rgba(0,30,70,.22); color:var(--text-secondary); font-size:10px; line-height:1.5; }

.tag-badge-hybrid { color:#B9C9E5; background:rgba(0,30,70,.35); border:1px solid rgba(65,111,168,.35); }

@media (max-width:1200px) {
  .dashboard-metrics { grid-template-columns:repeat(3,minmax(120px,1fr)); }
  .topbar-left { gap:14px; }
  .nav-tab { padding:6px 9px; }
}
@media (max-width:900px) {
  .dashboard-columns { grid-template-columns:1fr; }
  .agenda-toolbar { align-items:flex-start; flex-direction:column; }
  .agenda-controls { width:100%; }
  .professional-form { grid-template-columns:1fr 1fr; }
}
@media (max-width:640px) {
  .screen-view { padding:16px; }
  .dashboard-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .metric-card { padding:11px; }
  .metric-card strong { font-size:23px; }
  .financial-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .agenda-controls > strong { min-width:120px; }
  .agenda-day { min-height:85px; padding:4px; }
  .agenda-calendar.is-month .agenda-day { min-height:76px; }
  .agenda-task-chip { font-size:8px; padding:3px 4px; }
  .cost-item-row { grid-template-columns:1fr 1fr; padding:7px; border:1px solid var(--border-subtle); border-radius:8px; }
  .cost-item-row .cost-description { grid-column:1 / -1; }
  .cost-remove { justify-self:end; }
  .professional-form { grid-template-columns:1fr; }
  .settings-dialog { padding:15px; }
}


/* ==========================================================================\n   REFINAMENTO 1.2.1 — AGENDA OPERACIONAL E DASHBOARD DINÂMICO\n   ========================================================================== */
.dashboard-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:22px 24px;margin-bottom:20px;border:1px solid var(--border-subtle);border-radius:18px;background:radial-gradient(circle at 90% 0%,rgba(228,40,55,.15),transparent 34%),linear-gradient(120deg,#20282B 0%,#171F23 68%,#172235 100%);box-shadow:var(--shadow-card)}
.dashboard-hero h1{font-size:clamp(23px,2.2vw,31px);letter-spacing:-.8px;margin:5px 0 4px}
.dashboard-hero .subtitle{font-size:12px}
.dashboard-updated{display:inline-block;margin-top:10px;color:var(--text-muted);font-size:10px}
.dashboard-hero-actions{display:flex;gap:9px;flex-wrap:wrap}
.dashboard-section-label{display:flex;justify-content:space-between;gap:12px;margin:0 2px 10px;color:var(--text-muted);font-size:9px;font-weight:800;letter-spacing:.1em}
.dashboard-section-label span:last-child{font-weight:500;letter-spacing:0}
.dashboard-metrics{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:14px}
.metric-card{position:relative;min-height:112px;padding:14px 15px;border:1px solid var(--border-subtle);border-radius:13px;background:linear-gradient(145deg,var(--bg-surface),var(--bg-card));box-shadow:0 4px 12px rgba(0,0,0,.14);overflow:hidden}
.metric-card:after{content:"";position:absolute;width:70px;height:70px;border-radius:50%;right:-24px;bottom:-32px;background:color-mix(in srgb,var(--accent-primary) 9%,transparent)}
.metric-card-top{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--text-secondary);font-size:10px;font-weight:650}
.metric-symbol{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:color-mix(in srgb,var(--accent-primary) 13%,transparent);color:var(--accent-primary);font-size:15px;font-weight:800}
.metric-card strong{position:relative;z-index:1;display:block;margin-top:10px;font-size:27px;line-height:1.1;letter-spacing:-.8px}
.metric-card small{position:relative;z-index:1;display:block;margin-top:5px;color:var(--text-muted);font-size:9px}
.dashboard-main-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:14px;margin-bottom:14px}
.dashboard-lower-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin-bottom:14px}
.dashboard-panel,.dashboard-finance-panel{padding:18px;border:1px solid var(--border-subtle);border-radius:15px;background:var(--bg-surface);box-shadow:0 4px 12px rgba(0,0,0,.12)}
.dashboard-panel-heading{align-items:flex-start;margin-bottom:13px}
.dashboard-panel-heading .eyebrow{margin-bottom:4px;font-size:8px;letter-spacing:.11em}
.dashboard-panel-heading h3{font-size:15px;letter-spacing:-.2px}
.dashboard-panel-heading .subtitle{font-size:10px;line-height:1.45}
.dashboard-task-row{gap:11px;padding:11px 4px}
.dashboard-task-copy strong{font-size:11px}
.dashboard-task-copy small{font-size:9px}
.dashboard-task-dot{width:8px;height:8px}
.dashboard-task-dot.is-complete{background:#2EBB83}
.dashboard-task-row.is-completed .dashboard-task-copy strong{text-decoration:line-through;color:var(--text-muted)}
.dashboard-task-date{font-size:9px}
.dashboard-empty{display:flex;flex-direction:column;gap:4px;padding:22px 8px;line-height:1.5}
.dashboard-empty strong{color:var(--text-secondary);font-size:11px}
.dashboard-empty span{font-size:10px}
.dashboard-pipeline{display:flex;flex-direction:column;gap:12px}
.pipeline-row{display:flex;flex-direction:column;gap:5px}
.pipeline-label{display:flex;align-items:center;justify-content:space-between;color:var(--text-secondary);font-size:10px}
.pipeline-label strong{color:var(--text-main);font-size:10px}
.pipeline-track{height:7px;border-radius:20px;background:#11191D;overflow:hidden}
.pipeline-track span{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,var(--accent-primary),#F06A73);min-width:4px}
.financial-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.financial-metric{min-height:67px;padding:11px;border:1px solid var(--border-subtle);background:var(--bg-card)}
.financial-metric span{font-size:9px}
.financial-metric strong{font-size:15px}
.dashboard-recent-panel{margin-bottom:18px}

.agenda-page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:15px}
.agenda-page-header h2{font-size:27px;letter-spacing:-.7px}
.agenda-page-header .subtitle{font-size:11px;margin-top:3px}
.agenda-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}
.agenda-summary-card{display:flex;flex-direction:column;gap:4px;padding:12px 15px;border:1px solid var(--border-subtle);border-radius:12px;background:var(--bg-surface)}
.agenda-summary-card span{color:var(--text-secondary);font-size:9px;font-weight:650}
.agenda-summary-card strong{font-size:22px;line-height:1.1}
.agenda-summary-card small{color:var(--text-muted);font-size:9px}
.agenda-summary-card .summary-danger{color:#F08B8B}
.agenda-layout{display:grid;grid-template-columns:minmax(0,1fr) 315px;gap:14px;align-items:start}
.agenda-calendar-panel,.agenda-day-panel{min-width:0;border:1px solid var(--border-subtle);border-radius:15px;background:var(--bg-surface);box-shadow:0 4px 12px rgba(0,0,0,.12)}
.agenda-calendar-panel{padding:15px}
.agenda-toolbar{align-items:center;margin-bottom:13px}
.agenda-controls{gap:7px}
.agenda-controls>strong{min-width:185px;color:var(--text-main);font-size:11px}
.agenda-legend{display:flex;align-items:center;gap:6px;color:var(--text-muted);font-size:9px;white-space:nowrap}
.legend-dot{width:7px;height:7px;border-radius:50%;display:inline-block;margin-left:5px}
.legend-active{background:var(--accent-primary)}
.legend-done{background:#2EBB83}
.agenda-calendar{grid-template-columns:repeat(7,minmax(0,1fr));border:0;border-radius:0;gap:5px;background:transparent;overflow:visible}
.agenda-weekday{padding:8px 4px;border:0;border-radius:6px;background:transparent;color:var(--text-muted);font-size:9px;letter-spacing:.05em}
.agenda-day{min-height:145px;padding:8px;border:1px solid var(--border-subtle);border-radius:9px;background:#1A2226;transition:border-color .15s,background .15s;cursor:pointer}
.agenda-calendar.is-month .agenda-day{min-height:108px}
.agenda-day:nth-child(7n){border-right:1px solid var(--border-subtle)}
.agenda-day:hover{border-color:var(--border-focus);background:#202A2F}
.agenda-day.is-other-month{opacity:.42}
.agenda-day.is-today{background:color-mix(in srgb,var(--accent-primary) 8%,#1A2226);border-color:color-mix(in srgb,var(--accent-primary) 38%,var(--border-subtle))}
.agenda-day.is-selected{border-color:var(--accent-primary);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent-primary) 25%,transparent)}
.agenda-day-top{display:flex;align-items:center;justify-content:space-between;gap:4px}
.agenda-day-number{width:27px;height:27px;font-size:10px;font-weight:700}
.agenda-day-count{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:20px;background:color-mix(in srgb,var(--accent-primary) 16%,transparent);color:var(--accent-primary);font-size:8px;font-weight:800}
.agenda-day.is-today .agenda-day-number{background:var(--accent-primary);color:#fff}
.agenda-day-items{gap:4px;margin-top:7px}
.agenda-task-chip{display:flex;align-items:center;gap:4px;padding:5px 6px;border-left:2px solid var(--accent-primary);border-radius:5px;background:#263136;font-size:9px;line-height:1.25}
.agenda-chip-status{flex-shrink:0;color:var(--accent-primary);font-weight:900}
.agenda-task-chip.is-urgent{border-left-color:#F06A73}
.agenda-task-chip.is-overdue{border-left-color:#F08B8B}
.agenda-task-chip.is-completed{border-left-color:#2EBB83;opacity:.72}
.agenda-task-chip.is-completed .agenda-chip-status{color:#2EBB83}
.agenda-more{padding:2px 5px;color:var(--text-muted);font-size:8px}
.agenda-day-panel{position:sticky;top:12px;padding:16px}
.agenda-day-panel-header{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:13px}
.agenda-day-panel-header h3{font-size:16px;line-height:1.3;text-transform:capitalize}
.agenda-day-panel-header .subtitle{font-size:9px;margin-top:4px}
.agenda-selected-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:color-mix(in srgb,var(--accent-primary) 13%,transparent);color:var(--accent-primary);font-size:17px}
.agenda-add-day-btn{width:100%;justify-content:center;margin-bottom:12px}
.agenda-day-details{display:flex;flex-direction:column;gap:7px;max-height:560px;overflow:auto}
.agenda-detail-task{display:flex;align-items:center;gap:9px;width:100%;padding:10px 8px;border:1px solid var(--border-subtle);border-radius:9px;background:var(--bg-card);color:var(--text-main);text-align:left;cursor:pointer}
.agenda-detail-task:hover{border-color:var(--border-focus);background:var(--bg-card-hover)}
.agenda-detail-indicator{display:grid;place-items:center;flex-shrink:0;width:21px;height:21px;border-radius:50%;background:color-mix(in srgb,var(--accent-primary) 15%,transparent);color:var(--accent-primary);font-size:11px;font-weight:800}
.agenda-detail-indicator.is-overdue{background:rgba(240,139,139,.14);color:#F08B8B}
.agenda-detail-indicator.is-completed{background:rgba(46,187,131,.14);color:#2EBB83}
.agenda-detail-copy{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.agenda-detail-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}
.agenda-detail-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-muted);font-size:8px}
.agenda-detail-task.is-completed .agenda-detail-copy strong{text-decoration:line-through;color:var(--text-muted)}
.agenda-detail-arrow{color:var(--text-muted);font-size:17px}
.agenda-day-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:7px;padding:25px 12px;color:var(--text-muted)}
.agenda-empty-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--bg-card);color:var(--accent-primary);font-size:20px}
.agenda-day-empty strong{color:var(--text-secondary);font-size:10px}
.agenda-day-empty p{font-size:9px;line-height:1.5}
.qc-date-row{display:grid;grid-template-columns:auto minmax(150px,210px) 1fr;align-items:center;gap:10px;padding:10px 0 2px;color:var(--text-secondary);font-size:10px}
.qc-date-row label{font-weight:700}
.qc-date-row .form-input{padding:7px 9px;font-size:10px}
.qc-date-row span{color:var(--text-muted);font-size:9px}
.qc-live-tag-date-explicit{background:rgba(228,40,55,.14);color:#FF9BA3;border:1px solid rgba(228,40,55,.28)}

@media(max-width:1250px){.dashboard-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.agenda-layout{grid-template-columns:minmax(0,1fr) 285px}}
@media(max-width:1000px){.dashboard-main-grid,.dashboard-lower-grid{grid-template-columns:1fr}.agenda-layout{grid-template-columns:1fr}.agenda-day-panel{position:static}.agenda-day-details{max-height:350px}}
@media(max-width:700px){.dashboard-hero{align-items:flex-start;flex-direction:column;padding:17px}.dashboard-hero-actions{width:100%}.dashboard-hero-actions .btn{flex:1}.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.agenda-page-header{align-items:flex-start;flex-direction:column}.agenda-page-header>.btn{width:100%}.agenda-summary{grid-template-columns:1fr}.agenda-calendar-panel{padding:8px}.agenda-calendar{gap:3px}.agenda-day{min-height:92px;padding:4px}.agenda-calendar.is-month .agenda-day{min-height:75px}.agenda-task-chip{font-size:7px;padding:3px}.agenda-day-number{width:23px;height:23px}.agenda-legend{display:none}.agenda-toolbar{align-items:flex-start;flex-direction:column}.agenda-controls{width:100%;flex-wrap:wrap}.agenda-controls>strong{min-width:120px;flex:1}.qc-date-row{grid-template-columns:1fr}.qc-date-row span{grid-column:1}}


/* Work Stage 1.2.2 — classificação financeira e ranking de rentabilidade */
.finance-revenue-row { align-items:end; gap:12px; }
.finance-revenue-row .finance-sale-field { flex:1; max-width:none; }
.finance-revenue-row > .form-group { flex:1; min-width:180px; }
.finance-split-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.finance-classification-hint { color:var(--text-muted); font-size:10px; margin:-3px 0 12px; }
.cost-item-row { grid-template-columns:minmax(125px,1.7fr) minmax(105px,1fr) minmax(142px,1.25fr) minmax(82px,.75fr) minmax(82px,.75fr) 28px; }
.cost-type-toggle { display:flex; align-items:center; gap:3px; min-width:0; padding:3px; border:1px solid var(--border-subtle); border-radius:8px; background:var(--bg-card); }
.cost-type-btn { min-width:0; flex:1; border:0; border-radius:5px; padding:6px 5px; background:transparent; color:var(--text-muted); font:inherit; font-size:9px; font-weight:700; cursor:pointer; white-space:nowrap; }
.cost-type-btn.active { background:rgba(228,40,55,.16); color:var(--text-main); box-shadow:inset 0 0 0 1px rgba(228,40,55,.3); }
.cost-type-btn[data-cost-type="product"].active { background:rgba(42,111,180,.2); box-shadow:inset 0 0 0 1px rgba(42,111,180,.4); }
.cost-unclassified { position:static; transform:none; font-size:8px; color:#E9B45D; white-space:nowrap; padding:0 3px; }
.financial-breakdown-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.financial-type-card { min-width:0; padding:12px; border:1px solid var(--border-subtle); border-radius:11px; background:var(--bg-card); }
.financial-type-heading { display:flex; flex-direction:column; gap:6px; padding-bottom:9px; border-bottom:1px solid var(--border-subtle); }
.financial-type-heading span { color:var(--text-muted); font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
.financial-type-heading strong { font-size:19px; color:var(--text-main); }
.financial-type-card.is-total .financial-type-heading strong { color:var(--accent-primary); }
.financial-type-card.is-service .financial-type-heading strong { color:#69B99A; }
.financial-type-card.is-product .financial-type-heading strong { color:#77A8E8; }
.financial-type-values { display:grid; gap:6px; padding-top:9px; }
.financial-type-values span { display:flex; justify-content:space-between; gap:5px; color:var(--text-muted); font-size:9px; }
.financial-type-values b { color:var(--text-main); font-size:10px; font-weight:700; }
.financial-footnote { margin-top:9px; color:var(--text-muted); font-size:9px; line-height:1.5; }
.dashboard-profit-grid { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:14px; margin:0 0 14px; }
.profit-champion-content,.profit-ranking-list { display:flex; flex-direction:column; gap:7px; }
.profit-champion-card { display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; gap:10px; width:100%; padding:13px; border:1px solid rgba(228,40,55,.3); border-radius:10px; background:linear-gradient(115deg,rgba(228,40,55,.12),var(--bg-card)); color:var(--text-main); text-align:left; cursor:pointer; }
.profit-champion-crown { display:grid; place-items:center; width:36px; height:36px; border-radius:10px; background:rgba(228,40,55,.16); color:#F1B45B; font-size:22px; }
.profit-champion-copy,.profit-ranking-copy { display:flex; flex-direction:column; gap:4px; min-width:0; }
.profit-champion-copy strong,.profit-ranking-copy strong { overflow:hidden; color:var(--text-main); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.profit-champion-copy small,.profit-ranking-copy small { overflow:hidden; color:var(--text-muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.profit-champion-card > b { color:#69B99A; font-size:13px; white-space:nowrap; }
.profit-ranking-row { display:grid; grid-template-columns:28px minmax(0,1fr) auto; align-items:center; gap:9px; width:100%; padding:8px 9px; border:1px solid var(--border-subtle); border-radius:8px; background:var(--bg-card); text-align:left; cursor:pointer; }
.profit-ranking-row:hover,.profit-champion-card:hover { border-color:var(--accent-primary); }
.profit-ranking-position { color:var(--text-muted); font-size:10px; font-weight:800; font-variant-numeric:tabular-nums; }
.profit-ranking-row:nth-child(1) .profit-ranking-position,.profit-ranking-row:nth-child(2) .profit-ranking-position,.profit-ranking-row:nth-child(3) .profit-ranking-position { color:#E9B45D; }
.profit-ranking-row > b { color:#69B99A; font-size:11px; white-space:nowrap; }
@media(max-width:1100px){.cost-item-row{grid-template-columns:minmax(120px,1.5fr) minmax(100px,1fr) minmax(135px,1.2fr) minmax(75px,.7fr) minmax(75px,.7fr) 28px}.dashboard-profit-grid{grid-template-columns:1fr}}
@media(max-width:760px){.financial-breakdown-grid{grid-template-columns:1fr}.finance-split-row{grid-template-columns:1fr}.cost-item-row{grid-template-columns:1fr 1fr;padding:8px;border:1px solid var(--border-subtle);border-radius:8px}.cost-item-row .cost-description{grid-column:1/-1}.cost-type-toggle{grid-column:1/-1}.cost-remove{justify-self:end}.financial-type-heading strong{font-size:17px}}

.cost-editor-header>div{display:flex;flex-direction:column;gap:3px}.cost-editor-hint{color:var(--text-muted);font-size:9px;font-weight:400}


/* ==========================================================================
   WORK STAGE 1.2.3 — CATÁLOGO, UNIDADES, DIMENSÕES E PERSONALIZAÇÃO
   ========================================================================== */
.qc-date-row {
  grid-template-columns: auto minmax(150px, 190px) auto minmax(180px, 1fr);
}
.qc-date-shortcuts {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px;
}
.qc-date-shortcuts button {
  border:1px solid var(--border-subtle);
  border-radius:7px;
  padding:6px 9px;
  background:var(--bg-card);
  color:var(--text-secondary);
  font:inherit;
  font-size:10px;
  font-weight:700;
  cursor:pointer;
  transition:var(--transition);
}
.qc-date-shortcuts button:hover {
  color:var(--text-main);
  border-color:var(--accent-primary);
  background:color-mix(in srgb, var(--accent-primary) 12%, var(--bg-card));
}
.dimension-measure-row .form-group { min-width:110px; }
.dimension-help { margin:-5px 0 12px; color:var(--text-muted); font-size:10px; }

.cost-item-row {
  grid-template-columns:minmax(160px,1.7fr) 68px 78px minmax(105px,1fr) minmax(135px,1.2fr) 82px 82px 28px;
}
.cost-description-wrap { min-width:0; display:flex; flex-direction:column; gap:3px; }
.cost-description-wrap .form-input { width:100%; }
.cost-catalog-linked { color:var(--accent-success); font-size:8px; padding-left:4px; }
.cost-quantity,.cost-unit { text-align:center; }
.cost-item-row .cost-number { min-width:0; width:100%; }
.cost-item-row .cost-type-toggle { min-width:0; }
.cost-item-row .cost-type-btn { font-size:9px; }
.cost-item-row .cost-category { min-width:0; }

.catalog-layout {
  display:grid;
  grid-template-columns:minmax(270px,340px) minmax(0,1fr);
  gap:16px;
  align-items:start;
}
.catalog-form,.catalog-list-panel {
  min-width:0;
  padding:17px;
  border:1px solid var(--border-subtle);
  border-radius:14px;
  background:var(--bg-surface);
  box-shadow:var(--shadow-card);
}
.catalog-form { display:flex; flex-direction:column; gap:12px; }
.catalog-form-heading h3,.catalog-list-heading h3 { font-size:14px; }
.catalog-form-heading p,.catalog-list-heading p { margin-top:4px; color:var(--text-muted); font-size:10px; }
.catalog-form .form-group { min-width:0; }
.catalog-form .form-row { display:flex; gap:9px; }
.catalog-form .form-row>.form-group { flex:1; min-width:0; }
.catalog-checkbox { display:flex; align-items:center; gap:7px; align-self:end; min-height:36px; color:var(--text-secondary); font-size:10px; white-space:nowrap; }
.catalog-checkbox input { accent-color:var(--accent-primary); }
.catalog-form-actions,.catalog-item-actions,.settings-inline-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.catalog-note { color:var(--text-muted); font-size:9px; line-height:1.5; }
.catalog-list-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.catalog-list-heading .form-input { width:min(230px,45%); }
.catalog-items-list { display:flex; flex-direction:column; gap:7px; }
.catalog-item-card { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 12px; border:1px solid var(--border-subtle); border-radius:9px; background:var(--bg-card); }
.catalog-item-card.is-inactive { opacity:.55; }
.catalog-item-main { display:flex; flex-direction:column; gap:3px; min-width:0; }
.catalog-item-main strong { overflow:hidden; color:var(--text-main); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.catalog-item-main small { color:var(--text-secondary); font-size:9px; }
.catalog-item-main span { color:var(--text-muted); font-size:9px; }
.catalog-item-actions { justify-content:flex-end; flex-shrink:0; }
.catalog-empty { display:flex; flex-direction:column; gap:5px; padding:22px; border:1px dashed var(--border-subtle); border-radius:10px; color:var(--text-secondary); text-align:center; }
.catalog-empty strong { font-size:12px; }
.catalog-empty span { color:var(--text-muted); font-size:10px; }

.settings-subheading { display:block; color:var(--text-secondary); font-size:10px; font-weight:800; margin:8px 0 2px; text-transform:uppercase; letter-spacing:.06em; }
.background-theme-options { margin-top:13px; padding-top:11px; border-top:1px solid var(--border-subtle); }
.favicon-settings-row { display:flex; align-items:center; gap:16px; }
.favicon-preview-wrap { display:flex; flex-direction:column; align-items:center; gap:6px; min-width:82px; padding:12px; border:1px solid var(--border-subtle); border-radius:10px; background:var(--bg-card); color:var(--text-muted); font-size:9px; }
.favicon-preview-wrap img { width:36px; height:36px; object-fit:contain; }
.favicon-upload-controls { display:flex; flex:1; min-width:0; flex-direction:column; gap:8px; }
.favicon-upload-controls>.form-input { max-width:100%; font-size:10px; }
.favicon-upload-controls .settings-save-status { line-height:1.5; }

.dashboard-profit-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.profit-bottom-panel { border-color:rgba(228,40,55,.22); }
.profit-ranking-negative > b { color:#F08B8B; }
.profit-ranking-negative:hover { border-color:var(--accent-urgent); }

@media(max-width:1250px) {
  .cost-item-row { grid-template-columns:minmax(140px,1.6fr) 58px 68px minmax(90px,1fr) minmax(125px,1.2fr) 72px 72px 26px; }
}
@media(max-width:1100px) {
  .dashboard-profit-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .profit-champion-panel { grid-column:1/-1; }
  .catalog-layout { grid-template-columns:1fr; }
}
@media(max-width:900px) {
  .cost-item-row { grid-template-columns:minmax(150px,1fr) 70px 80px 28px; }
  .cost-description-wrap { grid-column:1/4; }
  .cost-category { grid-column:1/3; }
  .cost-type-toggle { grid-column:3/5; }
  .cost-number { grid-column:span 2; }
  .cost-remove { grid-column:4; grid-row:1; justify-self:end; }
  .qc-date-row { grid-template-columns:auto minmax(140px,190px) 1fr; }
  .qc-date-shortcuts { grid-column:2/-1; }
  .qc-date-row>span { grid-column:1/-1; }
}
@media(max-width:700px) {
  .dashboard-profit-grid { grid-template-columns:1fr; }
  .profit-champion-panel { grid-column:auto; }
  .catalog-form .form-row { flex-direction:column; }
  .catalog-list-heading { align-items:flex-start; flex-direction:column; }
  .catalog-list-heading .form-input { width:100%; }
  .catalog-item-card { align-items:flex-start; flex-direction:column; }
  .catalog-item-actions { width:100%; justify-content:flex-start; }
  .favicon-settings-row { align-items:flex-start; flex-direction:column; }
  .qc-date-row { grid-template-columns:1fr; }
  .qc-date-shortcuts,.qc-date-row>span { grid-column:1; }
  .cost-item-row { grid-template-columns:minmax(0,1fr) 68px 28px; }
  .cost-description-wrap { grid-column:1/3; }
  .cost-quantity { grid-column:1; }
  .cost-unit { grid-column:2; }
  .cost-category { grid-column:1/3; }
  .cost-type-toggle { grid-column:1/3; }
  .cost-number { grid-column:span 1; }
  .cost-remove { grid-column:3; grid-row:1; }
}

.dashboard-hero { background:radial-gradient(circle at 90% 0%,color-mix(in srgb,var(--accent-primary) 14%,transparent),transparent 34%),linear-gradient(120deg,var(--bg-surface) 0%,var(--bg-main) 68%,var(--bg-card) 100%); }


/* =============================================================================
   WORK STAGE 1.2.4 — RESPONSÁVEIS, CONFIGURAÇÕES E POMODORO FLUTUANTE
   ============================================================================= */
.task-assignee-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 150px;
  min-height: 22px;
  padding: 2px 7px 2px 3px;
  border: 1px solid color-mix(in srgb, var(--assignee-color) 38%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--assignee-color) 13%, transparent);
  color: var(--text-main);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}
.task-assignee-avatar,
.professional-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--assignee-color, var(--professional-color, #64748B));
  color: #fff;
  font-size: 8px;
  font-weight: 900;
}
.task-assignee-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.professional-identity { display:flex; align-items:center; gap:9px; min-width:0; }
.professional-avatar { width:30px; height:30px; font-size:10px; }
.professional-row-actions { display:flex; align-items:center; gap:8px; }
.professional-color-picker input,
.professional-color-field input {
  width:30px; height:28px; padding:2px; border:1px solid var(--border-subtle);
  border-radius:7px; background:var(--bg-card); cursor:pointer;
}
.professional-color-field { display:flex; align-items:center; gap:7px; color:var(--text-secondary); font-size:10px; }
.professional-form { grid-template-columns: minmax(130px,1.3fr) minmax(100px,1fr) minmax(100px,1fr) auto auto; }
.task-integration-actions { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 16px; }
.field-help { display:block; margin-top:5px; color:var(--text-muted); font-size:10px; line-height:1.45; }
.settings-form-row { align-items:end; }
.settings-inline-actions { display:flex; align-items:center; flex-wrap:wrap; gap:9px; margin-top:10px; }
.settings-save-status { color:var(--text-muted); font-size:10px; }
.settings-toggle-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid var(--border-subtle); color:var(--text-secondary); font-size:11px; }
.settings-toggle-row input { accent-color:var(--accent-primary); width:17px; height:17px; }
.integration-settings-card { margin:11px 0; padding:13px; border:1px solid var(--border-subtle); border-radius:11px; background:var(--bg-card); }
.integration-settings-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.integration-settings-heading > div { display:flex; flex-direction:column; gap:4px; }
.integration-settings-heading strong { color:var(--text-main); font-size:12px; }
.integration-settings-heading small { color:var(--text-muted); font-size:10px; }
.integration-settings-fields { display:flex; align-items:end; flex-wrap:wrap; gap:10px; margin-top:12px; }
.integration-settings-fields .form-group { flex:1 1 180px; margin:0; }
.integration-status { margin:9px 0 0; color:var(--text-muted); font-size:10px; line-height:1.45; }
.switch-control { position:relative; display:inline-flex; width:42px; height:24px; flex:0 0 auto; }
.switch-control input { width:0; height:0; opacity:0; }
.switch-control span { position:absolute; inset:0; border-radius:99px; background:#4B5563; cursor:pointer; transition:.2s; }
.switch-control span::before { content:""; position:absolute; left:3px; top:3px; width:18px; height:18px; border-radius:50%; background:white; transition:.2s; }
.switch-control input:checked + span { background:var(--accent-primary); }
.switch-control input:checked + span::before { transform:translateX(18px); }
.btn-pomodoro-launch { display:inline-flex; align-items:center; gap:6px; height:36px; padding:0 11px; border:1px solid var(--border-subtle); border-radius:9px; background:var(--bg-surface); color:var(--text-secondary); font-size:12px; font-weight:800; cursor:pointer; }
.btn-pomodoro-launch:hover, .btn-pomodoro-launch.is-running { color:var(--text-main); border-color:var(--accent-primary); }
.btn-pomodoro-launch.is-running { box-shadow:0 0 0 2px color-mix(in srgb, var(--accent-primary) 18%, transparent); }
.pomodoro-widget {
  position:fixed; z-index:1100; top:92px; right:22px; width:276px;
  overflow:hidden; border:1px solid color-mix(in srgb, var(--accent-primary) 40%, var(--border-subtle));
  border-radius:15px; background:var(--bg-card); color:var(--text-main);
  box-shadow:0 18px 55px rgba(0,0,0,.48); backdrop-filter:blur(18px);
  animation:pomodoro-enter .18s ease-out;
}
@keyframes pomodoro-enter { from { opacity:0; transform:translateY(-7px) scale(.98); } to { opacity:1; transform:translateY(0) scale(1); } }
.pomodoro-widget-header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 12px; background:var(--bg-surface); border-bottom:1px solid var(--border-subtle); cursor:grab; user-select:none; touch-action:none; }
.pomodoro-widget-header:active { cursor:grabbing; }
.pomodoro-widget-brand { display:flex; align-items:center; gap:9px; }
.pomodoro-brand-dot { width:9px; height:9px; border-radius:50%; background:var(--accent-primary); box-shadow:0 0 12px color-mix(in srgb, var(--accent-primary) 60%, transparent); }
.pomodoro-widget-brand div { display:flex; flex-direction:column; gap:2px; }
.pomodoro-widget-brand strong { font-size:12px; }
.pomodoro-widget-brand small { color:var(--text-muted); font-size:8px; letter-spacing:.13em; }
.pomodoro-window-actions { display:flex; gap:4px; }
.pomodoro-window-actions button { width:25px; height:25px; border:0; border-radius:6px; background:transparent; color:var(--text-secondary); font-size:17px; cursor:pointer; }
.pomodoro-window-actions button:hover { background:var(--bg-hover); color:var(--text-main); }
.pomodoro-widget-content { padding:15px 16px 13px; text-align:center; }
.pomodoro-mode-label { color:var(--accent-primary); font-size:9px; font-weight:900; letter-spacing:.18em; }
.pomodoro-time { margin:4px 0 0; font-size:49px; font-weight:800; letter-spacing:-2px; line-height:1.2; font-variant-numeric:tabular-nums; }
.pomodoro-cycle-info { color:var(--text-muted); font-size:10px; }
.pomodoro-progress-track { height:4px; margin:13px 0; overflow:hidden; border-radius:99px; background:var(--bg-hover); }
.pomodoro-progress-track span { display:block; width:0; height:100%; border-radius:99px; background:var(--accent-primary); transition:width .2s linear; }
.pomodoro-controls { display:flex; gap:8px; }
.pomodoro-controls button { flex:1; justify-content:center; }
.pomodoro-mode-controls { display:grid; grid-template-columns:repeat(3,1fr); gap:5px; margin-top:10px; }
.pomodoro-mode-controls button { min-height:29px; padding:4px 3px; border:1px solid var(--border-subtle); border-radius:7px; background:var(--bg-surface); color:var(--text-muted); font-size:9px; cursor:pointer; }
.pomodoro-mode-controls button.active { border-color:var(--accent-primary); color:var(--text-main); background:color-mix(in srgb, var(--accent-primary) 13%, var(--bg-surface)); }
.pomodoro-status { min-height:14px; margin:10px 0 0; color:var(--text-muted); font-size:9px; line-height:1.4; }
.pomodoro-widget.is-minimized { width:210px; }
.pomodoro-widget.is-minimized .pomodoro-widget-header { border-bottom:0; }
@media (max-width:900px) {
  .professional-form { grid-template-columns:1fr 1fr; }
  .pomodoro-widget { top:auto; right:10px; bottom:12px; width:min(276px,calc(100vw - 20px)); }
  .pomodoro-widget.is-minimized { width:210px; }
  .btn-pomodoro-launch span { display:none; }
  .integration-settings-fields { align-items:stretch; }
}
@media (max-width:560px) {
  .professional-form { grid-template-columns:1fr; }
  .task-integration-actions button { flex:1 1 100%; }
  .pomodoro-time { font-size:43px; }
}

.board-assignee-legend { display:flex; align-items:center; flex-wrap:wrap; gap:7px; padding:0 4px; }
.board-assignee-legend-item { display:inline-flex; align-items:center; gap:5px; color:var(--text-muted); font-size:9px; font-weight:700; white-space:nowrap; }
.board-assignee-legend-item i { width:8px; height:8px; border-radius:50%; background:var(--assignee-color); box-shadow:0 0 0 2px color-mix(in srgb, var(--assignee-color) 17%, transparent); }
@media (max-width:900px) { .board-assignee-legend { order:3; width:100%; } }
@media (max-width:760px) {
  .kanban-column { width:270px; flex-basis:270px; }
  .kanban-column.is-collapsed { width:56px; flex-basis:56px; min-width:56px; }
  .board-auto-collapse-control { flex:0 0 auto; }
}
@media (max-width:480px) {
  .kanban-column { width:250px; flex-basis:250px; }
  .kanban-column.is-collapsed { width:52px; flex-basis:52px; min-width:52px; }
}

.qc-close-btn { flex:0 0 auto; width:29px; height:29px; margin-left:10px; border:1px solid var(--border-subtle); border-radius:8px; background:var(--bg-card); color:var(--text-secondary); font-size:20px; line-height:1; cursor:pointer; }
.qc-close-btn:hover { color:var(--text-main); border-color:var(--accent-primary); }


/* =============================================================================
   WORK STAGE 1.2.5 — BOARD, CHECKLISTS, PRECIFICAÇÃO E ALINHAMENTO
   ============================================================================= */
.board-toolbar { align-items:flex-start; gap:12px; flex-wrap:wrap; }
.board-filters { flex-wrap:wrap; min-width:0; }
.board-filters .filter-select { max-width:220px; }
.board-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.kanban-column-header { align-items:center; gap:8px; }
.kanban-column-header .col-header-left { min-width:0; }
.kanban-column-header .col-header-left span:last-child { overflow:hidden; text-overflow:ellipsis; }
.board-assignee-legend { min-width:0; }

.catalog-layout { grid-template-columns:minmax(340px,.92fr) minmax(0,1.35fr); gap:18px; }
.catalog-form,.catalog-list-panel { min-width:0; }
.catalog-form .catalog-pricing-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.catalog-form .catalog-pricing-row>.form-group { min-width:0; }
.catalog-form .form-row:not(.catalog-pricing-row) { align-items:end; }
.catalog-form .form-input { width:100%; min-width:0; }
.catalog-suggested-price { color:var(--accent-primary)!important; font-weight:800; }
.catalog-item-main { min-width:0; }
.catalog-item-main strong,.catalog-item-main small,.catalog-item-main span { overflow-wrap:anywhere; }

.cost-item-row { grid-template-columns:minmax(160px,2fr) minmax(68px,.65fr) minmax(68px,.65fr) minmax(105px,1fr) minmax(130px,1.15fr) minmax(90px,.8fr) minmax(90px,.8fr) 28px; gap:7px; }
.cost-description-wrap { display:flex; flex-direction:column; gap:3px; min-width:0; }
.cost-suggestion-hint { color:var(--text-muted); font-size:9px; line-height:1.35; overflow-wrap:anywhere; }
.cost-catalog-linked { color:var(--accent-primary); font-size:9px; }
.cost-type-toggle { display:flex; align-items:center; gap:4px; min-width:0; }
.cost-type-btn { min-width:0; padding:6px 7px; white-space:nowrap; }

.task-steps-editor { padding:14px; border:1px solid var(--border-subtle); border-radius:12px; background:var(--bg-surface); display:flex; flex-direction:column; gap:10px; }
.task-steps-editor-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.task-steps-editor-heading h4 { margin:0; color:var(--text-main); font-size:13px; }
.task-steps-editor-heading p { margin:4px 0 0; color:var(--text-muted); font-size:10px; line-height:1.45; }
.detail-task-steps-list { display:flex; flex-direction:column; gap:6px; }
.detail-steps-empty { margin:0; color:var(--text-muted); font-size:10px; }
.detail-task-step { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:7px 9px; border:1px solid var(--border-subtle); border-radius:8px; background:var(--bg-card); }
.detail-task-step label { display:flex; align-items:center; gap:8px; min-width:0; color:var(--text-secondary); font-size:11px; }
.detail-task-step label span { overflow-wrap:anywhere; }
.detail-task-step input { accent-color:var(--accent-primary); flex:0 0 auto; }
.detail-task-step.is-done label span { color:var(--text-muted); text-decoration:line-through; }
.detail-task-step button { width:24px; height:24px; flex:0 0 auto; border:0; border-radius:6px; background:transparent; color:var(--text-muted); font-size:18px; cursor:pointer; }
.detail-task-step button:hover { color:#F08B8B; background:rgba(228,40,55,.1); }
.detail-step-add-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:center; }
.detail-step-add-row .form-input { min-width:0; }

.task-card-checklist { display:flex; flex-direction:column; gap:5px; margin-top:9px; padding:8px 9px; border:1px solid var(--border-subtle); border-radius:8px; background:color-mix(in srgb,var(--bg-surface) 72%,transparent); }
.task-card-checklist-header { display:flex; justify-content:space-between; align-items:center; color:var(--text-muted); font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.task-card-checklist-header strong { color:var(--accent-primary); font-variant-numeric:tabular-nums; }
.task-card-step { display:flex; align-items:flex-start; gap:7px; padding:2px 0; border:0; background:transparent; color:var(--text-secondary); font:inherit; font-size:10px; text-align:left; cursor:pointer; }
.task-card-step>span:last-child { min-width:0; overflow-wrap:anywhere; }
.task-card-step-check { display:inline-flex; align-items:center; justify-content:center; width:14px; height:14px; flex:0 0 14px; border:1px solid var(--border-focus); border-radius:4px; color:#fff; font-size:10px; line-height:1; }
.task-card-step.is-done { color:var(--text-muted); text-decoration:line-through; }
.task-card-step.is-done .task-card-step-check { border-color:var(--accent-primary); background:var(--accent-primary); }
.task-card-steps-more { color:var(--text-muted); font-size:9px; }

.inbox-item { align-items:center; gap:12px; }
.inbox-item-left { min-width:0; }
.inbox-item-actions { flex-wrap:wrap; justify-content:flex-end; }
.inbox-complete-btn { border-color:color-mix(in srgb,#16A34A 38%,var(--border-subtle)); color:#72D39A; }
.inbox-complete-btn:hover { background:rgba(22,163,74,.12); }

.board-stages-editor-list { display:flex; flex-direction:column; gap:7px; margin:12px 0; }
.board-stage-editor-row { display:grid; grid-template-columns:52px 78px minmax(150px,1fr) 54px 92px 30px; align-items:center; gap:8px; padding:8px; border:1px solid var(--border-subtle); border-radius:9px; background:var(--bg-card); }
.board-stage-order { display:flex; gap:3px; }
.board-stage-order button,.board-stage-remove { width:24px; height:26px; border:1px solid var(--border-subtle); border-radius:6px; background:var(--bg-surface); color:var(--text-secondary); cursor:pointer; }
.board-stage-order button:disabled,.board-stage-remove:disabled { opacity:.35; cursor:not-allowed; }
.board-stage-remove { color:#F08B8B; font-size:17px; }
.board-stage-icon-field,.board-stage-name-field,.board-stage-color-field { display:flex; flex-direction:column; gap:4px; min-width:0; }
.board-stage-icon-field span,.board-stage-name-field span,.board-stage-color-field span { color:var(--text-muted); font-size:9px; }
.board-stage-icon-field input,.board-stage-name-field input { width:100%; min-width:0; height:32px; padding:5px 7px; border:1px solid var(--border-subtle); border-radius:6px; background:var(--bg-surface); color:var(--text-main); font:inherit; font-size:11px; }
.board-stage-color-field input { width:100%; height:32px; padding:3px; border:1px solid var(--border-subtle); border-radius:6px; background:var(--bg-surface); cursor:pointer; }
.board-stage-count { color:var(--text-muted); font-size:9px; text-align:right; white-space:nowrap; }
.board-stage-add-row { display:grid; grid-template-columns:minmax(0,1fr) 70px auto; gap:8px; align-items:center; }
.board-stage-add-row input { min-width:0; }

.pomodoro-custom-break { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:10px; padding-top:9px; border-top:1px solid var(--border-subtle); }
.pomodoro-custom-break label { color:var(--text-muted); font-size:9px; font-weight:700; }
.pomodoro-custom-break>div { display:flex; align-items:center; gap:5px; }
.pomodoro-custom-break input { width:55px; height:28px; padding:4px 6px; border:1px solid var(--border-subtle); border-radius:6px; background:var(--bg-surface); color:var(--text-main); font-size:11px; text-align:center; }
.pomodoro-custom-break button { height:28px; padding:0 9px; border:1px solid var(--accent-primary); border-radius:6px; background:color-mix(in srgb,var(--accent-primary) 13%,var(--bg-surface)); color:var(--text-main); font-size:10px; font-weight:800; cursor:pointer; }
.pomodoro-custom-break button.active { background:var(--accent-primary); color:var(--accent-on-primary); }

@media (max-width:1100px) {
  .catalog-layout { grid-template-columns:minmax(0,1fr); }
  .cost-item-row { grid-template-columns:minmax(130px,2fr) minmax(70px,.7fr) minmax(70px,.7fr) minmax(100px,1fr) 28px; }
  .cost-item-row .cost-type-toggle { grid-column:1/-1; }
}
@media (max-width:760px) {
  .board-toolbar { align-items:stretch; }
  .board-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
  .board-filters .filter-label { grid-column:1/-1; }
  .board-filters .filter-select,.board-filters .filter-search { width:100%; max-width:none; min-width:0; }
  .board-actions { justify-content:space-between; }
  .catalog-form .catalog-pricing-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .board-stage-editor-row { grid-template-columns:48px 62px minmax(0,1fr) 44px 28px; }
  .board-stage-color-field { grid-column:4; grid-row:1; }
  .board-stage-remove { grid-column:5; grid-row:1; }
  .board-stage-count { display:none; }
  .board-stage-add-row { grid-template-columns:minmax(0,1fr) 56px; }
  .board-stage-add-row button { grid-column:1/-1; }
  .detail-step-add-row { grid-template-columns:minmax(0,1fr); }
  .inbox-item { align-items:flex-start; flex-direction:column; }
  .inbox-item-actions { width:100%; justify-content:flex-start; }
}
@media (max-width:480px) {
  .catalog-form .catalog-pricing-row { grid-template-columns:minmax(0,1fr); }
  .board-filters { grid-template-columns:minmax(0,1fr); }
  .board-stage-editor-row { grid-template-columns:42px 56px minmax(0,1fr) 38px 26px; gap:5px; padding:6px; }
  .board-stage-color-field input { height:29px; }
  .board-stage-order button { width:20px; }
  .pomodoro-custom-break { align-items:flex-start; flex-direction:column; }
}


/* WORK STAGE 1.2.6 — CONFIRMAÇÃO DE SAÍDA, CAPTURA RÁPIDA E CHECKLIST VERDE */
.qc-shortcuts { align-items:center; gap:8px; }
.qc-shortcut-action {
  display:inline-flex; align-items:center; gap:6px; padding:5px 8px;
  border:1px solid var(--border-subtle); border-radius:7px;
  background:var(--bg-card); color:var(--text-secondary);
  font:inherit; font-size:11px; cursor:pointer; transition:var(--transition);
}
.qc-shortcut-action:hover { border-color:var(--accent-primary); color:var(--text-main); transform:translateY(-1px); }
.qc-shortcut-action kbd { font-size:10px; font-weight:800; }
.qc-shortcut-save { color:#72D39A; }
.qc-shortcut-save:hover { border-color:#22C55E; background:rgba(34,197,94,.09); }
.qc-shortcut-close:hover { border-color:var(--text-muted); }

.unsaved-changes-overlay { z-index:3000; align-items:center; padding:20px; }
.unsaved-changes-dialog {
  width:min(440px,100%); display:grid; grid-template-columns:42px minmax(0,1fr);
  gap:12px; padding:22px; border:1px solid var(--border-focus);
  border-radius:15px; background:var(--bg-card); color:var(--text-main);
  box-shadow:0 24px 80px rgba(0,0,0,.55); animation:fadeIn .12s ease;
}
.unsaved-changes-icon {
  width:38px; height:38px; display:flex; align-items:center; justify-content:center;
  border-radius:50%; background:rgba(245,158,11,.13); color:#FBBF24;
  font-size:21px; font-weight:900;
}
.unsaved-changes-copy h3 { margin:1px 0 6px; font-size:15px; }
.unsaved-changes-copy p { margin:0; color:var(--text-secondary); font-size:12px; line-height:1.5; }
.unsaved-changes-actions {
  grid-column:1/-1; display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; margin-top:8px;
}
.unsaved-changes-actions button { min-height:36px; padding:0 13px; border-radius:8px; cursor:pointer; font:inherit; font-size:11px; font-weight:750; }
#unsavedSaveBtn { border:1px solid var(--accent-primary); background:var(--accent-primary); color:#fff; }
#unsavedDiscardBtn { border:1px solid rgba(239,68,68,.35); background:rgba(239,68,68,.09); color:#FCA5A5; }
#unsavedCancelBtn { border:1px solid var(--border-subtle); background:var(--bg-surface); color:var(--text-secondary); }
.unsaved-changes-actions button:hover { filter:brightness(1.12); }

.detail-task-step input { accent-color:#22C55E; }
.task-card-step.is-done .task-card-step-check {
  border-color:#22C55E; background:rgba(34,197,94,.16); color:#4ADE80;
}


/* WORKSTATION 1.2.7 — ORGANIZAÇÃO VERTICAL DO BOARD */
.task-reorder-up {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 19px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}
.task-reorder-up:hover:not(:disabled) {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}
.task-reorder-up:disabled {
  opacity: .28;
  cursor: not-allowed;
}
.task-card.drop-before {
  box-shadow: inset 0 3px 0 var(--accent-primary), var(--shadow-card);
}
.task-card.drop-after {
  box-shadow: inset 0 -3px 0 var(--accent-primary), var(--shadow-card);
}
.task-card.dragging {
  opacity: .48;
  transform: scale(.985);
}
.kanban-cards-list {
  scroll-behavior: smooth;
}
.task-card-header .task-badge-row {
  flex: 1 1 auto;
  min-width: 0;
}
.task-card-header .task-reorder-up {
  flex: 0 0 28px;
}


/* ==========================================================================
   WORKSTATION 1.2.9 — MODAL DE TRABALHO E FINANCEIRO RESPONSIVOS
   ========================================================================== */
#taskDetailModal {
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#taskDetailModal .task-detail-dialog {
  width: min(1120px, calc(100vw - 40px));
  max-width: 1120px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  min-height: 0;
  margin: auto;
  padding: clamp(18px, 2.2vw, 28px);
  gap: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  scrollbar-gutter: stable;
}

#taskDetailModal .detail-form {
  width: 100%;
  min-width: 0;
  gap: 18px;
}

#taskDetailModal .detail-form > *,
#taskDetailModal .detail-form .form-group,
#taskDetailModal .task-extra-section {
  min-width: 0;
}

#taskDetailModal .task-extra-section {
  padding: clamp(13px, 1.8vw, 20px);
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  background: color-mix(in srgb, var(--bg-surface) 88%, transparent);
}

#taskDetailModal .finance-revenue-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr);
  align-items: end;
  gap: 14px;
}

#taskDetailModal .finance-split-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.currency-input-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.currency-input-wrap:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-primary) 14%, transparent);
}

.currency-prefix {
  flex: 0 0 auto;
  padding: 0 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  border-right: 1px solid var(--border-subtle);
  line-height: 1.5;
}

.currency-input-wrap .form-input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.currency-input-wrap .form-input:focus {
  border: 0;
  box-shadow: none;
}

.currency-input-large {
  min-height: 44px;
}

.currency-input-large .form-input {
  min-height: 42px;
  font-size: 15px;
  font-weight: 700;
}

#taskDetailModal .cost-editor-header {
  align-items: flex-end;
  margin: 16px 0 10px;
  gap: 14px;
}

#taskDetailModal .cost-editor-header > div {
  min-width: 0;
  gap: 5px;
}

#taskDetailModal .cost-editor-hint {
  max-width: 720px;
  font-size: 10px;
  line-height: 1.5;
}

#taskDetailModal .cost-items-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

#taskDetailModal .cost-item-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  background: var(--bg-card);
}

.cost-item-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 11px;
}

.cost-item-heading strong {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .02em;
}

#taskDetailModal .cost-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: auto;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid color-mix(in srgb, var(--accent-urgent) 25%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--accent-urgent) 10%, transparent);
  color: var(--accent-urgent);
  font-size: 10px;
  font-weight: 650;
}

#taskDetailModal .cost-remove:hover {
  background: color-mix(in srgb, var(--accent-urgent) 18%, transparent);
}

.cost-item-fields {
  display: grid;
  grid-template-columns:
    minmax(175px, 2fr)
    minmax(70px, .62fr)
    minmax(70px, .62fr)
    minmax(112px, 1.05fr)
    minmax(132px, 1.15fr)
    minmax(135px, 1.2fr)
    minmax(135px, 1.2fr);
  gap: 9px;
  align-items: end;
  min-width: 0;
}

.cost-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.cost-field > label {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.cost-field .form-input {
  width: 100%;
  min-width: 0;
  min-height: 39px;
  padding: 8px 9px;
  font-size: 11px;
}

.cost-field .currency-input-wrap {
  min-height: 39px;
}

.cost-field .currency-input-wrap .form-input {
  min-height: 37px;
  padding: 7px 8px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.cost-field .currency-prefix {
  padding: 0 8px;
  font-size: 10px;
}

.cost-field > small {
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.3;
}

.cost-quantity {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cost-unit {
  text-align: center;
}

.cost-type-field .cost-type-toggle {
  min-height: 39px;
  padding: 3px;
  gap: 3px;
}

.cost-type-field .cost-type-btn {
  min-height: 30px;
  padding: 5px 6px;
  font-size: 10px;
}

.cost-unclassified {
  color: #E9B45D;
  font-size: 9px;
  line-height: 1.3;
}

.cost-row-help {
  margin: 0;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.4;
}

#taskDetailModal .cost-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  padding: 11px 0 0;
  font-size: 10px;
}

#taskDetailModal .cost-summary > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  background: var(--bg-surface);
  color: var(--text-muted);
}

#taskDetailModal .cost-summary strong {
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

#taskDetailModal .cost-summary .cost-summary-result {
  margin-left: auto;
  border-color: color-mix(in srgb, var(--accent-primary) 35%, var(--border-subtle));
  color: var(--text-main);
  font-weight: 700;
}

#taskDetailModal .cost-empty {
  padding: 13px;
  border: 1px dashed var(--border-subtle);
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 11px;
}

@media (max-width: 1050px) {
  .cost-item-fields {
    grid-template-columns:
      minmax(150px, 1.6fr)
      minmax(65px, .65fr)
      minmax(65px, .65fr)
      minmax(110px, 1fr)
      minmax(125px, 1.1fr);
  }

  .cost-money-field {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  #taskDetailModal {
    align-items: flex-start;
    padding: 10px;
  }

  #taskDetailModal .task-detail-dialog {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 20px);
    padding: 15px;
    gap: 14px;
  }

  #taskDetailModal .finance-revenue-row,
  #taskDetailModal .finance-split-row {
    grid-template-columns: minmax(0, 1fr);
  }

  #taskDetailModal .detail-form .form-row {
    flex-direction: column;
    align-items: stretch;
  }

  #taskDetailModal .detail-form .form-row > * {
    width: 100%;
    max-width: none;
  }

  #taskDetailModal .cost-editor-header {
    align-items: flex-start;
    flex-direction: column;
  }

  #taskDetailModal .cost-editor-header .btn {
    width: 100%;
    min-height: 38px;
  }

  .cost-item-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .cost-description-wrap,
  .cost-type-field {
    grid-column: 1 / -1;
  }

  .cost-money-field {
    grid-column: span 1;
  }

  #taskDetailModal .cost-summary .cost-summary-result {
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  #taskDetailModal {
    padding: 6px;
  }

  #taskDetailModal .task-detail-dialog {
    max-height: calc(100dvh - 12px);
    padding: 12px;
    border-radius: 11px;
  }

  .cost-item-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .cost-description-wrap,
  .cost-type-field,
  .cost-money-field {
    grid-column: 1;
  }

  .cost-item-heading {
    font-size: 10px;
  }

  #taskDetailModal .cost-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  #taskDetailModal .cost-summary > span {
    justify-content: space-between;
  }

  #taskDetailModal .modal-title-wrap {
    flex-wrap: wrap;
  }
}

/* ========================================================================== 
   WORKSTATION 1.3.0 ALPHA 3 — PROJETOS SEM TIRAR O FOCO DA ESTEIRA
   ========================================================================== */
.projects-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}
.projects-header h2{margin:2px 0 4px;font-size:25px;color:var(--text-main)}
.projects-header .eyebrow{margin:0;color:var(--accent-primary);font-size:10px;font-weight:800;letter-spacing:.12em}
.projects-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
.projects-toolbar .filter-search{width:min(360px,100%);height:36px}
.projects-toolbar .filter-select{min-width:170px;height:36px}
.projects-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.project-card{--project-color:#2E7DFF;position:relative;overflow:hidden;display:flex;flex-direction:column;gap:12px;min-height:240px;padding:17px 18px;background:linear-gradient(155deg,color-mix(in srgb,var(--project-color) 10%,var(--bg-surface)) 0%,var(--bg-surface) 48%);border:1px solid color-mix(in srgb,var(--project-color) 34%,var(--border-subtle));border-radius:var(--radius-md);box-shadow:0 7px 18px rgba(0,0,0,.12);cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.project-card:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--project-color)}
.project-card:hover{transform:translateY(-2px);border-color:var(--project-color);box-shadow:0 12px 26px rgba(0,0,0,.2)}
.project-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.project-status-pill{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:999px;font-size:9px;font-weight:800;letter-spacing:.02em;background:rgba(22,193,114,.14);color:#6EE7A8;border:1px solid rgba(22,193,114,.24)}
.project-status-pill.is-paused{background:rgba(255,176,32,.13);color:#FFD27A;border-color:rgba(255,176,32,.25)}
.project-status-pill.is-completed{background:rgba(109,124,150,.16);color:#B6C2D4;border-color:rgba(109,124,150,.25)}
.project-client-name{max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-muted);font-size:10px;font-weight:650}
.project-card h3{margin:0;color:var(--text-main);font-size:17px;line-height:1.25}
.project-card-description{min-height:32px;margin:0;color:var(--text-muted);font-size:11px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.project-card-progress{display:flex;flex-direction:column;gap:6px;margin-top:auto}
.project-card-progress>div:first-child{display:flex;justify-content:space-between;color:var(--text-muted);font-size:10px}
.project-card-progress strong{color:var(--text-main);font-variant-numeric:tabular-nums}
.project-progress-track{height:6px;overflow:hidden;border-radius:99px;background:rgba(148,163,184,.16)}
.project-progress-track span{display:block;height:100%;border-radius:inherit;background:var(--project-color);box-shadow:0 0 12px color-mix(in srgb,var(--project-color) 42%,transparent);transition:width .2s ease}
.project-card-metrics{display:flex;flex-wrap:wrap;gap:8px 14px;color:var(--text-muted);font-size:10px}
.project-card-metrics strong{color:var(--text-main);font-size:12px;font-variant-numeric:tabular-nums}
.project-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:10px;border-top:1px solid var(--border-subtle);color:var(--text-muted);font-size:9px}
.project-card-footer .quick-action-btn{white-space:nowrap;color:var(--text-main);border-color:color-mix(in srgb,var(--project-color) 35%,var(--border-subtle));background:color-mix(in srgb,var(--project-color) 12%,var(--bg-card))}
.projects-empty{max-width:600px;margin:24px auto}
.project-detail-view{min-width:0}
.project-detail-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.project-detail-actions{display:flex;gap:8px;flex-wrap:wrap}
.project-detail-hero{--project-color:#2E7DFF;position:relative;display:flex;align-items:center;gap:18px;padding:22px;background:linear-gradient(115deg,color-mix(in srgb,var(--project-color) 15%,var(--bg-surface)) 0%,var(--bg-surface) 72%);border:1px solid color-mix(in srgb,var(--project-color) 34%,var(--border-subtle));border-radius:var(--radius-lg);overflow:hidden}
.project-detail-color{width:8px;align-self:stretch;min-height:100px;border-radius:99px;flex:0 0 8px}
.project-detail-copy{min-width:0;flex:1}
.project-detail-eyebrow{display:flex;align-items:center;gap:10px;margin-bottom:8px;color:var(--text-muted);font-size:10px}
.project-detail-copy h2{margin:0 0 6px;color:var(--text-main);font-size:23px;line-height:1.2}
.project-detail-copy p{max-width:760px;margin:0 0 8px;color:var(--text-secondary);font-size:12px;line-height:1.55}
.project-detail-copy small{color:var(--text-muted);font-size:10px}
.project-detail-progress{width:120px;flex:0 0 120px;display:flex;flex-direction:column;gap:4px;text-align:right;color:var(--text-muted);font-size:10px}
.project-detail-progress strong{color:var(--text-main);font-size:27px;line-height:1;font-variant-numeric:tabular-nums}
.project-detail-progress .project-progress-track{width:100%;margin-top:5px}
.project-detail-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:14px 0 20px}
.project-summary-metric{display:flex;flex-direction:column;gap:5px;padding:13px 15px;background:var(--bg-surface);border:1px solid var(--border-subtle);border-radius:var(--radius-md)}
.project-summary-metric span{color:var(--text-muted);font-size:10px;font-weight:650}
.project-summary-metric strong{color:var(--text-main);font-size:21px;font-variant-numeric:tabular-nums}
.project-summary-metric.is-alert strong{color:#FF858F}
.project-work-section{padding:16px;background:var(--bg-surface);border:1px solid var(--border-subtle);border-radius:var(--radius-md)}
.project-work-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.project-work-heading h3{margin:0;color:var(--text-main);font-size:15px}
.project-work-heading .subtitle{margin:4px 0 0;font-size:10px}
.project-work-count{color:var(--text-muted);font-size:10px;white-space:nowrap}
.project-tasks-list{display:flex;flex-direction:column;gap:6px}
.project-task-row{width:100%;display:flex;align-items:center;gap:10px;padding:10px 11px;text-align:left;background:var(--bg-card);border:1px solid var(--border-subtle);border-radius:8px;color:var(--text-main);cursor:pointer;transition:border-color .15s ease,background .15s ease}
.project-task-row:hover{border-color:var(--border-focus);background:color-mix(in srgb,var(--accent-primary) 7%,var(--bg-card))}
.project-task-row.is-completed{opacity:.72}
.project-task-status-dot{width:19px;height:19px;flex:0 0 19px;display:flex;align-items:center;justify-content:center;border:1px solid color-mix(in srgb,var(--project-color) 70%,var(--border-subtle));border-radius:50%;color:#fff;font-size:10px}
.project-task-status-dot.is-done{background:#16A36A;border-color:#16A36A}
.project-task-main{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
.project-task-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.project-task-main small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-muted);font-size:9px}
.project-task-stage{max-width:155px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-secondary);font-size:10px}
.project-task-row .task-deadline-indicator{flex:0 0 auto}
.project-task-arrow{color:var(--text-muted);font-size:18px}
.project-tasks-empty{display:flex;align-items:flex-start;flex-direction:column;gap:7px;padding:22px;border:1px dashed var(--border-subtle);border-radius:8px;color:var(--text-muted);font-size:11px}
.project-tasks-empty strong{color:var(--text-main);font-size:13px}
.project-modal-dialog{width:min(680px,calc(100vw - 32px));max-height:88vh;overflow-y:auto;display:flex;flex-direction:column;gap:18px;padding:24px;background:#171b26;border:1px solid #2e364a;border-radius:var(--radius-lg);box-shadow:var(--shadow-modal)}
.project-modal-dialog .modal-header h3{margin:2px 0 0;color:var(--text-main);font-size:20px}
.project-modal-dialog .eyebrow{margin:0;color:var(--accent-primary);font-size:9px;font-weight:800;letter-spacing:.12em}
.project-color-date-row{align-items:flex-end}
.project-color-field{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:36px;flex:0 0 150px;padding:6px 9px;border:1px solid var(--border-subtle);border-radius:var(--radius-sm);color:var(--text-secondary);font-size:11px;font-weight:650}
.project-color-field input{width:34px;height:25px;padding:0;border:0;background:transparent;cursor:pointer}
.project-modal-note{margin:0;padding:10px 12px;border-left:3px solid var(--accent-primary);border-radius:4px;background:rgba(255,255,255,.035);color:var(--text-muted);font-size:10px;line-height:1.5}
.task-project-badge{display:inline-flex;align-items:center;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 7px;border:1px solid color-mix(in srgb,var(--project-color) 42%,transparent);border-radius:5px;background:color-mix(in srgb,var(--project-color) 13%,transparent);color:color-mix(in srgb,var(--project-color) 35%,white);font-size:9px;font-weight:750;cursor:pointer}
.task-project-badge:hover{background:color-mix(in srgb,var(--project-color) 22%,transparent);border-color:var(--project-color)}
.qc-project-row{display:grid;grid-template-columns:180px minmax(180px,300px) 1fr;align-items:center;gap:10px;padding:8px 0 2px;color:var(--text-secondary);font-size:10px}
.qc-project-row label{font-weight:700}
.qc-project-row .form-input{padding:7px 9px;font-size:10px}
.qc-project-row span{color:var(--text-muted);font-size:9px}
.qc-live-tag-project{background:rgba(46,125,255,.16);color:#9DC2FF}
@media(max-width:900px){.project-detail-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.project-detail-hero{align-items:flex-start}.project-task-stage{max-width:115px}.qc-project-row{grid-template-columns:1fr 1fr}.qc-project-row span{grid-column:1/-1}}
@media(max-width:700px){.projects-header{align-items:flex-start;flex-direction:column}.projects-header>.btn{width:100%}.projects-toolbar{align-items:stretch;flex-direction:column}.projects-toolbar .filter-search,.projects-toolbar .filter-select{width:100%}.project-detail-toolbar{align-items:flex-start;flex-direction:column}.project-detail-actions{width:100%}.project-detail-actions .btn{flex:1}.project-detail-hero{padding:16px;gap:12px}.project-detail-copy h2{font-size:19px}.project-detail-progress{width:75px;flex-basis:75px}.project-detail-progress strong{font-size:22px}.project-detail-summary{gap:7px}.project-summary-metric{padding:10px}.project-summary-metric strong{font-size:18px}.project-work-section{padding:10px}.project-work-heading{align-items:flex-start;flex-direction:column}.project-task-row{flex-wrap:wrap;gap:7px}.project-task-main{flex-basis:calc(100% - 30px)}.project-task-stage{margin-left:26px;max-width:none}.project-task-row .task-deadline-indicator{margin-left:auto}.project-modal-dialog{padding:17px}.project-modal-dialog .form-row{flex-direction:column}.project-color-field{width:100%;flex-basis:auto}.task-client-project-row{flex-direction:column}.qc-project-row{grid-template-columns:1fr}.qc-project-row span{grid-column:1}}


/* ========================================================================== 
   WORKSTATION 1.3.0 ALPHA 4 — MEU DIA, FOCO E VALOR AGREGADO
   ========================================================================== */
.daily-focus-panel{margin:0 0 22px;padding:18px;background:linear-gradient(145deg,rgba(46,125,255,.09),rgba(22,193,114,.035) 55%,var(--bg-surface));border:1px solid color-mix(in srgb,var(--accent-primary) 28%,var(--border-subtle));border-radius:var(--radius-lg);box-shadow:0 10px 26px rgba(0,0,0,.12)}
.daily-focus-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.daily-focus-heading .eyebrow{margin:0 0 4px;color:var(--accent-primary);font-size:9px;font-weight:850;letter-spacing:.13em}
.daily-focus-heading h2{margin:0;color:var(--text-main);font-size:22px;letter-spacing:-.025em}
.daily-focus-heading p:last-child{margin:5px 0 0;color:var(--text-muted);font-size:11px;line-height:1.45}
.daily-focus-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:14px}
.daily-focus-stat{min-height:62px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;padding:9px 11px;background:rgba(255,255,255,.035);border:1px solid var(--border-subtle);border-radius:9px;color:var(--text-muted);text-align:left}
button.daily-focus-stat{cursor:pointer;transition:border-color .15s ease,background .15s ease}
button.daily-focus-stat:hover{border-color:var(--border-focus);background:rgba(255,255,255,.07)}
.daily-focus-stat strong{color:var(--text-main);font-size:21px;line-height:1;font-variant-numeric:tabular-nums}
.daily-focus-stat span{font-size:9px;font-weight:650}
.daily-focus-stat.is-main{background:color-mix(in srgb,var(--accent-primary) 13%,var(--bg-card));border-color:color-mix(in srgb,var(--accent-primary) 34%,var(--border-subtle))}
.daily-focus-stat.is-main strong{color:var(--accent-primary)}
.daily-focus-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.85fr);gap:12px;align-items:start}
.daily-focus-sequence-panel,.daily-focus-value-panel{min-width:0;padding:13px;background:rgba(8,13,23,.24);border:1px solid var(--border-subtle);border-radius:10px}
.daily-focus-value-panel{display:flex;flex-direction:column;gap:13px}
.daily-focus-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:9px}
.daily-focus-section-heading h3{margin:0;color:var(--text-main);font-size:13px}
.daily-focus-section-heading p{margin:3px 0 0;color:var(--text-muted);font-size:9px;line-height:1.4}
.daily-focus-section-tag{flex:0 0 auto;padding:4px 7px;border-radius:5px;background:rgba(22,193,114,.13);color:#73E2AA;font-size:8px;font-weight:850;letter-spacing:.08em}
.daily-focus-sequence{display:flex;flex-direction:column;gap:6px}
.daily-focus-task{width:100%;display:grid;grid-template-columns:32px minmax(0,1fr) auto 12px;align-items:center;gap:9px;padding:10px;background:var(--bg-card);border:1px solid var(--border-subtle);border-radius:8px;color:var(--text-main);text-align:left;cursor:pointer;transition:border-color .15s ease,background .15s ease,transform .15s ease}
.daily-focus-task:hover{border-color:var(--border-focus);background:color-mix(in srgb,var(--accent-primary) 7%,var(--bg-card));transform:translateX(2px)}
.daily-focus-task.is-first{border-color:rgba(22,193,114,.4);background:linear-gradient(100deg,rgba(22,193,114,.09),var(--bg-card) 46%)}
.daily-focus-order{width:29px;height:29px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:rgba(148,163,184,.12);color:var(--text-secondary);font-size:11px;font-weight:850;font-variant-numeric:tabular-nums}
.daily-focus-task.is-first .daily-focus-order{background:#16A36A;color:#fff}
.daily-focus-task-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.daily-focus-task-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.daily-focus-task-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-muted);font-size:9px}
.daily-focus-reason{color:var(--text-secondary);font-size:9px;line-height:1.35}
.daily-focus-task-meta{display:flex;align-items:flex-end;flex-direction:column;gap:4px;white-space:nowrap}
.daily-focus-task-meta small{color:#79D9A7;font-size:9px;font-weight:750}
.daily-focus-task-meta small.is-loss{color:#FF8D96}
.daily-focus-open{color:var(--text-muted);font-size:18px}
.daily-focus-value-list{display:flex;flex-direction:column;gap:5px}
.daily-focus-value-row{width:100%;display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:7px;padding:7px 8px;background:var(--bg-card);border:1px solid var(--border-subtle);border-radius:7px;color:var(--text-main);text-align:left;cursor:pointer}
.daily-focus-value-row:hover{border-color:var(--border-focus)}
.daily-focus-value-rank{color:var(--text-muted);font-size:9px;font-weight:850}
.daily-focus-value-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
.daily-focus-value-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}
.daily-focus-value-copy small{color:var(--text-muted);font-size:8px}
.daily-focus-value-row>b{color:#79D9A7;font-size:9px;white-space:nowrap}
.daily-focus-value-row.is-low>b{color:#FF8D96}
.daily-value-icon{width:22px;height:22px;display:flex;align-items:center;justify-content:center;border-radius:6px;font-size:13px;font-weight:900}
.daily-value-icon.is-high{background:rgba(22,193,114,.14);color:#79D9A7}
.daily-value-icon.is-low{background:rgba(255,77,94,.13);color:#FF8D96}
.daily-focus-value-empty,.daily-focus-empty{padding:14px;border:1px dashed var(--border-subtle);border-radius:8px;color:var(--text-muted);font-size:10px;line-height:1.5}
.daily-focus-empty{display:flex;align-items:flex-start;flex-direction:column;gap:6px}
.daily-focus-empty strong{color:var(--text-main);font-size:11px}
.daily-focus-finance-note{margin:0;color:var(--text-muted);font-size:8px;line-height:1.5}
.daily-focus-waiting-panel{margin-top:12px;padding:12px;background:rgba(255,176,32,.045);border:1px solid rgba(255,176,32,.18);border-radius:9px}
.daily-focus-waiting-list{display:flex;flex-direction:column;gap:5px}
.daily-focus-waiting-row{display:flex;align-items:center;gap:9px;width:100%;padding:8px 10px;background:var(--bg-card);border:1px solid var(--border-subtle);border-radius:7px;color:var(--text-main);text-align:left;cursor:pointer}
.daily-focus-waiting-row>span:first-child{color:#FFB020}.daily-focus-waiting-row strong{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.daily-focus-waiting-row small{color:var(--text-muted);font-size:9px}.daily-focus-waiting-row>span:last-child{color:#FFCA66;font-size:9px;white-space:nowrap}
.daily-focus-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:11px;color:var(--text-muted);font-size:9px}
.project-task-filters{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 11px;padding:3px 0}
.project-task-filter{display:inline-flex;align-items:center;gap:7px;padding:6px 9px;background:var(--bg-card);border:1px solid var(--border-subtle);border-radius:7px;color:var(--text-secondary);font-size:9px;font-weight:700;cursor:pointer}
.project-task-filter strong{color:var(--text-muted);font-size:9px}
.project-task-filter:hover,.project-task-filter.is-active{border-color:var(--accent-primary);background:color-mix(in srgb,var(--accent-primary) 12%,var(--bg-card));color:var(--text-main)}
.project-task-filter.is-active strong{color:var(--accent-primary)}
.project-detail-actions .btn-danger{border:1px solid rgba(255,77,94,.28);background:rgba(255,77,94,.1);color:#FF8D96}
.project-detail-actions .btn-danger:hover{background:rgba(255,77,94,.2);border-color:rgba(255,77,94,.55)}
@media(max-width:1050px){.daily-focus-grid{grid-template-columns:1fr}.daily-focus-value-panel{display:grid;grid-template-columns:1fr 1fr}.daily-focus-finance-note{grid-column:1/-1}}
@media(max-width:700px){.daily-focus-panel{padding:12px}.daily-focus-heading{align-items:flex-start;flex-direction:column}.daily-focus-heading>.btn{width:100%}.daily-focus-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.daily-focus-grid{grid-template-columns:1fr}.daily-focus-value-panel{display:flex}.daily-focus-task{grid-template-columns:28px minmax(0,1fr) auto;gap:7px;padding:8px}.daily-focus-order{width:26px;height:26px}.daily-focus-task-meta{grid-column:2/3;align-items:flex-start;flex-direction:row;flex-wrap:wrap}.daily-focus-open{display:none}.daily-focus-footer{align-items:flex-start;flex-direction:column}.daily-focus-waiting-row{flex-wrap:wrap}.daily-focus-waiting-row strong{flex-basis:calc(100% - 30px)}.daily-focus-waiting-row>span:last-child{margin-left:25px}}


/* Workstation 1.3.0 Alpha 5 — fluxo de produção por trabalho */
.task-workflow-editor {
  margin: 16px 0;
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--accent-primary) 26%, var(--border-subtle));
  border-radius: 12px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent-primary) 7%, var(--bg-surface)), var(--bg-card));
}
.workflow-template-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
}
.workflow-template-row .form-group { margin: 0; }
.workflow-template-row > button { min-height: 40px; }
.workflow-editor-summary { margin: 9px 0 10px; color: var(--text-muted); font-size: 11px; }
.detail-task-workflow-list { display: flex; flex-direction: column; gap: 7px; }
.workflow-steps-empty { margin: 0; padding: 13px; border: 1px dashed var(--border-subtle); border-radius: 9px; color: var(--text-muted); font-size: 12px; }
.workflow-step-row {
  display: grid;
  grid-template-columns: 27px minmax(130px, 1fr) minmax(115px, 150px) auto;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  background: color-mix(in srgb, var(--bg-surface) 78%, transparent);
}
.workflow-step-number { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; background: var(--bg-surface-alt); color: var(--text-muted); font-size: 11px; font-weight: 800; }
.workflow-step-title, .workflow-step-status { min-width: 0; min-height: 35px; padding: 7px 9px; font-size: 12px; }
.workflow-step-actions { display: flex; gap: 3px; }
.workflow-step-move, .workflow-step-remove { width: 27px; height: 27px; border: 1px solid var(--border-subtle); border-radius: 7px; background: var(--bg-surface); color: var(--text-secondary); cursor: pointer; }
.workflow-step-move:disabled { opacity: .3; cursor: not-allowed; }
.workflow-step-remove { color: #F87171; }
.workflow-step-row.status-in_progress { border-color: color-mix(in srgb, #2E7DFF 55%, var(--border-subtle)); background: color-mix(in srgb, #2E7DFF 7%, var(--bg-surface)); }
.workflow-step-row.status-completed .workflow-step-number { color: #fff; background: #16A34A; }
.workflow-step-row.status-completed .workflow-step-title { color: var(--text-muted); text-decoration: line-through; }
.workflow-step-add-row { margin-top: 9px; }
.task-card-workflow { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; padding: 8px 9px; border: 1px solid color-mix(in srgb, var(--accent-primary) 22%, var(--border-subtle)); border-radius: 8px; background: color-mix(in srgb, var(--accent-primary) 5%, var(--bg-surface)); }
.task-card-workflow-heading { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.task-card-workflow-heading strong { color: var(--accent-primary); font-variant-numeric: tabular-nums; }
.task-card-workflow-track { height: 4px; overflow: hidden; border-radius: 99px; background: var(--bg-surface-alt); }
.task-card-workflow-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-primary), #16C172); transition: width .2s ease; }
.task-card-workflow-next { color: var(--text-secondary); font-size: 10px; line-height: 1.35; }
@media (max-width: 700px) {
  .workflow-template-row { grid-template-columns: 1fr; }
  .workflow-template-row > button { width: 100%; }
  .workflow-step-row { grid-template-columns: 25px minmax(0, 1fr) auto; }
  .workflow-step-status { grid-column: 2 / 3; }
  .workflow-step-actions { grid-column: 3 / 4; grid-row: 1 / 3; flex-direction: column; }
}


/* Workstation 1.3.0 Alpha 6 — gestão de fases */
.workflow-step-row { display:flex; flex-direction:column; align-items:stretch; gap:8px; padding:9px; }
.workflow-step-main { display:grid; grid-template-columns:27px minmax(120px,1fr) minmax(115px,150px) auto; align-items:center; gap:8px; }
.workflow-step-meta { display:grid; grid-template-columns:minmax(130px,1fr) minmax(130px,180px) auto; align-items:end; gap:9px; padding-left:35px; }
.workflow-step-field { display:flex; flex-direction:column; gap:4px; color:var(--text-muted); font-size:10px; }
.workflow-step-field .form-input { min-height:34px; padding:6px 8px; font-size:11px; }
.workflow-step-block-toggle { display:flex; align-items:center; gap:7px; min-height:34px; padding:0 9px; border:1px solid rgba(248,113,113,.25); border-radius:8px; color:#FCA5A5; font-size:11px; white-space:nowrap; }
.workflow-step-block-toggle input { accent-color:#EF4444; }
.workflow-step-row.is-blocked { border-color:rgba(239,68,68,.42); background:rgba(127,29,29,.10); }
.workflow-step-block-reason { display:flex; flex-direction:column; gap:4px; padding-left:35px; color:#FCA5A5; font-size:10px; }
.workflow-step-block-reason .form-input { min-height:34px; border-color:rgba(239,68,68,.35); }
.workflow-history-details { margin-top:10px; border-top:1px solid var(--border-subtle); padding-top:9px; }
.workflow-history-details summary { cursor:pointer; color:var(--text-secondary); font-size:11px; font-weight:700; }
.workflow-history-list { display:flex; flex-direction:column; gap:8px; padding:10px 2px 2px; }
.workflow-history-empty { margin:0; color:var(--text-muted); font-size:11px; }
.workflow-history-row { display:flex; align-items:flex-start; gap:8px; }
.workflow-history-dot { width:7px; height:7px; margin-top:4px; border-radius:50%; background:var(--accent-primary); flex:0 0 7px; }
.workflow-history-row div { display:flex; flex-direction:column; gap:2px; }
.workflow-history-row strong { color:var(--text-secondary); font-size:10px; }
.workflow-history-row small { color:var(--text-muted); font-size:9px; }
.task-card-workflow.has-blocker { border-color:rgba(239,68,68,.45); background:rgba(127,29,29,.10); }
.task-card-workflow.has-overdue { border-color:rgba(245,158,11,.42); background:rgba(120,53,15,.10); }
.task-card-workflow-alert { font-size:10px; line-height:1.35; font-weight:700; }
.task-card-workflow-alert.is-blocked { color:#FCA5A5; }
.task-card-workflow-alert.is-overdue { color:#FCD34D; }
.daily-focus-summary .daily-focus-stat.is-alert strong { color:#F87171; }
.daily-focus-blocked-panel { margin-top:12px; padding:12px; border:1px solid rgba(239,68,68,.24); border-radius:9px; background:rgba(127,29,29,.07); }
.daily-focus-blocked-list { display:flex; flex-direction:column; gap:5px; }
.daily-focus-blocked-row { display:grid; grid-template-columns:25px minmax(0,1fr) auto; align-items:center; gap:8px; width:100%; padding:9px 10px; border:1px solid rgba(239,68,68,.2); border-radius:8px; background:var(--bg-card); color:var(--text-main); text-align:left; cursor:pointer; }
.daily-focus-blocked-row>span:first-child { display:grid; place-items:center; width:21px; height:21px; border-radius:50%; background:rgba(239,68,68,.18); color:#FCA5A5; font-weight:900; }
.daily-focus-blocked-row strong { font-size:11px; }
.daily-focus-blocked-row small { grid-column:2/3; color:var(--text-muted); font-size:9px; }
.daily-focus-blocked-row>span:last-child { grid-column:3/4; grid-row:1/3; color:#FCA5A5; font-size:9px; white-space:nowrap; }
@media(max-width:700px) {
  .workflow-step-main { grid-template-columns:25px minmax(0,1fr) auto; }
  .workflow-step-status { grid-column:2/3; }
  .workflow-step-actions { grid-column:3/4; grid-row:1/3; flex-direction:column; }
  .workflow-step-meta { grid-template-columns:1fr 1fr; padding-left:33px; }
  .workflow-step-block-toggle { grid-column:1/-1; }
  .workflow-step-block-reason { padding-left:33px; }
  .daily-focus-blocked-row { grid-template-columns:25px minmax(0,1fr); }
  .daily-focus-blocked-row small { grid-column:2/3; }
  .daily-focus-blocked-row>span:last-child { grid-column:2/3; grid-row:auto; }
}


/* Workstation 1.3.0 Alpha 7 — modelos de produção e automações */
.workflow-templates-manager-list { display:flex; flex-direction:column; gap:8px; margin:10px 0; }
.workflow-template-manager-card { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:11px 12px; border:1px solid var(--border-subtle); border-radius:10px; background:var(--bg-card); }
.workflow-template-manager-copy { min-width:0; display:flex; flex-direction:column; gap:3px; }
.workflow-template-manager-copy strong { color:var(--text-main); font-size:12px; }
.workflow-template-manager-copy small { color:var(--accent-primary); font-size:10px; }
.workflow-template-manager-copy p { margin:0; color:var(--text-muted); font-size:10px; }
.workflow-template-manager-actions { display:flex; align-items:center; gap:5px; flex-wrap:wrap; justify-content:flex-end; }
.workflow-template-manager-actions .is-danger { color:#F87171; }
.workflow-templates-empty { margin:0; color:var(--text-muted); font-size:11px; }
.workflow-template-editor { margin-top:12px; padding:13px; border:1px solid color-mix(in srgb,var(--accent-primary) 35%,var(--border-subtle)); border-radius:11px; background:color-mix(in srgb,var(--accent-primary) 5%,var(--bg-surface)); }
.workflow-template-editor-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.workflow-template-editor-heading strong { font-size:13px; }
.workflow-template-default-row { margin:8px 0; }
.workflow-template-steps-heading { display:flex; flex-direction:column; gap:3px; margin:13px 0 8px; }
.workflow-template-steps-heading strong { font-size:11px; }
.workflow-template-steps-heading small { color:var(--text-muted); font-size:10px; }
.workflow-template-steps-list { display:flex; flex-direction:column; gap:7px; }
.workflow-template-step-draft { display:grid; grid-template-columns:26px minmax(130px,1fr) minmax(130px,180px) minmax(120px,150px) auto; gap:7px; align-items:center; padding:8px; border:1px solid var(--border-subtle); border-radius:8px; background:var(--bg-card); }
.workflow-template-step-draft .form-input { min-height:34px; padding:6px 8px; font-size:11px; min-width:0; }
.template-step-days { display:flex; flex-direction:column; gap:3px; color:var(--text-muted); font-size:9px; }
.workflow-template-add-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; margin-top:9px; }
.workflow-stalled-threshold { max-width:260px; margin-top:10px; }
.workflow-next-suggestion { display:flex; justify-content:space-between; align-items:center; gap:10px; margin:9px 0; padding:9px 10px; border:1px solid rgba(22,193,114,.25); border-radius:8px; background:rgba(22,193,114,.07); color:#86E0B5; font-size:11px; }
.workflow-next-suggestion .btn { flex:0 0 auto; }
.task-card-workflow.has-stalled { border-color:rgba(192,92,255,.38); background:rgba(88,28,135,.09); }
.task-card-workflow.has-due-soon { border-color:rgba(255,176,32,.38); background:rgba(120,53,15,.08); }
.task-card-workflow-alert.is-stalled { color:#D8B4FE; }
.task-card-workflow-alert.is-due-soon { color:#FCD34D; }
@media(max-width:850px) {
  .workflow-template-step-draft { grid-template-columns:26px minmax(0,1fr) minmax(120px,150px) auto; }
  .template-step-days { grid-column:2/4; }
}
@media(max-width:600px) {
  .workflow-template-manager-card { align-items:flex-start; flex-direction:column; }
  .workflow-template-manager-actions { justify-content:flex-start; }
  .workflow-template-step-draft { grid-template-columns:25px minmax(0,1fr) auto; }
  .workflow-template-step-draft select { grid-column:2/3; }
  .template-step-days { grid-column:2/3; }
  .workflow-template-step-draft .workflow-step-actions { grid-column:3/4; grid-row:1/4; flex-direction:column; }
  .workflow-template-add-row { grid-template-columns:1fr; }
  .workflow-template-add-row button { width:100%; }
  .workflow-next-suggestion { align-items:flex-start; flex-direction:column; }
  .workflow-next-suggestion .btn { width:100%; }
}

/* Workstation 1.3.0 Alpha 8 — versões de arquivo e aprovação manual */
.task-file-versions-section { margin-top: 18px; }
.file-version-summary,
.approval-status-summary {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 10px 12px; border: 1px solid var(--border-color, rgba(255,255,255,.1));
  border-radius: 10px; background: rgba(255,255,255,.035); color: var(--text-secondary, #aab3c0);
  font-size: .84rem;
}
.file-version-list { display: grid; gap: 9px; margin: 10px 0 14px; }
.file-version-card {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center;
  padding: 12px; border: 1px solid var(--border-color, rgba(255,255,255,.1));
  border-radius: 10px; background: rgba(255,255,255,.025); min-width: 0;
}
.file-version-card.is-current { border-color: rgba(46,190,128,.48); background: rgba(46,190,128,.065); }
.file-version-copy { min-width: 0; display: grid; gap: 4px; }
.file-version-title { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--text-primary, #f1f3f6); }
.file-version-number { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; padding: 3px 7px; border-radius: 6px; background: rgba(255,255,255,.09); color: var(--text-primary, #fff); font-size: .75rem; font-weight: 800; }
.file-version-kind, .file-version-meta { color: var(--text-secondary, #aab3c0); font-size: .76rem; }
.file-version-notes { color: var(--text-secondary, #c0c7d1); font-size: .82rem; overflow-wrap: anywhere; }
.file-version-open { color: var(--accent-color, #E42837); text-decoration: none; white-space: nowrap; font-size: .82rem; font-weight: 700; }
.file-version-open:hover { text-decoration: underline; }
.file-version-current-tag { border-radius: 999px; padding: 3px 7px; background: rgba(46,190,128,.15); color: #53d69a; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.file-version-editor { display: grid; gap: 9px; padding: 13px; border: 1px dashed var(--border-color, rgba(255,255,255,.18)); border-radius: 10px; }
.file-version-submit-row { display: grid; grid-template-columns: minmax(180px, .7fr) auto; gap: 10px; align-items: end; }
.file-version-submit-row .form-group { margin: 0; }
.task-approval-panel { display: grid; gap: 10px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--border-color, rgba(255,255,255,.1)); }
.approval-action-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.approval-status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font-size: .76rem; font-weight: 750; background: rgba(255,255,255,.08); color: var(--text-secondary, #c2c9d3); }
.approval-status-pill.is-sent { background: rgba(67,145,255,.15); color: #82b8ff; }
.approval-status-pill.is-approved { background: rgba(46,190,128,.15); color: #53d69a; }
.approval-status-pill.is-changes { background: rgba(255,166,55,.15); color: #ffc16c; }
.approval-history-details { border-top: 1px solid var(--border-color, rgba(255,255,255,.1)); padding-top: 10px; }
.approval-history-details > summary { cursor: pointer; color: var(--text-secondary, #c2c9d3); font-size: .83rem; font-weight: 700; }
.approval-history-list { display: grid; gap: 8px; margin-top: 10px; }
.approval-history-row { display: grid; grid-template-columns: 9px minmax(0,1fr); gap: 9px; align-items: start; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.055); }
.approval-history-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--accent-color, #E42837); }
.approval-history-copy { display: grid; gap: 3px; min-width: 0; }
.approval-history-copy strong { color: var(--text-primary, #f1f3f6); font-size: .82rem; }
.approval-history-copy small { color: var(--text-secondary, #aab3c0); font-size: .73rem; }
.approval-history-copy p { margin: 2px 0 0; color: var(--text-secondary, #c2c9d3); font-size: .8rem; overflow-wrap: anywhere; }
.file-version-empty, .approval-history-empty { color: var(--text-secondary, #aab3c0); font-size: .82rem; padding: 8px 0; }
#detailApprovalStatus:disabled, #detailRevisionCount[readonly] { opacity: .82; cursor: not-allowed; }
@media (max-width: 700px) {
  .file-version-card { grid-template-columns: minmax(0,1fr); }
  .file-version-open { justify-self: start; }
  .file-version-submit-row { grid-template-columns: 1fr; }
  .file-version-submit-row .btn { width: 100%; }
  .approval-action-buttons { display: grid; grid-template-columns: 1fr; }
  .approval-action-buttons .btn { width: 100%; }
}


/* Alpha 9 — integrações reais e radar operacional */
.integration-settings-actions {
  display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:11px;
}
.integration-connection-pill {
  display:inline-flex; align-items:center; border:1px solid var(--border-subtle);
  border-radius:99px; padding:5px 9px; font-size:9px; font-weight:800;
  color:var(--text-muted); background:var(--bg-elevated); white-space:nowrap;
}
.integration-connection-pill.is-connected {
  color:#35D39A; border-color:rgba(53,211,154,.35); background:rgba(53,211,154,.09);
}
.integration-connection-pill.is-disconnected {
  color:#F0B45A; border-color:rgba(240,180,90,.28); background:rgba(240,180,90,.07);
}
.integration-settings-actions button:disabled { opacity:.42; cursor:not-allowed; }
.integration-settings-card .settings-footnote { margin-top:9px; }
.dashboard-radar-panel { margin:16px 0; }
.operational-radar-metrics {
  display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; margin:12px 0 10px;
}
.operational-radar-metric {
  display:flex; flex-direction:column; gap:4px; min-width:0;
  padding:10px 11px; border-radius:10px; background:var(--bg-card);
  border:1px solid var(--border-subtle);
}
.operational-radar-metric span { color:var(--text-muted); font-size:9px; line-height:1.3; }
.operational-radar-metric strong { color:var(--text-main); font-size:19px; font-weight:850; }
.operational-radar-metric.is-danger strong { color:#FF6875; }
.operational-radar-metric.is-warning strong { color:#F4B84F; }
.operational-radar-metric.is-neutral strong { color:var(--text-secondary); }
.operational-radar-list { display:flex; flex-direction:column; gap:6px; }
.operational-radar-row {
  width:100%; display:grid; grid-template-columns:9px minmax(0,1fr) auto; align-items:center;
  gap:10px; padding:10px 11px; text-align:left; color:var(--text-main);
  border:1px solid var(--border-subtle); border-radius:9px; background:var(--bg-card);
  cursor:pointer; transition:border-color .15s ease, background .15s ease;
}
.operational-radar-row:hover { border-color:var(--accent-primary); background:var(--bg-elevated); }
.operational-radar-dot { width:8px; height:8px; border-radius:50%; background:#7C8A9A; }
.operational-radar-row.severity-danger .operational-radar-dot { background:#FF5968; box-shadow:0 0 0 3px rgba(255,89,104,.12); }
.operational-radar-row.severity-warning .operational-radar-dot { background:#F2B84B; box-shadow:0 0 0 3px rgba(242,184,75,.12); }
.operational-radar-row.severity-info .operational-radar-dot { background:#4E9FFF; box-shadow:0 0 0 3px rgba(78,159,255,.12); }
.operational-radar-copy { min-width:0; display:flex; flex-direction:column; gap:3px; }
.operational-radar-copy strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; font-weight:750; }
.operational-radar-copy small { color:var(--text-muted); font-size:9px; line-height:1.35; }
.operational-radar-action { color:var(--accent-primary); font-size:9px; font-weight:750; white-space:nowrap; }
@media (max-width:760px) {
  .operational-radar-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .operational-radar-row { grid-template-columns:9px minmax(0,1fr); }
  .operational-radar-action { grid-column:2; }
  .integration-settings-actions { align-items:stretch; }
}
