/* ============ 1. Tokens ============ */
:root {
  color-scheme: light;
  --bg-app: #F4F5F7;          /* moldura (barra global e lateral) */
  --surface: #FFFFFF;         /* painel principal, menus */
  --surface-2: #F6F7F9;       /* hover, colunas, campos */
  --surface-3: #EDEFF2;       /* hover mais forte, item ativo neutro */
  --border: #E5E7EB;
  --border-soft: #EEF0F3;     /* divisória entre linhas */
  --border-strong: #D3D7DE;   /* campos e controles */
  --text: #1A1D23;
  --text-2: #5C6370;
  --text-3: #8C929C;
  --accent: #1F93FF;
  --accent-hover: #0F85F2;
  --accent-strong: #0B6FCC;   /* texto azul sobre branco (AA) */
  --accent-wash: #EBF5FF;
  --accent-ring: rgba(31, 147, 255, .28);
  --red: #E5484D;   --red-wash: #FDECEC;
  --orange: #E8890C; --orange-wash: #FFF3E0;
  --green: #12A150; --green-wash: #E7F6EE;
  --violet: #7C5CFF; --violet-wash: #F1EDFF;
  --gray: #8C929C;  --gray-wash: #F1F2F4;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-pop: 0 12px 32px -6px rgba(16, 24, 40, .16), 0 2px 6px rgba(16, 24, 40, .06);
  --row: 38px;
  --radius: 6px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-app: #13161C; --surface: #1A1E26; --surface-2: #20252F; --surface-3: #272D39;
  --border: rgba(255,255,255,.08); --border-soft: rgba(255,255,255,.05); --border-strong: rgba(255,255,255,.14);
  --text: #E8EAEE; --text-2: #A7ADB8; --text-3: #7B828F;
  --accent: #3BA1FF; --accent-hover: #55AEFF; --accent-strong: #7ABDFF;
  --accent-wash: rgba(59,161,255,.14); --accent-ring: rgba(59,161,255,.35);
  --red-wash: rgba(229,72,77,.16); --orange: #F5A524; --orange-wash: rgba(245,165,36,.16);
  --green: #3CCB7F; --green-wash: rgba(60,203,127,.16); --violet: #A08BFF; --violet-wash: rgba(160,139,255,.16);
  --gray-wash: rgba(255,255,255,.07);
  --shadow-sm: 0 0 #0000; --shadow-pop: 0 16px 40px rgba(0,0,0,.45);
}
:root[data-density="compacta"] { --row: 32px; }

/* ============ 2. Base: nada com cara de navegador ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg-app); color: var(--text);
  font: 400 13px/20px Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility;
}
button, input, textarea, select {
  font: inherit; color: inherit; margin: 0; letter-spacing: inherit;
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
input, textarea { background: transparent; border: 0; outline: 0; min-width: 0; }
input::placeholder, textarea::placeholder { color: var(--text-3); opacity: 1; }
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input:-webkit-autofill, input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 40px var(--surface) inset;
  transition: background-color 9999s;
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent-ring); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: var(--radius); }
/* campos dentro de caixas que já mostram o próprio anel de foco */
.search input:focus-visible, .field input:focus-visible, .search-in input:focus-visible, .add-input input:focus-visible { outline: none; }
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--text-3); }
::-webkit-scrollbar-corner { background: transparent; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none;
        stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tnum { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ============ 3. Estrutura ============ */
.app { display: grid; grid-template-columns: 64px 252px 1fr; height: 100vh; }
.global { display: flex; flex-direction: column; align-items: center; padding: 12px 0 10px; gap: 2px; }
.logo { width: 26px; height: 26px; margin: 2px 0 14px; fill: var(--accent); }
.gbtn { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center;
        color: var(--text-2); position: relative; transition: background .12s, color .12s; }
.gbtn svg.i { width: 18px; height: 18px; }
.gbtn:hover { background: var(--surface-3); color: var(--text); }
.gbtn[aria-current="page"] { background: var(--surface); color: var(--accent-strong); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }
.gbtn .dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%;
             background: var(--red); box-shadow: 0 0 0 2px var(--bg-app); }
.global .spacer { flex: 1; }
/* Ícone com nome embaixo (decisão 31/10: rótulo visível, sem depender de dica) */
.gbtn.lbl { width: 56px; height: 50px; gap: 3px; place-content: center; }
.gbtn.lbl small { font-size: 10.5px; font-weight: 500; line-height: 1; letter-spacing: .01em; }
.gbtn.lbl .dot { top: 5px; right: 13px; }

.side { display: flex; flex-direction: column; min-width: 0; padding-right: 4px; }
.ws { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; margin: 4px 4px 2px;
      border-radius: 8px; font-weight: 600; font-size: 14px; }
.ws:hover { background: var(--surface-3); }
.ws .mark { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #3BA1FF, #1F7FE0);
            display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 600; }
.ws .caret { margin-left: auto; color: var(--text-3); }
.search { margin: 4px 8px 10px; height: 32px; border-radius: var(--radius); background: var(--surface);
          box-shadow: 0 0 0 1px var(--border); display: flex; align-items: center; gap: 8px; padding: 0 8px 0 10px;
          color: var(--text-3); transition: box-shadow .12s; }
.search:focus-within { box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-ring); }
.search input { flex: 1; height: 100%; color: var(--text); }
.kbd { font: 500 11px/16px Inter; color: var(--text-3); background: var(--surface-2); border: 1px solid var(--border);
       border-radius: 4px; padding: 0 5px; }
.nav { overflow-y: auto; padding: 0 4px 16px 8px; }
.item { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; width: 100%;
        border-radius: var(--radius); color: var(--text-2); font-weight: 500; white-space: nowrap; transition: background .1s; }
.item:hover { background: var(--surface-3); color: var(--text); }
.item[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }
.item[aria-current="page"] .ico { color: var(--accent); }
.item .ico { color: var(--text-3); display: flex; }
.item .chev { width: 14px; height: 14px; color: var(--text-3); transition: transform .15s var(--ease); }
.item[aria-expanded="false"] .chev { transform: rotate(-90deg); }
.item .end { margin-left: auto; display: flex; align-items: center; gap: 2px; color: var(--text-3); font-size: 12px; }
.item .act { display: none; }
.item:hover .act { display: flex; }
.item:hover .count { display: none; }
.mini { width: 20px; height: 20px; border-radius: 4px; display: grid; place-items: center; color: var(--text-3); }
.mini:hover { background: var(--border); color: var(--text); }
.mini svg.i { width: 14px; height: 14px; }
.sect { display: flex; align-items: center; height: 28px; padding: 14px 8px 4px; font-size: 12px; color: var(--text-3); font-weight: 500; }
.l1 { padding-left: 22px; } .l2 { padding-left: 36px; } .l3 { padding-left: 52px; }
.space { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; font-weight: 600; color: #fff; flex: none; }

.main { margin: 8px 8px 8px 0; background: var(--surface); border-radius: 12px; display: flex; flex-direction: column;
        min-width: 0; box-shadow: 0 0 0 1px var(--border), var(--shadow-sm); overflow: hidden; }

/* Cabeçalho do local */
.head { display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 16px 0 20px; flex: none; }
.crumb { height: 28px; padding: 0 6px; border-radius: var(--radius); display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.crumb:hover { background: var(--surface-2); color: var(--text); }
.crumb.here { color: var(--text); font-weight: 600; font-size: 14px; }
.sep { color: var(--border-strong); }
.head .end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.stack { display: flex; margin-right: 4px; }
.stack .av { position: relative; }
.stack .av + .av { margin-left: -6px; }
.stack .av:first-child { z-index: 2; }

/* Botões */
.btn { height: 30px; padding: 0 10px; border-radius: var(--radius); display: inline-flex; align-items: center; gap: 6px;
       font-weight: 500; white-space: nowrap; transition: background .12s, box-shadow .12s, color .12s; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: inset 0 -1px 0 rgba(0,0,0,.12), 0 1px 2px rgba(31,147,255,.3); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-sm); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn[aria-pressed="true"] { background: var(--accent-wash); color: var(--accent-strong); box-shadow: 0 0 0 1px var(--accent-ring); }
.icon-btn { width: 30px; height: 30px; border-radius: var(--radius); display: grid; place-items: center; color: var(--text-2); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* Barra de views e controles */
.views { display: flex; align-items: flex-end; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--border); flex: none; }
.tab { height: 36px; padding: 0 8px; display: inline-flex; align-items: center; gap: 6px; color: var(--text-2);
       font-weight: 500; position: relative; border-radius: var(--radius) var(--radius) 0 0; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--text); }
.tab .i { color: var(--text-3); }
.tab[aria-selected="true"] .i { color: var(--accent); }
.controls { display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 20px; flex: none; }
.controls .grow { flex: 1; }
.chip { height: 28px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
        color: var(--text-2); font-weight: 500; box-shadow: 0 0 0 1px var(--border); background: var(--surface); }
.chip:hover { color: var(--text); box-shadow: 0 0 0 1px var(--border-strong); }
.chip b { color: var(--text); font-weight: 500; }
.field { height: 28px; width: 180px; border-radius: 999px; display: flex; align-items: center; gap: 6px; padding: 0 10px;
         box-shadow: 0 0 0 1px var(--border); color: var(--text-3); transition: width .2s var(--ease), box-shadow .12s; }
.field:focus-within { width: 240px; box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-ring); }
.field input { flex: 1; height: 100%; color: var(--text); }

/* Switch próprio */
.switch { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 4px; color: var(--text-2); font-weight: 500; border-radius: var(--radius); }
.switch .track { width: 28px; height: 16px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%;
                        background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .18s var(--ease); }
.switch[aria-checked="true"] .track { background: var(--accent); }
.switch[aria-checked="true"] .track::after { transform: translateX(12px); }

/* Lista */
.list { overflow: auto; flex: 1; padding: 0 20px 48px; }
.grid { display: grid; grid-template-columns: 28px minmax(260px, 1fr) 112px 108px 104px 36px; align-items: center; }
.cols { height: 30px; color: var(--text-3); font-size: 12px; font-weight: 500; position: sticky; top: 0; background: var(--surface); z-index: 2; border-bottom: 1px solid var(--border); }
.cols > div { padding: 0 8px; }
.group { margin-top: 18px; }
.ghead { display: flex; align-items: center; gap: 8px; height: 32px; }
.ghead .toggle { width: 22px; height: 22px; border-radius: 4px; display: grid; place-items: center; color: var(--text-3); }
.ghead .toggle:hover { background: var(--surface-2); color: var(--text); }
.ghead .toggle svg { transition: transform .15s var(--ease); }
.group[data-closed] .ghead .toggle svg { transform: rotate(-90deg); }
.group[data-closed] .rows, .group[data-closed] .add { display: none; }
.badge { height: 22px; padding: 0 8px 0 6px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.ghead .n { color: var(--text-3); font-size: 12px; }
.row { height: var(--row); border-bottom: 1px solid var(--border-soft); position: relative; transition: background .08s; }
.row:hover { background: var(--surface-2); }
.row[aria-selected="true"] { background: var(--accent-wash); }
.row > div { padding: 0 8px; min-width: 0; }
.row .sel { padding: 0 4px; display: flex; justify-content: center; }
.row .sel .check { opacity: 0; }
.row:hover .sel .check, .row[aria-selected="true"] .sel .check, .list.selecting .sel .check { opacity: 1; }
.name { display: flex; align-items: center; gap: 10px; }
.name .title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 13.5px; cursor: pointer; }
.name .title:hover { color: var(--accent-strong); }
.meta { display: inline-flex; align-items: center; gap: 3px; color: var(--text-3); font-size: 12px; }
.meta svg.i { width: 13px; height: 13px; }
.row .hover-act { opacity: 0; display: flex; gap: 2px; margin-left: 2px; }
.row:hover .hover-act { opacity: 1; }
.cell { height: 28px; width: 100%; border-radius: var(--radius); display: flex; align-items: center; gap: 6px; padding: 0 6px; color: var(--text-2); }
.cell:hover { background: var(--surface-3); color: var(--text); }
.cell.empty { color: var(--text-3); }
.cell.empty .i { opacity: 0; }
.row:hover .cell.empty .i { opacity: 1; }
.cell.empty .ph { width: 10px; height: 1.5px; border-radius: 1px; background: currentColor; opacity: .7; }  /* vazio sem caractere de travessão */
.date.today { color: var(--orange); font-weight: 500; }
.date.late { color: var(--red); font-weight: 500; }
.tag { height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11.5px; font-weight: 500; display: inline-flex; align-items: center; white-space: nowrap; }
.add { display: flex; align-items: center; gap: 8px; height: var(--row); padding-left: 36px; color: var(--text-3); width: 100%; border-radius: var(--radius); }
.add:hover { color: var(--text); background: var(--surface-2); }
.add-input { display: flex; align-items: center; gap: 10px; height: var(--row); padding: 0 8px 0 36px; border-radius: var(--radius);
             box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-ring); margin: 2px 0; }
.add-input input { flex: 1; height: 100%; }

/* Status: círculo próprio */
.st { width: 16px; height: 16px; border-radius: 50%; flex: none; position: relative; border: 1.75px solid currentColor; display: grid; place-items: center; }
.st[data-type="active"] { background: conic-gradient(currentColor 0 50%, transparent 0); }
.st[data-type="done"], .st[data-type="closed"] { background: currentColor; }
.st[data-type="done"]::after, .st[data-type="closed"]::after { content: ""; width: 7px; height: 4px; border: solid #fff; border-width: 0 0 1.75px 1.75px; transform: translateY(-1px) rotate(-45deg); }
button.st:hover { box-shadow: 0 0 0 3px var(--surface-3); }

/* Checkbox próprio */
.check { width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--border-strong); background: var(--surface); display: grid; place-items: center; transition: background .1s, box-shadow .1s; }
.check:hover { box-shadow: inset 0 0 0 1.5px var(--text-3); }
.check[aria-checked="true"] { background: var(--accent); box-shadow: none; }
.check[aria-checked="true"]::after { content: ""; width: 8px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }

/* Avatar */
.av { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 600; color: #fff; box-shadow: 0 0 0 2px var(--surface); flex: none; }
.av.lg { width: 28px; height: 28px; font-size: 11px; box-shadow: none; }

/* Popover e menu (substituem select e menus nativos) */
.pop { position: fixed; z-index: 50; min-width: 200px; background: var(--surface); border-radius: 10px;
       box-shadow: 0 0 0 1px var(--border), var(--shadow-pop); padding: 6px; animation: pop-in .14s var(--ease); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.pop .search-in { height: 32px; margin: 0 0 6px; padding: 0 8px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border-soft); color: var(--text-3); }
.pop .search-in input { flex: 1; height: 100%; color: var(--text); }
.pop .label { padding: 6px 8px 4px; font-size: 11px; font-weight: 600; color: var(--text-3); letter-spacing: .04em; text-transform: uppercase; }
.opt { display: flex; align-items: center; gap: 10px; width: 100%; height: 32px; padding: 0 8px; border-radius: 6px; color: var(--text); white-space: nowrap; }
.opt:hover, .opt[data-active] { background: var(--surface-2); }
.opt .hint { margin-left: auto; color: var(--text-3); font-size: 12px; }
.opt .tick { margin-left: auto; color: var(--accent); }
.pop hr { border: 0; height: 1px; background: var(--border-soft); margin: 6px -6px; }

/* Seletor de data próprio */
.dp { display: grid; grid-template-columns: 184px 1fr; width: 488px; padding: 0; overflow: hidden; }
.dp .quick { border-right: 1px solid var(--border-soft); padding: 6px; }
.dp .cal { padding: 10px 12px 12px; }
.dp .cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 600; }
.dp .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dp .dow { font-size: 11px; color: var(--text-3); font-weight: 500; height: 24px; line-height: 24px; }
.dp .day { height: 32px; border-radius: 6px; font-variant-numeric: tabular-nums; color: var(--text); }
.dp .day:hover { background: var(--surface-2); }
.dp .day.out { color: var(--text-3); }
.dp .day.weekend:not(.out) { color: var(--text-2); }
.dp .day.today { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent-strong); font-weight: 600; }
.dp .day[aria-selected="true"] { background: var(--accent); color: #fff; font-weight: 600; }

/* Dica (tooltip) própria */
[data-tip] { position: relative; }
.tip { position: fixed; z-index: 60; background: #1A1D23; color: #fff; font-size: 12px; line-height: 16px; padding: 5px 8px; border-radius: 6px;
       pointer-events: none; white-space: nowrap; animation: pop-in .12s var(--ease); }
.tip .kbd { background: rgba(255,255,255,.12); border-color: transparent; color: #D7DAE0; margin-left: 6px; }

/* Barra de ações em massa */
.bulk { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: none; align-items: center; gap: 4px;
        background: #1A1D23; color: #fff; padding: 6px 6px 6px 14px; border-radius: 10px; box-shadow: var(--shadow-pop); z-index: 40; }
.bulk.on { display: flex; animation: pop-in .16s var(--ease); }
.bulk .btn { color: #D7DAE0; height: 30px; }
.bulk .btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.bulk .count { font-weight: 600; margin-right: 8px; }

/* ============ Janela da tarefa ============ */
.overlay { position: fixed; inset: 0; z-index: 45; background: rgba(15, 18, 24, .32); backdrop-filter: blur(2px);
           display: grid; place-items: center; animation: fade .16s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.tw { width: min(1240px, calc(100vw - 48px)); height: calc(100vh - 48px); background: var(--surface); border-radius: 14px;
      box-shadow: 0 0 0 1px var(--border), 0 24px 64px -12px rgba(16, 24, 40, .28); display: flex; flex-direction: column;
      overflow: hidden; animation: pop-in .2s var(--ease); }
.overlay.full { padding: 0; } .overlay.full .tw { width: 100vw; height: 100vh; border-radius: 0; }
.tw-top { height: 52px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--border); }
.tw-top .crumb { font-size: 12.5px; }
.tw-top .end { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.tw-top .vr { width: 1px; height: 20px; background: var(--border); margin: 0 6px; }
.pill-btn { height: 26px; padding: 0 8px; border-radius: var(--radius); display: inline-flex; align-items: center; gap: 6px;
            font-size: 12px; font-weight: 500; color: var(--text-2); box-shadow: 0 0 0 1px var(--border); }
.pill-btn:hover { color: var(--text); box-shadow: 0 0 0 1px var(--border-strong); }
.tw-body { flex: 1; display: grid; grid-template-columns: 1fr 380px; grid-template-rows: minmax(0, 1fr); min-height: 0; }
.tw-main { overflow-y: auto; padding: 28px 48px 64px; }
.tw-inner { max-width: 780px; margin: 0 auto; }
.quick-links { display: flex; gap: 6px; margin-bottom: 10px; }
.tw-title { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 20px; padding: 2px 6px;
            margin-left: -6px; border-radius: var(--radius); }
.tw-title:hover { background: var(--surface-2); }
.tw-title:focus { background: transparent; box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-ring); }
.fields { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; row-gap: 2px; margin-bottom: 24px; }
.f { display: grid; grid-template-columns: 148px 1fr; align-items: center; min-height: 36px; }
.f .k { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; white-space: nowrap; }
.f .v > span > .cell { width: auto; }
.f .v { min-width: 0; }
.f .cell { height: 32px; }
.status-btn { height: 28px; padding: 0 10px 0 8px; border-radius: var(--radius); display: inline-flex; align-items: center; gap: 8px;
              font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.status-btn:hover { filter: brightness(.97); }
.done-btn { width: 28px; height: 28px; border-radius: var(--radius); display: grid; place-items: center; color: var(--text-3); box-shadow: 0 0 0 1px var(--border); margin-left: 6px; }
.done-btn:hover { color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.arrow { color: var(--text-3); margin: 0 2px; }
.desc { min-height: 96px; padding: 10px 12px; margin: 0 -12px 28px; border-radius: 8px; line-height: 22px; font-size: 14px; color: var(--text); }
.desc:hover { background: var(--surface-2); }
.desc:focus { background: transparent; box-shadow: 0 0 0 1px var(--border-strong); }
.desc:empty::before { content: attr(data-placeholder); color: var(--text-3); }
.desc p { margin: 0 0 8px; } .desc ul { margin: 0 0 8px; padding-left: 20px; }
.sec { border-top: 1px solid var(--border); padding: 14px 0 6px; }
.sec-head { display: flex; align-items: center; gap: 8px; height: 32px; }
.sec-head .t { font-weight: 600; font-size: 14px; }
.sec-head .n { color: var(--text-3); font-size: 12px; }
.sec-head .end { margin-left: auto; display: flex; gap: 2px; }
.sec[data-closed] .sec-body { display: none; }
.sec[data-closed] .toggle svg { transform: rotate(-90deg); }
.sec .toggle { width: 22px; height: 22px; border-radius: 4px; display: grid; place-items: center; color: var(--text-3); }
.sec .toggle:hover { background: var(--surface-2); }
.sec .toggle svg { transition: transform .15s var(--ease); }
.progress { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; width: 120px; }
.progress span { display: block; height: 100%; background: var(--green); border-radius: 4px; transition: width .2s var(--ease); }
.cf { display: grid; grid-template-columns: 180px 1fr; align-items: center; min-height: 36px; border-bottom: 1px solid var(--border-soft); }
.cf .k { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.sub-row { display: grid; grid-template-columns: 24px 1fr 96px 88px; align-items: center; height: 36px; border-bottom: 1px solid var(--border-soft); padding-left: 4px; }
.sub-row:hover { background: var(--surface-2); }
.ck { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 6px; border-radius: var(--radius); }
.ck:hover { background: var(--surface-2); }
.ck[data-done] .txt { color: var(--text-3); text-decoration: line-through; }
.ck .end { margin-left: auto; opacity: 0; display: flex; gap: 2px; }
.ck:hover .end { opacity: 1; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; padding: 6px 0; }
.file { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; box-shadow: 0 0 0 1px var(--border); }
.file:hover { box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-sm); }
.file .thumb { width: 36px; height: 36px; border-radius: 6px; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; flex: none; }
.file .nm { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file .sz { color: var(--text-3); font-size: 12px; }
.feed { border-left: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; background: var(--bg-app); }
.feed-head { height: 48px; flex: none; display: flex; align-items: center; padding: 0 12px 0 16px; border-bottom: 1px solid var(--border); font-weight: 600; }
.feed-head .end { margin-left: auto; display: flex; gap: 2px; }
.feed-list { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.ev { display: flex; gap: 8px; color: var(--text-3); font-size: 12px; line-height: 18px; }
.ev b { color: var(--text-2); font-weight: 500; }
.ev .dotl { width: 22px; display: grid; place-items: center; flex: none; }
.ev .dotl::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }
.cm { display: flex; gap: 10px; }
.cm .bubble { flex: 1; background: var(--surface); border-radius: 10px; box-shadow: 0 0 0 1px var(--border); padding: 10px 12px; }
.cm .who { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.cm .who b { font-weight: 600; } .cm .who span { color: var(--text-3); font-size: 12px; }
.cm .acts { display: flex; gap: 4px; margin-top: 8px; }
.react { height: 24px; padding: 0 8px; border-radius: 999px; font-size: 12px; display: inline-flex; align-items: center; gap: 4px;
         box-shadow: 0 0 0 1px var(--border); color: var(--text-2); background: var(--surface); }
.react:hover { box-shadow: 0 0 0 1px var(--border-strong); color: var(--text); }
.react[aria-pressed="true"] { background: var(--accent-wash); box-shadow: 0 0 0 1px var(--accent-ring); color: var(--accent-strong); }
.composer { flex: none; margin: 12px 16px 16px; background: var(--surface); border-radius: 10px; box-shadow: 0 0 0 1px var(--border-strong); transition: box-shadow .12s; }
.composer:focus-within { box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-ring); }
.composer .box { min-height: 44px; max-height: 160px; overflow-y: auto; padding: 10px 12px 4px; line-height: 20px; }
.composer .box:empty::before { content: attr(data-placeholder); color: var(--text-3); }
.composer .bar { display: flex; align-items: center; gap: 2px; padding: 4px 6px 6px; }
.composer .bar .btn-primary { margin-left: auto; height: 28px; }
.mention { color: var(--accent-strong); font-weight: 500; }

/* ============ Quadro (Kanban) ============ */
.board { flex: 1; min-height: 0; overflow: auto; display: flex; gap: 12px; padding: 4px 20px 24px; align-items: flex-start; user-select: none; }
.col { flex: none; width: 264px; max-height: 100%; display: flex; flex-direction: column; background: var(--surface-2);
       border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border-soft); }
.col-head { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 8px 0 12px; flex: none; }
.col-head .n { color: var(--text-3); font-size: 12px; }
.col-head .end { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity .1s; }
.col:hover .col-head .end { opacity: 1; }
.col-body { flex: 1; min-height: 8px; overflow-y: auto; padding: 0 8px; display: flex; flex-direction: column; gap: 8px; }
.col-foot { padding: 6px 8px 8px; flex: none; }
.col-foot .add { padding-left: 8px; height: 34px; }
.col[data-drop] { box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--accent-wash); }
.col.collapsed { width: 44px; cursor: pointer; }
.col.collapsed .col-head { flex-direction: column; height: auto; padding: 10px 0; gap: 10px; }
.col.collapsed .col-head .badge { writing-mode: vertical-rl; transform: rotate(180deg); padding: 8px 0; height: auto; }
.col.collapsed .col-head .end, .col.collapsed .col-body, .col.collapsed .col-foot { display: none; }
.card { background: var(--surface); border-radius: 10px; padding: 10px 12px 10px; cursor: pointer;
        box-shadow: 0 0 0 1px var(--border), var(--shadow-sm); transition: box-shadow .12s, transform .12s; position: relative; }
.card:hover { box-shadow: 0 0 0 1px var(--border-strong), 0 4px 12px -4px rgba(16, 24, 40, .12); }
.card-title { font-size: 13.5px; line-height: 19px; color: var(--text); padding-right: 22px; }
.card .card-more { position: absolute; top: 7px; right: 6px; opacity: 0; }
.card:hover .card-more { opacity: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.card-meta { display: flex; align-items: center; gap: 4px; margin-top: 10px; min-height: 24px; }
.card-meta .chipl { height: 24px; padding: 0 6px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px;
                    font-size: 12px; color: var(--text-2); }
.card-meta button.chipl:hover { background: var(--surface-2); color: var(--text); }
.card-meta .chipl svg.i { width: 14px; height: 14px; }
.card-meta .chipl.today { color: var(--orange); font-weight: 500; }
.card-meta .chipl.late { color: var(--red); font-weight: 500; }
.card-meta .push { margin-left: auto; }
.card.dragging { opacity: .35; }
.ghost { position: fixed; z-index: 70; pointer-events: none; transform: rotate(2.5deg) scale(1.02);
         box-shadow: 0 0 0 1px var(--border-strong), 0 18px 40px -8px rgba(16, 24, 40, .35); }
.slot { height: 6px; border-radius: 4px; background: var(--accent); margin: -1px 2px; flex: none; }
.col-empty { color: var(--text-3); font-size: 12.5px; text-align: center; padding: 18px 8px; border: 1px dashed var(--border-strong); border-radius: 10px; }
body.grabbing, body.grabbing * { cursor: grabbing !important; }

/* ============ Calendário ============ */
.calendar { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 272px; user-select: none; }
.calendar.no-side { grid-template-columns: 1fr; }
.cal-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 0 20px 20px; }
.cal-bar { display: flex; align-items: center; gap: 8px; height: 44px; flex: none; }
.cal-bar .title { font-size: 16px; font-weight: 600; margin-left: 4px; min-width: 170px; }
.cal-bar .end { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.seg { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.seg button { height: 26px; padding: 0 12px; border-radius: 6px; font-weight: 500; color: var(--text-2); }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border), var(--shadow-sm); }
.cal-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr);
            border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--border); gap: 1px; }
.dow-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); flex: none; padding: 0 0 6px; }
.dow-row span { font-size: 12px; font-weight: 500; color: var(--text-3); padding-left: 8px; }
.cell-day { background: var(--surface); padding: 6px 6px 4px; display: flex; flex-direction: column; gap: 3px; min-height: 0; position: relative; overflow: hidden; }
.cell-day.weekend { background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); }
.cell-day.out { background: var(--bg-app); }
.cell-day.out .daynum { color: var(--text-3); font-weight: 400; }
.cell-day[data-drop] { background: var(--accent-wash); box-shadow: inset 0 0 0 1.5px var(--accent); }
.day-top { display: flex; align-items: center; justify-content: space-between; height: 22px; flex: none; }
.daynum { min-width: 24px; height: 22px; padding: 0 4px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 500;
          color: var(--text-2); font-variant-numeric: tabular-nums; }
.cell-day.today .daynum { background: var(--accent); color: #fff; font-weight: 600; }
.cell-day .add-day { opacity: 0; }
.cell-day:hover .add-day { opacity: 1; }
.chip-task { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 6px 0 4px; border-radius: 6px; flex: none;
             font-size: 12.5px; color: var(--text); background: var(--surface-2); cursor: pointer; min-width: 0; }
.chip-task:hover { background: var(--surface-3); }
.chip-task .bar { width: 3px; height: 14px; border-radius: 2px; flex: none; }
.chip-task .tt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-task.done .tt { color: var(--text-3); text-decoration: line-through; }
.chip-task.late { background: var(--red-wash); }
.chip-task.dragging { opacity: .35; }
.week .chip-task { height: auto; min-height: 28px; padding: 5px 8px 5px 4px; align-items: flex-start; }
.week .chip-task .bar { margin-top: 2px; }
.week .chip-task .tt { white-space: normal; line-height: 17px; }
.more-day { height: 20px; font-size: 12px; color: var(--text-2); font-weight: 500; text-align: left; padding: 0 6px; border-radius: 6px; flex: none; }
.more-day:hover { background: var(--surface-2); color: var(--text); }
.cal-side { border-left: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; background: var(--bg-app); }
.cal-side-head { height: 44px; display: flex; align-items: center; padding: 0 8px 0 16px; font-weight: 600; flex: none; }
.cal-side-head .end { margin-left: auto; }
.cal-side-body { overflow-y: auto; padding: 0 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.cal-side .grp { font-size: 11px; font-weight: 600; color: var(--text-3); letter-spacing: .04em; text-transform: uppercase; padding: 10px 4px 2px; }
.cal-side .chip-task { height: 32px; background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.cal-side .chip-task:hover { box-shadow: 0 0 0 1px var(--border-strong); }
.cal-side .chip-task.late { background: var(--surface); }
.cal-side .hint-empty { color: var(--text-3); font-size: 12.5px; padding: 4px; }
.pop .day-list { display: flex; flex-direction: column; gap: 3px; width: 260px; }

/* Preferências de exibição (demo) */
.prefs { position: fixed; right: 20px; bottom: 20px; z-index: 30; }

/* ============ Visão geral (Overview da pasta) ============ */
.overview { flex: 1; min-height: 0; overflow: auto; }
.ov-bar { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 20px; }
.ov-bar .t { font-size: 15px; font-weight: 600; }
.ov-bar .s { color: var(--text-3); }
.ov-bar .grow { flex: 1; }
.ov-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; padding: 0 20px 32px; }
.ov-card { position: relative; min-width: 0; background: var(--surface); border-radius: 12px; display: flex; flex-direction: column;
           box-shadow: 0 0 0 1px var(--border), var(--shadow-sm); transition: box-shadow .12s; }
.ov-card:hover { box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-sm); }
.ov-card.is-dragging { opacity: .4; }
.ov-card.resizing { box-shadow: 0 0 0 2px var(--accent), 0 0 0 5px var(--accent-ring); }
.ov-card.flash { animation: ov-flash 1.4s var(--ease); }
@keyframes ov-flash { 0%, 40% { box-shadow: 0 0 0 2px var(--accent), 0 0 0 6px var(--accent-ring); } }
.ov-card[data-drop]::before { content: ""; position: absolute; top: 0; bottom: 0; width: 3px; border-radius: 2px; background: var(--accent); }
.ov-card[data-drop="before"]::before { left: -10px; }
.ov-card[data-drop="after"]::before { right: -10px; }
.ov-head { height: 44px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 14px; cursor: grab; user-select: none; }
.ov-head.static { cursor: default; height: 52px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.ov-head .ico { color: var(--text-3); display: grid; }
.ov-name { font-weight: 600; min-width: 0; padding: 1px 4px; margin-left: -4px; border-radius: 4px; cursor: text;
           white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-name:hover { background: var(--surface-2); }
.ov-name[contenteditable="true"] { background: var(--surface); box-shadow: 0 0 0 1px var(--accent), 0 0 0 3px var(--accent-ring); text-overflow: clip; }
.ov-act { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity .12s; }
.ov-card:hover .ov-act, .ov-card:focus-within .ov-act, .ov-head.static .ov-act { opacity: 1; }
.ov-act .mini:hover { background: var(--surface-3); color: var(--text); }
.ov-body { flex: 1; min-height: 0; padding: 0 14px 14px; }
.ov-body.full { padding: 0 20px 20px; }
.ov-resize { position: absolute; top: 14px; bottom: 14px; right: -4px; width: 8px; cursor: ew-resize; }
.ov-resize::after { content: ""; position: absolute; top: 50%; left: 2px; width: 4px; height: 32px; transform: translateY(-50%);
                    border-radius: 4px; background: var(--border-strong); opacity: 0; transition: opacity .12s, background .12s; }
.ov-card:hover .ov-resize::after { opacity: 1; }
.ov-resize:hover::after, .ov-card.resizing .ov-resize::after { background: var(--accent); opacity: 1; }
.ov-size { position: absolute; top: 10px; right: 12px; z-index: 2; height: 22px; padding: 0 8px; border-radius: 6px; display: flex; align-items: center;
           background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; }
.ov-ghost { position: fixed; z-index: 60; pointer-events: none; width: 240px; height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 14px;
            background: var(--surface); border-radius: 10px; font-weight: 600; transform: rotate(2deg);
            box-shadow: 0 0 0 1px var(--border), var(--shadow-pop); }
.ov-ghost .i { color: var(--text-3); }

/* Conteúdo dos cartões */
.ov-row { display: flex; align-items: center; gap: 10px; width: calc(100% + 12px); height: 36px; margin: 0 -6px; padding: 0 6px; border-radius: 6px; text-align: left; }
button.ov-row:hover { background: var(--surface-2); }
.ov-row .tt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-row .meta { margin-left: auto; color: var(--text-3); font-size: 12px; white-space: nowrap; flex: none; }
.ov-row > .i { color: var(--text-3); }
.ovl { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(100px, 170px) 52px 72px 32px; align-items: center; column-gap: 12px; }
.ovl.hd { height: 30px; color: var(--text-3); font-size: 12px; font-weight: 500; }
.ovl.row { height: 40px; border-top: 1px solid var(--border-soft); }
.ovl .nm { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 500; text-align: left; }
.ovl .nm:hover span { color: var(--accent-strong); }
.ovl .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sq { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.prog { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 12px; }
.prog .bar { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.prog .bar i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.ov-card .late, .ovf .late { color: var(--red); font-weight: 500; }
.zero { color: var(--text-3); }
.ov-foot { margin-top: 6px; }
.asg { display: grid; grid-template-columns: 22px minmax(0, 120px) 1fr 22px; align-items: center; gap: 10px; height: 36px; }
.asg .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asg .n { text-align: right; color: var(--text-2); }
.sbar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--surface-2); }
.sbar i { display: block; height: 100%; }
.sbar i + i { box-shadow: -1px 0 0 var(--surface); }
.av.none { background: var(--surface-3); color: var(--text-3); box-shadow: none; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 12px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; }
.big { font-size: 26px; line-height: 34px; font-weight: 600; letter-spacing: -.01em; }
.muted { color: var(--text-3); font-size: 12px; }
.prog.lg .bar { height: 8px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.kv > div { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.kv b { display: block; font-weight: 600; }
.cdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.camp { display: grid; grid-template-columns: minmax(0, 1fr) 48px 72px; align-items: center; column-gap: 10px; }
.camp.hd { height: 30px; color: var(--text-3); font-size: 12px; font-weight: 500; }
.camp.row { height: 38px; border-top: 1px solid var(--border-soft); }
.camp .nm { display: flex; align-items: center; gap: 8px; min-width: 0; }
.camp .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.camp .r { text-align: right; }
.fmt { flex: none; height: 18px; padding: 0 6px; border-radius: 4px; display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 600; letter-spacing: .03em; }
.pill { flex: none; height: 20px; padding: 0 7px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 500; }
.ov-note { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.fav { width: 20px; height: 20px; border-radius: 5px; flex: none; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #fff; }
.fk { width: 30px; height: 20px; border-radius: 4px; flex: none; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.drop { margin-top: 8px; height: 40px; border-radius: 8px; border: 1px dashed var(--border-strong); display: flex; align-items: center; justify-content: center;
        gap: 6px; color: var(--text-3); font-size: 12px; }

/* Tela cheia de um cartão e janela "Adicionar cartão" */
.ovf { width: min(1040px, calc(100vw - 48px)); max-height: calc(100vh - 48px); overflow: auto; background: var(--surface); border-radius: 14px;
       box-shadow: 0 0 0 1px var(--border), 0 24px 64px -12px rgba(16, 24, 40, .28); animation: pop-in .2s var(--ease); }
.addc { width: min(780px, calc(100vw - 48px)); height: min(540px, calc(100vh - 48px)); background: var(--surface); border-radius: 14px; overflow: hidden;
        display: grid; grid-template-columns: 196px 1fr; grid-template-rows: 56px minmax(0, 1fr);
        box-shadow: 0 0 0 1px var(--border), 0 24px 64px -12px rgba(16, 24, 40, .28); animation: pop-in .2s var(--ease); }
.addc > header { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--border); }
.addc > header .t { font-size: 15px; font-weight: 600; margin-right: auto; }
.addc .field, .addc .field:focus-within { width: 260px; }
.addc nav { padding: 10px; border-right: 1px solid var(--border); background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; }
.addc nav .opt { color: var(--text-2); }
.addc nav .opt[aria-current="true"] { background: var(--surface); color: var(--text); font-weight: 500; box-shadow: 0 0 0 1px var(--border); }
.addc nav .opt .hint { font-variant-numeric: tabular-nums; }
.tiles { overflow: auto; padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.tiles .lbl { grid-column: 1 / -1; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin: 6px 0 -2px; }
.tiles .lbl:first-child { margin-top: 0; }
.ctile { display: flex; gap: 12px; padding: 12px; border-radius: 10px; text-align: left; box-shadow: 0 0 0 1px var(--border); transition: box-shadow .12s, background .12s; }
.ctile:hover { box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-ring); }
.ctile[aria-disabled="true"] { opacity: .55; cursor: default; }
.ctile[aria-disabled="true"]:hover { box-shadow: 0 0 0 1px var(--border); }
.ctile .bx { width: 32px; height: 32px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-strong); }
.ctile .bx.own { background: var(--green-wash); color: var(--green); }
.ctile b { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.ctile small { display: block; margin-top: 2px; font-size: 12px; line-height: 17px; color: var(--text-2); }
.ctile .tag { height: 16px; padding: 0 5px; border-radius: 4px; font-size: 10px; font-weight: 600; background: var(--green-wash); color: var(--green); display: inline-flex; align-items: center; }
.tiles .empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--text-3); }

/* ============ Conteúdo do Instagram (visão do Orbi) ============ */
.content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ct-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; min-height: 52px; padding: 10px 20px; flex: none; }
.ct-bar .field { width: 160px; } .ct-bar .field:focus-within { width: 220px; }
.ct-bar .grow { flex: 1; }
.segf { display: flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-soft); }
.segf button { height: 26px; padding: 0 10px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 500; white-space: nowrap; }
.segf button:hover { color: var(--text); }
.segf button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border), var(--shadow-sm); }
.segf .n { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.ct-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.ct-main.with-drawer { grid-template-columns: minmax(0, 1fr) 380px; }
/* com o painel aberto, a tabela fica só com o essencial (formato e números aparecem no painel) */
.with-drawer .ctr { grid-template-columns: 52px minmax(160px, 1fr) 128px 150px 56px; }
.with-drawer .ctr > :nth-child(2), .with-drawer .ctr > :nth-child(4), .with-drawer .ctr > :nth-child(5) { display: none; }
.ct-table { overflow: auto; padding: 0 20px 40px; }
.ctr { display: grid; grid-template-columns: 52px 92px minmax(220px, 1fr) 64px 64px 128px 150px 56px; align-items: center; column-gap: 12px; }
.ctr.hd { height: 34px; position: sticky; top: 0; z-index: 1; background: var(--surface); border-bottom: 1px solid var(--border); color: var(--text-3); font-size: 12px; font-weight: 500; }
.ctr.row { position: relative; min-height: 56px; border-bottom: 1px solid var(--border-soft); cursor: pointer; }
.ctr.row:hover { background: var(--surface-2); }
.ctr.row[aria-selected="true"] { background: var(--accent-wash); }
.ctr.row.is-new::before { content: ""; position: absolute; left: -12px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-50%); }
.ctr .r { text-align: right; }
.ctr .dt { color: var(--text-2); }
.post { display: flex; align-items: center; gap: 10px; min-width: 0; }
.thumb { width: 36px; height: 36px; border-radius: 8px; flex: none; display: grid; place-items: center; }
.post .txt { min-width: 0; }
.post .t1 { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post .t2 { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; }
.post .t2 .i { width: 12px; height: 12px; }
.ph-dash { display: inline-block; width: 10px; height: 1.5px; border-radius: 1px; background: var(--text-3); vertical-align: middle; }
.pbtn { max-width: 100%; height: 24px; padding: 0 8px; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pbtn .d, .selbtn .d { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.pbtn:hover { filter: brightness(.97); box-shadow: 0 0 0 1px var(--border-strong); }
.pbtn.empty { color: var(--text-3); padding: 0 6px; opacity: 0; }
.ctr.row:hover .pbtn.empty, .ctr.row[aria-selected="true"] .pbtn.empty { opacity: 1; }
.pbtn.empty:hover { background: var(--surface-3); filter: none; box-shadow: none; }
.ct-acts { display: flex; justify-content: flex-end; gap: 2px; opacity: 0; }
.ctr.row:hover .ct-acts, .ctr.row[aria-selected="true"] .ct-acts { opacity: 1; }
.ct-acts .mini:hover { background: var(--surface-3); color: var(--text); }
.ct-empty { padding: 64px 0; text-align: center; color: var(--text-3); }
.spin { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Painel lateral de detalhes */
.ct-drawer { min-height: 0; display: flex; flex-direction: column; border-left: 1px solid var(--border); background: var(--surface); animation: slide-in .18s var(--ease); }
@keyframes slide-in { from { opacity: 0; transform: translateX(12px); } }
.ct-dh { height: 52px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 16px; border-bottom: 1px solid var(--border); }
.ct-dh .t { font-weight: 600; margin-right: auto; }
.ct-db { flex: 1; min-height: 0; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.ct-db > * { flex: none; }
.ct-df { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--border); }
.dthumb { height: 140px; border-radius: 10px; display: grid; place-items: center; }
.dthumb .i { width: 28px; height: 28px; }
.dl { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; color: var(--text-3); }
.dgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.drawer-open .prefs { display: none; }   /* botão de exibição do protótipo não cobre o rodapé do painel */
.inp { display: block; width: 100%; height: 34px; padding: 0 10px; border-radius: var(--radius); background: var(--surface); color: var(--text);
       box-shadow: 0 0 0 1px var(--border-strong); transition: box-shadow .12s; }
.inp:hover { box-shadow: 0 0 0 1px var(--text-3); }
.inp:focus, .inp:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-ring); }
.inp.err { box-shadow: 0 0 0 1px var(--red), 0 0 0 4px var(--red-wash); }
textarea.inp { height: auto; min-height: 72px; padding: 8px 10px; line-height: 20px; resize: none; }
input.inp::-ms-reveal, input.inp::-ms-clear { display: none; }
.selbtn { width: 100%; height: 34px; padding: 0 10px; border-radius: var(--radius); display: flex; align-items: center; gap: 8px; box-shadow: 0 0 0 1px var(--border-strong); white-space: nowrap; overflow: hidden; }
.selbtn:hover { box-shadow: 0 0 0 1px var(--text-3); }
.selbtn span { overflow: hidden; text-overflow: ellipsis; }
.selbtn > .i:last-child { margin-left: auto; color: var(--text-3); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats > div { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.stats b { display: block; font-weight: 600; }
.hintbox { padding: 8px 10px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); font-size: 12px; line-height: 17px; display: flex; gap: 8px; }
.hintbox .i { flex: none; margin-top: 1px; color: var(--text-3); }

/* Conexão do Instagram (só o Elias) */
.pop.conn { width: 352px; padding: 14px; }
.conn .top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.conn .top b { display: block; }
.igav { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF); }
.conn dl { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 9px 10px; margin: 0; font-size: 12.5px; }
.conn dt { color: var(--text-3); }
.conn dd { margin: 0; display: flex; align-items: center; gap: 6px; min-width: 0; }
.conn hr { margin: 12px -14px; }
.linkbtn { margin-left: auto; color: var(--accent-strong); font-weight: 500; }
.linkbtn:hover { text-decoration: underline; }
.conn .switch { padding: 0; margin-top: 2px; }
.conn .hintbox { margin-top: 12px; }

/* Aviso rápido */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translateX(-50%); display: flex; align-items: center; gap: 8px;
         padding: 10px 14px; border-radius: 10px; background: #1A1D23; color: #fff; box-shadow: var(--shadow-pop); animation: pop-in .2s var(--ease); }
.toast .i { color: #3CCB7F; }
:root[data-theme="dark"] .toast { background: #2A3040; box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-pop); }

/* ============ Tabela (planilha) ============ */
.table-v { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chip[aria-pressed="true"] { background: var(--accent-wash); color: var(--accent-strong); box-shadow: 0 0 0 1px var(--accent-ring); }
.chip[aria-pressed="true"] b { color: var(--accent-strong); }
.tb-wrap { flex: 1; min-height: 0; overflow: auto; margin: 0 20px 16px; border-radius: 10px; box-shadow: 0 0 0 1px var(--border); user-select: none; }
.tb-grid { display: grid; width: max-content; min-width: 100%; --trow: 40px; }
.tb-grid.h-s { --trow: 32px; } .tb-grid.h-l { --trow: 60px; }
.tr { display: contents; }
.tc { position: relative; height: var(--trow); min-width: 0; display: flex; align-items: center; gap: 6px; padding: 0 10px; overflow: hidden; white-space: nowrap;
      background: var(--surface); border-right: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
      isolation: isolate; }   /* avatares e selos não passam por cima da coluna fixada */
.tr:hover > .tc:not(.inr):not(.cur) { background: var(--surface-2); }
.tc.hd { height: 34px; position: sticky; top: 0; z-index: 3; background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 500; cursor: pointer; }
.tc.hd:hover { color: var(--text); background: var(--surface-3); }
.tc.hd .i { width: 14px; height: 14px; color: var(--text-3); }
.tc.hd .pinmark { margin-left: auto; display: grid; color: var(--accent); }
.tc.hd .pinmark .i { color: var(--accent); }
.tc.pin { position: sticky; z-index: 2; }
.tc.hd.pin { z-index: 4; }
.tc.last-pin { box-shadow: 1px 0 0 var(--border), 6px 0 8px -6px rgba(16, 24, 40, .18); }
.tc.num { justify-content: center; padding: 0; color: var(--text-3); font-size: 12px; cursor: pointer; font-variant-numeric: tabular-nums; }
.tc.num:not(.hd):hover { color: var(--accent-strong); }
.tc.rt { justify-content: flex-end; }
.tc.ro { color: var(--text-2); }
.tc.inr { background: var(--accent-wash); }
.tc.cur::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--accent); border-radius: 2px; pointer-events: none; }
.tc.fillr { background: var(--accent-wash); }
.tc.fillr::after { content: ""; position: absolute; inset: 1px; border: 1.5px dashed var(--accent); pointer-events: none; }
.fillh { position: absolute; right: 1px; bottom: 1px; z-index: 2; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 0 2px var(--surface); cursor: crosshair; }
.tc .late { color: var(--red); font-weight: 500; } .tc .today { color: var(--orange); font-weight: 500; }
.tname { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.tname > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.h-l .tname > span:last-child { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 18px; }
.tsub { color: var(--text-3); display: grid; flex: none; padding-left: 14px; }
.tdesc { color: var(--text-3); display: grid; flex: none; }
.tdesc .i { width: 14px; height: 14px; }
.topen { margin-left: auto; opacity: 0; flex: none; }
.tr:hover .topen, .tc.cur .topen { opacity: 1; }
.topen:hover { background: var(--surface-3); color: var(--text); }
.tc .tag + .tag { margin-left: -2px; }
.tinput { position: absolute; inset: 0; z-index: 3; padding: 0 10px; background: var(--surface); color: var(--text); font-weight: 500; border-radius: 2px; box-shadow: inset 0 0 0 2px var(--accent); }
.tinput.rt { text-align: right; }
.tc.plus { justify-content: center; padding: 0; }
.tc.plus .i { color: var(--text-3); }
.tc.filler { border-right: 0; }
.tc.addrow { grid-column: 1 / -1; color: var(--text-3); cursor: pointer; padding-left: 54px; border-right: 0; overflow: visible; }
.addin { position: sticky; left: 54px; display: inline-flex; align-items: center; gap: 6px; }   /* segue visível ao rolar para o lado */
.tc.addrow:hover { color: var(--text); }
.tc.ft { height: 34px; position: sticky; bottom: 0; z-index: 3; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 0; font-size: 12px; cursor: pointer; justify-content: flex-end; }
.tc.ft.pin { z-index: 4; }
.tc.ft .calc-empty { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); opacity: 0; transition: opacity .12s; }
.tc.ft:hover .calc-empty { opacity: 1; }
.tc.ft .muted { margin-right: 2px; }
.tc.ft b { font-weight: 600; color: var(--text); }
.tc.ft:hover { background: var(--surface-2); }

/* ============ Carga de trabalho (Workload) ============ */
.workload { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.wl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; min-height: 52px; padding: 10px 20px; flex: none; }
.wl-bar .grow { flex: 1; }
.wl-bar .title { font-size: 15px; font-weight: 600; margin: 0 6px; white-space: nowrap; }
.wl-legend { display: flex; gap: 12px; font-size: 12px; color: var(--text-2); margin-right: 6px; }
.wl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wl-legend i { width: 10px; height: 10px; border-radius: 3px; }
.wl-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.wl-main.with-side { grid-template-columns: minmax(0, 1fr) 260px; }
.wl-wrap { overflow: auto; margin: 0 20px 16px; border-radius: 10px; box-shadow: 0 0 0 1px var(--border); user-select: none; }
.wl-grid { display: grid; width: 100%; }
.wl-h { position: sticky; top: 0; z-index: 3; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 16px;
        background: var(--surface-2); border-bottom: 1px solid var(--border); border-right: 1px solid var(--border-soft); color: var(--text-2); font-size: 12px; }
.wl-h b { font-size: 13px; font-weight: 600; color: var(--text); }
.wl-h.off { color: var(--text-3); }
.wl-h.off b { color: var(--text-3); font-weight: 500; }
.wl-h.today b { min-width: 22px; height: 20px; padding: 0 5px; border-radius: 6px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.wl-h.corner { left: 0; z-index: 4; align-items: flex-start; padding-left: 14px; }
.wl-p { position: sticky; left: 0; z-index: 2; height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 6px;
        background: var(--surface); border-bottom: 1px solid var(--border-soft); border-right: 1px solid var(--border); }
.wl-p .tog { display: flex; align-items: center; gap: 8px; min-width: 0; height: 32px; padding: 0 6px 0 2px; border-radius: 6px; font-weight: 600; }
.wl-p .tog:hover { background: var(--surface-2); }
.wl-p .tog .chev { color: var(--text-3); transition: transform .15s var(--ease); }
.wl-p .tog[aria-expanded="false"] .chev { transform: rotate(-90deg); }
.wl-p .tog span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.capbtn { margin-left: auto; flex: none; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 12px; color: var(--text-2); box-shadow: 0 0 0 1px var(--border); }
.capbtn:hover { color: var(--text); box-shadow: 0 0 0 1px var(--border-strong); background: var(--surface-2); }
.wl-c { height: 52px; padding: 6px 5px; border-bottom: 1px solid var(--border-soft); border-right: 1px solid var(--border-soft); background: var(--surface); cursor: pointer; }
.wl-c.off, .wl-bg.off { background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, var(--surface) 6px 12px); }
.wl-c .v { height: 100%; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 15px; font-size: 12px; font-variant-numeric: tabular-nums; }
.wl-c .v b { font-size: 13px; font-weight: 600; }
.wl-c .v.ok { background: var(--green-wash); color: var(--green); }
.wl-c .v.near { background: var(--orange-wash); color: var(--orange); }
.wl-c .v.over { background: var(--red-wash); color: var(--red); }
.wl-c .v.none { color: var(--text-3); }
.wl-c .v.neutral { background: var(--gray-wash); color: var(--text-2); }
.wl-c:hover .v.none { background: var(--surface-2); }
.wl-c:hover .v.none::after { content: "+"; font-size: 16px; color: var(--text-3); }
.wl-c[data-drop] .v, .wl-bg[data-drop] { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-wash); }
.wl-lane { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
.wl-lane > * { grid-row: 1; height: 36px; }
.wl-lane .lp { grid-column: 1; position: sticky; left: 0; z-index: 2; background: var(--surface); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border-soft); }
.wl-bg { border-right: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: var(--surface); cursor: pointer; }
.wl-tb { z-index: 1; min-width: 0; margin: 5px 3px; height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 8px 0 0; overflow: hidden; white-space: nowrap; cursor: grab;
         border-radius: 6px; background: var(--surface); box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-sm); font-size: 12px; font-weight: 500; }
.wl-tb:hover { box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm); }
.wl-tb .bar { width: 3px; align-self: stretch; flex: none; }
.wl-tb .tt { overflow: hidden; text-overflow: ellipsis; }
.wl-tb .meta { margin-left: auto; color: var(--text-3); font-weight: 400; flex: none; padding-left: 6px; }
.wl-tb.done .tt { text-decoration: line-through; color: var(--text-3); }
.wl-tb.dragging { opacity: .35; }
.wl-ghost { position: fixed; z-index: 60; pointer-events: none; height: 28px; max-width: 260px; display: flex; align-items: center; gap: 6px; padding: 0 10px 0 0; overflow: hidden;
            border-radius: 6px; background: var(--surface); box-shadow: 0 0 0 1px var(--border), var(--shadow-pop); transform: rotate(1.5deg); font-size: 12px; font-weight: 500; white-space: nowrap; }
.wl-ghost .bar { width: 3px; align-self: stretch; }
.wl-empty { grid-column: 2 / -1; grid-row: 1; z-index: 1; align-self: center; padding-left: 12px; color: var(--text-3); font-size: 12px; pointer-events: none; }
.wl-side { border-left: 1px solid var(--border); padding: 0 14px 16px; overflow: auto; }
.wl-side h3 { margin: 0; height: 52px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; }
.wl-side .chip-task { margin-bottom: 6px; cursor: grab; }
.wl-side p { margin: 10px 0 0; color: var(--text-3); font-size: 12px; line-height: 18px; }

/* Capacidade por pessoa */
.pop.capp { width: 300px; padding: 12px; }
.capp .hd { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 600; }
.capp .def { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); font-size: 12px; margin-bottom: 8px; }
.capp .row { display: grid; grid-template-columns: 24px 1fr 76px; align-items: center; gap: 8px; height: 34px; }
.capp .row.off .lbl { color: var(--text-3); }
.capp .inp { height: 28px; text-align: right; padding: 0 8px; }
.capp .inp:disabled { opacity: .45; }
.capp .tot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border-soft); font-size: 12.5px; }
.capp .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.cbx { width: 16px; height: 16px; border-radius: 4px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--border-strong); background: var(--surface); }
.cbx[aria-checked="true"] { background: var(--accent); box-shadow: none; color: #fff; }
.cbx .i { width: 12px; height: 12px; stroke-width: 2.5; opacity: 0; }
.cbx[aria-checked="true"] .i { opacity: 1; }

/* ============ Gantt e Linha do tempo (escala de tempo comum) ============ */
.gantt, .timeline { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.gt-scroll { flex: 1; min-height: 0; overflow: auto; margin: 0 20px 16px; border-radius: 10px; box-shadow: 0 0 0 1px var(--border); position: relative; user-select: none; }
.gt-inner { position: relative; display: grid; }
.gt-sh { position: sticky; top: 0; left: 0; z-index: 6; height: 52px; display: flex; align-items: flex-end; padding: 0 12px 8px; background: var(--surface-2);
         border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--text-2); font-size: 12px; font-weight: 500; }
.gt-th { position: sticky; top: 0; z-index: 5; height: 52px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.gt-th .top, .gt-th .bot { position: absolute; left: 0; right: 0; height: 26px; }
.gt-th .top { top: 0; } .gt-th .bot { top: 26px; }
.gt-th .lab { position: absolute; top: 0; height: 26px; display: flex; align-items: center; padding-left: 8px; font-size: 12px; color: var(--text-2); white-space: nowrap; border-left: 1px solid var(--border-soft); }
.gt-th .top .lab { font-weight: 600; color: var(--text); }
.gt-th .bot .lab { justify-content: center; padding: 0; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.gt-th .bot .lab.off { color: var(--text-3); }
.gt-th .bot .lab.today { color: #fff; font-weight: 600; }
.gt-th .bot .lab.today span { min-width: 20px; height: 18px; padding: 0 4px; border-radius: 5px; background: var(--accent); display: grid; place-items: center; }
.gt-bg { position: absolute; z-index: 0; pointer-events: none; }
.gt-bg .off { position: absolute; top: 0; bottom: 0; background: var(--surface-2); }
.gt-bg .now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); opacity: .7; }
.gt-sr { position: sticky; left: 0; z-index: 4; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 10px; min-width: 0;
         background: var(--surface); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border-soft); white-space: nowrap; }
.gt-sr.lst { font-weight: 600; background: var(--surface-2); }
.gt-sr.lst .tog { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; text-align: left; }
.gt-sr.lst .tog .chev { display: grid; color: var(--text-3); transition: transform .15s var(--ease); }
.gt-sr.lst .tog[aria-expanded="false"] .chev { transform: rotate(-90deg); }
.gt-sr.lst .pct { margin-left: auto; color: var(--text-3); font-weight: 500; font-size: 12px; }
.gt-sr.task { padding-left: 34px; cursor: pointer; }
.gt-sr.task:hover { background: var(--surface-2); }
.gt-sr .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gt-sr .nodate { margin-left: auto; color: var(--text-3); font-size: 11.5px; flex: none; }
.gt-sr .st { width: 13px; height: 13px; border-width: 1.5px; }
.gt-sr .ms { width: 10px; height: 10px; transform: rotate(45deg); border-radius: 2px; background: var(--orange); flex: none; margin: 0 2px; }
.gt-cr { position: relative; z-index: 1; height: 36px; border-bottom: 1px solid var(--border-soft); }
.gt-cr.lst { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.gt-bar { position: absolute; top: 7px; height: 22px; border-radius: 6px; display: flex; align-items: center; cursor: grab; color: #fff; font-size: 12px; font-weight: 500;
          box-shadow: inset 0 -1px 0 rgba(0,0,0,.12); }
.gt-bar .in { padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.gt-bar.done { opacity: .7; }
.gt-bar:hover, .gt-bar.active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent-ring); }
.gt-lbl { position: absolute; top: 7px; height: 22px; display: flex; align-items: center; padding-left: 8px; font-size: 12px; color: var(--text-2); white-space: nowrap; pointer-events: none; }
.gt-h { position: absolute; top: 0; bottom: 0; width: 8px; cursor: ew-resize; }
.gt-h.l { left: -2px; } .gt-h.r { right: -2px; }
.gt-h::after { content: ""; position: absolute; top: 5px; bottom: 5px; left: 3px; width: 2px; border-radius: 2px; background: rgba(255,255,255,.8); opacity: 0; }
.gt-bar:hover .gt-h::after { opacity: 1; }
.gt-node { position: absolute; right: -16px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--accent); cursor: crosshair; opacity: 0; }
.gt-bar:hover .gt-node, .gt-ms:hover .gt-node { opacity: 1; }
.gt-node:hover { background: var(--accent); }
.gt-ms { position: absolute; top: 9px; width: 18px; height: 18px; margin-left: -9px; cursor: grab; }
.gt-ms::before { content: ""; position: absolute; inset: 2px; transform: rotate(45deg); border-radius: 3px; background: var(--orange); box-shadow: 0 0 0 2px var(--surface); }
.gt-ms .gt-node { right: -20px; top: 3px; }
.gt-sum { position: absolute; top: 13px; height: 10px; border-radius: 5px; background: var(--border-strong); cursor: grab; overflow: hidden; }
.gt-sum i { display: block; height: 100%; background: var(--green); }
.gt-sum:hover { box-shadow: 0 0 0 2px var(--accent-ring); }
.gt-sched { position: absolute; top: 7px; height: 22px; border-radius: 6px; border: 1.5px dashed var(--accent); background: var(--accent-wash); color: var(--accent-strong);
            font-size: 11.5px; font-weight: 500; display: none; align-items: center; justify-content: center; white-space: nowrap; pointer-events: none; }
.gt-cr.unsched:hover .gt-sched { display: flex; }
.gt-cr.unsched { cursor: pointer; }
.gt-arrows { position: absolute; z-index: 3; pointer-events: none; overflow: visible; }
.gt-arrows path { fill: none; stroke: var(--text-3); stroke-width: 1.5; pointer-events: stroke; cursor: pointer; }
.gt-arrows path.hit { stroke: transparent; stroke-width: 10; }
.gt-arrows path.vis, .gt-arrows path.head { pointer-events: none; }   /* só a faixa larga invisível recebe o clique */
.gt-arrows path.hit:hover + path.vis { stroke: var(--accent); }
.gt-arrows path.bad { stroke: var(--red); }
.gt-arrows path.vis.hover { stroke: var(--accent); }
.gt-arrows .temp { stroke: var(--accent); stroke-dasharray: 4 3; pointer-events: none; }
.gt-arrows marker path { fill: var(--text-3); stroke: none; }

.tl-gl { position: sticky; left: 0; z-index: 4; display: flex; align-items: flex-start; gap: 8px; padding: 12px 12px 0; min-width: 0; font-weight: 600;
         background: var(--surface); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tl-gl .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-gl .n { margin-left: auto; color: var(--text-3); font-weight: 500; font-size: 12px; }
.tl-gl .st { width: 14px; height: 14px; margin-top: 3px; }
.tl-gl .sq { margin-top: 5px; }
.tl-gc { position: relative; z-index: 1; border-bottom: 1px solid var(--border); cursor: cell; }
.tl-gc[data-drop] { background: color-mix(in srgb, var(--accent-wash) 70%, transparent); box-shadow: inset 0 0 0 2px var(--accent); }
.tl-gc .gt-bar { top: auto; height: 24px; }
.tl-gc .gt-lbl { height: 24px; }
.wl-side .label { color: var(--text-3); }

/* ============ Páginas pessoais: Inbox e Minhas tarefas ============ */
.page { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pg-head { flex: none; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px; }
.pg-head h1 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.pg-head h1 .i { width: 18px; height: 18px; color: var(--text-3); }
.pg-head .grow { flex: 1; }
.pg-tabs { flex: none; display: flex; align-items: flex-end; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--border); }
.pg-tabs .tab .n { color: var(--text-3); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.pg-tabs .tab[aria-selected="true"] .n { color: var(--accent-strong); }
.pg-bar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 20px; }
.pg-bar .grow { flex: 1; }
.kbd-hint { font-size: 11px; color: var(--text-3); margin-left: 2px; }

/* Inbox */
.ib { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(340px, 440px) minmax(0, 1fr); border-top: 1px solid var(--border); }
.ib-list { overflow: auto; border-right: 1px solid var(--border); padding: 6px 8px 24px; }
.ib-date { padding: 12px 8px 6px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.ib-item { position: relative; display: grid; grid-template-columns: 10px 1fr auto; gap: 2px 8px; padding: 10px 10px 10px 8px; border-radius: 8px; cursor: pointer; }
.ib-item:hover { background: var(--surface-2); }
.ib-item[aria-selected="true"] { background: var(--accent-wash); }
.ib-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 7px; }
.ib-item.read .dot { background: transparent; }
.ib-item .t { min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.ib-item.read .t { font-weight: 500; color: var(--text-2); }
.ib-item .t .cnt { flex: none; height: 18px; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--surface-3); color: var(--text-2); font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.ib-item .when { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.ib-item .sub { grid-column: 2 / 4; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.ib-item .sub .tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-item .path { grid-column: 2 / 4; font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-item .kind { flex: none; display: grid; color: var(--text-3); }
.ib-item .kind .i { width: 14px; height: 14px; }
.ib-acts { position: absolute; right: 8px; top: 8px; display: none; gap: 2px; padding: 2px; border-radius: 7px; background: var(--surface); box-shadow: 0 0 0 1px var(--border), var(--shadow-sm); }
.ib-item:hover .ib-acts { display: flex; }
.ib-acts .mini:hover { background: var(--surface-3); color: var(--text); }
.ib-empty { padding: 60px 20px; text-align: center; color: var(--text-3); }
.ib-empty b { display: block; color: var(--text); font-size: 14px; margin-bottom: 4px; }
.ib-detail { overflow: auto; display: flex; flex-direction: column; }
.ib-dh { flex: none; display: flex; align-items: center; gap: 8px; padding: 14px 20px 12px; border-bottom: 1px solid var(--border-soft); }
.ib-dh .ti { min-width: 0; flex: 1; }
.ib-dh .ti b { display: block; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-dh .ti span { font-size: 12px; color: var(--text-3); }
.ib-feed { flex: 1; padding: 14px 20px; display: flex; flex-direction: column; gap: 12px; }
.ib-ev { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.ib-ev .av { width: 28px; height: 28px; font-size: 11px; }
.ib-ev .hd { font-size: 13px; color: var(--text-2); }
.ib-ev .hd b { color: var(--text); font-weight: 600; }
.ib-ev .hd .w { color: var(--text-3); font-size: 12px; margin-left: 6px; }
.ib-ev .bubble { margin-top: 4px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); line-height: 20px; }
.ib-ev.mine .bubble { background: var(--accent-wash); }
.ib-reply { flex: none; display: flex; gap: 8px; align-items: flex-end; padding: 12px 20px 16px; border-top: 1px solid var(--border-soft); }
.ib-reply textarea.inp { min-height: 40px; height: 40px; max-height: 140px; }
.mention { color: var(--accent-strong); font-weight: 500; background: var(--accent-wash); border-radius: 4px; padding: 0 3px; }

/* Minhas tarefas */
.mt { flex: 1; min-height: 0; overflow: auto; padding: 16px 20px 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 16px; align-content: start; }
.mt.one { grid-template-columns: minmax(0, 1fr); }
.mt .ov-card { min-height: 0; }
.mw-tabs { display: flex; gap: 2px; margin-left: auto; }
.mw-sec { margin-top: 6px; }
.mw-sh { display: flex; align-items: center; gap: 8px; height: 32px; width: 100%; font-weight: 600; font-size: 12.5px; text-align: left; }
.mw-sh .chev { display: grid; color: var(--text-3); transition: transform .15s var(--ease); }
.mw-sh[aria-expanded="false"] .chev { transform: rotate(-90deg); }
.mw-sh .n { color: var(--text-3); font-weight: 500; }
.mw-sh.late { color: var(--red); }
.mw-row { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 6px; margin: 0 -6px; border-radius: 6px; }
.mw-row:hover { background: var(--surface-2); }
.mw-row .tt { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.mw-row .tt:hover { color: var(--accent-strong); }
.mw-row .loc { flex: none; font-size: 11.5px; color: var(--text-3); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-row .chipl { flex: none; height: 24px; padding: 0 6px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 12px; }
.mw-row .chipl:hover { background: var(--surface-3); }
.mw-row .chipl.late { color: var(--red); font-weight: 500; } .mw-row .chipl.today { color: var(--orange); font-weight: 500; }
.mw-row.done .tt { text-decoration: line-through; color: var(--text-3); }
.ckc { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--border-strong); color: transparent; transition: background .12s, box-shadow .12s; }
.ckc:hover { box-shadow: inset 0 0 0 1.5px var(--green); color: var(--green); }
.ckc[aria-checked="true"] { background: var(--green); box-shadow: none; color: #fff; }
.ckc .i { width: 12px; height: 12px; stroke-width: 2.5; }
.mw-add { display: flex; align-items: center; gap: 8px; height: 34px; color: var(--text-3); width: 100%; text-align: left; }
.mw-add:hover { color: var(--text); }
.mw-add-in { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px; border-radius: 6px; box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-ring); margin: 2px 0; }
.mw-add-in input { flex: 1; height: 100%; }
.mw-add-in input:focus-visible { outline: none; }
.ag-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.ag-day { font-weight: 600; font-size: 13px; padding: 0 4px; }
.ag-list { display: flex; flex-direction: column; gap: 6px; }
.ag-it { display: grid; grid-template-columns: 52px 3px 1fr; gap: 10px; align-items: stretch; min-height: 40px; }
.ag-it .h { font-size: 12px; color: var(--text-3); padding-top: 3px; font-variant-numeric: tabular-nums; }
.ag-it .b { border-radius: 2px; }
.ag-it .c { padding: 2px 0; min-width: 0; }
.ag-it .c b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-it .c span { font-size: 12px; color: var(--text-3); }
.gsrc { height: 16px; padding: 0 5px; border-radius: 4px; font-size: 10px; font-weight: 600; display: inline-flex; align-items: center; background: var(--accent-wash); color: var(--accent-strong); margin-left: 6px; vertical-align: 1px; }
.mt-table .mw-row { border-bottom: 1px solid var(--border-soft); border-radius: 0; margin: 0; }
.pl-note { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.on-page .main > :not(#page) { display: none !important; }
.on-page .prefs { display: none; }   /* botão de exibição do protótipo não cobre a resposta */

/* ============ Barra de comando (Ctrl+K) e atalhos ============ */
button.search { width: calc(100% - 16px); text-align: left; cursor: pointer; }
button.search:hover { box-shadow: 0 0 0 1px var(--border-strong); }
.search .ph { flex: 1; }
.overlay.top { place-items: start center; padding-top: 11vh; }
.cmdk { width: min(660px, calc(100vw - 32px)); max-height: min(560px, 78vh); background: var(--surface); border-radius: 14px; overflow: hidden;
      box-shadow: 0 0 0 1px var(--border), 0 24px 64px -12px rgba(16, 24, 40, .32); display: flex; flex-direction: column; animation: pop-in .16s var(--ease); }
.ck-in { flex: none; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--border); color: var(--text-3); }
.ck-in .i { width: 18px; height: 18px; }
.ck-in input { flex: 1; min-width: 0; height: 100%; font-size: 15px; color: var(--text); }
.ck-in input:focus-visible { outline: none; }
.ck-mode { flex: none; height: 26px; padding: 0 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; background: var(--accent-wash);
           color: var(--accent-strong); font-size: 12px; font-weight: 600; white-space: nowrap; }
.ck-mode .i { width: 14px; height: 14px; }
.ck-chips { flex: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--border-soft); }
.ck-chip { height: 26px; padding: 0 10px; border-radius: 13px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.ck-chip:hover { background: var(--surface-2); color: var(--text); }
.ck-chip[aria-pressed="true"] { background: var(--accent-wash); color: var(--accent-strong); }
.ck-chip .n { color: var(--text-3); font-variant-numeric: tabular-nums; font-size: 11.5px; }
.ck-chip[aria-pressed="true"] .n { color: inherit; opacity: .75; }
.ck-list { flex: 1; min-height: 0; overflow: auto; padding: 4px 8px 8px; }
.ck-lbl { padding: 10px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); display: flex; }
.ck-lbl .more { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--accent-strong); }
.ck-lbl .more:hover { text-decoration: underline; }
.ck-it { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 5px 10px; border-radius: 8px; text-align: left; }
.ck-it[aria-selected="true"] { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.ck-it .lead { flex: none; width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.ck-it[aria-selected="true"] .lead { background: var(--surface); }
.ck-it .lead .i { width: 15px; height: 15px; }
.ck-it .lead .st { width: 14px; height: 14px; border-width: 1.5px; }
.ck-it .lead.sp { color: #fff; font-size: 12px; font-weight: 600; }
.ck-it .tx { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.ck-it .tx b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-it.done .tx b { color: var(--text-3); text-decoration: line-through; }
.ck-it .tx small { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-it mark { background: var(--orange-wash); color: inherit; border-radius: 3px; padding: 0 1px; }
.ck-it .meta { flex: none; display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12px; }
.ck-it .meta .late { color: var(--red); font-weight: 500; }
.ck-it .go { flex: none; color: var(--text-3); opacity: 0; display: grid; }
.ck-it[aria-selected="true"] .go { opacity: 1; }
.ck-empty { padding: 36px 20px; text-align: center; color: var(--text-3); }
.ck-empty b { display: block; color: var(--text); font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.ck-foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 8px 16px; border-top: 1px solid var(--border-soft);
           background: var(--surface-2); font-size: 11.5px; color: var(--text-3); }
.ck-foot span { display: inline-flex; align-items: center; gap: 5px; }
.ck-foot .kbd { background: var(--surface); }

/* Janela de atalhos */
.keys { width: min(760px, calc(100vw - 32px)); max-height: min(620px, calc(100vh - 48px)); background: var(--surface); border-radius: 14px; overflow: hidden;
        box-shadow: 0 0 0 1px var(--border), 0 24px 64px -12px rgba(16, 24, 40, .28); display: flex; flex-direction: column; animation: pop-in .16s var(--ease); }
.keys > header { flex: none; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--border); }
.keys > header .t { font-size: 15px; font-weight: 600; margin-right: auto; }
.keys-body { overflow: auto; padding: 8px 20px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 32px; }
.keys-sec h3 { margin: 14px 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.keys-row { display: flex; align-items: center; gap: 12px; min-height: 32px; border-bottom: 1px solid var(--border-soft); }
.keys-row span:first-child { flex: 1; color: var(--text-2); }
.keys-row .ks { display: flex; gap: 4px; }
.keys-row .kbd { min-width: 22px; text-align: center; }

/* ============ Configurações: pessoas, acessos, equipes, permissões ============ */
.stg { flex: 1; min-height: 0; display: grid; grid-template-columns: 232px minmax(0, 1fr); border-top: 1px solid var(--border); }
.stg-nav { overflow: auto; padding: 12px 8px; border-right: 1px solid var(--border); background: var(--surface-2); }
.stg-nav .lbl { padding: 10px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.stg-nav .opt { color: var(--text-2); }
.stg-nav .opt .i { color: var(--text-3); }
.stg-nav .opt[aria-current="true"] { background: var(--surface); color: var(--text); font-weight: 500; box-shadow: 0 0 0 1px var(--border); }
.stg-nav .opt[aria-current="true"] .i { color: var(--accent); }
.stg-main { overflow: auto; padding: 24px 32px 48px; }
.stg-in { max-width: 980px; }
.stg-h { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.stg-h > div { flex: 1; min-width: 0; }
.stg-h h2 { margin: 0 0 4px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.stg-h p { margin: 0; color: var(--text-2); max-width: 680px; line-height: 20px; }
.stg-card { border-radius: 10px; box-shadow: 0 0 0 1px var(--border); background: var(--surface); overflow: hidden; margin-bottom: 20px; }
.stg-card > h3 { margin: 0; padding: 12px 16px; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; gap: 8px; }
.stg-card > h3 small { font-weight: 400; color: var(--text-3); font-size: 12px; }
.stg-row { display: grid; align-items: center; gap: 12px; min-height: 52px; padding: 6px 16px; border-bottom: 1px solid var(--border-soft); }
.stg-row:last-child { border-bottom: 0; }
.stg-row.hd { min-height: 36px; background: var(--surface-2); font-size: 12px; font-weight: 500; color: var(--text-3); }
.stg-row .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.stg-row .who b { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stg-row .who small { color: var(--text-3); font-size: 12px; }
.stg-row .mut { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ppl-grid { grid-template-columns: minmax(200px, 1.6fr) minmax(150px, 1fr) minmax(110px, .9fr) minmax(110px, .9fr) 112px 32px; }
.selo { height: 18px; padding: 0 6px; border-radius: 4px; font-size: 10.5px; font-weight: 600; display: inline-flex; align-items: center; margin-left: 6px; vertical-align: 1px;
        background: var(--surface-3); color: var(--text-2); }
.selo.own { background: var(--accent-wash); color: var(--accent-strong); }
.selo.pend { background: var(--orange-wash); color: var(--orange); }
.menu-btn { height: 28px; padding: 0 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--text); max-width: 100%; }
.menu-btn:hover { background: var(--surface-2); box-shadow: 0 0 0 1px var(--border); }
.menu-btn[aria-disabled="true"] { color: var(--text-3); cursor: default; }
.menu-btn[aria-disabled="true"]:hover { background: none; box-shadow: none; }
.menu-btn .i { width: 13px; height: 13px; color: var(--text-3); flex: none; }
.menu-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Acessos (tela central por pessoa) */
.acc-people { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.acc-person { height: 36px; padding: 0 12px 0 6px; border-radius: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; box-shadow: 0 0 0 1px var(--border); color: var(--text-2); }
.acc-person:hover { box-shadow: 0 0 0 1px var(--border-strong); color: var(--text); }
.acc-person[aria-pressed="true"] { box-shadow: 0 0 0 1.5px var(--accent); background: var(--accent-wash); color: var(--text); }
.acc-person small { color: var(--text-3); font-weight: 400; font-size: 12px; }
.acc-grid { grid-template-columns: minmax(220px, 1.4fr) 150px minmax(160px, 1fr); min-height: 42px; }
.acc-loc { display: flex; align-items: center; gap: 8px; min-width: 0; }
.acc-loc .sp { width: 18px; height: 18px; border-radius: 5px; color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center; flex: none; }
.acc-loc .i { width: 15px; height: 15px; color: var(--text-3); flex: none; }
.acc-loc .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-loc .lk { width: 12px; height: 12px; }
.lvl { height: 24px; padding: 0 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.lvl .i { width: 12px; height: 12px; opacity: .7; }
.lvl.full { background: var(--green-wash); color: var(--green); }
.lvl.edit { background: var(--accent-wash); color: var(--accent-strong); }
.lvl.comment { background: var(--violet-wash); color: var(--violet); }
.lvl.view { background: var(--gray-wash); color: var(--text-2); }
.lvl.none, .lvl.path { background: transparent; color: var(--text-3); box-shadow: inset 0 0 0 1px var(--border); font-weight: 500; }
button.lvl:hover { filter: brightness(.96); box-shadow: inset 0 0 0 1px var(--border-strong); }
.lvl[aria-disabled="true"] { cursor: default; }
.src { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; min-width: 0; }
.src b { color: var(--text-2); font-weight: 500; }
.src.direct b { color: var(--accent-strong); }
.acc-sum { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 16px; font-size: 12.5px; color: var(--text-2); border-bottom: 1px solid var(--border-soft); background: var(--surface-2); }
.acc-sum b { color: var(--text); }
.fld-grid { grid-template-columns: minmax(0, 1fr) auto; }
/* Equipes */
.teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.team { border-radius: 10px; box-shadow: 0 0 0 1px var(--border); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.team header { display: flex; align-items: center; gap: 10px; }
.team .tico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 600; flex: none; }
.team header b { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team p { margin: 0; color: var(--text-3); font-size: 12.5px; line-height: 18px; }
.team .mem { display: flex; align-items: center; gap: 8px; }
/* Permissões do Workspace */
.perm-grid { grid-template-columns: minmax(0, 1fr) repeat(3, 120px); min-height: 44px; }
.perm-grid > :not(:first-child) { justify-self: center; }
.perm-grid .nm b { font-weight: 500; display: block; }
.perm-grid .nm small { color: var(--text-3); font-size: 12px; }
.cbx { cursor: pointer; }
.cbx[aria-checked="true"] .i { opacity: 1; }
.cbx:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cbx[aria-checked="true"]:hover { box-shadow: none; filter: brightness(1.06); }
/* Segurança, log, integrações, preferências */
.set-grid { grid-template-columns: minmax(0, 1fr) auto; min-height: 60px; }
.stg-row .nm b { font-weight: 500; display: block; }
.stg-row .nm small { color: var(--text-3); font-size: 12.5px; line-height: 18px; display: block; }
.log-grid { grid-template-columns: 110px minmax(130px, .8fr) minmax(0, 2fr); min-height: 44px; }
.log-grid .tx { color: var(--text-2); line-height: 18px; }
.log-grid .tx b { color: var(--text); font-weight: 500; }
.intg-grid { grid-template-columns: 36px minmax(0, 1fr) auto; min-height: 64px; }
.intg-ico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.intg-ico .i { width: 18px; height: 18px; }
.ok-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--green); font-weight: 500; }
.ok-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.seg { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.seg button { height: 28px; padding: 0 12px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border), var(--shadow-sm); }
.seg .i { width: 14px; height: 14px; }
/* Convidar e compartilhar */
.pop.inv { width: 380px; padding: 14px; }
.pop.inv h4, .pop.share h4 { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.pop.inv .lbl2 { display: block; font-size: 12px; font-weight: 500; color: var(--text-2); margin: 10px 0 6px; }
.pop.inv .two { display: flex; gap: 8px; }
.pop.inv .two .menu-btn { flex: 1; justify-content: space-between; height: 34px; box-shadow: 0 0 0 1px var(--border-strong); }
.pop.inv .two .menu-btn .i { margin-left: auto; }
.pop.inv .note { margin: 10px 0 0; font-size: 12px; color: var(--text-3); line-height: 17px; }
.pop.inv .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.pop.share { width: 420px; padding: 14px 8px 8px; }
.pop.share h4 { padding: 0 8px; display: flex; align-items: center; gap: 8px; }
.pop.share .inrow { display: flex; gap: 8px; padding: 0 8px 10px; border-bottom: 1px solid var(--border-soft); }
.pop.share .inrow .inp { height: 32px; }
.pop.share .sh-row { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 8px; border-radius: 8px; }
.pop.share .sh-row:hover { background: var(--surface-2); }
.pop.share .sh-row .who { flex: 1; min-width: 0; }
.pop.share .sh-row .who b { font-weight: 500; display: block; }
.pop.share .sh-row .who small { color: var(--text-3); font-size: 12px; }
.pop.share .sh-foot { display: flex; align-items: center; gap: 8px; padding: 10px 8px 2px; margin-top: 6px; border-top: 1px solid var(--border-soft); }
.pop.share .sh-foot .lnk { margin-left: auto; color: var(--accent-strong); font-weight: 500; font-size: 12.5px; }
.pop.share .sh-foot .lnk:hover { text-decoration: underline; }

/* ============ Automações: painel único e editor Quando / Se / Então ============ */
.au-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.au-here { height: 28px; padding: 0 6px 0 10px; border-radius: 14px; display: inline-flex; align-items: center; gap: 6px; background: var(--accent-wash); color: var(--accent-strong); font-size: 12.5px; font-weight: 500; }
.au-here button { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.au-here button:hover { background: var(--surface); }
.au-here .i { width: 12px; height: 12px; }
.au-grid { grid-template-columns: 40px minmax(0, 1fr) minmax(120px, 180px) 104px 32px; min-height: 64px; }
.au-grid .nm b { font-weight: 500; }
.au-grid .nm small { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }
.au-chip { height: 20px; padding: 0 7px; border-radius: 5px; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 500; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.au-chip .i { width: 11px; height: 11px; flex: none; }
.au-chip.q { background: var(--violet-wash); color: var(--violet); }
.au-chip.s { background: var(--orange-wash); color: var(--orange); }
.au-chip.e { background: var(--green-wash); color: var(--green); }
.au-sep { color: var(--text-3); font-size: 11px; }
.au-runs { font-size: 12px; color: var(--text-3); line-height: 16px; }
.au-runs b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.au-grid.off .nm, .au-grid.off .mut { opacity: .55; }
.au-log { grid-template-columns: 110px minmax(150px, .9fr) minmax(0, 2fr); min-height: 44px; }
.au-log .tx { color: var(--text-2); line-height: 18px; }
.au-log .tx b { color: var(--text); font-weight: 500; }
.au-empty { padding: 40px 20px; text-align: center; color: var(--text-3); }
.au-empty b { display: block; color: var(--text); font-size: 14px; margin-bottom: 4px; }
/* editor */
.aed { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--surface); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
       box-shadow: 0 0 0 1px var(--border), 0 24px 64px -12px rgba(16, 24, 40, .28); animation: pop-in .16s var(--ease); }
.aed > header { flex: none; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--border); }
.aed > header .t { font-size: 15px; font-weight: 600; margin-right: auto; }
.aed-body { flex: 1; min-height: 0; overflow: auto; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.aed-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 240px); gap: 12px; margin-bottom: 12px; }
.aed-top label { display: block; font-size: 12px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.aed-top .menu-btn { width: 100%; height: 34px; justify-content: space-between; box-shadow: 0 0 0 1px var(--border-strong); }
.aed-blk { border-radius: 10px; box-shadow: 0 0 0 1px var(--border); padding: 12px 14px; position: relative; }
.aed-blk > h4 { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.aed-blk.q > h4 { color: var(--violet); } .aed-blk.s > h4 { color: var(--orange); } .aed-blk.e > h4 { color: var(--green); }
.aed-blk > h4 small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text-3); font-size: 12px; }
.aed-link { width: 2px; height: 14px; margin-left: 26px; background: var(--border-strong); }
.aed-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 36px; padding: 3px 0; }
.aed-row + .aed-row { border-top: 1px dashed var(--border-soft); }
.aed-row .n { width: 20px; height: 20px; border-radius: 50%; background: var(--green-wash); color: var(--green); font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
.aed-row .menu-btn { box-shadow: 0 0 0 1px var(--border); background: var(--surface); height: 30px; }
.aed-row .menu-btn.kind { font-weight: 600; }
.aed-row .menu-btn.empty { color: var(--text-3); box-shadow: 0 0 0 1px var(--border), inset 0 0 0 1px transparent; border: 1px dashed var(--border-strong); }
.aed-row .menu-btn.err { box-shadow: 0 0 0 1px var(--red), 0 0 0 3px var(--red-wash); }
.aed-row .inp { height: 30px; width: auto; flex: 1; min-width: 180px; }
.aed-row .rm { margin-left: auto; }
.aed-sub { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-left: 26px; }
.aed-sub .inp { flex: 1 1 240px; }
.aed-row .lbl3 { font-size: 12.5px; color: var(--text-3); }
.aed-add { height: 30px; padding: 0 8px; margin-top: 4px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 500; font-size: 12.5px; }
.aed-add:hover { background: var(--surface-2); color: var(--text); }
.aed-add[aria-disabled="true"] { opacity: .5; cursor: default; }
.aed-sum { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); font-size: 12.5px; line-height: 19px; }
.aed-sum b { color: var(--text); font-weight: 600; }
.aed > footer { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border); }
.aed > footer .sw { margin-right: auto; }
/* modelos */
.pop.tpl { width: 420px; max-height: 70vh; overflow: auto; }
.tpl-it { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; padding: 8px 10px; border-radius: 8px; text-align: left; white-space: normal; }
.tpl-it:hover { background: var(--surface-2); }
.tpl-it b { font-weight: 500; }
.tpl-it small { color: var(--text-3); font-size: 12px; line-height: 17px; }
.aed-add.err { color: var(--red); }

/* ============ Docs: hub, páginas e editor ============ */
.dh { flex: 1; min-height: 0; overflow: auto; padding: 0 20px 32px; }
.dh-grid { grid-template-columns: minmax(0, 1.6fr) minmax(120px, 1fr) 150px 110px 36px; min-height: 48px; cursor: pointer; }
.dh-grid:not(.hd):hover { background: var(--surface-2); }
.dh-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dh-name .dico { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-strong); flex: none; }
.dh-name .dico .i { width: 15px; height: 15px; }
.dh-name b { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-name small { font-size: 12px; color: var(--text-3); }
.dh-grid .lk { width: 12px; height: 12px; color: var(--text-3); vertical-align: -1px; margin-left: 4px; }
.star-btn { color: var(--text-3); }
.star-btn[aria-pressed="true"] { color: var(--orange); }
.star-btn[aria-pressed="true"] .i { fill: currentColor; }
.doc { flex: 1; min-height: 0; display: grid; grid-template-columns: 240px minmax(0, 1fr); border-top: 1px solid var(--border); }
.doc-side { overflow: auto; padding: 12px 8px; border-right: 1px solid var(--border); background: var(--surface-2); display: flex; flex-direction: column; gap: 1px; }
.doc-side .lbl { padding: 4px 8px 6px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); display: flex; align-items: center; }
.pg-it { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 4px 0 8px; border-radius: 6px; color: var(--text-2); cursor: pointer; }
.pg-it:hover { background: var(--surface-3); color: var(--text); }
.pg-it[aria-current="true"] { background: var(--surface); color: var(--text); font-weight: 500; box-shadow: 0 0 0 1px var(--border); }
.pg-it .i { width: 14px; height: 14px; color: var(--text-3); flex: none; }
.pg-it .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-it .acts { display: none; gap: 1px; }
.pg-it:hover .acts, .pg-it[aria-current="true"] .acts { display: flex; }
.pg-it .mini { width: 22px; height: 22px; }
.pg-it.drop-in { box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--accent-wash); }
.pg-it.drop-before { box-shadow: inset 0 2px 0 var(--accent); }
.doc-main { overflow: auto; position: relative; }
.doc-in { max-width: 760px; margin: 0 auto; padding: 28px 40px 120px; }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--text-3); font-size: 12.5px; margin-bottom: 14px; }
.doc-meta .who { display: inline-flex; align-items: center; gap: 6px; }
.doc-meta .saved { display: inline-flex; align-items: center; gap: 4px; }
.doc-meta .saved .i { width: 13px; height: 13px; color: var(--green); }
.doc-title { margin: 0 0 6px; font-size: 30px; line-height: 38px; font-weight: 700; letter-spacing: -.02em; outline: none; }
.doc-title:empty::before { content: "Sem título"; color: var(--text-3); }
.doc-rel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border-soft); font-size: 12.5px; color: var(--text-3); }
.dchip { height: 24px; padding: 0 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border);
         color: var(--text); font-size: 12.5px; font-weight: 500; cursor: pointer; max-width: 280px; vertical-align: 1px; user-select: none; text-decoration: none; }
.dchip:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent-strong); }
.dchip .st { width: 11px; height: 11px; border-width: 1.5px; }
.dchip .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dchip.done .t { text-decoration: line-through; color: var(--text-3); }
.dchip .x { display: grid; color: var(--text-3); margin-right: -4px; }
.dchip .x .i { width: 11px; height: 11px; }
.ded { outline: none; font-size: 15px; line-height: 26px; color: var(--text); min-height: 300px; }
.ded:empty::before { content: "Escreva aqui, ou digite / para inserir títulos, listas, tarefas..."; color: var(--text-3); }
.ded > * { margin: 0 0 10px; }
.ded h1 { font-size: 24px; line-height: 32px; margin: 26px 0 10px; font-weight: 700; letter-spacing: -.01em; }
.ded h2 { font-size: 19px; line-height: 28px; margin: 22px 0 8px; font-weight: 600; }
.ded h3 { font-size: 16px; line-height: 24px; margin: 18px 0 6px; font-weight: 600; }
.ded ul, .ded ol { padding-left: 24px; }
.ded li { margin: 2px 0; }
.ded blockquote { margin-left: 0; padding: 2px 0 2px 14px; border-left: 3px solid var(--border-strong); color: var(--text-2); }
.ded pre { padding: 12px 14px; border-radius: 8px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); font: 13px/20px ui-monospace, Consolas, monospace; white-space: pre-wrap; }
.ded hr { border: 0; height: 1px; background: var(--border); margin: 18px 0; }
.ded a { color: var(--accent-strong); }
.ded ul.dck { list-style: none; padding-left: 4px; }
.ded ul.dck li { position: relative; padding-left: 28px; }
.ded ul.dck li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--border-strong); background: var(--surface); cursor: pointer; }
.ded ul.dck li[data-ck="true"]::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: none; }
.ded ul.dck li[data-ck="true"] { color: var(--text-3); text-decoration: line-through; }
.ded .dbn { padding: 10px 14px 10px 40px; border-radius: 8px; background: var(--accent-wash); position: relative; }
.ded .dbn::before { content: "i"; position: absolute; left: 14px; top: 12px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 11px/16px Inter; text-align: center; }
.ded .dbn.warn { background: var(--orange-wash); } .ded .dbn.warn::before { content: "!"; background: var(--orange); }
.dembed { border-radius: 10px; box-shadow: 0 0 0 1px var(--border); overflow: hidden; user-select: none; margin: 4px 0 14px; }
.dembed .eh { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; background: var(--surface-2); border-bottom: 1px solid var(--border-soft); font-size: 12.5px; font-weight: 600; }
.dembed .eh .i { width: 14px; height: 14px; color: var(--text-3); }
.dembed .eh span { margin-left: auto; color: var(--text-3); font-weight: 400; }
.dembed .er { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border-bottom: 1px solid var(--border-soft); font-size: 13.5px; cursor: pointer; }
.dembed .er:last-child { border-bottom: 0; }
.dembed .er:hover { background: var(--surface-2); }
.dembed .er .st { width: 13px; height: 13px; border-width: 1.5px; }
.dembed .er .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dembed .er .d { font-size: 12px; color: var(--text-3); }
.dembed .er .d.late { color: var(--red); }
.dtb { position: fixed; z-index: 48; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 9px; background: #1A1D23; box-shadow: var(--shadow-pop); animation: pop-in .12s var(--ease); }
.dtb button { height: 28px; min-width: 28px; padding: 0 6px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #D7DAE0; font-size: 12.5px; font-weight: 600; }
.dtb button:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.dtb button .i { width: 14px; height: 14px; }
.dtb .vr { width: 1px; height: 18px; background: rgba(255, 255, 255, .16); margin: 0 3px; }
.dtb .task { color: #fff; background: var(--accent); padding: 0 10px; }
.dtb .task:hover { background: var(--accent-hover); }
.pop.slash { width: 280px; max-height: 360px; overflow: auto; }
.pop.slash .opt { height: 40px; }
.pop.slash .opt .ic { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--border); color: var(--text-2); font-weight: 700; font-size: 12px; flex: none; }
.pop.slash .opt .ic .i { width: 14px; height: 14px; }
.pop.slash .opt small { color: var(--text-3); font-size: 11.5px; display: block; font-weight: 400; }
.pop.slash .opt span.tx { display: flex; flex-direction: column; line-height: 16px; }
.rel-docs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ============ Painéis (Dashboards): grade de cartões que leem as tarefas ============ */
.pn { flex: 1; min-height: 0; overflow: auto; padding: 4px 20px 40px; }
.pn-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 20px; }
.pn-bar .grow { flex: 1; }
.pn-bar .upd { font-size: 12px; color: var(--text-3); }
.pn-note { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 9px 12px; border-radius: 8px; background: var(--orange-wash); color: var(--text); font-size: 12.5px; }
.pn-note .i { width: 15px; height: 15px; color: var(--orange); flex: none; }
.pn-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; align-items: start; }
.pc { grid-column: span var(--w, 4); min-width: 0; background: var(--surface); border-radius: 10px; box-shadow: 0 0 0 1px var(--border); display: flex; flex-direction: column; }
.pc > header { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 8px 0 14px; }
.pc > header b { flex: 1; min-width: 0; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc > header .icon-btn { width: 26px; height: 26px; }
.pc.editing { box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-ring); }
.pc-body { padding: 2px 14px 14px; min-width: 0; }
.pc.flash { animation: flash 1.2s var(--ease); }
/* número grande */
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi .v { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12.5px; color: var(--text-3); }
.kpi .s b { color: var(--text-2); font-weight: 500; }
button.kpi { text-align: left; width: 100%; border-radius: 8px; margin: -4px -6px; padding: 4px 6px; }
button.kpi:hover { background: var(--surface-2); }
/* barras horizontais (uma cor; o nome identifica) */
.hb { display: flex; flex-direction: column; gap: 8px; }
.hb-row { display: grid; grid-template-columns: minmax(70px, 34%) minmax(0, 1fr) 46px; align-items: center; gap: 10px; width: 100%; text-align: left; border-radius: 6px; padding: 2px 4px; margin: 0 -4px; }
.hb-row:hover { background: var(--surface-2); }
.hb-row .hbl { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-row .hbt { height: 14px; position: relative; }
.hb-row .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--viz-1); border-radius: 0 4px 4px 0; min-width: 2px; }
.hb-row .hbn { font-size: 12.5px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.hb-axis { height: 1px; background: var(--border); margin-top: 2px; }
/* progresso */
.mt2 { display: flex; flex-direction: column; gap: 12px; }
.mt2-row .top { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; margin-bottom: 5px; }
.mt2-row .top b { font-weight: 500; }
.mt2-row .top span { margin-left: auto; color: var(--text-3); font-variant-numeric: tabular-nums; }
.mt2-row .track { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.mt2-row .track i { display: block; height: 100%; background: var(--viz-1); border-radius: 4px; }
/* linha */
.ln { position: relative; }
.ln svg { display: block; overflow: visible; }
.ln .grid line { stroke: var(--border-soft); stroke-width: 1; }
.ln .axis text, .ln .lbl { font: 500 11px Inter; fill: var(--text-3); }
.ln .lbl.last { fill: var(--text); font-weight: 600; }
.ln path.line { fill: none; stroke: var(--viz-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ln path.area { fill: var(--viz-1); opacity: .08; }
.ln circle { fill: var(--viz-1); stroke: var(--surface); stroke-width: 2; }
.ln .hit { fill: transparent; cursor: default; }
.ln .hit:hover + circle, .ln .hover-dot { r: 5; }
.ln .cross { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.ln g.pt:hover .cross { opacity: 1; }
/* lista */
.pl { display: flex; flex-direction: column; }
.pl-row { display: flex; align-items: center; gap: 8px; min-height: 34px; border-bottom: 1px solid var(--border-soft); cursor: pointer; font-size: 13px; }
.pl-row:last-child { border-bottom: 0; }
.pl-row:hover { color: var(--accent-strong); }
.pl-row .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-row .d { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.pl-row .d.late { color: var(--red); font-weight: 500; }
.pl-row .money { font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-row .st { width: 13px; height: 13px; border-width: 1.5px; }
.pc-empty { padding: 18px 0 8px; color: var(--text-3); font-size: 12.5px; text-align: center; }
.pc-text { font-size: 13.5px; line-height: 21px; outline: none; border-radius: 6px; }
.pc-text[contenteditable="true"] { box-shadow: 0 0 0 1px var(--border); padding: 6px 8px; margin: 0 -8px; }
.pc-text ul { padding-left: 20px; margin: 4px 0; }
.pc-text p { margin: 0 0 6px; }
.pn-add { grid-column: span 4; min-height: 120px; border-radius: 10px; border: 1.5px dashed var(--border-strong); display: grid; place-items: center; color: var(--text-3); font-weight: 500; }
.pn-add:hover { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-wash); }
.pop.drill { width: 340px; max-height: 360px; overflow: auto; }
.pop.drill .opt .st { width: 13px; height: 13px; border-width: 1.5px; }
@media (max-width: 1100px) { .pc[data-w="3"], .pc[data-w="4"] { grid-column: span 6; } .pc[data-w="8"] { grid-column: span 12; } }
:root { --viz-1: #1F93FF; }
:root[data-theme="dark"] { --viz-1: #3BA1FF; }

/* Lixeira */
.tr-grid { grid-template-columns: minmax(0, 1.6fr) minmax(130px, 1fr) 110px 80px 150px; min-height: 52px; }
.tr-grid .soon { color: var(--red); font-weight: 500; }
.tr-acts { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.toast .undo { margin-left: 8px; height: 26px; padding: 0 10px; border-radius: 6px; color: #fff; font-weight: 600; background: rgba(255, 255, 255, .14); }
.toast .undo:hover { background: rgba(255, 255, 255, .24); }

/* ============ Modelos (Template Center) ============ */
.tpc { width: min(980px, calc(100vw - 32px)); height: min(640px, calc(100vh - 48px)); background: var(--surface); border-radius: 14px; overflow: hidden;
       box-shadow: 0 0 0 1px var(--border), 0 24px 64px -12px rgba(16, 24, 40, .28); display: grid; grid-template-columns: 210px minmax(0, 1fr); grid-template-rows: 56px minmax(0, 1fr); animation: pop-in .16s var(--ease); }
.tpc > header { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--border); }
.tpc > header .t { font-size: 15px; font-weight: 600; margin-right: auto; display: flex; align-items: center; gap: 8px; }
.tpc nav { padding: 10px; border-right: 1px solid var(--border); background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; }
.tpc nav .opt { color: var(--text-2); }
.tpc nav .opt[aria-current="true"] { background: var(--surface); color: var(--text); font-weight: 500; box-shadow: 0 0 0 1px var(--border); }
.tpc nav .opt .hint { font-variant-numeric: tabular-nums; }
.tpc-main { overflow: auto; padding: 18px 20px 24px; }
.tpc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tpl { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 10px; box-shadow: 0 0 0 1px var(--border); text-align: left; background: var(--surface); }
.tpl:hover { box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-ring); }
.tpl .top { display: flex; align-items: center; gap: 10px; }
.tpl .tico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.tpl .tico .i { width: 16px; height: 16px; }
.tpl b { font-weight: 600; display: block; }
.tpl .kind { font-size: 11.5px; color: var(--text-3); }
.tpl p { margin: 0; font-size: 12.5px; line-height: 18px; color: var(--text-2); }
.tpl .inc { display: flex; flex-wrap: wrap; gap: 4px; }
.tpl .inc span { height: 20px; padding: 0 7px; border-radius: 5px; background: var(--surface-2); color: var(--text-2); font-size: 11.5px; display: inline-flex; align-items: center; }
.tk-folder { background: var(--accent-wash); color: var(--accent-strong); }
.tk-list { background: var(--violet-wash); color: var(--violet); }
.tk-task { background: var(--green-wash); color: var(--green); }
.tk-checklist { background: var(--orange-wash); color: var(--orange); }
.tpf { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: start; }
.tpf-back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 500; margin-bottom: 12px; height: 28px; padding: 0 8px 0 4px; border-radius: 6px; }
.tpf-back:hover { background: var(--surface-2); color: var(--text); }
.tpf h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.tpf .lead { margin: 0 0 16px; color: var(--text-2); font-size: 13px; line-height: 19px; }
.tpf label, .tpf .lb { display: block; font-size: 12px; font-weight: 500; color: var(--text-2); margin: 12px 0 6px; }
.tpf .menu-btn { width: 100%; height: 34px; justify-content: space-between; box-shadow: 0 0 0 1px var(--border-strong); }
.tpf .acts { display: flex; gap: 8px; margin-top: 20px; }
.tpv { border-radius: 10px; box-shadow: 0 0 0 1px var(--border); overflow: hidden; }
.tpv h4 { margin: 0; padding: 10px 14px; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; gap: 6px; }
.tpv h4 .i { width: 14px; height: 14px; color: var(--text-3); }
.tpv-row { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-bottom: 1px solid var(--border-soft); font-size: 13px; }
.tpv-row:last-child { border-bottom: 0; }
.tpv-row .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpv-row .d { font-size: 12px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tpv-row .st { width: 13px; height: 13px; border-width: 1.5px; }
.tpv-row .ck { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--border-strong); flex: none; }
.rep { height: 18px; padding: 0 6px; border-radius: 4px; background: var(--accent-wash); color: var(--accent-strong); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.rep .i { width: 11px; height: 11px; }
.wait { height: 18px; padding: 0 6px; border-radius: 4px; background: var(--surface-2); color: var(--text-3); font-size: 11px; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.wait .i { width: 11px; height: 11px; }
.ms-dot { width: 10px; height: 10px; transform: rotate(45deg); border-radius: 2px; background: var(--orange); flex: none; margin: 0 2px; }
/* página de List criada por modelo */
.plp { flex: 1; min-height: 0; overflow: auto; padding: 4px 20px 32px; }
.pl-note2 { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); margin: 0 0 12px; }
.pl-grid { grid-template-columns: 22px minmax(0, 1fr) 150px 120px 90px; min-height: 44px; }
.pl-grid .tt { min-width: 0; display: flex; align-items: center; gap: 8px; }
.pl-grid .tt b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.pl-grid .tt b:hover { color: var(--accent-strong); }
.pl-grid .st { width: 15px; height: 15px; }

/* ============ Proofing ============ */
.file .thumb.img { background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.file .pf-n { color: var(--orange); font-weight: 600; }
.thumb.img.mini { width: 22px; height: 22px; border-radius: 4px; background-size: cover; flex: none; }
.pf { width: calc(100vw - 48px); height: calc(100vh - 48px); background: var(--surface); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
      box-shadow: 0 0 0 1px var(--border), 0 24px 64px -12px rgba(16, 24, 40, .32); animation: pop-in .16s var(--ease); }
.pf > header { flex: none; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--border); }
.pf > header .nm { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf > header .nm .i { color: var(--text-3); }
.pf > header .grow { flex: 1; }
.pf > header .menu-btn { box-shadow: 0 0 0 1px var(--border-strong); height: 30px; }
.pf-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.pf-stage { overflow: auto; background: var(--surface-3); display: grid; place-items: center; padding: 28px; }
.pf-stage.zoomed { place-items: start center; }
.pf-wrap { position: relative; max-width: 100%; max-height: 100%; aspect-ratio: 1; height: 100%; box-shadow: 0 8px 30px -8px rgba(16, 24, 40, .3); border-radius: 4px; user-select: none; }
.pf-stage.zoomed .pf-wrap { max-width: none; max-height: none; height: auto; }
.pf-wrap img { display: block; width: 100%; height: 100%; border-radius: 4px; }
.pf-stage.adding .pf-wrap img { cursor: crosshair; }
.pin { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50% 50% 50% 4px; background: var(--orange); color: #fff; font-size: 12.5px; font-weight: 700;
       display: grid; place-items: center; box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(0,0,0,.3); transform: rotate(0deg); transition: transform .12s var(--ease); }
.pin:hover, .pin.sel { transform: scale(1.15); z-index: 2; }
.pin.sel { box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(232, 137, 12, .45), 0 4px 10px rgba(0,0,0,.3); }
.pin.res { background: var(--green); }
.pin.res .i { width: 14px; height: 14px; stroke-width: 3; }
.pin.ghost { background: var(--accent); animation: pop-in .14s var(--ease); pointer-events: none; }
.pf-side { border-left: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.pf-tabs { flex: none; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); }
.pf-list { flex: 1; overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.pf-c { padding: 10px 12px; border-radius: 10px; box-shadow: 0 0 0 1px var(--border); cursor: pointer; }
.pf-c:hover { box-shadow: 0 0 0 1px var(--border-strong); }
.pf-c.sel { box-shadow: 0 0 0 1.5px var(--orange); background: var(--orange-wash); }
.pf-c.res { opacity: .75; }
.pf-c .hd { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.pf-c .hd b { font-weight: 600; }
.pf-c .hd .w { margin-left: auto; color: var(--text-3); font-size: 12px; }
.pnum { width: 20px; height: 20px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
.pnum.res { background: var(--green); }
.pnum .i { width: 11px; height: 11px; stroke-width: 3; }
.pf-c p { margin: 7px 0 0; line-height: 20px; }
.pf-c .rp { display: flex; gap: 7px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-soft); font-size: 12.5px; color: var(--text-2); line-height: 18px; }
.pf-c .rp b { color: var(--text); font-weight: 600; }
.pf-c .ft { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.pf-c .ft .menu-btn { max-width: 100%; }
.pf-c .ft .grow { flex: 1; }
.pf-c .ft .btn { padding: 0 8px; }
.pf-c .ft .menu-btn { height: 26px; font-size: 12px; box-shadow: 0 0 0 1px var(--border); }
.pop.pfpop { width: 320px; padding: 10px; }
.pf-comp textarea { height: 76px; resize: none; padding: 8px 10px; line-height: 19px; }
.pf-comp .pfr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.pf-comp .pfr .menu-btn { flex: 1 1 100%; justify-content: flex-start; }
.pf-comp .pfr .menu-btn .i:last-child { margin-left: auto; }
.pf-comp .pfr .grow { flex: 1; }
.pf-comp .menu-btn { height: 30px; font-size: 12px; box-shadow: 0 0 0 1px var(--border); }
