:root {
  --primary: #6ed8c8;
  --primary-strong: #4fc0af;
  --ink: #5e636e;
  --muted: #8f96a3;
  --bg: #f8f9fc;
  --white: #ffffff;
  --border: #e7e9f1;
  --coral: #e8735c;
  --amber: #f2b84b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; margin: 0; }

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 13.5px; }

/* --- Ícones (icon() em icons.js) ---
   O <svg> em si nunca tem width/height — sem isso, um ícone usado fora de .btn/.nav-item/
   .empty-state (as únicas 3 exceções com sua própria regra hoje) ficava sem NENHUM tamanho
   definido e o navegador caía no tamanho padrão de elemento substituído, gigante (foi o que
   aconteceu com o ícone de "tarefa atrasada" no card da Visão Geral). Essa regra cobre todo
   o resto — específica o bastante pra perder pras 3 regras mais específicas de sempre
   (.btn svg etc.) onde elas existirem, sem precisar reescrever nenhuma. */
.icon { display: inline-flex; align-items: center; }
.icon svg { width: 15px; height: 15px; flex-shrink: 0; }

/* --- Layout --- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 232px;
  flex-shrink: 0;
  background: var(--ink);
  color: #e6e8ee;
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
}

.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 22px; }
.sidebar-logo {
  width: 34px; height: 34px; border-radius: 9px; background: var(--primary);
  color: #204840; font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.sidebar-brand-title { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.2; }
.sidebar-brand-sub { font-size: 11px; color: #c3c8d1; }

.sidebar-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 9px; color: #c3c8d1;
  text-decoration: none; font-size: 13.5px; font-weight: 600;
  position: relative; border: none; background: transparent; width: 100%; text-align: left;
}
.nav-item:hover { background: rgba(255,255,255,0.06); }
.nav-item.active { background: rgba(255,255,255,0.1); color: #fff; }
.nav-item.active::before {
  content: ''; position: absolute; left: -14px; top: 6px; bottom: 6px; width: 3px;
  background: var(--primary); border-radius: 2px;
}
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }

.sidebar-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.08); }
.save-status { font-size: 11px; color: #8890a0; margin-bottom: 8px; }
.notif-status { font-size: 10.5px; color: #8890a0; margin-top: 6px; }
.btn-notif {
  width: 100%; background: rgba(255,255,255,0.08); color: #e6e8ee; border: none;
  border-radius: 8px; padding: 8px 10px; font-size: 12.5px; font-weight: 600;
}
.btn-notif.active { background: var(--primary); color: #204840; }
.user-chip { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.user-chip span { font-size: 11.5px; color: #c3c8d1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
.link-logout { background: none; border: none; color: #8890a0; font-size: 11px; text-decoration: underline; padding: 0; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 24px 32px 18px; flex-wrap: wrap; border-bottom: 1px solid var(--border); background: var(--white);
}
.topbar-title { font-size: 21px; }
.topbar-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.topbar-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.view { padding: 24px 32px 40px; }

/* --- Buttons --- */
.btn {
  border-radius: 8px; padding: 9px 15px; font-size: 13.5px; font-weight: 600;
  border: 1px solid transparent; display: inline-flex; align-items: center; gap: 6px;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--primary); color: #204840; }
.btn-primary:hover { background: var(--primary-strong); }
.btn-ghost { background: var(--white); border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-text { background: transparent; border: none; color: var(--muted); }
.btn-danger { background: transparent; border: 1px solid #f3d4cc; color: var(--coral); }
.btn-danger:hover { background: #fdf1ee; }
.btn-icon { padding: 8px; }

/* --- Inputs --- */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 600; }
.field .hint { font-size: 11px; color: var(--muted); }
/* Título de bloco do card que vira atalho para o menu (Tarefas, Feedbacks, Issue). */
.field-link {
  align-self: flex-start; background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 600; color: inherit; text-align: left;
}
.field-link:hover, .field-link:focus-visible { color: var(--primary-strong); text-decoration: underline; }
input[type=text], input[type=email], input[type=password], input[type=date],
input[type=datetime-local], input[type=number], select, textarea {
  border-radius: 8px; border: 1px solid var(--border); padding: 9px 12px; background: var(--white); color: var(--ink);
  width: 100%;
}
textarea { resize: vertical; min-height: 70px; }

/* --- Filter bar --- */
.filter-bar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.filter-bar input[type=text] { max-width: 320px; }
.filter-bar select { max-width: 220px; }

/* --- Cards (Visão Geral) --- */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }

.kanban-board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; }
.kanban-column { background: var(--bg); border-radius: 12px; padding: 10px; width: 240px; flex-shrink: 0; transition: background-color .1s; }
.kanban-column.kanban-column-dragover { background: rgba(110,216,200,0.18); outline: 2px dashed var(--primary); outline-offset: -2px; }
.kanban-column-head { display: flex; align-items: center; gap: 6px; padding: 4px 4px 10px; }
.kanban-column-head h4 { font-size: 12.5px; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kanban-column-body { min-height: 32px; }
.kanban-column-empty-hint { font-size: 11.5px; color: var(--muted); padding: 8px 2px; text-align: center; }
.kanban-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: grab; }
.kanban-card:hover { border-color: var(--primary); }
.kanban-card:active { cursor: grabbing; }
.kanban-card-overdue { border-color: #f3c6bb; background: #fff9f8; }
.kanban-card-dragging { opacity: 0.4; }
.kanban-card-name { font-size: 13px; font-weight: 600; }
.kanban-card-contact { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.kanban-card .client-card-tags { margin-top: 8px; }
.tag-risk { background: #fbe6e1; color: #b8462f; }
.tag-upgrade { background: #e2f5f1; color: #2f8a76; }
.client-card {
  background: var(--white); border-radius: 12px; padding: 16px; border-left: 4px solid var(--muted);
  border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  transition: box-shadow .15s, transform .15s;
}
.client-card:hover { box-shadow: 0 6px 18px rgba(30,40,60,0.08); transform: translateY(-1px); }
.client-select { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.client-card-selected { box-shadow: 0 0 0 2px var(--primary); }
.client-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.client-card-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.client-card-contact { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.client-card-divider { border-top: 1px dashed var(--border); margin: 12px 0; }
.client-card-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.client-card-next { font-size: 13px; margin-top: 4px; }
.client-card-foot { font-size: 11px; color: var(--muted); margin-top: 12px; }

/* --- Pills / tags --- */
.pill {
  display: inline-flex; align-items: center; gap: 5px; border-radius: 999px;
  padding: 3px 10px; font-size: 11.5px; font-weight: 700;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; }
.status-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 18px; }
.pill-filter { border: 0; cursor: pointer; font-family: inherit; transition: filter .12s; }
.pill-filter:hover { filter: brightness(.95); }
.pill-filter-active { box-shadow: 0 0 0 2px currentColor; }
.pill-filter:focus-visible, .pill-more:focus-visible, .status-popover-row:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.pill-more {
  border: 1px solid var(--border); background: var(--white); color: var(--muted); cursor: pointer; font-family: inherit;
  border-radius: 999px; padding: 3px 11px; font-size: 11.5px; font-weight: 600;
}
.pill-more:hover { background: var(--bg); }
.status-popover-wrap { position: relative; }
.status-popover {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; width: 288px; max-width: calc(100vw - 32px);
  background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 320px; overflow-y: auto;
}
.status-popover-right { left: auto; right: 0; }
.search-combobox { position: relative; max-width: 460px; margin-bottom: 16px; }
.search-field { position: relative; }
.search-field input[type=text] { width: 100%; max-width: none; padding-left: 36px; padding-right: 36px; }
.search-field-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; pointer-events: none; }
.search-field-icon svg { width: 16px; height: 16px; }
.search-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; cursor: pointer;
  color: var(--muted); border-radius: 50%; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
}
.search-clear[hidden] { display: none; }
.search-clear:hover { background: var(--bg); color: var(--ink); }
.search-clear svg { width: 14px; height: 14px; }
.search-suggestions {
  position: absolute; left: 0; right: 0; top: calc(100% - 22px); z-index: 30; list-style: none; margin: 0; padding: 6px;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
  max-height: 340px; overflow-y: auto;
}
.search-suggestions[hidden] { display: none; }
.search-suggestion { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.search-suggestion:hover, .search-suggestion[aria-selected="true"] { background: var(--bg); }
.search-suggestion-main { display: flex; flex-direction: column; min-width: 0; }
.search-suggestion-name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestion-meta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestions mark { background: rgba(110,216,200,.4); color: inherit; border-radius: 3px; padding: 0 1px; }
.search-suggestion-empty, .search-suggestion-more { padding: 8px 10px; font-size: 12px; color: var(--muted); }
.search-count { font-size: 12px; color: var(--muted); margin: 6px 2px 0; min-height: 0; }
.search-count:empty { display: none; }
.status-popover ul { list-style: none; margin: 0; padding: 0; }
.status-popover-row {
  display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; cursor: pointer;
  border-radius: 8px; padding: 7px 8px; font-family: inherit; font-size: 13px; color: var(--ink); text-align: left;
}
.status-popover-row:hover { background: var(--bg); }
.status-popover-row.is-empty { color: var(--muted); }
.status-popover-row.is-active { background: var(--bg); font-weight: 700; }
.status-popover-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-popover-count { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.tag { display: inline-flex; border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 600; background: var(--bg); color: var(--ink); }
/* Referência de engenharia da issue (GitHub / Azure DevOps): em destaque, clicável quando tem link. */
.tag-tracker { align-items: center; gap: 4px; font-weight: 700; background: rgba(110,216,200,0.16); border: 1px solid var(--primary); color: #1f7a67; text-decoration: none; }
a.tag-tracker { cursor: pointer; }
a.tag-tracker:hover { background: rgba(110,216,200,0.32); }
.tag-tracker-azure { background: rgba(0,120,212,0.10); border-color: #0078d4; color: #005a9e; }
a.tag-tracker-azure:hover { background: rgba(0,120,212,0.20); }
.tag-notify { background: rgba(167,139,250,0.16); color: #7c5cd1; }
/* Origem da ativação da Kira no card: autônoma (o lojista ligou sozinho) x flag/time (o programa piloto ligou). */
.tag-autonomous, .tag-team { align-items: center; gap: 4px; font-weight: 700; }
.tag-autonomous { background: rgba(110,216,200,0.16); border: 1px solid var(--primary); color: #1f7a67; }
.tag-team { background: rgba(167,139,250,0.14); color: #6d4fc2; }
.tag-autonomous svg, .tag-team svg { width: 12px; height: 12px; }
.chip-toggle-icon { display: inline-flex; align-items: center; gap: 5px; }
.chip-toggle-icon:disabled { opacity: .55; cursor: default; }
.chip-toggle-icon svg { width: 12px; height: 12px; }
.tag-priority-alta { background: #fbe6e1; color: #b8462f; }
.tag-priority-media { background: #fdefd6; color: #9a6c14; }
.tag-priority-baixa { background: var(--bg); color: var(--muted); }
.tag-overdue { background: #fbe6e1; color: #b8462f; }
.client-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* --- Client list rows --- */
.client-row {
  display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: 10px;
  border: 1px solid var(--border); padding: 12px 14px; margin-bottom: 8px; cursor: pointer; overflow: hidden; position: relative;
}
.client-row:hover { border-color: var(--primary); }
.client-row-stripe { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.client-row-main { flex: 1; margin-left: 8px; }
.client-row-name { font-weight: 700; }
.client-row-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.client-row-updated { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* --- Tasks --- */
.tasks-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tasks-columns.tasks-columns-single { grid-template-columns: 1fr; }
@media (max-width: 860px) { .tasks-columns { grid-template-columns: 1fr; } }
.tasks-completed-col { animation: tasks-completed-col-in .18s ease; }
@keyframes tasks-completed-col-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.task-col-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.count-badge { background: var(--bg); border-radius: 999px; padding: 1px 9px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.count-badge-alert { background: #fbe6e1; color: #b8462f; }
.task-item { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.task-item-overdue { border-color: #f3c6bb; background: #fff9f8; }
.task-item-row { display: flex; align-items: flex-start; gap: 10px; }
.task-checkbox {
  width: 19px; height: 19px; border-radius: 6px; border: 1.5px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; margin-top: 1px; background: var(--white);
}
.task-checkbox.checked { background: var(--primary); border-color: var(--primary); color: #204840; }
.task-desc { font-size: 13.5px; }
.task-desc.done { text-decoration: line-through; color: var(--muted); }
.task-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.task-actions { margin-left: auto; display: flex; gap: 4px; }
.reminder-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--primary-strong); font-weight: 700; }

/* --- List items (feedback / communication) --- */
.list-item { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.list-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.list-item-date { font-size: 11.5px; color: var(--muted); }
.list-item-actions { margin-left: auto; display: flex; gap: 4px; }
.list-item-text { font-size: 13.5px; line-height: 1.4; }
.list-item-topic { font-weight: 700; }
.list-item-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* --- Insights: central de inteligência por piloto --- */
#pi-slot.pi-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }
.pi-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 10px; }
.pi-warn { color: #9a6c14; }
.pi-card { background: var(--white); border: 1px solid var(--border); border-left: 5px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 14px; }
.pi-risk-critico { border-left-color: var(--coral); }
.pi-risk-atencao { border-left-color: var(--amber); }
.pi-risk-engajado { border-left-color: var(--primary-strong); }
.pi-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 10px; }
.pi-title { display: flex; flex-direction: column; gap: 2px; min-width: 220px; flex: 1 1 260px; }
.pi-title strong { font-size: 15px; }
.pi-meta { font-size: 11.5px; color: var(--muted); }
.pi-meta code { font-size: 11px; }
.pi-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pi-risk-badge { display: inline-flex; border-radius: 999px; padding: 2px 10px; font-size: 11px; font-weight: 700; }
.pi-risk-badge-critico { background: #fbe6e1; color: #b8462f; }
.pi-risk-badge-atencao { background: #fdefd6; color: #9a6c14; }
.pi-risk-badge-engajado { background: #dff5e8; color: #1f7a4d; }
.pi-last { flex-basis: 100%; margin: 0; }
.pi-sec { margin-top: 12px; max-width: 90ch; }
.pi-sec h4 { margin: 0 0 4px; font-size: 12.5px; }
.pi-sec p { margin: 0; font-size: 13.5px; line-height: 1.55; }
.pi-list { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; }
.pi-tone { color: var(--muted); font-style: italic; margin-bottom: 4px !important; }
.pi-msg { margin: 8px 0 0; padding: 8px 12px; border-left: 4px solid var(--primary-strong); background: #f1fbf9; border-radius: 0 8px 8px 0; font-size: 13px; line-height: 1.55; }
.pi-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pi-quiet { margin-top: 12px; }

/* --- Feedbacks: filtros em pílulas e cards com seções --- */
.fb-pillbar { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 8px; }
.fb-pillgroup { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.fb-pill-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-right: 2px; }
.fb-pill { padding: 5px 12px; font-size: 12px; }
.fb-count { margin-bottom: 12px; }
.fb-card { padding: 18px 20px; }
.fb-head { flex-wrap: wrap; row-gap: 6px; margin-bottom: 14px; }
.fb-body { font-size: 14px; line-height: 1.6; max-width: 78ch; }
.fb-plain, .fb-quote blockquote { white-space: pre-line; }
.fb-empty { color: var(--muted); font-style: italic; }
.fb-intro { font-size: 13px; line-height: 1.55; color: var(--muted); margin-bottom: 14px; white-space: pre-line; }
.fb-intro-label, .fb-block-title, .fb-compare-head, .fb-quote figcaption {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px;
}
.fb-intro-label { color: var(--muted); }
.fb-quote { margin: 0 0 14px; }
.fb-quote figcaption { color: var(--muted); }
.fb-quote blockquote {
  margin: 0; padding: 10px 14px; border-left: 4px solid var(--primary-strong); background: #f1fbf9;
  border-radius: 0 8px 8px 0; font-size: 14.5px; line-height: 1.6; color: #3f4650;
}
.fb-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.fb-block { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--bg); }
.fb-block-title { color: var(--muted); }
.fb-block-text { font-size: 13.5px; line-height: 1.55; }
.fb-block-reason { background: #fdf1ee; border-color: #f3d4cc; }
.fb-block-reason .fb-block-title { color: #b8462f; }
.fb-block-improve { background: #eef7fd; border-color: #cfe5f5; grid-column: 1 / -1; }
.fb-block-improve .fb-block-title { color: #2f6f9f; }
.fb-block-liked { background: #effaf4; border-color: #cdeedb; }
.fb-block-liked .fb-block-title { color: #1f7a4d; }
.fb-block-missing { background: transparent; border-style: dashed; }
.fb-block-missing .fb-block-text { font-size: 12.5px; }
.fb-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; font-size: 13.5px; line-height: 1.55; }
.fb-compare-col { border-radius: 8px; padding: 8px 10px; background: var(--white); border: 1px solid var(--border); }
.fb-compare-now .fb-compare-head { color: #b8462f; }
.fb-compare-ideal .fb-compare-head { color: #1f7a4d; }
.fb-answer-tag { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.fb-answer-yes { background: #dff5e8; color: #1f7a4d; }
.fb-answer-no { background: #fbe6e1; color: #b8462f; }
.fb-answer-partial { background: #fdefd6; color: #9a6c14; }
.group-title { font-size: 13px; font-weight: 700; margin: 18px 0 10px; color: var(--ink); }
.group-title:first-child { margin-top: 0; }

/* --- Empty states --- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state svg { width: 34px; height: 34px; opacity: 0.6; margin-bottom: 10px; }
.empty-state p { margin: 0 0 16px; line-height: 1.5; }

/* --- Modal --- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(50,55,64,0.45); display: flex; align-items: center;
  justify-content: center; z-index: 100; padding: 20px;
}
.modal-box { background: var(--white); border-radius: 14px; max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(20,25,40,0.3); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 4px; }
.modal-header h3 { font-size: 17px; }
.modal-close { background: none; border: none; color: var(--muted); padding: 4px; }
.modal-body { padding: 12px 20px 4px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 20px 20px; }
.modal-footer .footer-left { margin-right: auto; }
.modal-footer .footer-group { display: flex; gap: 8px; flex-wrap: wrap; }
/* Ações ocasionais de manutenção (ex.: modal de Integração GitHub) — ficam recolhidas por
   padrão pra não competir visualmente com as ações de todo dia (Cancelar/Salvar) no rodapé. */
.gh-tools { margin: 16px 0 4px; padding-top: 14px; border-top: 1px solid var(--border); }
.gh-tools summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--muted); list-style: none; }
.gh-tools summary::-webkit-details-marker { display: none; }
.gh-tools summary::before { content: '▸'; display: inline-block; margin-right: 6px; transition: transform 0.15s; }
.gh-tools[open] summary::before { transform: rotate(90deg); }
.gh-tools summary:hover { color: var(--ink); }
.gh-tools-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.gh-tools-list .btn { width: 100%; justify-content: center; }
.gh-tools-subhead { margin: 6px 0 -2px; padding-top: 8px; border-top: 1px dashed var(--border); }

.checklist { max-height: 160px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.checklist label { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; font-weight: 400; }

/* Histórico de atualizações — cada entrada como um card próprio (data + origem em destaque no
   topo, texto renderizado com markdown leve embaixo), em vez de uma linha só de texto cru. */
.history-list { list-style: none; margin: 0 0 10px; padding: 0; max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.h-entry { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--white); }
.h-entry-latest { border-color: var(--primary); background: #f3fbf9; }
.h-entry-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.h-date { font-size: 12px; font-weight: 700; color: var(--ink); }
.h-source-badge { flex-shrink: 0; }
.h-source-manual { background: rgba(167,139,250,0.16); color: #7c5cd1; }
.h-entry-body { font-size: 12.5px; line-height: 1.55; color: var(--ink); }
.h-md-p { margin: 0 0 6px; }
.h-md-p:last-child { margin-bottom: 0; }
.h-md-heading { font-weight: 700; font-size: 12px; margin: 8px 0 4px; color: var(--ink); }
.h-md-heading:first-child { margin-top: 0; }
.h-md-list { list-style: none; margin: 0 0 6px; padding: 0; }
.h-md-list li { position: relative; padding: 2px 0 2px 14px; }
.h-md-list li::before { content: '•'; position: absolute; left: 0; color: var(--muted); }
.h-md-hr { border: none; border-top: 1px dashed var(--border); margin: 10px 0; }
.h-md-image-note { font-size: 12px; margin: 4px 0; }
.h-md-image-note a { color: var(--ink); }

.add-row { display: flex; gap: 6px; }
.add-row input { flex: 1; }
.static-text { font-size: 13px; line-height: 1.5; color: var(--ink); }
.bullet-list { list-style: none; margin: 0; padding: 0; }
.bullet-list li { font-size: 12.5px; line-height: 1.5; padding: 5px 0 5px 14px; position: relative; border-bottom: 1px dashed var(--border); }
.bullet-list li::before { content: '•'; position: absolute; left: 0; color: var(--muted); }
.bullet-list li:last-child { border-bottom: none; }

/* --- Toast --- */
.toast-wrap { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: #2e323c; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border-left: 4px solid var(--primary); box-shadow: 0 8px 24px rgba(0,0,0,0.25); animation: fade-in .15s ease-out;
}
.toast.error { border-left-color: var(--coral); }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* --- Reminder banners --- */
.reminder-banners { position: fixed; top: 16px; right: 16px; z-index: 300; display: flex; flex-direction: column; gap: 8px; max-width: 320px; }
.reminder-banner {
  background: #2e323c; color: #fff; border-radius: 10px; padding: 12px 14px; border-left: 4px solid var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25); font-size: 12.5px; position: relative;
}
.reminder-banner strong { display: block; margin-bottom: 3px; }
.reminder-banner .close-x { position: absolute; top: 6px; right: 8px; background: none; border: none; color: #b9bdc8; }

.reminders-summary { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.reminders-summary h4 { font-size: 13.5px; margin-bottom: 10px; }
.reminder-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 12.5px; cursor: pointer; }
.reminder-row .r-kind { font-size: 10px; font-weight: 700; text-transform: uppercase; background: var(--bg); border-radius: 6px; padding: 2px 6px; color: var(--muted); }
.reminder-row.overdue { color: #b8462f; }

/* --- Health banner --- */
.health-banner { background: #fdf1e0; border-bottom: 1px solid #f3d99a; color: #8a5a10; padding: 10px 20px; font-size: 12.5px; display: flex; align-items: center; justify-content: space-between; }

/* --- Auth pages --- */
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 20px; }
.auth-box { background: var(--white); border-radius: 14px; padding: 32px; width: 100%; max-width: 380px; box-shadow: 0 20px 60px rgba(20,25,40,0.08); border: 1px solid var(--border); }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.auth-tabs { display: flex; gap: 4px; background: var(--bg); border-radius: 9px; padding: 3px; margin-bottom: 20px; }
.auth-tab { flex: 1; border: none; background: transparent; padding: 8px; border-radius: 7px; font-weight: 600; font-size: 13px; color: var(--muted); }
.auth-tab.active { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.auth-error { background: #fbe6e1; color: #b8462f; border-radius: 8px; padding: 9px 12px; font-size: 12.5px; margin-bottom: 14px; }
.auth-submit { width: 100%; justify-content: center; margin-top: 6px; }

/* --- Dashboard --- */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 6px; }
.stat-tile { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.stat-tile-value { font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.stat-tile-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stat-tile-alert .stat-tile-value { color: var(--coral); }
.stat-tile-link { font: inherit; text-align: left; cursor: pointer; width: 100%; }
.stat-tile-link:hover { border-color: var(--coral); }
.stat-tile-link-primary { transition: border-color .15s, box-shadow .15s, transform .15s; }
.stat-tile-link-primary:hover, .stat-tile-link-primary:focus-visible { border-color: var(--primary-strong); box-shadow: 0 6px 18px rgba(46,160,140,0.22); transform: translateY(-2px); }
.stat-tile-link-primary:hover .stat-tile-more { color: var(--primary-strong); }
.stat-tile-more { margin-top: 6px; font-size: 11px; color: var(--muted); text-decoration: underline; }
.stat-tile-highlight { border-color: var(--primary); background: rgba(110,216,200,0.08); }
.stat-tile-unavailable { opacity: 0.6; cursor: help; }
.stat-tile-unavailable .stat-tile-value { color: var(--muted); }
.dashboard-freshness-hint { margin: 6px 0 20px; }

/* --- Estatísticas --- */
.stats-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.stats-table th { text-align: left; font-size: 11px; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.stats-table td { padding: 8px; border-bottom: 1px solid var(--border); }
.stats-table tr:last-child td { border-bottom: none; }
.stats-table .stats-row-muted td { color: var(--muted); }
/* Cada fonte de dados (Fase 1 · WhatsApp / Fase 2 · Catálogo) abre com um cabeçalho; quando as duas
   aparecem juntas, uma linha separa os blocos para deixar claro que os números não se somam. */
/* Aviso de pilotos sem aID no Dashboard da Fase 2: o banner é arredondado e a lista de nomes abre embaixo. */
.catalog-unlinked { margin: 0 0 12px; }
.catalog-unlinked summary { font-weight: 500; margin-bottom: 6px; }
.catalog-unlinked .health-banner { border: 1px solid #f3d99a; border-radius: 10px; gap: 12px; }
.catalog-unlinked-pilot { cursor: pointer; border: none; font: inherit; }
.catalog-unlinked-pilot:hover { text-decoration: underline; }
.stats-section-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.stats-section-divided { padding-top: 6px; }
.stats-section + .stats-section { margin-top: 28px; padding-top: 22px; border-top: 2px solid var(--border); }

.group-title:first-of-type { margin-top: 4px; }

.analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; margin-bottom: 8px; }
.analytics-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.analytics-card h4 { font-size: 13.5px; margin-bottom: 12px; }
.analytics-card canvas { max-height: 260px; }
.chart-empty-hint { display: flex; align-items: center; justify-content: center; min-height: 200px; text-align: center; padding: 0 12px; }
.analytics-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.analytics-card-head h4 { margin-bottom: 0; }

.product-rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.product-rank-row { display: flex; align-items: flex-start; gap: 10px; }
.product-rank-index { font-size: 11px; font-weight: 700; color: var(--muted); width: 16px; text-align: right; flex-shrink: 0; padding-top: 1px; }
.product-rank-main { flex: 1; min-width: 0; }
.product-rank-value { font-size: 13px; font-weight: 600; color: var(--ink); }
.product-rank-sku { font-size: 11px; color: var(--muted); margin-top: 1px; }
.product-rank-bar-track { background: var(--bg); border-radius: 999px; height: 5px; margin-top: 5px; overflow: hidden; }
.product-rank-bar-fill { background: var(--primary); height: 100%; border-radius: 999px; }
.chip-toggle-group { display: flex; gap: 4px; margin-bottom: 12px; }
.chip-toggle { border: 1px solid var(--border); background: var(--white); color: var(--muted); border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 600; cursor: pointer; }
.chip-toggle.active { background: var(--primary); color: #204840; border-color: var(--primary); }
.comm-completed-bar { display: flex; margin-bottom: 12px; }
.comm-completed-bar:empty { display: none; }
.comm-list-in { animation: tasks-completed-col-in .18s ease; }

/* --- Guia da Kira --- */
.guide-layout { display: flex; gap: 24px; align-items: flex-start; }
.guide-sidebar { width: 240px; flex-shrink: 0; position: sticky; top: 0; }
.guide-sidebar input { margin-bottom: 12px; }
.guide-nav-list { display: flex; flex-direction: column; gap: 2px; }
.guide-nav-item {
  text-align: left; background: transparent; border: none; border-radius: 8px;
  padding: 9px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.guide-nav-item:hover { background: var(--white); }
.guide-nav-item.active { background: var(--white); color: var(--primary-strong); box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.guide-content { flex: 1; min-width: 0; max-height: calc(100vh - 220px); overflow-y: auto; padding-right: 4px; }
.guide-block { margin-bottom: 16px; }
.guide-block p { font-size: 13px; line-height: 1.6; color: var(--ink); margin: 0 0 10px; }
.guide-block p:last-child { margin-bottom: 0; }
.guide-block .bullet-list { margin-bottom: 4px; }
/* Passo a passo numerado (usa o visual da bullet-list, com número no lugar da bolinha). */
.guide-steps { counter-reset: guide-step; }
.guide-steps li { counter-increment: guide-step; padding-left: 24px; }
.guide-steps li::before { content: counter(guide-step) '.'; font-weight: 700; }
.table-scroll { overflow-x: auto; margin-bottom: 10px; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.guide-table th, .guide-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.guide-table th { color: var(--muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }

@media (max-width: 860px) {
  .guide-layout { flex-direction: column; }
  .guide-sidebar { width: 100%; position: static; }
  .guide-nav-list { flex-direction: row; flex-wrap: wrap; }
  .guide-content { max-height: none; }
}

/* --- Insights --- */
.insights-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.insights-toolbar label { font-size: 12.5px; color: var(--muted); }
.insights-toolbar select { width: auto; padding: 7px 10px; }
.insight-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; font-size: 13px; }
.insight-card p { margin: 8px 0 0; line-height: 1.5; }
.insight-card.severity-1 { border-left: 4px solid var(--coral); }
.insight-card.severity-2 { border-left: 4px solid var(--amber); }
.insight-card.severity-3 { border-left: 4px solid var(--primary); }
.insight-card.severity-4 { border-left: 4px solid var(--amber); }
.insight-card.severity-5 { border-left: 4px solid var(--muted); }
.phase-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.phase-filter-label { font-size: 12.5px; color: var(--muted); }
.phase-filter select { width: auto; max-width: 300px; padding: 7px 10px; }
.phase-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.phase-ambos { background: rgba(167,139,250,0.18); color: #6d4fc2; }
.phase-fase2 { background: #e2f5f1; color: #1f7a67; }
.phase-fase1 { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.client-row-name .phase-badge { margin-left: 8px; }
.modal-box.modal-box-wide { max-width: 1080px; }
.catalog-summary { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--muted); }
.catalog-summary strong { color: var(--ink); }
.catalog-table td { vertical-align: top; }
.catalog-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 700; }
.catalog-updates { margin: 0; padding-left: 16px; font-size: 12.5px; }
.catalog-updates li { margin-bottom: 4px; }
.catalog-row-done { opacity: .6; }
.catalog-unmatched { margin-top: 14px; font-size: 13px; }
.catalog-unmatched summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
.stat-tile-sub { font-size: 13px; font-weight: 600; color: var(--muted); }
.catalog-funnel { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.catalog-funnel-row { display: grid; grid-template-columns: minmax(190px, 1.4fr) minmax(120px, 3fr) 110px minmax(120px, 1fr); gap: 10px; align-items: center; padding: 5px 0; font-size: 13px; }
.catalog-funnel-bar { background: var(--bg); border-radius: 999px; height: 12px; overflow: hidden; }
.catalog-funnel-bar span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.catalog-funnel-pct { font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .catalog-funnel-row { grid-template-columns: 1fr 1fr; } .catalog-funnel-bar { grid-column: 1 / -1; } }
.catalog-events-table td, .catalog-events-table th { white-space: nowrap; }
.telemetry-block { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.telemetry-block .group-title { margin-top: 0; }
.telemetry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-bottom: 10px; }
.telemetry-metric { background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.telemetry-metric-value { font-size: 16px; font-weight: 700; }
.telemetry-metric-label { font-size: 11px; color: var(--muted); margin-top: 2px; }
.telemetry-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.client-card-ids { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.client-card-ids code { font-size: 11.5px; }
.client-card-ids a { color: var(--primary-dark, #2f8a76); font-weight: 600; }
/* Bloco "Kira no catálogo" do card: título pequeno, três números em destaque e atalhos de texto discretos. */
.client-card-kira { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); }
.kira-stats { display: flex; gap: 20px; margin-top: 6px; padding: 0; background: none; border: none; font: inherit; text-align: left; cursor: pointer; }
.kira-stat { display: flex; flex-direction: column; }
.kira-stat strong { font-size: 18px; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }
.kira-stat span { font-size: 11px; color: var(--muted); margin-top: 2px; }
.kira-stat-good strong { color: #1f7a67; }
.kira-stats:hover strong { text-decoration: underline; }
.kira-link { display: flex; align-items: center; gap: 5px; margin-top: 8px; padding: 0; background: none; border: none; font: inherit; font-size: 12.5px; font-weight: 600; color: #1f7a67; text-align: left; cursor: pointer; }
.kira-link:hover { text-decoration: underline; }
.kira-link-warn { color: var(--coral); }
.kira-link svg { width: 13px; height: 13px; flex-shrink: 0; }
.phase-summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.phase-summary-label { font-size: 12.5px; color: var(--muted); margin-right: 4px; }
.phase-hidden-note { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.insight-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
.insight-grid .insight-card { margin-bottom: 0; }
.flow-table { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; }
.flow-row { display: grid; grid-template-columns: minmax(150px, 2fr) repeat(5, minmax(70px, 1fr)); gap: 8px; align-items: center; padding: 10px 14px; font-size: 13px; border-top: 1px solid var(--border); min-width: 560px; }
.flow-row.flow-head { border-top: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.flow-row-resting { color: var(--muted); }
.flow-col-name { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.gap-card { border-left: 4px solid #a78bfa; }
.gap-card p { margin: 6px 0 4px; }
.gap-card a { color: var(--ink); }
.tag-severity-1 { background: #fbe6e1; color: #b8462f; }
.tag-severity-2 { background: #fdefd6; color: #9a6c14; }
.tag-severity-3 { background: #e2f5f1; color: #2f8a76; }
.tag-severity-4 { background: #fdefd6; color: #9a6c14; }
.tag-severity-5 { background: var(--bg); color: var(--muted); }

/* --- Insight usage mini list --- */
.mini-list { list-style: none; margin: 0 0 10px; padding: 0; max-height: 130px; overflow-y: auto; }
.mini-list li { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; padding: 5px 0; border-bottom: 1px dashed var(--border); }
.mini-list li button { background: none; border: none; color: var(--coral); padding: 0 2px; }

/* --- Responsive sidebar --- */
@media (max-width: 700px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; flex-direction: row; align-items: center; padding: 10px 14px; }
  .sidebar-nav { flex-direction: row; margin-left: auto; }
  .sidebar-footer { display: none; }
  .view { padding: 16px; }
  .topbar { padding: 16px; }
}

/* --- Atualizações (changelog) --- */
.updates-layout { max-width: 920px; }
.update-latest {
  background: rgba(110,216,200,0.08); border: 1px solid var(--primary); border-radius: 12px;
  padding: 18px 20px; margin-bottom: 18px;
}
.update-latest-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.update-latest-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-strong); }
.update-latest-title { font-size: 19px; color: var(--ink); margin-top: 6px; }
.update-latest-date { font-size: 12px; color: var(--muted); margin-top: 2px; }
.update-latest-summary { font-size: 13.5px; line-height: 1.55; color: var(--ink); margin: 10px 0 12px; max-width: 70ch; }
.update-version {
  display: inline-flex; border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 700;
  background: var(--white); border: 1px solid var(--border); color: var(--ink); font-variant-numeric: tabular-nums;
}
.update-type-row { display: flex; gap: 6px; flex-wrap: wrap; }
.update-type {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.update-type-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.update-type-fix { background: #fbe6e1; color: #b8462f; }
.update-type-improvement { background: #fdefd6; color: #9a6c14; }
.update-type-feature { background: #e2f5f1; color: #2f8a76; }
.updates-filter { flex-wrap: wrap; margin-bottom: 16px; }
.update-month { margin-bottom: 22px; }
.update-month-title { font-size: 14px; color: var(--ink); margin-bottom: 10px; }
.update-month-count { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.update-timeline { position: relative; display: flex; flex-direction: column; gap: 12px; padding-left: 22px; }
.update-timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border); border-radius: 2px; }
.update-card { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.update-dot {
  position: absolute; left: -21px; top: 18px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 3px var(--bg);
}
.update-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.update-date { font-size: 12px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.update-period { font-size: 11px; color: var(--muted); }
.update-card-title { font-size: 15px; color: var(--ink); margin-top: 6px; }
.update-card-summary { font-size: 13px; line-height: 1.5; color: var(--ink); margin: 4px 0 8px; max-width: 75ch; }
.update-group { margin-top: 10px; }
.update-items { margin-top: 4px; }
@media (max-width: 700px) {
  .update-latest { padding: 14px; }
  .update-timeline { padding-left: 18px; }
  .update-dot { left: -17px; }
}
