/* Playtask — estilos */
:root {
  --bg: #f3f1ec;
  --surface: #ffffff;
  --surface-2: #f8f7f4;
  --column: #e9e6df;
  --ink: #1d2433;
  --ink-2: #4a5265;
  --ink-3: #7b8294;
  --line: #dcd8cf;
  --accent: #3b5bdb;
  --accent-ink: #ffffff;
  --accent-soft: #e3e9ff;
  --timer: #e8590c;
  --timer-soft: #fff1e6;
  --ok: #2b8a3e;
  --ok-soft: #e3f6e7;
  --warn: #b26a00;
  --warn-soft: #fff4dc;
  --muted-soft: #eceae4;
  --danger: #c92a2a;
  --nav: #1d2433;
  --nav-ink: #e9ecf3;
  --shadow: 0 1px 2px rgba(29,36,51,.08), 0 1px 1px rgba(29,36,51,.04);
  --shadow-lg: 0 18px 50px rgba(29,36,51,.25);
  --radius: 10px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "SF Mono", Consolas, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171f; --surface: #1d212c; --surface-2: #232836; --column: #1a1e28;
    --ink: #e8eaf0; --ink-2: #b4b9c6; --ink-3: #848a9a; --line: #2f3544;
    --accent: #7b93ff; --accent-ink: #0f1320; --accent-soft: #263055;
    --timer: #ff8a3d; --timer-soft: #3a2618; --ok: #5cc779; --ok-soft: #1e3526;
    --warn: #f2b84b; --warn-soft: #3a2f17; --muted-soft: #2a2f3c; --danger: #ff6b6b;
    --nav: #0e1118; --nav-ink: #e8eaf0;
    --shadow: 0 1px 2px rgba(0,0,0,.4);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 14px/1.45 var(--font); }
/* Fundo escuro: preto profundo com um brilho azulado discreto no topo e textura de pontos quase imperceptível */
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1117; }
  body {
    background-color: var(--bg);
    background-image:
      radial-gradient(1100px 520px at 50% -180px, rgba(123,147,255,.09), transparent 70%),
      radial-gradient(800px 480px at 100% 110%, rgba(255,138,61,.035), transparent 70%),
      radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 22px 22px;
    background-attachment: fixed;
  }
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; }
h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 14px; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ---------- topo */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px;
  height: 52px; padding: 0 16px; background: var(--nav); color: var(--nav-ink); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--nav-ink);
  letter-spacing: .2px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 24px; height: 24px; border-radius: 6px; background: var(--timer); display: grid; place-items: center; }
.nav { display: flex; gap: 4px; }
/* empresa do contexto do menu (3.15.0) */
.nav-company { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 10px;
  border-radius: 999px; background: rgba(255,255,255,.12); color: var(--nav-ink); font-size: 12.5px; font-weight: 600; }
.nav-company:hover { background: rgba(255,255,255,.2); text-decoration: none; }
.topbar select.nav-board { width: auto; max-width: 200px; padding: 3px 8px; font: inherit; border: 1px solid rgba(255,255,255,.2); border-radius: 6px;
  background: rgba(255,255,255,.08); color: var(--nav-ink); font-size: 12.5px; cursor: pointer; }
.topbar select.nav-board:hover { background: rgba(255,255,255,.16); }
.nav-board option { color: #111; background: #fff; }
.nav a { color: var(--nav-ink); opacity: .78; padding: 6px 10px; border-radius: 6px; }
.nav a:hover, .nav a.active { opacity: 1; background: rgba(255,255,255,.1); text-decoration: none; }
.topbar .spacer { flex: 1; }
.userchip { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.userchip form { margin: 0; }
.userchip .role { font-size: 11px; opacity: .7; }
.linkbtn { background: none; border: 0; color: var(--nav-ink); opacity: .75; cursor: pointer; font: inherit; padding: 4px 6px; }
.linkbtn:hover { opacity: 1; }

/* cronômetro global */
.timerbar { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 12px; border-radius: 999px;
  background: rgba(255,255,255,.08); max-width: 420px; }
.timerbar.running { background: var(--timer); color: #fff; }
.timerbar .t-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; font-size: 13px; }
.timerbar .t-title a { color: inherit; }
.timerbar .t-clock { font-family: var(--mono); font-weight: 700; font-size: 14px; }
.timerbar .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

/* ---------- layout */
.page { padding: 22px 24px; max-width: 1280px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head p { margin: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.grid { display: grid; gap: 14px; }
.grid.cols-2 { grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ---------- formulários e botões */
label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time],
select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface);
  color: var(--ink); font: inherit; }
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
input[type=color] { width: 38px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.field { margin-bottom: 12px; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 120px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600;
  cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--danger); }
.btn.small { padding: 4px 9px; font-size: 12px; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--muted-soft); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { border: 0; background: transparent; color: var(--ink-3); cursor: pointer; padding: 4px 6px; border-radius: 6px; font-size: 14px; line-height: 1; }
.icon-btn:hover { background: var(--muted-soft); color: var(--ink); }

.flash-wrap { position: fixed; top: 62px; right: 16px; z-index: 80; display: grid; gap: 8px; max-width: 380px; }
.flash, .toast { padding: 10px 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); font-size: 13px; }
.flash.error, .toast.error { border-left: 4px solid var(--danger); }
.flash.success, .toast.success { border-left: 4px solid var(--ok); }
.flash.info, .toast.info { border-left: 4px solid var(--accent); }

/* ---------- autenticação */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card .brand { color: var(--ink); margin-bottom: 18px; font-size: 20px; }
.auth-card .panel { padding: 24px; }
/* política de privacidade e termos de uso */
.auth-card.legal { max-width: 760px; }
.auth-card.legal .panel { line-height: 1.6; }
.auth-card.legal h2 { font-size: 16px; margin: 22px 0 6px; }
.auth-card.legal ul { padding-left: 20px; margin: 6px 0; }
.auth-card.legal li { margin-bottom: 4px; }
.legal-links { text-align: center; font-size: 12px; margin-top: 12px; }

/* ---------- lista de quadros */
.board-tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.board-tile { display: block; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; transition: transform .12s, box-shadow .12s; }
.board-tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.board-tile h2 { margin-bottom: 4px; }
.tile-cover { height: 56px; margin: -16px -16px 12px; border-radius: var(--radius) var(--radius) 0 0;
  background-size: cover; background-position: center; }
.progress { height: 6px; background: var(--muted-soft); border-radius: 999px; overflow: hidden; margin: 12px 0 8px; }
.progress > span { display: block; height: 100%; background: var(--ok); }
.tile-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-3); }
.tile-wrap { position: relative; }
.tile-wrap > .board-tile { height: 100%; }
.tile-wrap .board-tile h2 { padding-right: 28px; }
.tile-settings { position: absolute; top: 10px; right: 10px; font-size: 16px; }
.tile-settings:hover { text-decoration: none; }

/* ---------- empresa */
.crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.company-layout { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .company-layout { grid-template-columns: 1fr 320px; } }

/* ---------- quadro */
.board-page { height: calc(100vh - 52px); display: flex; flex-direction: column; }
.board-head { display: flex; flex-direction: column; gap: 10px; padding: 12px 18px; }
.board-head h1 { margin: 0; font-size: 19px; }
.board-head-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.board-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.board-title .board-desc { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
/* atalhos (linha 1): botões leves que herdam a cor do cabeçalho, com ou sem fundo personalizado */
.board-actions { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.head-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 7px;
  background: transparent; color: inherit; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.head-btn:hover { background: rgba(127,127,127,.18); text-decoration: none; }
.board-actions #btn-settings { margin-left: 6px; border: 1px solid rgba(127,127,127,.35); }
/* barra de ferramentas (linha 2): controles da mesma altura */
.board-toolbar { --tool-h: 32px; }
.board-toolbar .seg { height: var(--tool-h); }
.board-toolbar .seg button { padding: 0 12px; }
.toolbar-sep { width: 1px; align-self: stretch; margin: 4px 4px; background: currentColor; opacity: .2; }
#group-by-wrap.hidden + .toolbar-sep { display: none; }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filters input, .filters select { width: auto; padding: 6px 9px; font-size: 13px; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box .search-ico { position: absolute; left: 9px; width: 14px; height: 14px; fill: none; stroke: var(--ink-3);
  stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.filters .search-box input { width: 240px; height: var(--tool-h); padding: 0 28px 0 30px; }
.search-clear { position: absolute; right: 4px; border: 0; background: transparent; color: var(--ink-3); cursor: pointer;
  width: 22px; height: 22px; border-radius: 5px; font-size: 11px; line-height: 1; }
.search-clear:hover { background: var(--muted-soft); color: var(--ink); }
.tool-btn { display: inline-flex; align-items: center; gap: 6px; height: var(--tool-h); padding: 0 12px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.tool-btn:hover, .tool-btn[aria-expanded="true"] { color: var(--ink); background: var(--surface-2); }
.tool-btn.on { border-color: var(--accent); color: var(--accent); }
.tool-ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.filter-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-size: 11px; line-height: 18px; text-align: center; }
.filter-menu { position: relative; }
.filter-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; width: 280px; display: grid; gap: 10px; padding: 14px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.filter-pop label { margin: 0; }
.filter-pop select { display: block; width: 100%; margin-top: 4px; font-weight: 400; }
.filter-pop-foot { display: flex; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 10px; }
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.filter-chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 4px 0 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--ink); font-size: 12px; white-space: nowrap; }
.filter-chip button { border: 0; background: transparent; color: var(--ink-3); cursor: pointer; width: 20px; height: 20px;
  border-radius: 50%; font-size: 10px; line-height: 1; }
.filter-chip button:hover { background: rgba(127,127,127,.25); color: var(--ink); }
.filters-clear { border: 0; background: transparent; color: inherit; opacity: .8; cursor: pointer; font: inherit; font-size: 12px;
  font-weight: 600; text-decoration: underline; padding: 0 4px; }
.filters-clear:hover { opacity: 1; }
/* fundo personalizado (cor da paleta ou imagem): cabeçalho em faixa translúcida para manter a leitura */
.board-page.has-bg { background-size: cover; background-position: center; background-repeat: no-repeat; }
.board-page.has-bg .board-head { background: rgba(15,18,28,.38); color: #fff; backdrop-filter: blur(4px); margin-bottom: 12px; }
.board-page.has-bg .board-head .muted { color: rgba(255,255,255,.82); }
.board-page.has-bg.bg-light .board-head { background: rgba(255,255,255,.45); color: #1d2433; }
.board-page.has-bg.bg-light .board-head .muted { color: #4a5265; }
.board-page.has-bg .add-column .btn { background: rgba(255,255,255,.78); color: #1d2433; }
.board-head .spacer { flex: 1; }
.group-by { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 600; white-space: nowrap; }
.board-head .group-by { color: inherit; }
.group-by select { width: auto; padding: 6px 9px; font-size: 13px; }
.board-toolbar .group-by select { height: var(--tool-h); padding: 0 9px; }
.column-head .lane-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.mini-chip.col-chip { font-weight: 600; }
.board-scroll { flex: 1; overflow-x: auto; overflow-y: hidden; padding: 0 18px 18px; }
.columns { display: flex; align-items: flex-start; gap: 12px; height: 100%; }
.column { flex: 0 0 286px; max-height: 100%; display: flex; flex-direction: column; background: var(--column);
  border-radius: 12px; }
.column-head { display: flex; align-items: center; gap: 6px; padding: 10px 10px 6px 12px; }
.column-head .name { flex: 1; font-weight: 700; font-size: 13px; text-transform: none; }
.column-head .count { font-size: 12px; color: var(--ink-3); background: var(--surface); border-radius: 999px; padding: 0 8px; }
.column-head .drag { cursor: grab; color: var(--ink-3); }
.card-list { flex: 1; overflow-y: auto; padding: 4px 8px 6px; min-height: 30px; display: flex; flex-direction: column; gap: 8px; }
.column-foot { padding: 4px 8px 10px; }
/* concluídos: seção à parte no rodapé da coluna, abaixo do "+ Adicionar card", com rolagem própria */
.done-group { flex: none; display: flex; flex-direction: column; min-height: 0; max-height: 45%; margin: 0 8px 8px;
  border-top: 1px dashed var(--line); padding-top: 8px; }
.done-group.open { flex: 0 1 auto; }
.done-toggle { width: 100%; display: flex; align-items: center; gap: 6px; border: 1px solid var(--ok-soft); background: var(--ok-soft); color: var(--ok);
  padding: 6px 8px; border-radius: 7px; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; }
.done-toggle:hover { filter: brightness(.97); }
.done-toggle .count { margin-left: auto; font-size: 12px; color: var(--ok); background: var(--surface); border-radius: 999px; padding: 0 8px; }
.done-caret { display: inline-block; transition: transform .15s; }
.done-group.open .done-caret { transform: rotate(90deg); }
.done-group .done-list { padding: 8px 0 2px; min-height: 0; }
.done-list .kcard { background: var(--column); box-shadow: none; border-color: var(--line); opacity: .85; }
.done-list .kcard:hover { opacity: 1; }
.kcard.st-concluido .title { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--ink-3); }
.add-card-btn { width: 100%; text-align: left; border: 0; background: transparent; color: var(--ink-2); padding: 7px 8px;
  border-radius: 7px; cursor: pointer; font: inherit; }
.add-card-btn:hover { background: rgba(0,0,0,.05); }
.add-column { flex: 0 0 286px; }
.add-column .btn { width: 100%; justify-content: flex-start; background: rgba(0,0,0,.04); border-style: dashed; }

.kcard { position: relative; background: var(--surface); border-radius: 9px; box-shadow: var(--shadow); padding: 9px 10px 8px;
  cursor: pointer; border: 1px solid transparent; border-left: 4px solid var(--status-color, transparent); }
.kcard:hover { border-color: var(--line); border-left-color: var(--status-color, transparent); }
.kcard.st-nao_iniciado { --status-color: #adb5bd; }
.kcard.st-em_andamento { --status-color: #f59f00; }
.kcard.st-concluido { --status-color: #37b24d; }
.kcard.is-running { box-shadow: 0 0 0 2px var(--timer); }
.kcard .badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
  color: #fff; line-height: 18px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge.outline { background: transparent !important; border: 1px solid currentColor; }
.kcard .title { font-weight: 600; font-size: 13.5px; word-wrap: break-word; }
.kcard .cover-fields { margin-top: 5px; display: grid; gap: 1px; font-size: 11.5px; color: var(--ink-2); }
.kcard .cover-fields b { font-weight: 600; color: var(--ink-3); }
.kcard .meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.kcard .meta .spacer { flex: 1; }
.status-pill { white-space: nowrap; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 5px; }
.status-pill.nao_iniciado { background: var(--muted-soft); color: var(--ink-2); }
.status-pill.em_andamento { background: var(--warn-soft); color: var(--warn); }
.status-pill.concluido { background: var(--ok-soft); color: var(--ok); }
.avatar { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent); flex: none; }
.avatar.working { background: var(--timer); color: #fff; }
.avatars { display: flex; }
.avatars .avatar { margin-left: -6px; border: 2px solid var(--surface); }
.play { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer; flex: none; padding: 0; }
.play:hover { border-color: var(--timer); color: var(--timer); }
.play.on { background: var(--timer); border-color: var(--timer); color: #fff; }
.play svg { width: 12px; height: 12px; }
.time-chip { font-family: var(--mono); font-size: 11.5px; white-space: nowrap; }
.sortable-ghost { opacity: .35; }
.sortable-drag { transform: rotate(2deg); }
.quick-add textarea { min-height: 54px; margin-bottom: 6px; }

/* ---------- modal */
.modal-back { position: fixed; inset: 0; background: rgba(15,18,28,.55); z-index: 60; display: flex; align-items: flex-start;
  justify-content: center; padding: 40px 16px; overflow-y: auto; }
.modal { width: 100%; max-width: 920px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); }
.modal.narrow { max-width: 640px; }
.modal-back.confirm-back { z-index: 70; align-items: center; }
.modal.confirm { max-width: 440px; }
.btn.danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger-solid:hover { filter: brightness(1.08); }
.modal-head { display: flex; align-items: flex-start; gap: 10px; padding: 18px 20px 6px; }
.modal-head .grow { flex: 1; }
.modal-title-input { font-size: 19px; font-weight: 700; border: 1px solid transparent !important; padding: 4px 6px !important; margin-left: -6px; }
.modal-title-input:hover { border-color: var(--line) !important; }
.modal-body { padding: 8px 20px 20px; }
.card-layout { display: grid; grid-template-columns: 1fr 290px; gap: 22px; }
@media (max-width: 820px) { .card-layout { grid-template-columns: 1fr; } }
.section { margin-bottom: 18px; }
.section > h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-3); margin-bottom: 8px; }
.side .field { margin-bottom: 10px; }
.tag-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-picker .badge { cursor: pointer; opacity: .35; }
.tag-picker .badge.on { opacity: 1; }
.timebox { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--surface-2); }
.timebox .big { font-family: var(--mono); font-size: 26px; font-weight: 700; }
.timebox .play-lg { width: 100%; margin-top: 8px; }
.timebox .play-lg.on { background: var(--timer); border-color: var(--timer); color: #fff; }
.per-user { margin-top: 8px; display: grid; gap: 2px; font-size: 12px; }
.per-user div { display: flex; justify-content: space-between; }
table.list { width: 100%; border-collapse: collapse; font-size: 13px; }
table.list th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-3); font-weight: 600;
  padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.list td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr:last-child td { border-bottom: 0; }
table.list td.num, table.list th.num { text-align: right; white-space: nowrap; font-family: var(--mono); }
.manual-form { display: grid; grid-template-columns: 130px 90px 90px 1fr auto; gap: 8px; align-items: end; margin-top: 10px; }
@media (max-width: 700px) { .manual-form { grid-template-columns: 1fr 1fr; } }
.events { display: grid; gap: 6px; font-size: 12.5px; max-height: 220px; overflow-y: auto; }
.events .when { color: var(--ink-3); font-size: 11.5px; }
.saved-ind { font-size: 12px; color: var(--ok); opacity: 0; transition: opacity .2s; }
.saved-ind.show { opacity: 1; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs button { border: 0; background: none; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink-3); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.config-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.config-item:last-child { border-bottom: 0; }
.group-box { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.group-box .gh { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.group-box .gh input[type=text] { font-weight: 700; }
.bg-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.bg-swatch { height: 52px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; padding: 0 0 4px 6px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); display: flex; align-items: flex-end; text-align: left;
  font: inherit; font-size: 11px; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.bg-swatch.light { color: #1d2433; text-shadow: none; }
.bg-swatch.none { background: var(--bg); color: var(--ink-2); text-shadow: none; border-color: var(--line); }
.bg-swatch.on, .bg-image.on .bg-thumb { outline: 3px solid var(--accent); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 4px 12px;
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.chip:hover { background: var(--surface-2); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.bg-theme { margin-bottom: 14px; }
.bg-theme-name { font-size: 12px; font-weight: 700; color: var(--ink-3); margin-bottom: 6px; }
.bg-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bg-thumb { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--muted-soft) center / cover no-repeat; }
.bg-cap { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.bg-cap span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ink-2); margin: 0; }

/* ---------- painel */
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi .v { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 12px; color: var(--ink-3); }
.chart-box { position: relative; height: 280px; }
.filterbar { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.filterbar .field { margin: 0; min-width: 150px; }
.live { display: grid; gap: 6px; }
.live-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.empty { padding: 20px; text-align: center; color: var(--ink-3); }
.users-table select { width: auto; }

/* Assinatura */
.billing-banner { padding: 9px 16px; background: var(--warn-soft); color: var(--warn); font-size: 13px; text-align: center; border-bottom: 1px solid var(--line); }
.billing-banner.danger { background: var(--timer-soft); color: var(--danger); }
.billing-banner a { font-weight: 600; }
.invite-quota { margin: 6px 0 0; font-size: 12px; }
.invite-quota.reached { color: var(--danger); }
.plan-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 16px; }
.plan-cards .kpi .v small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.sub-pill { white-space: nowrap; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 5px; background: var(--muted-soft); color: var(--ink-2); }
.sub-pill.ativo, .sub-pill.vitalicio, .sub-pill.isento, .sub-pill.pago { background: var(--ok-soft); color: var(--ok); }
.sub-pill.teste, .sub-pill.pendente { background: var(--warn-soft); color: var(--warn); }
.sub-pill.vencido { background: var(--timer-soft); color: var(--danger); }
.order-total { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sub-pill.parcial { background: var(--warn-soft); color: var(--warn); }

/* ---------- notificações (2.8.0) */
.bell-wrap { position: relative; }
.bell { position: relative; border: 0; background: rgba(255,255,255,.08); color: var(--nav-ink); width: 34px; height: 34px;
  border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.bell:hover { background: rgba(255,255,255,.16); }
.bell-count { position: absolute; top: -3px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--timer); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; }
.bell-pop { position: absolute; right: 0; top: 42px; width: 360px; max-width: calc(100vw - 32px); background: var(--surface);
  color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); z-index: 50; overflow: hidden; }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.bell-head .linkbtn { color: var(--accent); opacity: 1; font-size: 12px; }
.bell-list { max-height: 380px; overflow-y: auto; }
.bell-foot { display: block; text-align: center; padding: 8px; border-top: 1px solid var(--line); font-size: 13px; }
.notif { display: block; padding: 9px 14px; color: var(--ink); border-bottom: 1px solid var(--line); font-size: 13px; }
.notif:last-child { border-bottom: 0; }
.notif:hover { background: var(--surface-2); text-decoration: none; }
.notif.unread { background: var(--accent-soft); }
.notif .when { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

/* ---------- cronograma e integrações (2.11.0) */
.sso-sep { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 12px; margin: 14px 0 10px; }
.sso-sep::before, .sso-sep::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.sso-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-bottom: 6px; } /* 2.12.0 */
.token-box { background: var(--ok-soft); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; word-break: break-all; }
.token-box code { font-family: var(--mono); font-size: 13px; }
code { font-family: var(--mono); font-size: 12px; background: var(--muted-soft); padding: 1px 5px; border-radius: 4px; }
.mini-chip.blocked { background: var(--danger); color: #fff; }
.mini-chip.milestone { background: #7048e8; color: #fff; }
.dep-list { display: grid; gap: 4px; font-size: 13px; }
.dep-item { display: flex; align-items: center; gap: 6px; }
.dep-item.done a { text-decoration: line-through; color: var(--ink-3); }
.gantt-wrap { background: var(--surface); border-radius: 10px; overflow: auto; position: relative; }
.gantt { position: relative; }
.gantt-head { display: flex; position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: 1px solid var(--line); }
.gantt-label-col { position: sticky; left: 0; z-index: 2; background: var(--surface); flex: none; border-right: 1px solid var(--line); }
.gantt-days { display: flex; }
.gantt-day { flex: none; text-align: center; font-size: 10.5px; color: var(--ink-3); padding: 4px 0; border-left: 1px solid transparent; }
.gantt-day.month { border-left-color: var(--line); color: var(--ink); font-weight: 700; }
.gantt-day.weekend { background: var(--surface-2); }
.gantt-day.today { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.gantt-row { display: flex; height: 34px; border-bottom: 1px solid var(--line); }
.gantt-row .gantt-label-col { display: flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 12.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.gantt-track { position: relative; flex: none; }
.gantt-bar { position: absolute; top: 7px; height: 20px; border-radius: 5px; background: var(--accent); color: #fff; font-size: 11px;
  padding: 0 6px; line-height: 20px; white-space: nowrap; overflow: hidden; cursor: pointer; box-shadow: var(--shadow); }
.gantt-bar.st-concluido { background: #37b24d; }
.gantt-bar.st-em_andamento { background: #f59f00; }
.gantt-bar.overdue { background: var(--danger); }
.gantt-bar.blocked { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.25) 0 6px, transparent 6px 12px); }
.gantt-bar.critical { outline: 2px solid #c92a2a; outline-offset: 1px; }
.gantt-ms { position: absolute; top: 9px; width: 16px; height: 16px; background: #7048e8; transform: rotate(45deg); cursor: pointer; }
.gantt-ms.critical { outline: 2px solid #c92a2a; outline-offset: 2px; }
.gantt-today-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); opacity: .5; pointer-events: none; z-index: 1; }
.gantt svg { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 1; }
.gantt-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--ink-2); padding: 8px 10px; align-items: center; }
.gantt-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }

/* ---------- processos: WIP, SLA, modelos (2.10.0) */
.column-head .count.over { background: var(--danger); color: #fff; font-weight: 700; }
.mini-chip.sla.ok { background: var(--accent-soft); color: var(--accent); }
.mini-chip.sla.at_risk { background: var(--warn-soft); color: var(--warn); }
.mini-chip.sla.breached { background: var(--danger); color: #fff; }
.mini-chip.sla.met { background: var(--ok-soft); color: var(--ok); }
.tabs { flex-wrap: wrap; }

/* ---------- custo e aprovação (2.9.0) */
.rate-form { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; }
.rate-form input[type=text] { width: 80px; padding: 3px 6px; font-size: 12px; }
/* valores ocultos até clicar no olho */
.rates-panel .rate-value { display: none; }
.rates-panel.show .rate-value { display: flex; }
.rates-panel.show .rate-mask { display: none; }
.rate-mask { letter-spacing: 2px; font-size: 12px; }
.est-chip.over { background: var(--timer-soft); color: var(--danger); }
.kpi.warn .v { color: var(--warn); }
.dev { font-family: var(--mono); font-size: 12px; font-weight: 700; }
.dev.over { color: var(--danger); } .dev.under { color: var(--ok); }
.timerbar.forgotten { background: var(--danger); }

/* ---------- prazos, checklist, comentários e anexos (2.8.0) */
.chips-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.due-chip, .mini-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; padding: 0 6px;
  border-radius: 5px; line-height: 18px; background: var(--muted-soft); color: var(--ink-2); white-space: nowrap; }
.due-chip.overdue { background: var(--danger); color: #fff; }
.due-chip.soon { background: var(--warn-soft); color: var(--warn); }
.due-chip.done, .mini-chip.ok { background: var(--ok-soft); color: var(--ok); }
label .due-chip { margin-left: 4px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 6px 11px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.board-alt { flex: 1; overflow: auto; padding: 0 18px 18px; }
.cal-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; background: var(--surface); padding: 8px 10px; border-radius: 10px; }
.cal-head h2 { margin: 0 0 0 8px; font-size: 16px; }
.cal-head .spacer { flex: 1; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--ink-3); padding: 2px 6px; background: var(--surface); border-radius: 6px; }
.cal-day { min-height: 104px; background: var(--surface); border-radius: 8px; padding: 4px; display: flex; flex-direction: column; gap: 3px; border: 2px solid transparent; }
.cal-day.out { opacity: .55; }
.cal-day.today { border-color: var(--accent); }
.cal-day.drop { border-color: var(--timer); border-style: dashed; }
.cal-num { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.cal-card { font-size: 11.5px; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); border-left: 3px solid var(--status-color, var(--line));
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-card.st-nao_iniciado { --status-color: #adb5bd; } .cal-card.st-em_andamento { --status-color: #f59f00; } .cal-card.st-concluido { --status-color: #37b24d; }
.cal-card.overdue { background: var(--timer-soft); color: var(--danger); font-weight: 600; }
.check-item { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.check-item .chk { flex: 1; font-size: 13px; font-weight: 400; color: var(--ink); }
.check-item.done .chk span { text-decoration: line-through; color: var(--ink-3); }
.comments { display: grid; gap: 10px; }
.comment { display: flex; gap: 8px; }
.comment .grow { flex: 1; min-width: 0; }
.c-meta { font-size: 12.5px; }
.c-meta .when { color: var(--ink-3); font-size: 11.5px; }
.c-meta .linkbtn { color: var(--accent); opacity: .9; font-size: 11.5px; padding: 0 3px; }
.c-body { white-space: pre-wrap; word-wrap: break-word; font-size: 13px; background: var(--surface-2); border-radius: 8px; padding: 7px 10px; margin-top: 3px; }
.mention { color: var(--accent); font-weight: 600; }
.comment-form { display: grid; gap: 6px; justify-items: start; }
.comment-form textarea { min-height: 64px; }
.mention-wrap { position: relative; width: 100%; }
.mention-pop { position: absolute; left: 0; top: 100%; z-index: 5; min-width: 220px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mention-opt { display: flex; align-items: center; gap: 8px; padding: 6px 10px; cursor: pointer; font-size: 13px; }
.mention-opt.on, .mention-opt:hover { background: var(--accent-soft); }
.attachments { display: grid; gap: 6px; }
.attachment { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.attachment .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.att-thumb { width: 54px; height: 40px; border-radius: 6px; background: var(--muted-soft) center / cover no-repeat; flex: none; }
.att-icon { width: 54px; text-align: center; font-size: 22px; flex: none; }
@media (max-width: 700px) {
  .cal-day { min-height: 70px; }
  .toolbar-sep { display: none; }
  .board-head .filters { flex: 1 1 100%; }
  .search-box { flex: 1; }
  .filters .search-box input { width: 100%; }
  .board-title .board-desc { display: none; }
}

/* ---------- tour guiado (2.13.0) */
.tour-btn { font-size: 16px; font-weight: 700; margin-right: -8px; }
.tour-block { position: fixed; inset: 0; z-index: 100; }
.tour-spot { position: fixed; z-index: 101; border-radius: 8px; pointer-events: none;
  box-shadow: 0 0 0 3px var(--accent), 0 0 0 9999px rgba(15,18,28,.6); transition: all .25s ease; }
.tour-spot.none { box-shadow: 0 0 0 9999px rgba(15,18,28,.6); width: 0 !important; height: 0 !important; }
.tour-pop { position: fixed; z-index: 102; width: 340px; max-width: calc(100vw - 32px); background: var(--surface); color: var(--ink);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 16px 18px 14px; transition: top .25s ease, left .25s ease; }
.tour-pop h3 { margin: 0 0 6px; font-size: 16px; }
.tour-pop p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.tour-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.tour-foot .spacer { flex: 1; }
.tour-step { font-size: 12px; color: var(--ink-3); }
.tour-skip { background: none; border: 0; color: var(--ink-3); cursor: pointer; font: inherit; font-size: 12.5px; padding: 4px 0; }
.tour-skip:hover { color: var(--ink); text-decoration: underline; }

/* ---------- equipe ao vivo (guia lateral do quadro) */
.live-panel { position: fixed; top: 52px; right: 0; bottom: 0; width: 330px; max-width: 100vw; z-index: 25;
  background: var(--surface); color: var(--ink); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .28s ease, box-shadow .28s ease; }
.live-panel.open { transform: none; box-shadow: var(--shadow-lg); }
.live-tab { position: absolute; left: -38px; top: 110px; width: 38px; padding: 12px 0 10px; display: flex; flex-direction: column;
  align-items: center; gap: 8px; border: 1px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  box-shadow: -4px 4px 14px rgba(29,36,51,.14); }
.live-tab:hover { color: var(--timer); }
.live-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.live-tab-label { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .3px; white-space: nowrap; }
.live-tab-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); }
.live-tab.has-work .live-tab-dot { background: var(--timer); animation: pulse 1.6s infinite; }
.live-tab-count { min-width: 20px; padding: 1px 5px; border-radius: 999px; background: var(--muted-soft); color: var(--ink-2);
  font-size: 11px; text-align: center; }
.live-tab.has-work .live-tab-count { background: var(--timer); color: #fff; }
.live-inner { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.live-head { display: flex; align-items: flex-start; gap: 8px; padding: 14px 14px 10px 16px; border-bottom: 1px solid var(--line); }
.live-head > div { flex: 1; }
.live-head h2 { margin: 0 0 2px; font-size: 16px; }
.live-summary { font-size: 13px; color: var(--ink-2); }
.live-list { flex: 1; overflow-y: auto; padding: 10px; display: grid; gap: 8px; align-content: start; }
.live-person { display: flex; gap: 10px; padding: 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line);
  animation: live-in .3s ease both; }
.live-person.working { border-color: color-mix(in srgb, var(--timer) 45%, var(--line)); background: var(--timer-soft); }
.live-person.idle { opacity: .78; }
.live-person.me { box-shadow: inset 3px 0 0 var(--timer); }
.live-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 12px;
  font-weight: 700; color: #fff; background: hsl(var(--hue, 220) 55% 45%); position: relative; }
.live-person.working .live-avatar::after { content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--timer); animation: live-ring 1.8s ease-out infinite; }
.live-person.idle .live-avatar { filter: grayscale(.6); }
.live-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.live-name { font-weight: 700; font-size: 13.5px; }
.live-you { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--timer);
  margin-left: 4px; }
.live-mood { font-size: 12px; color: var(--ink-2); }
.live-card { display: block; width: 100%; text-align: left; margin-top: 2px; padding: 6px 8px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 12.5px;
  font-weight: 600; cursor: pointer; overflow-wrap: anywhere; }
.live-card:hover { border-color: var(--timer); text-decoration: none; }
.live-card small { display: block; font-weight: 400; color: var(--ink-3); font-size: 11.5px; }
.live-card.hidden-card { cursor: default; color: var(--ink-3); font-weight: 400; }
.live-together { font-size: 12px; color: var(--ok); font-weight: 600; }
.live-join { justify-self: start; margin-top: 2px; }
.live-feed-wrap { border-top: 1px solid var(--line); padding: 10px 14px 14px; max-height: 38%; overflow-y: auto; }
.live-feed-wrap h3 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-3); }
.live-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 12.5px; }
.live-feed li { animation: live-in .3s ease both; }
.kcard.live-ping { animation: live-ping 0.8s ease 3; }
@keyframes live-ring { 0% { transform: scale(.9); opacity: .9 } 100% { transform: scale(1.25); opacity: 0 } }
@keyframes live-in { from { opacity: 0; transform: translateY(4px) } to { opacity: 1; transform: none } }
@keyframes live-ping { 0%,100% { box-shadow: var(--shadow) } 50% { box-shadow: 0 0 0 4px var(--timer), 0 0 24px var(--timer) } }
@media (min-width: 1100px) { .board-page.live-open .board-scroll, .board-page.live-open .board-alt { margin-right: 330px; } }
@media (prefers-reduced-motion: reduce) {
  .live-panel, .live-person, .live-feed li { transition: none; animation: none; }
  .live-person.working .live-avatar::after, .live-tab.has-work .live-tab-dot { animation: none; }
  .kcard.live-ping { animation: none; box-shadow: 0 0 0 4px var(--timer); }
}

/* ---------- gamificação: Placar de Impacto (3.5.0) */
.prio-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; padding: 0 7px;
  border-radius: 999px; line-height: 18px; white-space: nowrap; border: 1px solid transparent; }
.prio-chip.prio-critica { background: #ffe3e3; color: #c92a2a; border-color: #ffc9c9; }
.prio-chip.prio-alta { background: #fff0db; color: #b35c00; border-color: #ffd8a8; }
.prio-chip.prio-normal { background: var(--accent-soft); color: var(--accent); }
.prio-chip.prio-rotina { background: var(--muted-soft); color: var(--ink-2); }
@media (prefers-color-scheme: dark) {
  .prio-chip.prio-critica { background: #4a1f22; color: #ff8787; border-color: #6b2a2f; }
  .prio-chip.prio-alta { background: #45301a; color: #ffc078; border-color: #5c3f1f; }
}
select.prio-chip { font: inherit; font-size: 11px; font-weight: 700; padding: 1px 4px; height: auto; width: auto; cursor: pointer; }
.t-focus { font-size: 11.5px; font-weight: 700; background: rgba(255,255,255,.18); padding: 1px 7px; border-radius: 999px; white-space: nowrap; }

.game-page h2 { display: flex; align-items: center; gap: 6px; }
.game-player-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.game-player-head .live-avatar { width: 46px; height: 46px; font-size: 15px; }
.game-level-next { margin-left: auto; min-width: 220px; }
.game-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 14px; }
.game-pillar { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface-2);
  display: flex; flex-direction: column; gap: 2px; border-top: 3px solid var(--accent); }
.game-pillar span { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.game-pillar b { font-size: 26px; line-height: 1.1; }
.game-pillar small { font-size: 11.5px; color: var(--ink-3); }
.game-pillar.p-imp { border-top-color: #f59f00; }
.game-pillar.p-foc { border-top-color: var(--accent); }
.game-pillar.p-col { border-top-color: var(--ok); }
.game-pillar.p-mis { border-top-color: var(--timer); }
.game-queue-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; color: var(--ink);
  border: 1px solid var(--line); margin-bottom: 6px; background: var(--surface); }
.game-queue-item:hover { text-decoration: none; border-color: var(--accent); }
.game-queue-item .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-queue-item.focus { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--accent-soft); }
.game-pos { font-family: var(--mono); font-weight: 700; font-size: 12px; color: var(--ink-3); min-width: 24px; }
.game-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.game-badge { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 10px;
  border: 1px dashed var(--line); font-size: 24px; filter: grayscale(1); opacity: .45; cursor: help; text-align: center; }
.game-badge em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.game-badge.got { filter: none; opacity: 1; border-style: solid; border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); background: var(--ok-soft); }
.game-mission-bar { height: 12px; margin: 8px 0 6px; }
.game-mission-bar > span { background: linear-gradient(90deg, var(--accent), var(--ok)); }
.game-kudos { display: grid; gap: 8px; max-height: 340px; overflow-y: auto; }
.game-kudo { padding: 8px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }
.game-kudo.star { border-color: #f59f00; background: var(--warn-soft); }
.game-kudo div { margin: 2px 0; }
.game-reversed td { color: var(--ink-3); text-decoration: line-through; }
.redeem-st { font-size: 11.5px; font-weight: 700; padding: 0 7px; border-radius: 999px; background: var(--muted-soft); }
.redeem-st.st-aprovado { background: var(--ok-soft); color: var(--ok); }
.redeem-st.st-recusado { background: var(--danger); color: #fff; }
.redeem-st.st-pendente { background: var(--warn-soft); color: var(--warn); }
.pl-columns { align-items: flex-start; }
.pl-column .card-list { min-height: 60px; }
.pl-card .title { display: block; color: var(--ink); font-weight: 600; margin: 4px 0 2px; }
.pl-card { border-left: 4px solid var(--line); }
.pl-card.prio-b-critica { border-left-color: #e03131; }
.pl-card.prio-b-alta { border-left-color: #f59f00; }
.pl-card.prio-b-normal { border-left-color: var(--accent); }
.pl-focus { filter: grayscale(1); opacity: .45; }
.pl-focus.on { filter: none; opacity: 1; }

/* ------------------------------------------------------------------ assistentes de configuração (3.9.0) */
.wizard-page { max-width: 880px; }
.wizard-steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; counter-reset: none; }
.wizard-steps li a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 5px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); font-size: 13px; font-weight: 600; text-decoration: none; }
.wizard-steps li a:hover { color: var(--ink); }
.wizard-steps .wizard-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--muted-soft); color: var(--ink-2); font-size: 12px; }
.wizard-steps li.done a { color: var(--ink-2); }
.wizard-steps li.done .wizard-num { background: var(--ok-soft); color: var(--ok); }
.wizard-steps li.on a { border-color: var(--accent); color: var(--ink); }
.wizard-steps li.on .wizard-num { background: var(--accent); color: var(--accent-ink); }
.wizard-steps.compact li a { font-size: 12px; padding: 3px 10px 3px 3px; }
.wizard-steps.compact .wizard-num { width: 20px; height: 20px; font-size: 11px; }
.wizard-panel h2 { margin-top: 0; }
.wizard-foot { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.wizard-foot .spacer { flex: 1; }
.wizard-options { display: grid; gap: 8px; margin: 10px 0 12px; }
.wizard-options.cols { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.wizard-option { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; font-weight: 400; margin: 0; }
.wizard-option:hover { border-color: var(--ink-3); }
.wizard-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.wizard-option input { margin-top: 3px; }
.wizard-option > span { display: flex; flex-direction: column; gap: 2px; }
.wizard-option .muted { font-size: 12px; }
.wizard-details summary { cursor: pointer; font-weight: 600; margin: 4px 0 8px; }
.wizard-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wizard-tags .badge { font-size: 12px; padding: 2px 4px 2px 10px; }
.wizard-x { border: 0; background: none; color: inherit; cursor: pointer; opacity: .7; font-size: 11px; padding: 0 4px; }
.wizard-x:hover { opacity: 1; }
.wizard-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
@media (max-width: 700px) { .wizard-foot { flex-wrap: wrap; } }

/* ------------------------------------------------------------------ módulos e agenda (3.12.0) */
.module-list { display: grid; gap: 8px; }
.module-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.module-item.child { margin-left: 22px; }
.module-item.on { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: var(--ok-soft); }
.module-item .grow { flex: 1; min-width: 0; }
.module-name { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.module-desc { font-size: 12.5px; margin-top: 2px; }
.module-item form { margin: 0; }
.segment-bar { padding: 12px 16px; }
/* link da página pública de agendamento (3.16.2) */
.share-panel { margin-bottom: 12px; padding: 10px 14px; }
.share-panel > summary { cursor: pointer; }
.share-panel[open] > summary { margin-bottom: 10px; }
.share-box.off { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
  background: var(--warn-soft); color: var(--ink); }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.share-url { flex: 1; min-width: 260px; font-family: var(--mono); font-size: 12.5px; background: var(--surface-2) !important; }
.segment-hint { font-size: 13px; flex: 1; min-width: 200px; }
/* chave liga/desliga no estilo do iPhone */
.ios-switch { position: relative; display: inline-block; flex: none; width: 51px; height: 31px; padding: 0; border: 0;
  border-radius: 999px; background: #e9e9eb; box-shadow: inset 0 0 0 2px rgba(0,0,0,.06); cursor: pointer;
  transition: background-color .25s ease; vertical-align: middle; }
.ios-switch .ios-knob { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 3px 1px rgba(0,0,0,.06); transition: transform .25s cubic-bezier(.4,0,.2,1); }
.ios-switch.on { background: #34c759; box-shadow: none; }
.ios-switch.on .ios-knob { transform: translateX(20px); }
.ios-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ios-switch.disabled { opacity: .5; cursor: not-allowed; }
@media (prefers-color-scheme: dark) { .ios-switch { background: #39393d; } .ios-switch.on { background: #30d158; } }
@media (prefers-reduced-motion: reduce) { .ios-switch, .ios-switch .ios-knob { transition: none; } }
.agenda-page { max-width: 1440px; }
.agenda-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.agenda-tabs a { padding: 8px 12px; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.agenda-tabs a:hover { color: var(--ink); text-decoration: none; }
.agenda-tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.agenda-tabs .spacer { flex: 1; }
.agenda-tabs select { width: auto; padding: 4px 8px; font-size: 13px; }
.agenda-settings-tabs a { padding: 8px 12px; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.agenda-settings-tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.agenda-settings-tabs a:hover { text-decoration: none; color: var(--ink); }
.agenda-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.agenda-toolbar h2 { margin: 0; font-size: 17px; text-transform: capitalize; }
.agenda-toolbar .spacer { flex: 1; }
.agenda-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--ink-2); align-items: center; }
.ag-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; background: var(--st, #adb5bd); }
.ag-closed { background: repeating-linear-gradient(45deg, var(--muted-soft) 0 4px, var(--line) 4px 8px); }
.st-aguardando_pagamento { --st: #ae3ec9; } .st-agendado { --st: #3b5bdb; } .st-confirmado { --st: #0ca678; }
.st-chegou { --st: #f59f00; } .st-em_atendimento { --st: #e8590c; } .st-concluido { --st: #2b8a3e; }
.st-faltou { --st: #c92a2a; } .st-cancelado { --st: #868e96; }
.ag-pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; color: #fff; background: var(--st, #868e96); vertical-align: middle; }
.agenda-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ag-grid { min-width: 0; }
.ag-scroll { display: grid; grid-template-columns: 54px repeat(var(--cols), minmax(120px, 1fr)); overflow: auto;
  max-height: calc(100vh - 230px); }
.ag-corner, .ag-colhead { position: sticky; top: 0; z-index: 6; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.ag-colhead { padding: 6px 8px; font-size: 13px; text-align: center; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 1px; }
.ag-colhead small { color: var(--ink-3); font-size: 11px; }
.ag-colhead.today { color: var(--accent); }
.ag-times { position: relative; }
.ag-times span { position: absolute; right: 6px; transform: translateY(-50%); font-size: 11px; color: var(--ink-3); font-family: var(--mono); }
.ag-times span:first-child { transform: none; }
.ag-col { position: relative; border-left: 1px solid var(--line);
  background: repeating-linear-gradient(45deg, var(--surface-2) 0 6px, var(--muted-soft) 6px 12px); }
.ag-col.today { box-shadow: inset 0 0 0 1px var(--accent-soft); }
.ag-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); pointer-events: none; z-index: 1; }
.ag-open { position: absolute; background: var(--surface); cursor: copy; z-index: 0; border-left: 1px solid var(--line); }
.ag-open:hover { background: var(--accent-soft); }
.ag-now { position: absolute; left: 0; right: 0; border-top: 2px solid var(--danger); z-index: 4; pointer-events: none; }
.ag-block { position: absolute; left: 2px; right: 2px; z-index: 2; border-radius: 6px; padding: 2px 6px; font-size: 11px; font-weight: 600;
  overflow: hidden; color: var(--ink-2); border: 1px dashed var(--ink-3);
  background: repeating-linear-gradient(45deg, var(--muted-soft) 0 6px, var(--surface-2) 6px 12px); pointer-events: none; }
.ag-block.kind-audiencia, .ag-block.kind-prazo { border-color: #7048e8; color: #5f3dc4; }
.ag-block.kind-feriado { border-color: var(--warn); color: var(--warn); }
.ag-block.kind-turma { border: 1px solid #1c7ed6; color: #1864ab; background: color-mix(in srgb, #1c7ed6 12%, var(--surface)); }
.ag-appt { position: absolute; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 0; text-align: left;
  border: 0; border-left: 4px solid var(--st, #3b5bdb); border-radius: 6px; padding: 2px 6px; cursor: pointer; overflow: hidden;
  background: color-mix(in srgb, var(--svc, #3b5bdb) 16%, var(--surface)); color: var(--ink); font: inherit; font-size: 11.5px;
  box-shadow: var(--shadow); box-sizing: border-box; }
.ag-appt:hover { box-shadow: 0 0 0 2px var(--accent); z-index: 5; }
.ag-appt .ag-t { font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); white-space: nowrap; }
.ag-appt .ag-c { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ag-appt .ag-s { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ag-appt.st-cancelado { opacity: .55; text-decoration: line-through; }
.ag-appt.st-faltou { background: var(--timer-soft); }
.ag-appt.st-concluido { opacity: .8; }
.ag-month { padding: 8px; }
.ag-mday { text-align: left; cursor: pointer; font: inherit; color: inherit; border: 2px solid transparent; }
.ag-mday:hover { border-color: var(--accent-soft); }
.ag-mday.closed { background: var(--surface-2); }
.ag-mcount { font-size: 12px; font-weight: 600; }
.ag-mfree { font-size: 11.5px; color: var(--ok); }
.ag-mfree.full { color: var(--danger); }
.ag-form .ag-fieldset, .ag-fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 10px; margin: 12px 0 8px; }
.ag-fieldset legend { font-size: 12px; font-weight: 700; color: var(--ink-2); padding: 0 4px; }
.ag-slots { min-height: 30px; margin-bottom: 4px; }
.ag-search-wrap { position: relative; }
.ag-detail .ag-sec { border-top: 1px solid var(--line); padding: 10px 0; }
.ag-detail .ag-sec:first-of-type { border-top: 0; }
.ag-detail summary { cursor: pointer; }
.ag-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0; }
.ag-links { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 8px; }
.ag-warn { color: var(--danger); font-weight: 600; font-size: 13px; margin-top: 4px; }
.ag-answer { padding: 4px 0; font-size: 13px; } .ag-answer div { white-space: pre-wrap; }
.ag-hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 10px; }
.ag-hours label { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.ag-details { margin-bottom: 10px; }
.ag-details > summary { cursor: pointer; font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ag-details[open] > summary { margin-bottom: 12px; }
.ag-dot.kind-feriado { background: var(--warn); } .ag-dot.kind-ferias { background: #1c7ed6; }
.ag-dot.kind-audiencia, .ag-dot.kind-prazo { background: #7048e8; } .ag-dot.kind-extra { background: var(--ok); }
.ag-heat td.num { min-width: 34px; text-align: center; font-family: var(--mono); font-size: 12px; }
.ag-heat th { font-size: 11px; }
.ag-heat .lv-1 { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.ag-heat .lv-2 { background: color-mix(in srgb, var(--accent) 28%, transparent); }
.ag-heat .lv-3 { background: color-mix(in srgb, var(--accent) 46%, transparent); }
.ag-heat .lv-4 { background: color-mix(in srgb, var(--accent) 66%, transparent); color: #fff; }
.ag-public h1 { margin-bottom: 10px; }
.ag-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ag-steps li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.ag-steps li.done { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.ag-steps .chips { margin: 8px 0 0; }
.ag-steps .chip:hover, .ag-public .chip:hover { text-decoration: none; }
.ag-public-form { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.ag-public-wait { margin-top: 16px; font-size: 13px; }
.ag-public-wait summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.ag-public-summary { display: grid; gap: 4px; padding: 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.ag-public-when { font-size: 18px; font-weight: 700; }
.ag-public .ag-sec { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; }
.ag-print { background: #fff; color: #000; padding: 20px; }
.ag-print-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ag-print-head h1 { font-size: 18px; }
.ag-print-cal { margin-top: 18px; page-break-inside: avoid; }
.ag-print-cal h2 { font-size: 15px; }
@media print { .no-print { display: none !important; } .ag-print { padding: 0; } }
@media (max-width: 700px) { .ag-scroll { grid-template-columns: 44px repeat(var(--cols), minmax(110px, 1fr)); } .module-item.child { margin-left: 0; } }

/* Lembrete de Play (timer.js): aviso discreto no canto inferior esquerdo */
.play-nudge { position: fixed; left: 16px; bottom: 16px; z-index: 70; width: 300px; max-width: calc(100vw - 32px);
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-left: 4px solid var(--timer);
  border-radius: 10px; box-shadow: var(--shadow-lg); padding: 10px 12px; font-size: 13px; animation: nudge-in .3s ease-out; }
.play-nudge .pn-head { font-weight: 700; padding-right: 18px; }
.play-nudge .pn-text { color: var(--ink-2); margin-top: 4px; }
.play-nudge .pn-close { position: absolute; top: 4px; right: 6px; border: 0; background: none; color: var(--ink-3);
  font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 4px; }
.play-nudge .pn-close:hover { color: var(--ink); }
.play-nudge .pn-card { display: grid; gap: 3px; margin-top: 6px; padding: 7px 9px; border-radius: 8px; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--ink); justify-items: start; }
.play-nudge .pn-card:hover { border-color: var(--timer); text-decoration: none; }
.play-nudge .pn-card .muted { font-size: 11.5px; }
.play-nudge .pn-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.play-nudge .pn-play { background: var(--timer); border-color: var(--timer); color: #fff; }
.play-nudge .pn-later { color: var(--ink-2); font-size: 12px; }
@keyframes nudge-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .play-nudge { animation: none; } }

/* ---------- 3.20.0: menus mais simples */
/* menu da pessoa no topo (conta, assinatura, sair) */
.user-menu { position: relative; }
.user-menu > summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; padding: 4px 6px;
  border-radius: 8px; color: var(--nav-ink); }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover, .user-menu[open] > summary { background: rgba(255,255,255,.1); }
.user-menu .caret { font-size: 10px; opacity: .7; }
.user-pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 40; }
.user-pop a, .user-pop .linkbtn { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px;
  color: var(--ink); opacity: 1; font-size: 13.5px; }
.user-pop a:hover, .user-pop .linkbtn:hover, .user-pop a.active { background: var(--surface-2); text-decoration: none; }
.user-pop form { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }

/* menu suspenso genérico (botão "Empresa" e "⋯" das colunas) */
.drop { position: relative; display: inline-block; }
.drop > summary { list-style: none; }
.drop > summary::-webkit-details-marker { display: none; }
.drop-pop { position: absolute; right: 0; top: calc(100% + 4px); min-width: 200px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 35; }
.drop-pop a, .drop-pop button { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 6px;
  background: none; color: var(--ink); font: inherit; font-size: 13.5px; cursor: pointer; }
.drop-pop a:hover, .drop-pop button:hover { background: var(--surface-2); text-decoration: none; }
.drop-pop .danger { color: var(--danger); }
.drop-pop hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
/* menu ⋯ da coluna, aberto pelo quadro */
.col-menu-btn { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 16px; line-height: 1;
  padding: 2px 6px; border-radius: 6px; }
.col-menu-btn:hover { background: var(--muted-soft); color: var(--ink); }
.col-pop { position: fixed; z-index: 60; }

/* abas de Horas (lista e painel) */
.page-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -6px 0 16px; }
.page-tabs a { padding: 8px 12px; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.page-tabs a:hover { color: var(--ink); text-decoration: none; }
.page-tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }

/* configurar quadro: sub-abas dentro de cada grupo */
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.subtabs button { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px;
  padding: 4px 12px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.subtabs button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* modal do card: seções opcionais e "mais opções" */
.card-more { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 8px; }
.card-more > summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 4px 0 8px; }
.card-add-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.status-ro { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.section.history > summary { cursor: pointer; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.del-note { font-size: 11.5px; margin: 6px 0 0; }
