/* Polo Tarefas | identidade visual Polo Rise
   Layout: barra lateral grafite com o logo, área de trabalho clara, verde-limão como destaque. */
:root {
  --ink: #1a1a1a;
  --lime: #a0f22c;
  --paper: #f4f4f4;
  --bg: #ffffff;
  --bg-soft: #f4f4f4;
  --bg-hover: #ececec;
  --border: #e4e4e4;
  --border-strong: #d6d6d6;
  --text: #1a1a1a;
  --text-2: #5c5c5c;
  --text-3: #878787;
  --accent: #a0f22c;
  --accent-ink: #3f6b00;
  --accent-soft: #eefbdc;
  --on-accent: #1a1a1a;
  --sb-bg: #1a1a1a;
  --sb-text: #f4f4f4;
  --sb-muted: #9a9a9a;
  --sb-hover: #2e2e2e;
  --sb-active: rgba(160, 242, 44, .14);
  --sb-active-text: #a0f22c;
  --sb-border: #2e2e2e;
  --danger: #e5484d;
  --ok: #00a65a;
  --shadow: 0 10px 30px rgba(26, 26, 26, .16);
  --radius: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Archivo', 'Arial Black', 'Helvetica Neue', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1f1f1f; --bg-soft: #262626; --bg-hover: #2e2e2e;
    --border: #333333; --border-strong: #3d3d3d; --text: #f4f4f4; --text-2: #b5b5b5; --text-3: #878787;
    --accent-ink: #a0f22c; --accent-soft: #2a3517; --sb-bg: #121212; --sb-hover: #242424; --sb-border: #242424;
    --shadow: 0 10px 30px rgba(0, 0, 0, .55); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1f1f1f; --bg-soft: #262626; --bg-hover: #2e2e2e;
  --border: #333333; --border-strong: #3d3d3d; --text: #f4f4f4; --text-2: #b5b5b5; --text-3: #878787;
  --accent-ink: #a0f22c; --accent-soft: #2a3517; --sb-bg: #121212; --sb-hover: #242424; --sb-border: #242424;
  --shadow: 0 10px 30px rgba(0, 0, 0, .55); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: var(--font); font-size: 14px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-ink); }
code { background: var(--bg-soft); padding: 1px 5px; border-radius: 4px; }
.muted { color: var(--text-2); }
.small { font-size: 12px; }
.hidden, [hidden] { display: none !important; }

/* Botões e campos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--bg); cursor: pointer; text-decoration: none; color: var(--text); font-weight: 500; white-space: nowrap; }
.btn:hover { background: var(--bg-hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { color: var(--danger); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--bg-hover); }
.btn.sm { height: 26px; padding: 0 8px; font-size: 12px; }
.btn.wide { width: 100%; margin-top: 10px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { width: 28px; height: 28px; border-radius: 6px; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); }
.icon-btn:hover { background: var(--bg-hover); color: var(--text); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=url], input:not([type]), select, textarea {
  width: 100%; border: 1px solid var(--border-strong); border-radius: 6px; padding: 7px 10px; background: var(--bg); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
label { display: block; margin: 10px 0 0; font-size: 12px; font-weight: 600; color: var(--text-2); }
label > input, label > select, label > textarea { margin-top: 4px; font-weight: 400; font-size: 14px; color: var(--text); }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13px; color: var(--text); }
label.check input { width: auto; }

/* Login e instalação */
.auth-page { min-height: 100%; display: flex; align-items: center; justify-content: center; background: var(--ink); padding: 16px; position: relative; overflow: hidden; }
.auth-page::before { content: ""; position: absolute; width: 520px; height: 860px; right: -140px; bottom: -280px; background: var(--lime); clip-path: polygon(30% 0, 80% 0, 62% 38%, 92% 34%, 28% 100%, 42% 52%, 12% 56%); pointer-events: none; }
.auth-card { position: relative; z-index: 1; }
.auth-card { background: var(--bg); width: 100%; max-width: 400px; border-radius: 14px; padding: 32px 28px; box-shadow: var(--shadow); }
.auth-card.wide-card { max-width: 560px; }
.auth-card h1 { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 24px; letter-spacing: -.01em; margin: 18px 0 6px; text-wrap: balance; }
.auth-logo { height: 64px; width: auto; display: block; }
.auth-wrap { position: relative; z-index: 1; width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.auth-brand { width: 230px; max-width: 70%; height: auto; display: block; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: var(--lime); font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.alert { background: #fdecec; color: #a3262a; padding: 10px 12px; border-radius: 8px; margin: 12px 0; font-size: 13px; }
.progress { height: 6px; background: var(--bg-soft); border-radius: 4px; margin-top: 16px; overflow: hidden; }
.progress div { height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.import-log { background: var(--bg-soft); border-radius: 8px; padding: 10px; max-height: 240px; overflow: auto; font-size: 12px; white-space: pre-wrap; }

/* Estrutura principal */
:root { --gbar-h: 44px; }
.app { display: grid; grid-template-columns: 264px 1fr; height: calc(100vh - var(--gbar-h)); overflow: hidden; }
.sidebar { background: var(--sb-bg); color: var(--sb-text); border-right: 1px solid var(--sb-border); display: flex; flex-direction: column; min-height: 0; }
.sb-head { display: flex; align-items: flex-end; gap: 10px; padding: 18px 16px 12px; }
.sb-logo { height: 46px; width: auto; display: block; }
.sb-app { font-family: var(--display); font-stretch: 112%; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); padding-bottom: 3px; }
.sb-head .brand-mark { width: 28px; height: 28px; font-size: 15px; border-radius: 7px; }
.sb-head b { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-scroll { flex: 1; overflow-y: auto; padding: 4px 8px 16px; }
.sb-section { margin-top: 14px; }
.sb-title { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--sb-muted); text-transform: uppercase; letter-spacing: .04em; padding: 4px 8px; }
.sb-item { display: flex; align-items: center; gap: 8px; padding: 0 8px; height: 30px; border-radius: 6px; cursor: pointer; color: var(--sb-text); text-decoration: none; user-select: none; position: relative; }
.sb-item:hover { background: var(--sb-hover); }
.sidebar .icon-btn { color: var(--sb-muted); }
.sidebar .icon-btn:hover { background: var(--sb-hover); color: var(--sb-text); }
.sidebar .add-row { color: var(--sb-muted); }
.sidebar .add-row:hover { color: var(--lime); }
.sidebar .av { border-color: var(--sb-bg); }
.sb-item.active { background: var(--sb-active); color: var(--sb-active-text); font-weight: 600; }
.sb-item .lbl { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-item .cnt { font-size: 11px; color: var(--sb-muted); font-variant-numeric: tabular-nums; }
.sb-item .more { opacity: 0; }
.sb-item:hover .more { opacity: 1; }
.sb-item .badge { background: var(--danger); color: #fff; border-radius: 10px; font-size: 11px; padding: 0 6px; font-weight: 600; line-height: 17px; }
.sb-item.unread .lbl { font-weight: 700; }
.sb-folder > .sb-item .chev { transition: transform .15s; width: 14px; color: var(--sb-muted); }
.sb-folder.closed > .sb-item .chev { transform: rotate(-90deg); }
.sb-folder.closed > .sb-children { display: none; }
.sb-children { padding-left: 14px; }
.space-dot { width: 18px; height: 18px; border-radius: 5px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: none; }
.sb-foot { border-top: 1px solid var(--sb-border); padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.sb-foot .who { flex: 1; overflow: hidden; }
.sb-foot .who b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-foot .who span { font-size: 11px; color: var(--sb-muted); }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 10px 20px 0; min-height: 52px; }
.crumbs { font-size: 12px; color: var(--text-3); }
.page-title { font-family: var(--display); font-stretch: 112%; font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 0; display: flex; align-items: center; gap: 8px; }
.tabs { display: flex; gap: 2px; padding: 0 20px; border-bottom: 1px solid var(--border); margin-top: 8px; }
.tab { padding: 8px 12px; border: 0; background: none; cursor: pointer; color: var(--text-2); border-bottom: 2px solid transparent; font-weight: 500; display: flex; gap: 6px; align-items: center; }
.tab.active { color: var(--accent-ink); border-bottom-color: var(--accent-ink); }
.toolbar { display: flex; align-items: center; gap: 8px; padding: 10px 20px; flex-wrap: wrap; }
.toolbar .search { max-width: 240px; height: 32px; }
.toolbar select { width: auto; height: 32px; padding: 0 8px; }
.toolbar .spacer { flex: 1; }
.content { flex: 1; overflow: auto; padding: 0 20px 40px; min-height: 0; }
.mobile-menu { display: none; }

/* Avatares */
.av { width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; border: 2px solid var(--bg); text-transform: uppercase; }
.av.lg { width: 32px; height: 32px; font-size: 12px; }
.avs { display: inline-flex; }
.avs .av + .av { margin-left: -6px; }
.av.empty { background: transparent; border: 1px dashed var(--border-strong); color: var(--text-3); }

/* Vista em lista */
.group { margin-top: 18px; }
.group-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; cursor: pointer; user-select: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; color: #fff; letter-spacing: .02em; white-space: nowrap; }
.group-head .cnt { color: var(--text-3); font-size: 12px; }
.group.collapsed .rows { display: none; }
.rows { border-top: 1px solid var(--border); }
.row, .row-head { display: grid; grid-template-columns: minmax(260px, 1fr) var(--cols, 120px 110px 90px); align-items: center; min-height: 38px; border-bottom: 1px solid var(--border); }
.row-head { min-height: 28px; font-size: 11px; color: var(--text-3); font-weight: 600; border-bottom: 0; }
.row { cursor: pointer; }
.row:hover { background: var(--bg-soft); }
.row > div, .row-head > div { padding: 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.row .name { display: flex; align-items: center; gap: 8px; }
.row .name .t { overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 60px; }
.row .name .list-tag, .row .name .meta-icons, .row .name .pill { flex: none; }
.sdot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.meta-icons { display: inline-flex; gap: 8px; color: var(--text-3); font-size: 11px; margin-left: 4px; }
.list-tag { font-size: 11px; color: var(--text-3); background: var(--bg-soft); padding: 1px 6px; border-radius: 4px; }
.due { font-size: 12px; color: var(--text-2); }
.due.late { color: var(--danger); font-weight: 600; }
.due.today { color: #e8a200; font-weight: 600; }
.prio { font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.chip { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 11px; font-weight: 600; margin-right: 3px; color: #1f2329; }
.add-row { color: var(--text-3); padding: 8px; cursor: pointer; font-size: 13px; }
.add-row:hover { color: var(--accent-ink); }
.add-row input { height: 30px; }

/* Quadro (Kanban) */
.board { display: flex; gap: 12px; align-items: flex-start; padding-top: 12px; min-height: 100%; }
.col { width: 272px; flex: none; background: var(--bg-soft); border-radius: 10px; display: flex; flex-direction: column; max-height: calc(100vh - 190px); }
.col-head { padding: 10px 10px 6px; display: flex; align-items: center; gap: 8px; }
.col-body { padding: 4px 8px 8px; overflow-y: auto; min-height: 40px; flex: 1; }
.col.drop { outline: 2px dashed var(--accent); outline-offset: -2px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px; margin-bottom: 8px; cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.card:hover { border-color: var(--border-strong); }
.card.dragging { opacity: .4; }
.card .t { font-weight: 500; line-height: 1.35; margin-bottom: 8px; word-break: break-word; }
.card .foot { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.card .thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; margin-bottom: 8px; background: var(--bg-soft); }


/* Calendário */
.cal-head { display: flex; align-items: center; gap: 6px; padding: 12px 0 10px; flex-wrap: wrap; }
.cal-title { font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: 17px; margin: 0 0 0 6px; }
.cal-title::first-letter { text-transform: uppercase; }
.cal-head .spacer { flex: 1; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 6px; overflow: hidden; }
.seg button { border: 0; background: var(--bg); padding: 0 12px; height: 28px; cursor: pointer; font-size: 12px; font-weight: 500; color: var(--text-2); }
.seg button + button { border-left: 1px solid var(--border-strong); }
.seg button.on { background: var(--accent-soft); color: var(--accent-ink); }
.cal-wrap { display: flex; gap: 12px; align-items: flex-start; }
.cal-scroll { flex: 1; min-width: 0; overflow-x: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); min-width: 770px; }
.cal-dow { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.cal-day { min-height: 118px; padding: 4px 5px 6px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-grid.week .cal-day { min-height: 420px; }
.cal-day.weekend { background: var(--bg-soft); }
.cal-day.other { background: var(--bg-soft); }
.cal-day.other .cal-num span { color: var(--text-3); }
.cal-day.drop { outline: 2px dashed var(--accent); outline-offset: -2px; background: var(--accent-soft); }
.cal-num { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--text-2); min-height: 24px; padding-left: 3px; }
.cal-day.today .cal-num span { background: var(--accent); color: var(--on-accent); border-radius: 12px; padding: 1px 8px; }
.cal-add { width: 22px; height: 22px; opacity: 0; }
.cal-day:hover .cal-add, .cal-add:focus { opacity: 1; }
.cal-chip { display: flex; align-items: center; gap: 5px; background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--text-3); border-radius: 5px; padding: 3px 6px; font-size: 12px; cursor: pointer; min-width: 0; }
.cal-chip:hover { border-color: var(--border-strong); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.cal-chip .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-grid.week .cal-chip { flex-wrap: wrap; }
.cal-grid.week .cal-chip .t { white-space: normal; flex-basis: 100%; line-height: 1.3; }
.cal-chip .cal-list { font-size: 10px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70px; }
.cal-chip .av { width: 18px; height: 18px; font-size: 8px; border-width: 1px; }
.cal-grid:not(.week) .cal-chip .cal-list { display: none; }
.cal-chip.done { opacity: .55; }
.cal-chip.done .t { text-decoration: line-through; }
.cal-chip.late .t { color: var(--danger); }
.cal-chip.dragging { opacity: .4; }
.cal-more { border: 0; background: none; color: var(--text-2); font-size: 11px; text-align: left; cursor: pointer; padding: 2px 4px; }
.cal-more:hover { color: var(--accent-ink); }
.cal-side { width: 260px; flex: none; background: var(--bg-soft); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 230px); overflow-y: auto; }
.cal-side-head { display: flex; align-items: center; justify-content: space-between; }
.cal-side .cal-chip { flex-wrap: wrap; }
.cal-side .cal-chip .t { white-space: normal; flex-basis: 100%; }
@media (max-width: 760px) { .cal-wrap { flex-direction: column; } .cal-side { width: 100%; max-height: none; } }


/* Visualizações */
.tabs { align-items: flex-end; overflow-x: auto; }
.view-tab { position: relative; white-space: nowrap; }
.view-tab .tab-more { width: 22px; height: 22px; margin-left: 2px; }
.tab.add-view { color: var(--text-3); }
.tab.add-view:hover { color: var(--accent-ink); }
.btn.on { border-color: var(--accent-ink); color: var(--accent-ink); background: var(--accent-soft); }
.menu.pop { padding: 10px; }
.pop-title { font-family: var(--display); font-stretch: 112%; font-size: 12px; font-weight: 800; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; margin: 2px 4px 10px; }
.vp { width: 520px; max-width: calc(100vw - 16px); max-height: none; }
.vp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.vp-item { display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 1px solid var(--border); background: var(--bg); border-radius: 8px; padding: 10px; cursor: pointer; }
.vp-item:hover { border-color: var(--accent); background: var(--accent-soft); }
.vp-ic { width: 34px; height: 34px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.vp-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vp-tx b { font-size: 13px; }
.vp-tx span { font-size: 12px; color: var(--text-2); line-height: 1.35; }
.fp-pop { width: 420px; max-width: calc(100vw - 16px); max-height: 70vh; }
.fp-sec { margin-bottom: 12px; }
.fp-title { font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.fp-opts { display: flex; flex-wrap: wrap; gap: 5px; }
.fp-opt { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border-strong); background: var(--bg); border-radius: 14px; padding: 3px 10px; font-size: 12px; cursor: pointer; color: var(--text); }
.fp-opt.on { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.gh-user { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.card-field { margin-bottom: 6px; font-size: 12px; }

/* Tabela */
.tbl-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 8px; margin-top: 12px; max-height: calc(100vh - 230px); }
.tbl { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: 13px; }
.tbl th { position: sticky; top: 0; z-index: 2; background: var(--bg-soft); font-size: 11px; font-weight: 600; color: var(--text-2); text-align: left; padding: 8px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); white-space: nowrap; }
.tbl td { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); padding: 2px 4px; height: 36px; background: var(--bg); vertical-align: middle; white-space: nowrap; }
.tbl tr:hover td { background: var(--bg-soft); }
.tbl .num { width: 40px; text-align: center; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tbl .nm { position: sticky; left: 0; z-index: 1; min-width: 320px; box-shadow: 1px 0 0 var(--border); }
.tbl th.nm { z-index: 3; }
.nm-cell { display: flex; align-items: center; }
.nm-cell .open-btn { opacity: 0; }
.tbl tr:hover .open-btn { opacity: 1; }
.cell-in { border: 1px solid transparent !important; background: transparent !important; padding: 5px 6px !important; height: 30px; box-shadow: none !important; width: 100%; border-radius: 4px; }
.cell-in:hover { border-color: var(--border-strong) !important; }
.cell-in:focus { border-color: var(--accent) !important; background: var(--bg) !important; }
.cell-in.late { color: var(--danger); font-weight: 600; }
.cell-btn { border: 0; background: transparent; cursor: pointer; padding: 4px 6px; border-radius: 4px; min-height: 28px; display: inline-flex; align-items: center; gap: 3px; max-width: 100%; }
.cell-btn:hover { background: var(--bg-hover); }
.tbl-group td { background: var(--bg-soft) !important; font-weight: 600; padding: 6px 10px; }

/* Gantt */
.gantt { display: grid; grid-template-columns: 300px 1fr; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; max-height: calc(100vh - 250px); }
.g-left { overflow: hidden; border-right: 1px solid var(--border); background: var(--bg); }
.g-right { overflow: auto; position: relative; }
.g-lhdr, .g-hdr { height: 44px; border-bottom: 1px solid var(--border); background: var(--bg-soft); position: sticky; top: 0; z-index: 3; }
.g-lhdr { display: flex; align-items: flex-end; padding: 0 10px 8px; font-size: 11px; font-weight: 600; color: var(--text-2); }
.g-hdr { position: sticky; }
.g-month { position: absolute; top: 4px; font-size: 11px; font-weight: 700; color: var(--text-2); padding-left: 4px; white-space: nowrap; }
.g-day { position: absolute; bottom: 4px; font-size: 10px; color: var(--text-3); padding-left: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-day.today { color: var(--accent-ink); font-weight: 700; }
.g-timeline { position: relative; }
.g-bg { position: absolute; inset: 0; pointer-events: none; }
.g-we { position: absolute; top: 0; bottom: 0; background: var(--bg-soft); }
.g-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); opacity: .7; }
.g-row { height: 34px; border-bottom: 1px solid var(--border); position: relative; display: flex; align-items: center; }
.g-grow { background: var(--bg-soft); padding: 0 10px; gap: 6px; }
.g-timeline .g-grow { background: color-mix(in srgb, var(--bg-soft) 70%, transparent); }
.g-name { padding: 0 10px; gap: 8px; cursor: pointer; font-size: 13px; }
.g-name:hover { background: var(--bg-hover); }
.g-name .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-track.empty { cursor: copy; }
.g-track.empty:hover { background: var(--accent-soft); }
.g-bar { position: absolute; top: 6px; height: 22px; border-radius: 5px; display: flex; align-items: center; font-size: 11px; font-weight: 600; cursor: grab; box-shadow: 0 1px 2px rgba(0, 0, 0, .18); touch-action: none; user-select: none; min-width: 8px; }
.g-bar:active { cursor: grabbing; }
.g-bar.late { outline: 2px solid var(--danger); outline-offset: 1px; }
.g-bar.done { opacity: .5; }
.g-lbl { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 4px; pointer-events: none; }
.g-h { width: 8px; align-self: stretch; cursor: ew-resize; flex: none; }
.g-h.l { border-radius: 5px 0 0 5px; }
.g-h.r { border-radius: 0 5px 5px 0; }
.g-bar:hover .g-h { background: rgba(0, 0, 0, .18); }

/* Carga de trabalho */
.wl-grid { display: grid; width: max-content; }
.wl-cell .cal-chip .t { white-space: nowrap; }
.wl-h { position: sticky; top: 0; z-index: 2; background: var(--bg-soft); font-size: 11px; font-weight: 600; color: var(--text-2); padding: 8px 6px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); white-space: nowrap; text-transform: capitalize; }
.wl-h.today { color: var(--accent-ink); }
.wl-person { position: sticky; left: 0; z-index: 1; background: var(--bg); display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); }
.wl-person > div { display: flex; flex-direction: column; min-width: 0; }
.wl-person b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-h.wl-person { z-index: 3; background: var(--bg-soft); }
.wl-cell { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); padding: 4px; display: flex; flex-direction: column; gap: 3px; min-height: 72px; min-width: 0; position: relative; }
.wl-cell.we { background: var(--bg-soft); }
.wl-cell.ok { background: color-mix(in srgb, #00a65a 9%, var(--bg)); }
.wl-cell.full { background: color-mix(in srgb, #f8ae00 16%, var(--bg)); }
.wl-cell.over { background: color-mix(in srgb, #e5484d 16%, var(--bg)); }
.wl-cell.drop { outline: 2px dashed var(--accent); outline-offset: -2px; }
.wl-count { font-size: 10px; font-weight: 700; color: var(--text-2); align-self: flex-end; font-variant-numeric: tabular-nums; }
.wl-cell.over .wl-count { color: var(--danger); }
.wl-cell .cal-chip { font-size: 11px; padding: 2px 5px; }
.wl-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); flex-wrap: wrap; }
.wl-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-left: 6px; border: 1px solid var(--border); }
.wl-legend i.ok { background: color-mix(in srgb, #00a65a 20%, var(--bg)); }
.wl-legend i.full { background: color-mix(in srgb, #f8ae00 30%, var(--bg)); }
.wl-legend i.over { background: color-mix(in srgb, #e5484d 30%, var(--bg)); }
.drop { outline: 2px dashed var(--accent); outline-offset: -2px; }
@media (max-width: 760px) { .vp-grid { grid-template-columns: 1fr; } .gantt { grid-template-columns: 150px 1fr; } }


/* Status rápido */
.status-quick { border: 0; cursor: pointer; height: 20px; font-size: 10px; padding: 0 7px; flex: none; max-width: 150px; overflow: hidden; text-overflow: ellipsis; transition: filter .15s, box-shadow .15s; }
.status-quick:hover { filter: brightness(.94); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--border-strong); }
.status-quick.compact { width: 12px; height: 12px; padding: 0; border-radius: 3px; }
.card-top { margin-bottom: 6px; display: flex; }

/* Subtarefas */
.subs { margin-top: 22px; }
.subs-head { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; margin-bottom: 8px; font-size: 14px; }
.subs-caret { display: inline-flex; color: var(--text-3); transition: transform .15s; }
.subs.collapsed .subs-caret { transform: rotate(-90deg); }
.subs.collapsed .subs-body { display: none; }
.subs-prog { width: 46px; height: 4px; border-radius: 3px; background: var(--border-strong); overflow: hidden; display: inline-block; }
.subs-prog span { display: block; height: 100%; background: var(--ink); }
:root[data-theme="dark"] .subs-prog span { background: var(--lime); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .subs-prog span { background: var(--lime); } }
.subs-me { background: var(--ink); color: var(--lime); font-size: 11px; font-weight: 600; border-radius: 10px; padding: 1px 9px; }
.subs-row { display: grid; align-items: center; min-height: 38px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 13px; }
.subs-row > div { padding: 0 8px; min-width: 0; }
.subs-row:hover { background: var(--bg-soft); }
.subs-th { min-height: 30px; cursor: default; font-size: 12px; color: var(--text-3); border-bottom: 0; }
.subs-th:hover { background: none; }
.subs-name { display: flex; align-items: center; gap: 8px; }
.subs-name .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.subs-ic { color: var(--text-3); display: inline-flex; flex: none; }
.subs-date { color: var(--text-2); font-variant-numeric: tabular-nums; }
.subs-date.ok { color: #12a150; }
.subs-date.late { color: var(--danger); }
.subs-date.today { color: #c98700; }
.st-icon { border: 0; background: none; padding: 0; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; flex: none; }
.st-icon:hover { background: var(--bg-hover); }
.subs-add { margin-top: 8px; border-style: dashed !important; }

/* Comentários com anexos */
.composer.over { outline: 2px dashed var(--accent-ink); outline-offset: -4px; }
.composer .row-actions { align-items: center; }
.cm-pending { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cm-pending:empty { display: none; }
.cm-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 2px 2px 2px 8px; font-size: 12px; max-width: 220px; }
.cm-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-chip .icon-btn { width: 20px; height: 20px; }
.cm-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cm-thumb { border: 1px solid var(--border); border-radius: 6px; padding: 0; overflow: hidden; width: 96px; height: 72px; cursor: zoom-in; background: var(--bg-soft); }
.cm-thumb img, .cm-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-doc { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; font-size: 12px; color: var(--text); text-decoration: none; max-width: 100%; }
.cm-doc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.cm-doc small { color: var(--text-3); }
.cm-doc:hover { border-color: var(--accent-ink); }

/* Conversas rápidas */
.dock { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; align-items: flex-end; gap: 12px; pointer-events: none; }
.dock > * { pointer-events: auto; }
.dock-btn { width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--ink); color: var(--lime); box-shadow: var(--shadow); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; position: relative; flex: none; }
.dock-btn:hover { transform: scale(1.05); }
.dock-btn .badge, .mw-head .badge, .dp-item .badge { background: var(--danger); color: #fff; border-radius: 10px; font-size: 11px; padding: 0 6px; font-weight: 700; line-height: 18px; }
.dock-btn .badge { position: absolute; top: -2px; right: -2px; }
.dock-wins { display: flex; gap: 10px; align-items: flex-end; }
.dock-panel { position: absolute; right: 0; bottom: 66px; width: 320px; max-height: min(520px, 70vh); background: var(--bg); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.dp-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px 16px; font-family: var(--display); font-stretch: 112%; font-size: 15px; }
.dp-list { overflow-y: auto; padding: 0 6px 8px; }
.dp-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--text); }
.dp-item:hover { background: var(--bg-soft); }
.dp-item .av { width: 32px; height: 32px; font-size: 12px; }
.dp-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dp-top { display: flex; justify-content: space-between; gap: 6px; }
.dp-top b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-top small { color: var(--text-3); font-size: 11px; flex: none; }
.dp-prev { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-item.unread .dp-prev { color: var(--text); font-weight: 600; }
.dp-sep { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); padding: 10px 10px 4px; }
.dock-hash { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--lime); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.mini-win { width: 310px; height: 420px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px 12px 10px 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.mini-win.min { height: auto; width: 240px; }
.mini-win.min .mw-msgs, .mini-win.min .mw-compose { display: none; }
.mw-head { display: flex; align-items: center; gap: 8px; padding: 8px 6px 8px 10px; background: var(--ink); color: #f4f4f4; cursor: pointer; }
.mw-head b { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-head .icon-btn { color: #b5b5b5; width: 26px; height: 26px; }
.mw-head .icon-btn:hover { background: #2e2e2e; color: #fff; }
.mw-head .av { border-color: var(--ink); }
.mw-head .dock-hash { width: 24px; height: 24px; background: #2e2e2e; }
.mw-msgs { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 2px; background: var(--bg-soft); }
.mw-empty { margin: auto; color: var(--text-3); font-size: 12px; }
.mw-msg { display: flex; flex-direction: column; align-items: flex-start; margin-top: 6px; }
.mw-msg.cont { margin-top: 0; }
.mw-msg.mine { align-items: flex-end; }
.mw-who { font-size: 11px; color: var(--text-3); margin: 0 0 2px 4px; }
.mw-bubble { max-width: 82%; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 6px 10px; font-size: 13px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.mw-msg.mine .mw-bubble { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.mw-msg.mine .mw-bubble a { color: var(--ink); }
.mw-bubble img { max-width: 100%; border-radius: 8px; margin-top: 4px; display: block; }
.mw-doc { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.mw-compose { display: flex; align-items: flex-end; gap: 4px; padding: 8px; border-top: 1px solid var(--border); background: var(--bg); }
.mw-in { flex: 1; min-width: 0; }
.mw-in textarea { min-height: 34px; max-height: 90px; padding: 6px 10px; font-size: 13px; resize: none; }
.mw-file { display: block; font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-send { color: var(--accent-ink); }
@media (max-width: 760px) { .mini-win { width: calc(100vw - 32px - 66px); height: 60vh; } .dock-panel { width: calc(100vw - 32px); } }


/* Arquivos do Google Drive */
.drive-tag { position: absolute; bottom: 34px; right: 6px; background: #fff; color: #1a1a1a; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 1px 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.drive-vid { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--ink); color: var(--lime); }
.drive-vid small { color: #b5b5b5; font-size: 11px; }
.drive-ph { width: 100%; height: 100%; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; font-size: 12px; line-height: 1.4; background: var(--bg-soft); color: var(--text-2); }
.viewer .drive-ph { width: min(70vw, 640px); height: 60vh; background: #23262c; color: #c9cdd3; border-radius: 8px; font-size: 14px; }
.viewer .media-wrap.drive .drive-ph { width: 100%; height: 100%; }
.drive-logo { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: #fff; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.media-wrap.drive { display: block; max-height: calc(100vh - 190px); background: #000; border-radius: 6px; overflow: hidden; }
.media-wrap.drive iframe { width: 100%; height: 100%; border: 0; display: block; }
.mark-layer.off { pointer-events: none; }
.media-wrap.drive .mark-layer:not(.off) { background: rgba(160, 242, 44, .12); outline: 2px dashed var(--lime); outline-offset: -2px; }
.drive-bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; color: #9aa0a8; flex-wrap: wrap; max-width: 640px; }
.drive-bar .btn { background: #23262c; border-color: #3a3e46; color: #e8eaed; }
.mark-btn.on { background: var(--lime) !important; border-color: var(--lime) !important; color: var(--ink) !important; }
.ann-time { background: #23262c; border-color: #3a3e46 !important; color: #e8eaed; margin-bottom: 6px; height: 32px; }
.drive-btn { color: var(--text-2); }


/* Emojis, gravador de voz e áudio */
.tool-btn { width: 30px; height: 30px; }
.tool-emoji { font-size: 17px; line-height: 1; }
.emoji-menu { width: 330px; max-width: calc(100vw - 16px); max-height: 340px; }
.emoji-cat { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin: 6px 2px 4px; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.emoji { border: 0; background: none; font-size: 20px; line-height: 1; padding: 5px 0; border-radius: 6px; cursor: pointer; }
.emoji:hover { background: var(--bg-hover); }
.rec-wrap { display: inline-flex; align-items: center; gap: 2px; }
.rec-wrap.recording .mic-btn { background: var(--danger); color: #fff; animation: recpulse 1.2s infinite; }
@keyframes recpulse { 50% { box-shadow: 0 0 0 5px rgba(229, 72, 77, .25); } }
@media (prefers-reduced-motion: reduce) { .rec-wrap.recording .mic-btn { animation: none; } }
.rec-time { font-size: 12px; font-weight: 600; color: var(--danger); font-variant-numeric: tabular-nums; min-width: 32px; }
.rec-cancel { width: 22px; height: 22px; }
.audio-el { height: 36px; width: 240px; max-width: 100%; display: block; }
.cm-files .audio-el { margin-top: 2px; }
.aud-pv { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 8px; color: var(--accent-ink); cursor: default; }
.aud-pv .audio-el { width: 100%; }
.ann-actions { display: flex; align-items: center; gap: 2px; margin-top: 6px; }
.ann-compose .icon-btn { color: #9aa0a8; }
.ann-compose .icon-btn:hover { background: #2a2d33; color: #fff; }
.ann-compose .cm-chip { background: #23262c; border-color: #3a3e46; color: #e8eaed; }
.ann-compose.over { outline: 2px dashed var(--lime); outline-offset: -4px; }
.ann-item .cm-doc { color: #e8eaed; border-color: #3a3e46; }
.ann-item .cm-thumb { border-color: #3a3e46; }
.mw-compose .tool-btn { width: 26px; height: 26px; }
.mw-compose .rec-time { min-width: 0; }
.chat-compose .rec-wrap, .chat-compose .tool-btn { align-self: flex-end; margin-bottom: 4px; }

/* Fotos de perfil */
.av.has-img { background-size: cover; background-position: center; color: transparent; }
.av.xl { width: 72px; height: 72px; font-size: 24px; border-width: 3px; }
.av-picker { display: flex; align-items: center; gap: 14px; margin: 6px 0 4px; }
.av-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.av-actions .muted { flex-basis: 100%; }

/* Docs */
.content.doc-mode { padding: 0; overflow: hidden; display: flex; }
.doc-wrap { flex: 1; display: grid; grid-template-columns: 250px 1fr; min-height: 0; height: 100%; }
.doc-side { border-right: 1px solid var(--border); background: var(--bg-soft); padding: 14px 8px; overflow: auto; }
.doc-side-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 0 10px 8px; }
.doc-pages { display: flex; flex-direction: column; gap: 1px; }
.doc-page { display: flex; align-items: center; gap: 8px; height: 32px; padding-right: 4px; border-radius: 6px; cursor: pointer; color: var(--text-2); }
.doc-page:hover { background: var(--bg-hover); color: var(--text); }
.doc-page.active { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.doc-page .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-page .more { opacity: 0; }
.doc-page:hover .more, .doc-page.active .more { opacity: 1; }
.doc-ic { width: 18px; text-align: center; flex: none; font-size: 14px; }
.doc-add { display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; margin-top: 6px; padding: 0 10px; border: 0; background: none; color: var(--text-3); border-radius: 6px; cursor: pointer; font: inherit; }
.doc-add:hover { background: var(--bg-hover); color: var(--text); }
.doc-main { overflow: auto; min-width: 0; }
.doc-sheet { max-width: 780px; margin: 0 auto; padding: 36px 40px 120px; }
.doc-icon { font-size: 44px; line-height: 1; background: none; border: 0; cursor: pointer; padding: 4px; border-radius: 8px; margin-left: -4px; }
.doc-icon:hover { background: var(--bg-hover); }
.doc-link-row { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12px; margin: 10px 0 4px; }
input.doc-title, input.doc-title:focus { width: 100%; border: 0; box-shadow: none; border-radius: 0; outline: none; background: none; color: var(--text); font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 34px; line-height: 1.2; padding: 4px 0; }
.doc-title::placeholder { color: var(--text-3); }
.doc-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--text-3); font-size: 12px; margin: 6px 0 14px; }
.doc-meta .av { width: 20px; height: 20px; font-size: 9px; border-width: 0; }
.doc-status { margin-left: 6px; color: var(--accent-ink); font-weight: 600; }
.doc-toolbar { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px 4px; margin: 0 -4px 10px; background: var(--bg); border-bottom: 1px solid var(--border); }
.doc-tb { min-width: 30px; height: 30px; padding: 0 7px; border: 0; background: none; border-radius: 6px; cursor: pointer; color: var(--text-2); font: inherit; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.doc-tb:hover { background: var(--bg-hover); color: var(--text); }
.doc-sep { width: 1px; height: 18px; background: var(--border-strong); margin: 0 4px; }
.doc-emoji { position: relative; display: inline-flex; }
.doc-body { outline: none; min-height: 320px; font-size: 15px; line-height: 1.7; color: var(--text); word-wrap: break-word; }
.doc-body:empty::before { content: attr(data-placeholder); color: var(--text-3); pointer-events: none; }
.doc-body h1, .doc-body h2, .doc-body h3 { font-family: var(--display); font-stretch: 112%; line-height: 1.25; margin: 1.2em 0 .4em; }
.doc-body h1 { font-size: 26px; font-weight: 800; }
.doc-body h2 { font-size: 21px; font-weight: 700; }
.doc-body h3 { font-size: 17px; font-weight: 700; }
.doc-body p { margin: 0 0 .6em; }
.doc-body ul, .doc-body ol { margin: 0 0 .7em; padding-left: 26px; }
.doc-body li { margin: 2px 0; }
.doc-body blockquote { margin: .6em 0; padding: 4px 14px; border-left: 3px solid var(--lime); background: var(--bg-soft); border-radius: 0 6px 6px 0; color: var(--text-2); }
.doc-body hr { border: 0; border-top: 1px solid var(--border-strong); margin: 1.2em 0; }
.doc-body img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: .6em 0; }
.doc-body a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.doc-body ul.checklist { list-style: none; padding-left: 4px; }
.doc-body ul.checklist > li { position: relative; padding-left: 28px; }
.doc-body ul.checklist > li::before { content: ''; position: absolute; left: 2px; top: .38em; width: 15px; height: 15px; border: 1.5px solid var(--border-strong); border-radius: 4px; background: var(--bg); cursor: pointer; }
.doc-body ul.checklist > li[data-checked="true"] { color: var(--text-3); text-decoration: line-through; }
.doc-body ul.checklist > li[data-checked="true"]::before { background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%231a1a1a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--lime); }
@media (max-width: 760px) {
  .doc-wrap { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .doc-side { border-right: 0; border-bottom: 1px solid var(--border); max-height: 170px; }
  .doc-sheet { padding: 22px 16px 80px; }
  .doc-title { font-size: 27px; }
}

/* Chamadas de vídeo e voz */
.call-start { color: var(--text-2); }
.mw-head .call-start { color: #cfcfcf; width: 26px; height: 26px; }
.mw-head .call-start:hover { color: var(--lime); background: rgba(255,255,255,.08); }
.call-win { position: fixed; inset: 18px; z-index: 900; display: flex; flex-direction: column; background: #111; color: #f4f4f4; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.45); overflow: hidden; }
.call-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px 18px; font-size: 14px; user-select: none; }
.call-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-family: var(--display); font-stretch: 112%; min-width: 0; }
.call-title > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-title svg { color: var(--lime); }
.call-clock { color: #9a9a9a; font-variant-numeric: tabular-nums; font-size: 13px; }
.call-sp { flex: 1; }
.call-head .icon-btn { color: #cfcfcf; }
.call-head .icon-btn:hover { background: #262626; color: #fff; }
.call-stage { flex: 1; min-height: 0; position: relative; padding: 4px 14px; }
.call-grid { position: absolute; inset: 4px 14px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); grid-auto-rows: 1fr; }
.call-grid[data-n="1"] { grid-template-columns: 1fr; }
.call-grid[data-n="2"] { grid-template-columns: 1fr; }
.call-grid[data-n="3"], .call-grid[data-n="4"] { grid-template-columns: 1fr 1fr; }
.call-tile { position: relative; background: #1f1f1f; border-radius: 12px; overflow: hidden; min-height: 0; outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .15s; }
.call-tile.speaking { outline-color: var(--lime); }
.call-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.call-tile.screen video { object-fit: contain; }
.call-tile.mirror video { transform: scaleX(-1); }
.call-tile.novideo video { opacity: 0; }
.ct-av { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; }
.call-tile.novideo .ct-av { display: flex; }
.ct-av .av { width: 96px; height: 96px; font-size: 32px; border: 0; }
.ct-name { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 20px); padding: 4px 10px; border-radius: 8px; background: rgba(0,0,0,.55); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-mic { display: none; color: #ff6b6b; }
.call-tile.muted .ct-mic { display: inline-flex; }
.ct-state { position: absolute; top: 10px; left: 10px; font-size: 12px; color: #cfcfcf; }
.ct-state:empty { display: none; }
.call-win.duo .call-tile[data-uid]:last-child { position: absolute; right: 16px; bottom: 16px; width: min(26%, 240px); aspect-ratio: 16 / 10; height: auto; z-index: 2; box-shadow: 0 6px 20px rgba(0,0,0,.5); border: 1px solid #333; }
.call-win.duo .call-tile:last-child .ct-av .av { width: 48px; height: 48px; font-size: 17px; }
.call-win.duo .call-tile:last-child .ct-name { font-size: 11px; padding: 2px 7px; left: 6px; bottom: 6px; }
.call-wait { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 18px; border-radius: 12px; background: rgba(0,0,0,.6); text-align: center; font-weight: 600; }
.call-wait small { color: #b5b5b5; font-weight: 400; font-size: 12px; }
.call-bar { display: flex; justify-content: center; gap: 12px; padding: 14px; }
.call-btn { width: 50px; height: 50px; border-radius: 50%; border: 0; background: #2e2e2e; color: #f4f4f4; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s; }
.call-btn:hover { background: #3d3d3d; }
.call-btn.off { background: #f4f4f4; color: #1a1a1a; }
.call-btn.on { background: var(--lime); color: #1a1a1a; }
.call-btn.leave { background: var(--danger); width: 64px; border-radius: 26px; }
.call-btn.leave:hover { background: #c93c40; }
.call-win.min { inset: auto auto 20px 20px; width: 300px; height: 230px; border-radius: 14px; }
.call-win.min .call-head { padding: 8px 8px 4px 12px; font-size: 12px; }
.call-win.min .call-stage { padding: 0 8px; }
.call-win.min .call-grid { inset: 0 8px; grid-template-columns: 1fr !important; }
.call-win.min .call-tile:not(:first-child) { display: none; }
.call-win.min.duo .call-tile:last-child { display: none; }
.call-win.min .ct-av .av { width: 56px; height: 56px; font-size: 19px; }
.call-win.min .call-wait { top: 8px; padding: 6px 10px; font-size: 12px; }
.call-win.min .call-wait small { display: none; }
.call-win.min .call-bar { gap: 8px; padding: 8px; }
.call-win.min .call-btn { width: 38px; height: 38px; }
.call-win.min .call-btn svg { width: 17px; height: 17px; }
.call-win.min .call-btn.leave { width: 50px; }
.call-ring { position: fixed; right: 20px; bottom: 92px; z-index: 950; width: 320px; padding: 16px; border-radius: 14px; background: var(--ink); color: #f4f4f4; box-shadow: 0 16px 40px rgba(0,0,0,.4); animation: ringIn .25s ease-out; }
.call-ring.dm .cr-who .av { animation: ringPulse 1.4s infinite; }
@keyframes ringIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ringPulse { 0% { box-shadow: 0 0 0 0 rgba(160,242,44,.6); } 70% { box-shadow: 0 0 0 12px rgba(160,242,44,0); } 100% { box-shadow: 0 0 0 0 rgba(160,242,44,0); } }
.cr-who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cr-who .av { width: 44px; height: 44px; font-size: 15px; border: 0; }
.cr-tx { display: flex; flex-direction: column; min-width: 0; }
.cr-tx b { font-size: 15px; }
.cr-tx small { color: #b5b5b5; font-size: 12px; }
.cr-btns { display: flex; gap: 8px; }
.cr-btns .btn { flex: 1; height: 38px; }
.cr-no { background: #2e2e2e; border-color: #3d3d3d; color: #f4f4f4; }
.cr-no:hover { background: var(--danger); border-color: var(--danger); }
.call-card { display: inline-flex; flex-direction: column; gap: 10px; margin-top: 4px; padding: 12px; min-width: 280px; max-width: 100%; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.call-card.live { border-color: var(--lime); background: var(--accent-soft); }
.cc-top { display: flex; align-items: center; gap: 10px; }
.cc-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); flex: none; }
.call-card.live .cc-ic { background: var(--lime); color: #1a1a1a; }
.cc-tx { display: flex; flex-direction: column; min-width: 0; }
.cc-tx small { color: var(--text-3); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cc-avs { display: inline-flex; }
.cc-avs .av { width: 18px; height: 18px; font-size: 8px; margin-left: -4px; border-width: 1px; }
.cc-avs .av:first-child { margin-left: 0; }
.cc-join { width: 100%; }
.call-card.compact { min-width: 0; width: 100%; padding: 8px; gap: 8px; }
.call-card.compact .cc-ic { width: 28px; height: 28px; }
.mw-msg.mw-call { max-width: 100%; }
@media (max-width: 760px) {
  .call-win { inset: 0; border-radius: 0; }
  .call-grid[data-n="3"], .call-grid[data-n="4"] { grid-template-columns: 1fr; }
  .call-win.min { inset: auto auto 84px 12px; width: 200px; height: 170px; }
  .call-btn { width: 46px; height: 46px; }
  .call-ring { left: 12px; right: 12px; width: auto; bottom: 84px; }
  .call-win.duo .call-tile[data-uid]:last-child { width: 32%; aspect-ratio: 3 / 4; }
}

/* Modal */
.overlay { position: fixed; inset: 0; background: rgba(15, 17, 23, .45); display: flex; align-items: flex-start; justify-content: center; z-index: 70; padding: 40px 16px; overflow-y: auto; }
.modal { background: var(--bg); border-radius: 12px; box-shadow: var(--shadow); width: 100%; max-width: 480px; padding: 20px; }
.modal h3 { margin: 0 0 6px; font-family: var(--display); font-stretch: 110%; font-size: 18px; font-weight: 800; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* Painel da tarefa */
.task-modal { max-width: 1180px; padding: 0; display: grid; grid-template-columns: 1fr 380px; min-height: 80vh; overflow: hidden; }
.tm-main { padding: 20px 28px 32px; min-width: 0; }
.tm-side { border-left: 1px solid var(--border); background: var(--bg-soft); display: flex; flex-direction: column; max-height: calc(100vh - 80px); position: sticky; top: 0; }
.tm-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.tm-top .spacer { flex: 1; }
.tm-title { font-family: var(--display); font-stretch: 108%; font-size: 24px; font-weight: 800; border: 0; padding: 4px 0; width: 100%; background: transparent; border-radius: 4px; resize: none; overflow: hidden; line-height: 1.3; }
.tm-title:focus { box-shadow: none; outline: 1px solid var(--border-strong); }
.props { display: grid; grid-template-columns: 140px 1fr 140px 1fr; gap: 6px 12px; margin: 14px 0 18px; align-items: center; }
.props .k { font-size: 12px; color: var(--text-2); display: flex; gap: 6px; align-items: center; }
.props .v { min-height: 30px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.props select, .props input { height: 30px; padding: 0 8px; }
.status-btn { border: 0; cursor: pointer; }
.section-title { font-size: 13px; font-weight: 700; margin: 22px 0 8px; display: flex; align-items: center; gap: 8px; }
.desc { min-height: 120px; }
.desc-view { white-space: pre-wrap; line-height: 1.55; padding: 8px 10px; border-radius: 6px; border: 1px solid transparent; cursor: text; min-height: 60px; word-break: break-word; }
.desc-view:hover { border-color: var(--border); }
.desc-view.empty { color: var(--text-3); }
.subtask { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-bottom: 1px solid var(--border); cursor: pointer; }
.subtask:hover { background: var(--bg-soft); }
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.att { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; cursor: pointer; position: relative; background: var(--bg); }
.att:hover { border-color: var(--accent); }
.att .pv { aspect-ratio: 4/3; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.att .pv img, .att .pv video { width: 100%; height: 100%; object-fit: cover; }
.att .nm { font-size: 12px; padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att .ann-count { position: absolute; top: 6px; left: 6px; background: #f8ae00; color: #222; font-size: 11px; font-weight: 700; border-radius: 10px; padding: 0 7px; }
.att .del { position: absolute; top: 4px; right: 4px; background: rgba(0, 0, 0, .55); color: #fff; opacity: 0; }
.att:hover .del { opacity: 1; }
.dropzone { border: 2px dashed var(--border-strong); border-radius: 8px; padding: 18px; text-align: center; color: var(--text-3); cursor: pointer; }
.dropzone.over { border-color: var(--accent-ink); color: var(--accent-ink); background: var(--accent-soft); }
.side-tabs { display: flex; border-bottom: 1px solid var(--border); padding: 0 12px; }
.feed { flex: 1; overflow-y: auto; padding: 12px 14px; }
.feed-item { margin-bottom: 14px; }
.feed-item.act { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.cm { display: flex; gap: 8px; }
.cm .bubble { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.cm .bubble .hd { font-size: 12px; display: flex; gap: 6px; align-items: center; margin-bottom: 3px; }
.cm .bubble .hd b { font-size: 13px; }
.cm .bubble .bd { white-space: pre-wrap; word-break: break-word; line-height: 1.45; }
.cm .bubble.resolved { opacity: .55; }
.ann-ref { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; background: #fff4d6; color: #7a5600; border-radius: 4px; padding: 1px 6px; margin-bottom: 4px; cursor: pointer; }
.composer { border-top: 1px solid var(--border); padding: 10px 12px; background: var(--bg); }
.composer textarea { min-height: 54px; }
.composer .row-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }

/* Visualizador de anexo com marcações */
.viewer { position: fixed; inset: 0; background: #111317; z-index: 80; display: grid; grid-template-columns: 1fr 360px; color: #e8eaed; }
.viewer-stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.viewer-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid #2a2d33; }
.viewer-bar .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.viewer-bar .icon-btn { color: #c9cdd3; }
.viewer-bar .icon-btn:hover { background: #2a2d33; color: #fff; }
.viewer-media { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px; min-height: 0; overflow: auto; }
.media-col { display: inline-flex; flex-direction: column; max-width: 100%; }
.media-wrap { position: relative; display: inline-block; max-width: 100%; max-height: 100%; line-height: 0; cursor: crosshair; }
.media-wrap img, .media-wrap video { max-width: 100%; max-height: calc(100vh - 150px); display: block; user-select: none; }
.pin { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #f8ae00; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pin span { transform: rotate(45deg); font-size: 11px; font-weight: 700; color: #222; line-height: 1; }
.pin.resolved { background: #00b150; }
.pin.draft { background: var(--lime); animation: pulse 1s infinite; }
.pin.hl { box-shadow: 0 0 0 4px rgba(248, 174, 0, .5); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(123, 104, 238, .35); } }
.viewer-side { background: #1a1c21; border-left: 1px solid #2a2d33; display: flex; flex-direction: column; min-height: 0; }
.viewer-side h4 { margin: 0; padding: 14px 16px; border-bottom: 1px solid #2a2d33; font-size: 14px; }
.ann-list { flex: 1; overflow-y: auto; padding: 10px 12px; }
.ann-item { background: #23262c; border: 1px solid #2f333a; border-radius: 8px; padding: 10px; margin-bottom: 8px; cursor: pointer; }
.ann-item:hover, .ann-item.hl { border-color: #f8ae00; }
.ann-item.resolved { opacity: .55; }
.ann-item .hd { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 4px; }
.ann-item .num { background: #f8ae00; color: #222; border-radius: 10px; font-weight: 700; font-size: 11px; padding: 0 7px; }
.ann-item .bd { white-space: pre-wrap; line-height: 1.45; font-size: 13px; }
.ann-item .acts { display: flex; gap: 6px; margin-top: 6px; }
.ann-item .acts button { background: none; border: 0; color: #9aa0a8; cursor: pointer; font-size: 12px; padding: 0; }
.ann-item .acts button:hover { color: #fff; }
.ann-compose { border-top: 1px solid #2a2d33; padding: 12px; }
.ann-compose textarea { background: #23262c; border-color: #3a3e46; color: #e8eaed; }
.ann-hint { font-size: 12px; color: #9aa0a8; margin-bottom: 8px; line-height: 1.4; }
.timeline { position: relative; height: 18px; margin: 10px 0 0; }
.timeline .tick { position: absolute; top: 3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #f8ae00; border: 2px solid #111317; cursor: pointer; }
.timeline .tick.resolved { background: #00b150; }
.timeline .track { position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: #2f333a; }

/* Chat */
.chat { display: flex; flex-direction: column; height: 100%; }
.msgs { flex: 1; overflow-y: auto; padding: 16px 20px; }
.msg { display: flex; gap: 10px; padding: 6px 8px; border-radius: 8px; }
.msg:hover { background: var(--bg-soft); }
.msg .bd { flex: 1; min-width: 0; }
.msg .hd { font-size: 12px; color: var(--text-3); display: flex; gap: 8px; align-items: baseline; }
.msg .hd b { color: var(--text); font-size: 14px; }
.msg .tx { white-space: pre-wrap; word-break: break-word; line-height: 1.5; }
.msg .tools { opacity: 0; display: flex; gap: 2px; }
.msg:hover .tools { opacity: 1; }
.msg.cont { padding-top: 0; }
.msg.cont .av { visibility: hidden; height: 0; }
.msg.cont .hd { display: none; }
.msg-file img, .msg-file video { max-width: 320px; max-height: 240px; border-radius: 8px; margin-top: 6px; display: block; }
.day-sep { text-align: center; font-size: 11px; color: var(--text-3); margin: 14px 0 6px; font-weight: 600; }
.chat-compose { border-top: 1px solid var(--border); padding: 12px 20px 16px; display: flex; gap: 8px; align-items: flex-end; }
.chat-compose textarea { min-height: 42px; max-height: 180px; }
.empty-state { text-align: center; color: var(--text-3); padding: 60px 20px; }

/* Configurações */
.settings-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.settings-table td, .settings-table th { border-bottom: 1px solid var(--border); padding: 8px; text-align: left; font-size: 13px; }
.settings-table th { font-size: 11px; color: var(--text-3); text-transform: uppercase; }
.status-edit { display: grid; grid-template-columns: 18px 36px 1fr 120px 32px; gap: 6px; align-items: center; margin-top: 6px; }
.status-edit input[type=color], .opt-edit input[type=color] { width: 36px; height: 30px; padding: 2px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--bg); }
.opt-edit { display: grid; grid-template-columns: 18px 36px 1fr 32px; gap: 6px; align-items: center; margin-top: 6px; }

/* Menu suspenso */
.menu { position: fixed; z-index: 100; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); padding: 4px; min-width: 200px; max-height: min(560px, calc(100vh - 16px)); overflow-y: auto; }
.menu .mi { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.menu .mi:hover { background: var(--bg-hover); }
.menu .mi.sel { font-weight: 600; }
.menu .sep { height: 1px; background: var(--border); margin: 4px 0; }
.menu input { margin-bottom: 4px; height: 30px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #292d34; color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; font-size: 13px; box-shadow: var(--shadow); }
.toast.err { background: var(--danger); }

/* Responsivo */
@media (max-width: 1000px) {
  .task-modal { grid-template-columns: 1fr; }
  .tm-side { max-height: none; border-left: 0; border-top: 1px solid var(--border); position: static; min-height: 400px; }
  .props { grid-template-columns: 110px 1fr; }
  .viewer { grid-template-columns: 1fr; grid-template-rows: 1fr 45vh; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 40; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .app.menu-open .sidebar { transform: none; }
  .mobile-menu { display: inline-flex; }
  .topbar, .toolbar, .tabs { padding-left: 16px; padding-right: 16px; }
  .content { padding: 0 16px 40px; }
  .row, .row-head { grid-template-columns: minmax(180px, 1fr) 90px; }
  .row > div:nth-child(n+3), .row-head > div:nth-child(n+3) { display: none; }
  .overlay { padding: 0; }
  .modal { border-radius: 0; min-height: 100vh; }
  .tm-main { padding: 16px; }
  .msg-file img, .msg-file video { max-width: 100%; }
}

/* Opções da tarefa, link público, mover e modelos */
.menu.to-pop { padding: 6px; width: 270px; max-height: none; }
.to-top { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border-strong); border-radius: 7px; overflow: hidden; margin-bottom: 6px; }
.to-top button { border: 0; background: var(--bg); color: var(--text); font: inherit; font-size: 12px; font-weight: 500; padding: 7px 4px; cursor: pointer; }
.to-top button + button { border-left: 1px solid var(--border-strong); }
.to-top button:hover { background: var(--bg-hover); }
.menu .to-item { width: 100%; border: 0; background: none; color: var(--text); font: inherit; font-size: 13px; text-align: left; }
.menu .to-item svg { color: var(--text-2); }
.menu .to-item.to-public { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; margin: 2px 0; }
.menu .to-item.to-public svg { color: var(--accent-ink); }
.menu .to-item.to-public:hover { background: var(--lime); color: #1a1a1a; }
.menu .to-item.to-public:hover svg { color: #1a1a1a; }
.to-on { font-size: 10px; font-weight: 700; text-transform: uppercase; background: var(--lime); color: #1a1a1a; padding: 1px 6px; border-radius: 4px; }
.menu .to-item.to-danger, .menu .to-item.to-danger svg { color: var(--danger); }
.btn.share-on { background: var(--accent-soft); border-color: var(--lime); color: var(--accent-ink); font-weight: 600; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.share-modal input[readonly] { font-size: 13px; background: var(--bg-soft); }
.move-modal { width: min(520px, calc(100vw - 32px)); }
.move-res { max-height: 360px; overflow-y: auto; margin-top: 8px; border: 1px solid var(--border); border-radius: 8px; padding: 4px; }
.move-sec { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); padding: 8px 8px 4px; }
.move-it { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border: 0; background: none; border-radius: 6px; cursor: pointer; font: inherit; font-size: 13px; color: var(--text); text-align: left; }
.move-it span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.move-it small { color: var(--text-3); flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.move-it:hover { background: var(--bg-hover); }
.move-it.cur { background: var(--accent-soft); }
.move-empty { padding: 6px 8px 10px; }
.menu.tpl-pick { z-index: 1200; padding: 4px; max-height: 320px; }
.tpl-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); padding: 6px 10px 4px; }
.tpl-head small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.tpl-empty { padding: 8px 10px 10px; font-size: 13px; color: var(--text-3); }
.tpl-pick .mi small { max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 14px; }
.tpl-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.tpl-card-hd { display: flex; align-items: center; gap: 4px; }
.tpl-body { margin: 0; font-family: var(--font); font-size: 12px; color: var(--text-2); white-space: pre-wrap; max-height: 160px; overflow: hidden; background: var(--bg-soft); border-radius: 6px; padding: 8px 10px; }
.tpl-modal { width: min(620px, calc(100vw - 32px)); }
.menu.qd-pop { min-width: 0; padding: 10px; }
.qd { display: flex; flex-direction: column; gap: 8px; }
.qd input { margin: 0; }
.qd-btns { display: flex; gap: 6px; }
.subs-edit { align-self: stretch; display: flex; align-items: center; border-radius: 6px; }
.subs-row .subs-edit:hover { background: var(--bg-hover); box-shadow: inset 0 0 0 1px var(--border-strong); }
.guest-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; background: var(--accent-soft); color: var(--accent-ink); padding: 1px 6px; border-radius: 4px; }

/* Texto formatado (descrição da tarefa e Docs) */
.rt-wrap { position: relative; margin-bottom: 6px; }
.doc-body.rt-desc { min-height: 90px; font-size: 14px; line-height: 1.6; padding: 8px 10px; margin: 0 -10px; border-radius: 8px; border: 1px solid transparent; }
.doc-body.rt-desc:hover { border-color: var(--border); }
.doc-body.rt-desc:focus { border-color: var(--border-strong); background: var(--bg); }
.doc-body.rt-desc h1 { font-size: 22px; margin-top: .6em; }
.doc-body.rt-desc h2 { font-size: 18px; margin-top: .6em; }
.doc-body.rt-desc h3 { font-size: 16px; margin-top: .6em; }
.doc-body h4 { font-family: var(--display); font-stretch: 112%; font-size: 14px; font-weight: 700; margin: 1em 0 .3em; }
.doc-body.rt-desc > :first-child { margin-top: 0; }
.doc-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--bg-soft); border: 1px solid var(--border); padding: 1px 5px; border-radius: 5px; color: #d6336c; }
.doc-body .al-center { text-align: center; }
.doc-body .al-right { text-align: right; }
.doc-body .al-justify { text-align: justify; }
.tc-gray { color: #87909e; } .tc-red { color: #e5484d; } .tc-orange { color: #f76808; } .tc-yellow { color: #c79400; } .tc-green { color: #3f9b0b; } .tc-blue { color: #0b84e5; } .tc-purple { color: #8e4ec6; } .tc-pink { color: #e93d82; }
/* Destaques no estilo do ClickUp: claros no tema claro, tons médios e marcantes no tema escuro */
:root { --hl-gray: #e3e5e8; --hl-red: #fdd8d8; --hl-orange: #ffe2c7; --hl-yellow: #fff1a8; --hl-green: #d3f2c2; --hl-blue: #d2e6ff; --hl-purple: #e6dafc; --hl-pink: #ffd6ea; --hl-text: inherit; }
:root[data-theme="dark"] { --hl-gray: #5b616b; --hl-red: #b9474b; --hl-orange: #c2682b; --hl-yellow: #b59523; --hl-green: #4c8a5c; --hl-blue: #3f74b5; --hl-purple: #7553b0; --hl-pink: #b04a82; --hl-text: #111; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hl-gray: #5b616b; --hl-red: #b9474b; --hl-orange: #c2682b; --hl-yellow: #b59523; --hl-green: #4c8a5c; --hl-blue: #3f74b5; --hl-purple: #7553b0; --hl-pink: #b04a82; --hl-text: #111; } }
.bg-gray { background: var(--hl-gray); } .bg-red { background: var(--hl-red); } .bg-orange { background: var(--hl-orange); } .bg-yellow { background: var(--hl-yellow); } .bg-green { background: var(--hl-green); } .bg-blue { background: var(--hl-blue); } .bg-purple { background: var(--hl-purple); } .bg-pink { background: var(--hl-pink); }
span[class*="bg-"] { color: var(--hl-text); border-radius: 5px; padding: 1px 5px; margin: 0 1px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
span[class*="bg-"] ::selection, span[class*="bg-"]::selection { background: rgba(80, 140, 255, .55); }
.rt-status { position: absolute; right: 0; top: -24px; font-size: 12px; color: var(--accent-ink); font-weight: 600; }
.rt-bar { position: fixed; z-index: 1100; display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 10px; background: #1f1f1f; border: 1px solid #333; box-shadow: 0 10px 30px rgba(0,0,0,.35); color: #e9e9e9; }
.rt-b { min-width: 32px; height: 32px; padding: 0 7px; border: 0; border-radius: 7px; background: none; color: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 15px; }
.rt-b:hover { background: #333; }
.rt-b.on { background: rgba(160, 242, 44, .18); color: var(--lime); }
.rt-dd { display: inline-flex; align-items: center; gap: 3px; }
.rt-dd svg:last-child { opacity: .7; }
.rt-hl { font-family: var(--display); font-size: 14px; }
.rt-code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.rt-sep { width: 1px; height: 20px; background: #3d3d3d; margin: 0 3px; }
.rt-swatch { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, var(--lime) 50%, #0b84e5 50%); border: 1px solid rgba(255,255,255,.3); }
.rt-menu { position: absolute; top: calc(100% + 6px); z-index: 2; min-width: 180px; padding: 4px; border-radius: 9px; background: #1f1f1f; border: 1px solid #333; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.rt-mi { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 0; background: none; color: #e9e9e9; border-radius: 6px; cursor: pointer; font: inherit; font-size: 13px; text-align: left; }
.rt-mi:hover { background: #333; }
.rt-mi.on { color: var(--lime); font-weight: 600; }
.rt-colors { padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.rt-colors small { font-size: 11px; color: #9a9a9a; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.rt-sw { display: grid; grid-template-columns: repeat(9, 24px); gap: 4px; }
.rt-c { width: 24px; height: 24px; border-radius: 6px; border: 1px solid #3d3d3d; background: #262626; cursor: pointer; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; color: #e9e9e9; padding: 0; }
.rt-c:hover { outline: 2px solid var(--lime); outline-offset: 1px; }
.rt-c.rt-bg { border-color: #555; }
@media (max-width: 560px) { .rt-bar { flex-wrap: wrap; max-width: calc(100vw - 16px); } .rt-sw { grid-template-columns: repeat(5, 28px); } .rt-c { width: 28px; height: 28px; } }
.att .att-share { position: absolute; top: 4px; right: 38px; width: 28px; height: 28px; background: rgba(26,26,26,.75); color: var(--lime); border-radius: 7px; opacity: 0; transition: opacity .15s; }
.att:hover .att-share, .att .att-share:focus { opacity: 1; }
.att .att-share:hover { background: var(--lime); color: #1a1a1a; }
@media (hover: none) { .att .att-share { opacity: 1; } }
.viewer-share { background: var(--lime); border-color: var(--lime); color: #1a1a1a; font-weight: 700; }
.viewer-share:hover { background: #b6ff4d; }

/* Tabelas no texto formatado */
.doc-body table { border-collapse: collapse; width: 100%; margin: .6em 0; font-size: .95em; table-layout: auto; }
.doc-body th, .doc-body td { border: 1px solid var(--border-strong); padding: 6px 10px; vertical-align: top; min-width: 60px; text-align: left; }
.doc-body th { background: var(--bg-soft); font-weight: 700; }
.rt-view table, .bubble .doc-body table { display: block; overflow-x: auto; }
.rt-tbar { position: fixed; z-index: 1090; display: flex; align-items: center; gap: 2px; padding: 4px 6px; border-radius: 9px; background: #1f1f1f; border: 1px solid #333; color: #e9e9e9; box-shadow: 0 8px 24px rgba(0,0,0,.3); font-size: 12px; }
.rt-tbar > span:first-child { color: var(--lime); margin: 0 4px 0 2px; }
.rt-tb { border: 0; background: none; color: inherit; font: inherit; font-size: 12px; font-weight: 600; padding: 5px 8px; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; }
.rt-tb:hover { background: #333; }
.rt-tb.danger { color: #ff7b7f; }
.rt-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--text-3); }
/* Campo de digitação formatado (comentários e chat) */
.doc-body.rt-input { min-height: 40px; max-height: 260px; overflow-y: auto; font-size: 14px; line-height: 1.5; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg); outline: none; }
.doc-body.rt-input:focus { border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.doc-body.rt-input p { margin: 0 0 .3em; }
.doc-body.rt-input:empty::before { font-size: 13px; }
.doc-body.rt-mini { min-height: 34px; max-height: 110px; padding: 6px 10px; font-size: 13px; }
.doc-body.rt-chat { max-height: 200px; }
.doc-body.rt-view { font-size: inherit; line-height: 1.5; min-height: 0; }
.doc-body.rt-view p { margin: 0 0 .35em; }
.doc-body.rt-view > :last-child { margin-bottom: 0; }
.doc-body.rt-view h1 { font-size: 18px; } .doc-body.rt-view h2 { font-size: 16px; } .doc-body.rt-view h3, .doc-body.rt-view h4 { font-size: 14px; }
.doc-body.rt-view ul, .doc-body.rt-view ol { padding-left: 20px; margin: 0 0 .35em; }
/* Cabeçalho da tarefa */
.tm-crumb { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 0; }
.tm-crumb .sep { color: var(--text-3); }
.crumb-link { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); text-decoration: none; padding: 2px 6px; border-radius: 5px; margin-left: -6px; font-weight: 500; }
.crumb-link + .sep + .crumb-link { margin-left: 0; }
.crumb-link:hover { background: var(--bg-hover); color: var(--text); text-decoration: none; }
.tm-parent { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); margin: -2px 0 4px; flex-wrap: wrap; }
.tm-parent a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; text-decoration: none; padding: 2px 6px; border-radius: 5px; }
.tm-parent a:hover { background: var(--bg-hover); }
.tm-actions { display: flex; align-items: center; gap: 2px; }
.tm-actions .icon-btn.on { background: var(--accent-soft); color: var(--accent-ink); }
.tm-actions.in-main { display: none; }
.side-tabs { align-items: center; }
.side-tabs .tm-actions { padding: 4px 0; }
.list-tag.link { text-decoration: none; cursor: pointer; }
.list-tag.link:hover { background: var(--bg-hover); color: var(--text); text-decoration: underline; }
/* Barra lateral das subtarefas */
.task-modal.with-subs { grid-template-columns: 270px minmax(0, 1fr) 380px; max-width: 1440px; }
.tm-subs { border-right: 1px solid var(--border); background: var(--bg-soft); display: flex; flex-direction: column; max-height: calc(100vh - 80px); position: sticky; top: 0; min-width: 0; }
.tm-subs-hd { display: flex; align-items: center; gap: 8px; padding: 12px 10px 12px 14px; border-bottom: 1px solid var(--border); }
.tm-subs-list { overflow-y: auto; padding: 6px; flex: 1; }
.tm-subs-it { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; color: var(--text); text-decoration: none; font-size: 13px; min-width: 0; }
.tm-subs-it span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-subs-it.sub { padding-left: 22px; }
.tm-subs-it:hover { background: var(--bg-hover); text-decoration: none; }
.tm-subs-it.cur { background: var(--accent-soft); font-weight: 600; }
.tm-subs-add { margin: 6px 4px; width: calc(100% - 8px); font-size: 13px; height: 32px; background: transparent; border-style: dashed; }
/* Tarefas minimizadas (ao lado do botão de conversas) */
.min-tasks { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-bottom: 4px; }
body > .min-tasks { position: fixed; right: 84px; bottom: 20px; z-index: 60; }
.min-task { display: flex; align-items: center; max-width: 260px; background: var(--ink); color: #f4f4f4; border-radius: 22px; box-shadow: var(--shadow); padding: 0 4px 0 0; }
.min-task .mt-open { display: flex; align-items: center; gap: 8px; border: 0; background: none; color: inherit; font: inherit; font-size: 13px; font-weight: 600; padding: 10px 6px 10px 14px; cursor: pointer; min-width: 0; }
.mt-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.min-task .mt-x { border: 0; background: none; color: #9a9a9a; cursor: pointer; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.min-task .mt-x:hover { background: #333; color: #fff; }
.min-task:hover { outline: 2px solid var(--lime); }
@media (max-width: 1200px) { .task-modal.with-subs { grid-template-columns: 240px minmax(0, 1fr); } .task-modal.with-subs .tm-side { grid-column: 1 / -1; } }
@media (max-width: 1000px) {
  .tm-actions.in-main { display: flex; }
  .side-tabs .tm-actions { display: none; }
  .task-modal.with-subs { grid-template-columns: 1fr; }
  .tm-subs { position: static; max-height: 260px; border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 760px) { .min-task { max-width: 180px; } .tm-actions .lbl { display: none; } }
.chat-compose { padding-right: 84px !important; }

/* Cor das listas */
.list-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sb-muted); flex: none; display: inline-block; margin: 0 3px; }
.menu .list-dot { margin: 0 2px; }
.title-wrap { display: inline-flex; align-items: center; gap: 10px; }
.title-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; display: inline-block; }
.lc-pop { width: 248px; }
.lc-title { font-size: 12px; font-weight: 700; color: var(--text-3); margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.lc-sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.lc-sw:hover { transform: scale(1.1); }
.lc-sw.on { border-color: var(--text); }
.lc-hex { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.lc-hex .hex-in { flex: 1; min-width: 0; height: 30px; margin: 0; font-family: ui-monospace, Menlo, monospace; text-transform: uppercase; }
.hex-prev { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.hex-native { width: 30px; height: 30px; padding: 0; border: 1px solid var(--border-strong); border-radius: 6px; background: none; cursor: pointer; flex: none; }
/* Ícone das subtarefas ao lado do título */
.tm-title-row { display: flex; align-items: flex-start; gap: 6px; }
.tm-title-row .tm-title { flex: 1; }
.tm-subs-btn { margin-top: 6px; flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--border); }
.tm-subs-btn:hover, .tm-subs-btn.on { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--lime); }
/* Cartão do quadro */
.card-quick { display: flex; gap: 6px; margin: 8px 0 4px; flex-wrap: wrap; }
.cq { height: 28px; min-width: 28px; padding: 0 6px; border-radius: 7px; border: 1px solid var(--border); background: var(--bg); color: var(--text-3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font: inherit; font-size: 12px; }
.cq:hover { border-color: var(--border-strong); color: var(--text); background: var(--bg-hover); }
.cq.set { color: var(--text); }
.cq .avs .av { width: 20px; height: 20px; font-size: 8px; }
.card-meta { margin-top: 4px; font-size: 12px; color: var(--text-3); }
.card-subs { margin-top: 6px; border-top: 1px solid var(--border); padding-top: 6px; }
.cs-toggle { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 13px; padding: 4px 2px; cursor: pointer; border-radius: 6px; text-align: left; }
.cs-toggle:hover { background: var(--bg-hover); color: var(--text); }
.cs-toggle span:nth-child(2) { flex: 1; }
.cs-caret { transition: transform .15s; display: inline-flex; }
.card-subs.open .cs-caret { transform: rotate(180deg); }
.cs-list { display: none; flex-direction: column; gap: 2px; margin-top: 4px; }
.card-subs.open .cs-list { display: flex; }
.cs-it { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px; border-radius: 6px; cursor: pointer; min-width: 0; }
.cs-it:hover { background: var(--bg-hover); }
.cs-it > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-it .done { text-decoration: line-through; color: var(--text-3); }
.cs-it .st-icon svg { width: 15px; height: 15px; }
.cs-it .avs .av { width: 18px; height: 18px; font-size: 8px; }
/* Janela de nova tarefa */
.create-modal { width: min(760px, calc(100vw - 32px)); max-width: none; padding: 0; display: flex; flex-direction: column; border-radius: 14px; overflow: visible; }
.cr-head { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.cr-head b { font-family: var(--display); font-stretch: 112%; font-size: 15px; }
.cr-body { padding: 16px 20px 8px; display: flex; flex-direction: column; gap: 10px; }
.cr-top { display: flex; gap: 8px; flex-wrap: wrap; }
.cr-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg); color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; max-width: 100%; }
.cr-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-chip:hover { background: var(--bg-hover); color: var(--text); }
.cr-chip.set, .cr-chip.sel { color: var(--text); }
.cr-chip.sel { font-weight: 600; }
.cr-chip.parent { border-color: var(--lime); background: var(--accent-soft); max-width: 420px; }
.cr-chip.status { font-weight: 700; font-size: 12px; letter-spacing: .02em; }
.cr-chip.icon { padding: 0 8px; }
.cr-chip.field { height: 30px; font-size: 12px; justify-content: flex-start; }
.cr-chip .avs .av { width: 20px; height: 20px; font-size: 8px; }
.cr-name { border: 0; outline: none; background: transparent; resize: none; overflow: hidden; font-family: var(--display); font-stretch: 108%; font-size: 26px; font-weight: 800; line-height: 1.25; padding: 6px 0 0; color: var(--text); width: 100%; box-shadow: none !important; }
.cr-name::placeholder { color: var(--text-3); font-weight: 700; }
.doc-body.cr-desc { min-height: 110px; max-height: 40vh; overflow-y: auto; padding: 8px 10px; margin: 0 -10px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; line-height: 1.6; outline: none; }
.doc-body.cr-desc:hover { border-color: var(--border); }
.doc-body.cr-desc:focus { border-color: var(--border-strong); }
.cr-chips { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 6px; }
.cr-sub { font-size: 12px; font-weight: 700; color: var(--text-3); margin: 8px 0 6px; text-transform: uppercase; letter-spacing: .05em; }
.cr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 14px; }
.cr-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cr-fl { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-3); }
.cr-field-input { height: 30px; margin: 0; font-size: 13px; }
.cr-foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--bg-soft); border-radius: 0 0 14px 14px; }
.split { display: inline-flex; }
.split .cr-create { border-radius: 8px 0 0 8px; height: 38px; padding: 0 18px; font-weight: 700; }
.split .split-dd { border-radius: 0 8px 8px 0; height: 38px; padding: 0 10px; border-left: 1px solid rgba(0,0,0,.18); }
.menu.cr-parent-pop { max-height: none; }
@media (max-width: 760px) { .create-ov { padding: 0; } .create-modal { width: 100vw; min-height: 100vh; border-radius: 0; } .cr-name { font-size: 22px; } .cr-foot { border-radius: 0; position: sticky; bottom: 0; } }

/* Atalhos do canto superior direito */
.top-tools { display: flex; align-items: center; gap: 4px; margin-left: 4px; padding-left: 10px; border-left: 1px solid var(--border); }
.tt-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.tt-btn:hover { background: var(--bg-hover); color: var(--text); }
.tt-btn.on { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--lime); font-weight: 600; }
@media (max-width: 1200px) { .tt-lbl { display: none; } .tt-btn { padding: 0 8px; } }
/* Painel lateral */
.drawer { position: fixed; top: var(--gbar-h); right: 0; bottom: 0; width: min(440px, 100vw); z-index: 65; background: var(--bg); border-left: 1px solid var(--border); box-shadow: -12px 0 40px rgba(0,0,0,.14); display: flex; flex-direction: column; animation: dwIn .18s ease-out; }
body.has-demo .drawer { top: calc(var(--demo-h, 37px) + var(--gbar-h)); }
@keyframes dwIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.dw-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 12px 18px; border-bottom: 1px solid var(--border); }
.dw-head b { font-family: var(--display); font-stretch: 112%; font-size: 17px; }
.dw-sel { height: 30px; width: auto; font-size: 13px; padding: 0 8px; }
.dw-body { flex: 1; overflow-y: auto; padding: 16px 18px 40px; }
/* Meu trabalho */
.mw-hello { display: flex; flex-direction: column; margin-bottom: 14px; }
.mw-hello b { font-family: var(--display); font-stretch: 112%; font-size: 22px; }
.mw-hello span { color: var(--text-3); font-size: 13px; }
.mw-sec-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 18px 0 10px; }
.mw-sec-hd h3 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.mw-period { display: inline-flex; background: var(--bg-soft); border-radius: 8px; padding: 2px; }
.mw-period button { border: 0; background: none; font: inherit; font-size: 12px; padding: 4px 10px; border-radius: 6px; cursor: pointer; color: var(--text-2); }
.mw-period button.on { background: var(--bg); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.mw-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mw-stat { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.mw-stat b { font-family: var(--display); font-stretch: 112%; font-size: 26px; line-height: 1.1; }
.mw-stat span { font-size: 13px; color: var(--text-2); }
.mw-stat small { font-size: 11px; color: var(--text-3); }
.mw-stat.main { background: var(--ink); color: #f4f4f4; border-color: var(--ink); }
.mw-stat.main b { color: var(--lime); }
.mw-stat.main span { color: #e0e0e0; } .mw-stat.main small { color: #9a9a9a; }
.mw-chart { display: flex; align-items: flex-end; gap: 4px; height: 92px; margin-top: 12px; padding: 8px 0 0; }
.mw-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; min-width: 0; }
.mw-fill { width: 100%; max-width: 34px; background: var(--border-strong); border-radius: 4px 4px 2px 2px; }
.mw-bar.today .mw-fill { background: var(--lime); }
.mw-bar small { font-size: 10px; color: var(--text-3); text-transform: capitalize; }
.mw-bystatus { margin-top: 12px; }
.mw-stack { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--bg-soft); }
.mw-stack span { display: block; height: 100%; }
.mw-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: 12px; color: var(--text-2); }
.mw-legend span { display: inline-flex; align-items: center; gap: 5px; }
.mw-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.mw-legend b { color: var(--text); }
.mw-group { margin-bottom: 8px; }
.mw-group-hd { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; font: inherit; font-size: 13px; padding: 4px 2px; cursor: pointer; color: var(--text); }
.mw-group-hd svg { transition: transform .15s; }
.mw-group.closed .mw-group-hd svg { transform: rotate(-90deg); }
.mw-group.closed .mw-list { display: none; }
.mw-group-hd .cnt { font-size: 12px; color: var(--text-3); }
.mw-group.late .mw-group-hd b { color: var(--danger); }
.mw-task { display: flex; align-items: center; gap: 8px; padding: 7px 6px; border-radius: 8px; cursor: pointer; }
.mw-task:hover { background: var(--bg-hover); }
.mw-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mw-tx .nm { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-tx small { font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-due { font-size: 12px; color: var(--text-3); flex: none; }
.mw-due.late { color: var(--danger); font-weight: 600; } .mw-due.today { color: #d68a00; font-weight: 600; }
.mw-recent { display: flex; flex-direction: column; }
.mw-rc { display: flex; flex-direction: column; gap: 2px; padding: 7px 6px; border-radius: 8px; cursor: pointer; border-bottom: 1px solid var(--border); }
.mw-rc:hover { background: var(--bg-hover); }
.mw-rc .nm { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-flow { font-size: 12px; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.mw-flow i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.mw-rc small { font-size: 11px; color: var(--text-3); }
/* Bloco de notas */
.nt-item { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; background: var(--bg); }
.nt-item:hover { border-color: var(--border-strong); background: var(--bg-soft); }
.nt-item.pinned { border-color: var(--lime); }
.nt-it-hd { display: flex; align-items: center; gap: 6px; }
.nt-it-hd b { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-it-hd small { color: var(--text-3); font-size: 11px; flex: none; }
.nt-pin { color: var(--accent-ink); display: inline-flex; }
.nt-prev { font-size: 12px; color: var(--text-3); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nt-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 10px; color: var(--text-3); text-align: center; }
.nt-bar { display: flex; align-items: center; gap: 2px; margin: -4px 0 10px; }
.nt-bar .icon-btn.on { color: var(--accent-ink); background: var(--accent-soft); }
.nt-status { font-size: 12px; color: var(--accent-ink); font-weight: 600; margin-right: 6px; }
input.nt-title, input.nt-title:focus { width: 100%; border: 0; outline: none; box-shadow: none; background: none; font-family: var(--display); font-stretch: 112%; font-size: 22px; font-weight: 800; padding: 2px 0; color: var(--text); }
.nt-meta { font-size: 12px; color: var(--text-3); margin: 2px 0 10px; }
.doc-body.nt-editor { min-height: 300px; font-size: 14px; line-height: 1.6; outline: none; padding: 4px 0; }
.nt-foot { display: flex; align-items: center; gap: 4px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
@media (max-width: 760px) { .top-tools { border-left: 0; padding-left: 0; margin-left: 0; } .drawer { width: 100vw; } }
.dw-head-wrap { border-bottom: 1px solid var(--border); }
.dw-tabs { display: flex; align-items: center; gap: 4px; padding: 10px 12px 0 12px; }
.dw-tabs button:not(.icon-btn) { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font: inherit; font-size: 13px; color: var(--text-2); padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.dw-tabs button:not(.icon-btn):hover { background: var(--bg-hover); color: var(--text); }
.dw-tabs button.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.dw-head-wrap .dw-head { border-bottom: 0; padding-top: 10px; }

.dw-head-wrap .dw-head b { font-family: var(--font); font-stretch: 100%; font-size: 12px; font-weight: 500; color: var(--text-3); }
.dw-head-wrap .dw-head:has(> b:empty):not(:has(select, button)) { display: none; }
.st-badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 2px 8px; border-radius: 5px; }
.st-badge.ok { background: var(--accent-soft); color: var(--accent-ink); }
.st-badge.off { background: #fde3e3; color: #b42318; }
.settings-table tr.blocked td { color: var(--text-3); }
.settings-table tr.blocked .av { filter: grayscale(1); opacity: .6; }
.mb-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.btn.danger-ghost { color: var(--danger); border-color: var(--border-strong); background: var(--bg); }
.btn.danger-ghost:hover { background: #fde3e3; border-color: var(--danger); }
.mb-del { color: var(--text-3); }
.mb-del:hover { color: var(--danger); background: #fde3e3; }
.member-danger { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px; border: 1px solid #f3c1c3; border-radius: 10px; background: rgba(229, 72, 77, .06); }
.member-danger > div { flex: 1; }
.member-danger b { color: var(--danger); font-size: 13px; }
.member-danger p { margin: 2px 0 0; }
.fdel-opt { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-top: 8px; cursor: pointer; font-size: 13px; }
.fdel-opt.danger { border-color: #f3c1c3; }
.fdel-row { display: flex; align-items: flex-start; gap: 8px; }
.fdel-row input { width: auto; margin-top: 3px; }
.fdel-opt select { margin-left: 24px; width: calc(100% - 24px); }
.fdel-confirm { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; font-size: 13px; }

/* Seletor de datas (estilo ClickUp) */
.menu.dp-pop { padding: 0; max-height: none; overflow: visible; min-width: 0; border-radius: 12px; }
.dp { width: 620px; max-width: calc(100vw - 16px); }
.dp-top { display: flex; gap: 8px; padding: 10px; border-bottom: 1px solid var(--border); }
.dp-field { flex: 1; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 8px 0 10px; border-radius: 8px; background: var(--bg-soft); border: 1.5px solid transparent; color: var(--text-3); cursor: text; min-width: 0; }
.dp-field.on { border-color: var(--accent-ink); background: var(--bg); color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.dp-in { flex: 1; min-width: 50px; border: 0 !important; background: none !important; box-shadow: none !important; outline: none; height: 30px; padding: 0; margin: 0; font-size: 14px; color: var(--text); }
.dp-in::placeholder { color: var(--text-3); }
.dp-clear { width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--bg-hover); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; padding: 0; }
.dp-clear:hover { background: var(--danger); color: #fff; }
.dp-addtime { border: 0; background: none; color: var(--text-3); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; padding: 0 2px; }
.dp-addtime:hover { color: var(--text); }
.dp-time { width: 92px; height: 28px; margin: 0; padding: 0 4px; font-size: 13px; flex: none; }
.dp-main { display: grid; grid-template-columns: 250px 1fr; min-height: 300px; }
.dp-left { border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.dp-quick { padding: 6px; flex: 1; }
.dp-q { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 7px; font: inherit; font-size: 13.5px; color: var(--text); cursor: pointer; text-align: left; }
.dp-q small { color: var(--text-3); font-size: 12px; }
.dp-q:hover { background: var(--bg-hover); }
.dp-recur-btn { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border: 0; border-top: 1px solid var(--border); background: none; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; text-align: left; border-radius: 0 0 0 12px; }
.dp-recur-btn span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-recur-btn:hover { background: var(--bg-hover); }
.dp-recur-btn.on { color: var(--accent-ink); font-weight: 600; }
.dp-cal { padding: 10px 12px 12px; }
.dp-cal-hd { display: flex; align-items: center; gap: 2px; margin-bottom: 6px; }
.dp-cal-hd b { font-size: 15px; padding-left: 4px; }
.dp-nav { height: 28px; min-width: 28px; border: 0; background: none; border-radius: 6px; cursor: pointer; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 13px; }
.dp-nav.txt { padding: 0 8px; }
.dp-nav:hover { background: var(--bg-hover); color: var(--text); }
.rot-up { display: inline-flex; transform: rotate(180deg); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-wd { text-align: center; font-size: 12px; color: var(--text-3); padding: 4px 0; }
.dp-day { height: 36px; border: 0; background: none; border-radius: 8px; cursor: pointer; font: inherit; font-size: 13.5px; color: var(--text); display: flex; align-items: center; justify-content: center; padding: 0; }
.dp-day span { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.dp-day:hover span { background: var(--bg-hover); }
.dp-day.out { color: var(--text-3); }
.dp-day.today span { background: var(--danger); color: #fff; border-radius: 50%; font-weight: 700; }
.dp-day.in { background: var(--accent-soft); border-radius: 0; }
.dp-day.occ span { background: color-mix(in srgb, var(--lime) 30%, transparent); color: var(--text); }
.dp-day.sel span, .dp-day.sel:hover span { background: var(--ink); color: var(--lime); font-weight: 700; border-radius: 8px; }
:root[data-theme="dark"] .dp-day.sel span { background: var(--lime); color: #1a1a1a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dp-day.sel span { background: var(--lime); color: #1a1a1a; } }
.dp-recur { padding: 12px; gap: 8px; overflow-y: auto; max-height: 420px; }
.dp-recur-hd { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.dp-recur-hd b { font-size: 14px; }
.dp-select { height: 34px; margin: 0; font-size: 13px; width: 100%; }
.dp-every { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.dp-every .dp-num { width: 64px; height: 32px; margin: 0; }
.dp-every .dp-select { flex: 1; }
.dp-chk { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.dp-chk input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent-ink); }
.dp-help { margin: -2px 0 2px 24px; font-size: 11.5px; color: var(--text-3); line-height: 1.4; }
.dp-help.warn { margin-left: 0; color: #c46a00; }
.dp-until { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-left: 24px; }
.dp-until input { height: 30px; margin: 0; }
.dp-status-sel { display: flex; align-items: center; gap: 8px; margin-left: 24px; }
.dp-status-sel .dp-select { flex: 1; font-weight: 600; }
.dp-recur-ft { display: flex; justify-content: flex-end; gap: 6px; margin-top: auto; padding-top: 8px; }
@media (max-width: 600px) { .dp-main { grid-template-columns: 1fr; } .dp-left { border-right: 0; border-bottom: 1px solid var(--border); } .dp-quick { display: grid; grid-template-columns: 1fr 1fr; } .dp-top { flex-direction: column; } }
/* Botões de data no painel da tarefa */
.date-btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--bg); color: var(--text-3); font: inherit; font-size: 13px; cursor: pointer; max-width: 100%; }
.date-btn:hover { background: var(--bg-hover); color: var(--text); }
.date-btn.set { color: var(--text); }
.date-btn.late { color: var(--danger); border-color: #f3c1c3; }
.date-btn.today { color: #c47a00; }
.date-btn .dr-arrow { color: var(--text-3); }
.date-btn .dr-recur { color: var(--accent-ink); display: inline-flex; margin-left: 2px; }
/* Arrastar e soltar */
.row.dragging, .card.dragging, .cal-chip.dragging { opacity: .45; }
.row.ins-above { box-shadow: inset 0 2px 0 var(--accent-ink); }
.row.ins-below { box-shadow: inset 0 -2px 0 var(--accent-ink); }
.nest-wait { outline: 2px dashed var(--border-strong); outline-offset: -2px; }
.nest-ready { outline: 2px solid var(--lime) !important; outline-offset: -2px; background: var(--accent-soft) !important; }
.nest-tip { position: fixed; z-index: 1200; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 7px; background: var(--ink); color: var(--lime); font-size: 12px; font-weight: 600; pointer-events: none; box-shadow: var(--shadow); max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row[draggable="true"] { cursor: pointer; }

/* Barra fixa do topo com a pesquisa (Ctrl+K) */
.gbar { height: var(--gbar-h); display: grid; grid-template-columns: 1fr minmax(260px, 520px) 1fr; align-items: center; gap: 12px; padding: 0 12px; background: var(--sb-bg); color: var(--sb-text); border-bottom: 1px solid var(--sb-border); position: relative; z-index: 66; }
.gb-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gb-menu { display: none; color: var(--sb-text); }
.gb-ws { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.gb-ws-ic { width: 22px; height: 22px; border-radius: 6px; background: var(--lime); color: #1a1a1a; font-family: var(--display); font-weight: 900; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.gb-search { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 6px 0 12px; border-radius: 8px; border: 1px solid #3a3a3a; background: #262626; color: #a6a6a6; font: inherit; font-size: 13px; cursor: text; width: 100%; text-align: left; }
.gb-search:hover { border-color: #4a4a4a; background: #2c2c2c; color: #d8d8d8; }
.gb-ph { flex: 1; }
.gb-search kbd, .sp-ov kbd { font-family: var(--font); font-size: 11px; padding: 1px 6px; border-radius: 5px; border: 1px solid #444; background: #1f1f1f; color: #bdbdbd; line-height: 18px; }
.gb-right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.gb-right .top-tools { border-left: 0; padding-left: 0; margin-left: 0; }
.gb-right .tt-btn { color: #cfcfcf; height: 30px; }
.gb-right .tt-btn:hover { background: #2e2e2e; color: #fff; }
.gb-right .tt-btn.on { background: rgba(160, 242, 44, .14); color: var(--lime); border-color: transparent; }
.gb-me .av { width: 26px; height: 26px; font-size: 10px; border-color: var(--sb-bg); }
@media (max-width: 760px) { .gbar { grid-template-columns: auto 1fr auto; } .gb-menu { display: inline-flex; } .gb-ws { display: none; } .gb-search kbd { display: none; } .gb-me { display: none; } }
/* Janela de pesquisa */
.sp-ov { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 17, 23, .45); display: flex; justify-content: center; align-items: flex-start; padding: 70px 16px 16px; }
.sp-box { width: min(680px, 100%); max-height: calc(100vh - 100px); background: var(--bg); border-radius: 14px; box-shadow: 0 24px 70px rgba(0,0,0,.35); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); animation: spIn .14s ease-out; }
@keyframes spIn { from { transform: translateY(-8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.sp-top { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--border); color: var(--text-3); }
input.sp-in, input.sp-in:focus { flex: 1; height: 54px; border: 0; outline: none; box-shadow: none; background: none; font-size: 16px; color: var(--text); padding: 0; margin: 0; }
.sp-esc { cursor: pointer; }
.sp-res { overflow-y: auto; padding: 6px; flex: 1; min-height: 120px; }
.sp-sec { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 10px 10px 4px; }
.sp-it { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; min-width: 0; }
.sp-it.on { background: var(--accent-soft); }
.sp-ic { width: 24px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); }
.sp-ic .av { width: 22px; height: 22px; font-size: 9px; }
.sp-emoji { font-size: 15px; }
.sp-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sp-nm { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-nm mark { background: color-mix(in srgb, var(--lime) 45%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.sp-tx small { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-st { flex: none; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-empty { padding: 30px 12px; text-align: center; color: var(--text-3); font-size: 14px; }
.sp-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 8px 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3); background: var(--bg-soft); }
.sp-foot kbd { background: var(--bg); color: var(--text-2); border-color: var(--border-strong); }
.sp-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--accent-ink); animation: spSpin .7s linear infinite; }
@keyframes spSpin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .sp-ov { padding-top: 12px; } .sp-foot span:not(:last-child) { display: none; } }
@media (max-width: 760px) { .topbar .mobile-menu { display: none !important; } }

/* Colunas arrastáveis e listas reordenáveis */
.col-drag { cursor: grab; user-select: none; }
.col-drag:active { cursor: grabbing; }
.col-dragging { opacity: .4; }
.col-ins-l { box-shadow: inset 2px 0 0 var(--accent-ink); }
.col-ins-r { box-shadow: inset -2px 0 0 var(--accent-ink); }
.row-head > .col-drag:hover, th.col-drag:hover { color: var(--text); background: var(--bg-hover); border-radius: 4px; }
.drag-handle { cursor: grab; color: var(--text-3); font-size: 15px; padding: 0 4px; user-select: none; line-height: 1; }
.drag-handle:hover { color: var(--text); }
.status-edit.sorting, .opt-edit.sorting { opacity: .4; }
.status-edit.ins-above, .opt-edit.ins-above { box-shadow: 0 -2px 0 var(--accent-ink); }
.status-edit.ins-below, .opt-edit.ins-below { box-shadow: 0 2px 0 var(--accent-ink); }
.opt-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--bg); cursor: pointer; font: inherit; font-size: 13px; color: var(--text-2); max-width: 100%; }
.opt-btn:hover { background: var(--bg-hover); }
.set-sec { margin-top: 28px; }
.set-sec h2 { font-family: var(--display); font-stretch: 112%; font-size: 18px; margin: 0 0 4px; }
.st-chips { display: flex; flex-wrap: wrap; gap: 4px; }

/* ==========================================================================
   Visual 2.0: moldura escura com a área de trabalho flutuante, cantos mais
   arredondados, sombras suaves e hierarquia mais clara.
   ========================================================================== */
:root {
  --r-xs: 6px; --r-sm: 8px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-full: 999px;
  --radius: 12px;
  --bg-soft: #f6f6f5; --bg-hover: #efefee; --border: #ebebea; --border-strong: #dcdcdb;
  --shadow-xs: 0 1px 2px rgba(20, 20, 20, .05);
  --shadow-sm: 0 1px 3px rgba(20, 20, 20, .07), 0 1px 2px rgba(20, 20, 20, .04);
  --shadow-md: 0 6px 16px -4px rgba(20, 20, 20, .10), 0 2px 4px -2px rgba(20, 20, 20, .06);
  --shadow: 0 18px 44px -12px rgba(20, 20, 20, .24), 0 6px 14px -6px rgba(20, 20, 20, .10);
  --frame: #161616; --sb-bg: #161616; --sb-hover: #242424; --sb-border: #262626;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --frame: #0e0e0e; --sb-bg: #0e0e0e; --sb-hover: #1d1d1d; --sb-border: #1f1f1f;
    --bg: #1b1b1b; --bg-soft: #222222; --bg-hover: #2a2a2a; --border: #2b2b2b; --border-strong: #383838;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4); --shadow-sm: 0 1px 3px rgba(0, 0, 0, .45);
    --shadow-md: 0 8px 20px -6px rgba(0, 0, 0, .6); --shadow: 0 20px 50px -12px rgba(0, 0, 0, .75);
  }
}
:root[data-theme="dark"] {
  --frame: #0e0e0e; --sb-bg: #0e0e0e; --sb-hover: #1d1d1d; --sb-border: #1f1f1f;
  --bg: #1b1b1b; --bg-soft: #222222; --bg-hover: #2a2a2a; --border: #2b2b2b; --border-strong: #383838;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4); --shadow-sm: 0 1px 3px rgba(0, 0, 0, .45);
  --shadow-md: 0 8px 20px -6px rgba(0, 0, 0, .6); --shadow: 0 20px 50px -12px rgba(0, 0, 0, .75);
}

/* Barras de rolagem finas e arredondadas */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--text-3); }
::-webkit-scrollbar-track { background: transparent; }
.sidebar, .gbar { scrollbar-color: #333 transparent; }
.sidebar ::-webkit-scrollbar-thumb { background-color: #333; }

/* Moldura: barra do topo e lateral escuras, área de trabalho em um painel arredondado */
body { background: var(--frame); }
.app { background: var(--frame); }
.gbar { background: var(--frame); border-bottom: 0; }
.sidebar { background: var(--frame); border-right: 0; }
.main { background: var(--bg); border-radius: 18px; margin: 0 8px 8px 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .03); overflow: hidden; }

/* Botões */
.btn { height: 34px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--border-strong); box-shadow: var(--shadow-xs); transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s var(--ease), filter .15s; }
.btn:hover { border-color: var(--border-strong); background: var(--bg-hover); }
.btn:active { transform: translateY(1px); }
.btn.primary { box-shadow: 0 1px 2px rgba(63, 107, 0, .25), inset 0 -1px 0 rgba(0, 0, 0, .08); }
.btn.primary:hover { filter: brightness(1.05); box-shadow: 0 4px 12px -2px rgba(120, 190, 20, .45); }
.btn.ghost { box-shadow: none; }
.btn.sm { height: 30px; padding: 0 10px; border-radius: 9px; font-size: 12.5px; }
.icon-btn { width: 30px; height: 30px; border-radius: 9px; transition: background-color .15s, color .15s; }
.opt-btn { height: 32px; border-radius: 9px; border-color: var(--border); transition: background-color .15s, border-color .15s; }
.opt-btn:hover { border-color: var(--border-strong); }

/* Campos */
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=url], input:not([type]), select, textarea {
  border-radius: var(--r-md); padding: 8px 12px; border-color: var(--border-strong); transition: border-color .15s, box-shadow .15s, background-color .15s;
}
input:hover:not(:focus), select:hover:not(:focus), textarea:hover:not(:focus) { border-color: color-mix(in srgb, var(--border-strong) 60%, var(--text-3)); }
input:focus, select:focus, textarea:focus { border-color: var(--accent-ink); box-shadow: 0 0 0 4px var(--accent-soft); }
select { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23878787' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
select[multiple] { background-image: none; padding-right: 12px; }
label { font-size: 12.5px; }

/* Barra lateral */
.sb-head { padding: 18px 18px 14px; }
.sb-scroll { padding: 4px 10px 16px; }
.sb-section { margin-top: 18px; }
.sb-title { font-size: 10.5px; letter-spacing: .08em; padding: 4px 10px 6px; }
.sb-item { height: 34px; padding: 0 10px; border-radius: var(--r-md); gap: 10px; transition: background-color .15s, color .15s; }
.sb-item .cnt { border-radius: 999px; padding: 0 6px; line-height: 18px; text-align: center; }
.sb-item.active { background: rgba(160, 242, 44, .12); box-shadow: inset 0 0 0 1px rgba(160, 242, 44, .16); }
.sb-item.active .cnt { background: rgba(160, 242, 44, .18); color: var(--lime); }
.sb-children { padding-left: 12px; margin-left: 9px; border-left: 1px solid #262626; }
.space-dot { width: 20px; height: 20px; border-radius: 7px; }
.sb-foot { margin: 8px 10px 10px; padding: 10px 12px; border: 0; border-radius: var(--r-lg); background: #1e1e1e; }
.sb-item .badge { border-radius: 999px; }

/* Cabeçalho da página, abas e filtros */
.topbar { padding: 20px 28px 0; min-height: 60px; }
.crumbs { font-size: 12px; margin-bottom: 2px; }
.page-title { font-size: 26px; letter-spacing: -.02em; }
.tabs { padding: 0 28px; margin-top: 14px; gap: 4px; border-bottom: 0; }
.tab { height: 34px; padding: 0 12px; border-radius: var(--r-md); border-bottom: 0; transition: background-color .15s, color .15s; }
.tab:hover { background: var(--bg-soft); color: var(--text); }
.tab.active { background: var(--bg-soft); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--border); }
.tab.active svg { color: var(--accent-ink); }
.toolbar { padding: 12px 28px 14px; gap: 8px; border-bottom: 1px solid var(--border); }
.toolbar .search, .toolbar input.search { height: 34px; max-width: 260px; padding-left: 34px; background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23878787' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center; border-color: transparent; }
.toolbar .search:focus { background-color: var(--bg); border-color: var(--accent-ink); }
.toolbar select { height: 34px; border-radius: var(--r-md); }
.content { padding: 0 28px 48px; }

/* Lista */
.group { margin-top: 22px; }
.group-head { margin-bottom: 6px; gap: 10px; padding: 2px 4px; }
.pill { height: 20px; padding: 0 8px; gap: 5px; border-radius: var(--r-full); font-size: 10px; letter-spacing: .03em; }
.row .name .pill { height: 18px; padding: 0 7px; font-size: 9.5px; }
.chip { font-size: 10.5px; }
.group-head .cnt { background: var(--bg-soft); border-radius: 999px; padding: 0 8px; line-height: 20px; font-weight: 600; color: var(--text-2); }
.rows { border-top: 0; }
.row-head { min-height: 30px; border-bottom: 1px solid var(--border); margin-bottom: 4px; letter-spacing: .02em; }
.row { min-height: 42px; border-bottom: 0; border-radius: var(--r-md); transition: background-color .12s; }
.row + .row { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--border) 70%, transparent); }
.row:hover, .row:hover + .row { box-shadow: none; }
.row:hover { background: var(--bg-soft); }
.chip { border-radius: var(--r-full); padding: 2px 9px; }
.list-tag { border-radius: var(--r-full); padding: 1px 8px; }
.sdot { border-radius: 50%; }
.add-row { border-radius: var(--r-md); margin-top: 2px; transition: background-color .15s, color .15s; }
.add-row:hover { background: var(--bg-soft); }

/* Quadro */
.board { gap: 14px; padding-top: 16px; }
.col { border-radius: 18px; padding: 4px; background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--border); }
.col-head { padding: 10px 10px 8px; }
.col-body { padding: 2px 4px 6px; }
.card { border-radius: var(--r-lg); padding: 12px; box-shadow: var(--shadow-xs); transition: box-shadow .18s var(--ease), transform .18s var(--ease), border-color .18s; }
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.card .thumb { border-radius: var(--r-md); }

/* Janelas */
.overlay { background: rgba(12, 12, 12, .42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal { border-radius: 22px; animation: mdIn .18s var(--ease); }
.modal:not([class*="-modal"]) { padding: 24px; }
.create-modal { border-radius: 22px; }
.cr-head { padding: 16px 22px; }
.cr-body { padding: 18px 24px 10px; }
.cr-foot { padding: 14px 22px; border-radius: 0 0 22px 22px; }
.cr-chip { border-radius: var(--r-md); border-color: var(--border); transition: background-color .15s, border-color .15s; }
.cr-chip:hover { border-color: var(--border-strong); }
.split .cr-create { border-radius: var(--r-md) 0 0 var(--r-md); }
.split .split-dd { border-radius: 0 var(--r-md) var(--r-md) 0; }
.doc-body.cr-desc { border-radius: var(--r-md); }
@keyframes mdIn { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.modal h3 { font-size: 19px; letter-spacing: -.01em; }
.modal .actions { margin-top: 22px; }
.task-modal { border-radius: 22px; padding: 0; }
.tm-main { padding: 24px 32px 36px; }
.tm-title { font-size: 26px; letter-spacing: -.015em; }
.props { gap: 8px 14px; }
.props select, .props input { height: 32px; border-radius: 9px; }
.desc-view { border-radius: var(--r-md); padding: 10px 12px; }
.desc-view:hover { background: var(--bg-soft); border-color: transparent; }
.subtask { border-radius: var(--r-sm); }
.att { border-radius: var(--r-lg); transition: border-color .15s, box-shadow .15s, transform .15s var(--ease); }
.att:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.dropzone { border-radius: var(--r-lg); border-width: 1.5px; background: var(--bg-soft); }
.tm-side { background: var(--bg-soft); }
.cm .bubble { border-radius: var(--r-lg); padding: 10px 12px; box-shadow: var(--shadow-xs); }
.composer { padding: 12px 14px; }
.composer textarea { border-radius: var(--r-lg); }

/* Menus, avisos e pesquisa */
.menu { border-radius: var(--r-lg); padding: 6px; box-shadow: var(--shadow); animation: mnIn .12s var(--ease); }
@keyframes mnIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.menu .mi { border-radius: 9px; padding: 8px 10px; }
.menu .sep { margin: 5px 4px; }
.toast { border-radius: var(--r-lg); padding: 12px 18px; }
.gb-search { height: 32px; border-radius: var(--r-md); background: #202020; border-color: #2c2c2c; }
.gb-search:hover { background: #262626; border-color: #3a3a3a; }
.gb-right .tt-btn { border-radius: var(--r-md); }
.sp-box { border-radius: 20px; }
.sp-it { border-radius: var(--r-md); }

/* Painéis laterais e conversas como cartões flutuantes */
.drawer { top: calc(var(--gbar-h) + 8px); right: 8px; bottom: 8px; border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
body.has-demo .drawer { top: calc(var(--demo-h, 37px) + var(--gbar-h) + 8px); }
.dock-panel, .mini-win { border-radius: 18px; }
.dock-btn { box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .45); transition: transform .18s var(--ease); }

/* Configurações */
.settings-table td, .settings-table th { padding: 10px 8px; }
.status-edit input[type=color], .opt-edit input[type=color] { border-radius: 9px; }

/* Entrada */
.auth-card { border-radius: 22px; padding: 36px 32px; }

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 760px) {
  .main { margin: 0; border-radius: 0; }
  .topbar, .toolbar, .tabs { padding-left: 16px; padding-right: 16px; }
  .content { padding: 0 16px 40px; }
  .drawer { inset: var(--gbar-h) 0 0 0; border-radius: 0; }
  .modal { border-radius: 0; }
}
:root[data-theme="dark"] .dock-btn { box-shadow: 0 0 0 1px #2e2e2e, 0 10px 24px -6px rgba(0, 0, 0, .6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dock-btn { box-shadow: 0 0 0 1px #2e2e2e, 0 10px 24px -6px rgba(0, 0, 0, .6); } }

/* Menu de opções da barra lateral (botão direito), no estilo do ClickUp */
.ctx-wrap { position: fixed; inset: 0 auto auto 0; width: 0; height: 0; z-index: 120; }
.menu.ctx-menu { position: fixed; width: 264px; min-width: 0; padding: 6px; max-height: calc(100vh - 16px); overflow-y: auto; }
.ctx-menu .mi { gap: 10px; padding: 0 10px; height: 34px; font-size: 13.5px; color: var(--text); outline: none; }
.ctx-menu .mi:hover, .ctx-menu .mi:focus, .ctx-menu .mi.open { background: var(--bg-hover); }
.ctx-menu .mi-ic { width: 18px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); }
.ctx-menu .mi-lb { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx-menu .mi-arr { color: var(--text-3); display: inline-flex; }
.ctx-menu .mi-hint { font-size: 11px; color: var(--text-3); }
.ctx-menu .mi.danger, .ctx-menu .mi.danger .mi-ic { color: var(--danger); }
.ctx-menu .mi.danger:hover, .ctx-menu .mi.danger:focus { background: color-mix(in srgb, var(--danger) 10%, transparent); }
.ctx-menu .mi.fav-on .mi-ic { color: #f5b301; }
.ctx-menu .mi.disabled { opacity: .5; cursor: default; }
.ctx-menu .mi.disabled:hover { background: none; }
.ctx-menu .sep { margin: 5px 6px; }
.ctx-head { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.ctx-head b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx-head span { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu.ctx-sub { width: 230px; animation: none; }
.ctx-foot { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 38px; margin-top: 6px; border: 0; border-radius: var(--r-md); background: var(--lime); color: #1a1a1a; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: filter .15s, box-shadow .15s; }
.ctx-foot:hover { filter: brightness(1.05); box-shadow: 0 4px 12px -2px rgba(120, 190, 20, .45); }
.sb-item.ctx-on { background: var(--sb-hover); }
.sb-item.ctx-on .more { opacity: 1; }
.sb-space { font-weight: 600; cursor: default; }

/* Informações, compartilhamento e permissões */
.info-head { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 6px 0 14px; }
.info-grid { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.info-row { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: center; padding: 10px 14px; font-size: 13px; }
.info-row + .info-row { border-top: 1px solid var(--border); }
.info-row > span { color: var(--text-2); font-size: 12.5px; }
.info-desc { white-space: pre-wrap; color: var(--text-2); }
.share-link { display: flex; gap: 8px; margin: 12px 0 16px; }
.share-link input { flex: 1; font-size: 12.5px; color: var(--text-2); background: var(--bg-soft); }
.acc-opts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.acc-opt { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-lg); cursor: pointer; color: var(--text); font-weight: 400; transition: border-color .15s, background-color .15s; }
.acc-opt:has(input:checked) { border-color: var(--accent-ink); background: var(--accent-soft); }
.acc-opt input { width: auto; margin: 0; }
.acc-opt .acc-ic { width: 34px; height: 34px; border-radius: var(--r-md); background: var(--bg-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); flex: none; }
.acc-opt b { display: block; font-size: 13.5px; }
.acc-opt small { color: var(--text-2); font-size: 12px; }
.perm-list { max-height: 300px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.perm-row { margin: 0; padding: 6px 8px; border-radius: var(--r-sm); }
.perm-row:hover { background: var(--bg-soft); }
.perm-row input { width: auto; }

/* ==========================================================================
   Conversas 2.0: painel, janelas rápidas, mensagens, vistos e menções
   ========================================================================== */
/* Botão de conversas com o contador de não lidas */
.dock-btn { transition: transform .18s var(--ease), box-shadow .18s; }
.dock-btn.open { background: var(--lime); color: var(--ink); }
.dock-btn .dock-badge { top: -4px; right: -4px; min-width: 22px; height: 22px; line-height: 22px; padding: 0 6px; border-radius: 999px; font-size: 11.5px; text-align: center; box-shadow: 0 0 0 3px var(--frame, #161616); }
.dock-btn .dock-badge.at { background: var(--lime); color: var(--ink); }
.dock-btn.ping { animation: dkPing .9s var(--ease) 2; }
@keyframes dkPing { 0% { box-shadow: 0 0 0 0 rgba(160, 242, 44, .55), var(--shadow); } 100% { box-shadow: 0 0 0 16px rgba(160, 242, 44, 0), var(--shadow); } }

/* Painel da lista de conversas */
.dock-panel { width: 372px; max-height: min(600px, calc(100vh - 120px)); bottom: 68px; border-radius: 20px; animation: dpIn .16s var(--ease); }
@keyframes dpIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.dp-head { display: flex; align-items: center; gap: 4px; padding: 16px 12px 10px 18px; font-family: var(--font); font-stretch: normal; font-size: inherit; }
.dp-title { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dp-title b { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.dp-sub { font-size: 12px; color: var(--text-3); }
.dp-tools { padding: 0 14px 10px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--border); }
.dp-search-wrap { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: var(--r-md); background: var(--bg-soft); color: var(--text-3); border: 1px solid transparent; transition: border-color .15s, background-color .15s; }
.dp-search-wrap:focus-within { background: var(--bg); border-color: var(--accent-ink); box-shadow: 0 0 0 4px var(--accent-soft); }
input.dp-search, input.dp-search:focus { flex: 1; min-width: 0; border: 0; outline: none; background: none; box-shadow: none; padding: 0; height: 100%; font-size: 13.5px; color: var(--text); -webkit-appearance: none; appearance: none; }
.dp-tabs { display: flex; gap: 4px; }
.dp-tab { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.dp-tab:hover { background: var(--bg-soft); color: var(--text); }
.dp-tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
:root[data-theme="dark"] .dp-tab.on { background: var(--lime); border-color: var(--lime); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dp-tab.on { background: var(--lime); border-color: var(--lime); color: var(--ink); } }
.dp-tab-n:empty { display: none; }
.dp-tab-n { min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; text-align: center; }
.dp-list { flex: 1; overflow-y: auto; padding: 6px 8px 8px; }
.dp-item { gap: 12px; padding: 10px; border-radius: 14px; align-items: center; transition: background-color .12s; }
.dp-item:hover { background: var(--bg-soft); }
.dp-av { position: relative; flex: none; display: inline-flex; }
.dp-item .av, .dp-item .dock-hash { width: 42px; height: 42px; font-size: 14px; }
.dp-item .dock-hash { border-radius: 13px; background: var(--accent-soft); color: var(--accent-ink); }
.dp-online { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2.5px var(--bg); }
.dp-tx { gap: 3px; }
.dock-panel .dp-top { display: flex; justify-content: space-between; gap: 8px; padding: 0; border: 0; align-items: baseline; }
.dock-panel .dp-top b { font-size: 14px; font-weight: 600; }
.dp-item.unread .dp-top b { font-weight: 800; }
.dock-panel .dp-top small { font-size: 11.5px; }
.dp-item.unread .dp-top small { color: var(--accent-ink); font-weight: 700; }
.dp-bottom { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dp-prev { flex: 1; min-width: 0; font-size: 13px; }
.dp-prev.empty { color: var(--text-3); font-style: italic; }
.dp-item.unread .dp-prev { color: var(--text); font-weight: 500; }
.dp-badge { flex: none; min-width: 20px; height: 20px; line-height: 20px; padding: 0 6px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 800; text-align: center; }
.dp-at { flex: none; width: 20px; height: 20px; line-height: 20px; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: 12px; font-weight: 800; text-align: center; }
.dp-item .badge { display: none; }
.dp-sep { padding: 14px 10px 8px; font-size: 11px; letter-spacing: .07em; }
.dp-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 4px; padding: 0 2px 6px; }
.dp-person { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 0; background: none; border-radius: 14px; cursor: pointer; font: inherit; font-size: 12px; color: var(--text-2); }
.dp-person:hover { background: var(--bg-soft); color: var(--text); }
.dp-person .av { width: 40px; height: 40px; font-size: 13px; }
.dp-person span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 12px; color: var(--text-3); font-size: 13px; }
.dp-foot { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--border); background: var(--bg-soft); }
.dp-opt { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--text-2); font: inherit; font-size: 12.5px; cursor: pointer; }
.dp-opt:hover:not(:disabled) { background: var(--bg-hover); color: var(--text); }
.dp-opt:disabled { cursor: default; opacity: .7; }
.dp-sw { width: 28px; height: 16px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background-color .15s; flex: none; }
.dp-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .15s var(--ease); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.dp-sw.on { background: var(--accent-ink); }
.dp-sw.on::after { transform: translateX(12px); }

/* Janelas rápidas de conversa */
.mini-win { width: 340px; height: 470px; border-radius: 18px; }
.mini-win.min { width: 260px; }
.mw-head { padding: 10px 8px 10px 12px; gap: 10px; background: var(--ink); border-radius: 0; }
.mw-head .av, .mw-head .dock-hash { width: 30px; height: 30px; }
.mw-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.mw-name b { flex: none; font-size: 13.5px; }
.mw-pres { font-size: 11px; color: #9a9a9a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-pres:empty { display: none; }
.mw-pres.on { color: var(--lime); }
.mw-head .icon-btn { width: 28px; height: 28px; border-radius: 8px; }
.mw-msgs { padding: 12px 12px 8px; gap: 2px; }
.mw-day { display: flex; justify-content: center; margin: 10px 0 6px; }
.mw-day span, .day-sep span { font-size: 11px; font-weight: 600; color: var(--text-2); background: var(--bg); border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px; box-shadow: var(--shadow-xs); }
.mw-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.mw-empty small { font-size: 11px; color: var(--text-3); }
.mw-msg { margin-top: 8px; }
.mw-msg.cont { margin-top: 2px; }
.mw-bubble { position: relative; max-width: 84%; border-radius: 16px 16px 16px 6px; padding: 7px 10px 5px 11px; box-shadow: var(--shadow-xs); }
.mw-msg.cont .mw-bubble { border-top-left-radius: 6px; }
.mw-msg.mine .mw-bubble { border-radius: 16px 16px 6px 16px; }
.mw-msg.mine.cont .mw-bubble { border-top-right-radius: 6px; }
.mw-text { display: inline; }
.mw-text .rt-view { display: inline; font-size: 13px; }
.mw-text .rt-view p { margin: 0; }
.mw-bubble .msg-meta { float: right; margin: 6px 0 -2px 10px; font-size: 10.5px; }
.mw-msg.mine .msg-meta { color: rgba(26, 26, 26, .6); }
.mw-msg.mine .ticks.seen { color: #0b6bcb; }
.mw-msg.mine .ticks.deliv:not(.seen) { color: rgba(26, 26, 26, .6); }
.mw-msg.mentioned .mw-bubble { box-shadow: inset 3px 0 0 var(--lime), var(--shadow-xs); }
.mw-compose { padding: 8px 8px 10px; }
.mw-in .rt-field { border-radius: 14px; }

/* Mensagens na tela cheia */
.msgs { padding: 18px 24px 10px; }
.msg { position: relative; gap: 12px; padding: 6px 10px; border-radius: 12px; align-items: flex-start; }
.msg.cont { padding-top: 1px; padding-bottom: 1px; }
.msg .hd { margin-bottom: 1px; }
.msg-meta { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 11px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.msg > .msg-meta { align-self: flex-start; margin-top: 3px; }
.msg.cont > .msg-meta { margin-top: 2px; opacity: .0; transition: opacity .12s; }
.msg.cont:hover > .msg-meta, .msg.cont.mine > .msg-meta { opacity: 1; }
.msg-meta .edited { font-style: italic; }
.ticks { display: inline-flex; color: var(--text-3); }
.ticks.seen { color: #2f8ff5; }
.msg .tools { position: absolute; top: -14px; right: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-sm); padding: 2px; }
.msg.editing .tools, .msg.editing > .msg-meta { display: none; }
.msg.mentioned { background: color-mix(in srgb, var(--lime) 12%, transparent); box-shadow: inset 3px 0 0 var(--lime); }
.msg .tx .rt-view p { margin: 0 0 4px; }
.msg .tx .rt-view p:last-child { margin-bottom: 0; }
.msg-doc { margin-top: 6px; }
.day-sep { display: flex; justify-content: center; margin: 16px 0 8px; position: sticky; top: 0; z-index: 2; }
.chat-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 60px 16px; color: var(--text-3); text-align: center; }
.chat-empty b { color: var(--text); font-size: 15px; }
.crumbs .pres { margin-left: 6px; color: var(--text-3); }
.crumbs .pres::before { content: "·"; margin-right: 6px; }
.crumbs .pres.on { color: #16a34a; font-weight: 600; }

/* Edição da mensagem no lugar */
.msg-edit { margin-top: 4px; width: 100%; min-width: 220px; }
.msg-edit .rt-field { border: 1px solid var(--accent-ink); border-radius: var(--r-md); padding: 8px 10px; background: var(--bg); color: var(--text); box-shadow: 0 0 0 4px var(--accent-soft); min-height: 38px; }
.me-foot { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11.5px; color: var(--text-3); }
.me-foot span { flex: 1; }
.mw-bubble .msg-edit .rt-field { font-size: 13px; }

/* Avisos de mensagem nova */
.msg-notifs { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 75; display: flex; flex-direction: column; gap: 8px; width: min(340px, calc(100vw - 32px)); pointer-events: none; }
.mn-card { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 12px 10px 12px 12px; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow); cursor: pointer; animation: mnIn .22s var(--ease); transition: opacity .25s, transform .25s; }
.mn-card:hover { border-color: var(--border-strong); }
.mn-card.out { opacity: 0; transform: translateX(16px); }
.mn-card.mention { border-color: var(--lime); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 35%, transparent), var(--shadow); }
@keyframes mnIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.mn-ic .av, .mn-ic .dock-hash { width: 38px; height: 38px; font-size: 13px; }
.mn-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mn-top { display: flex; align-items: baseline; gap: 8px; }
.mn-top b { flex: 1; min-width: 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-top small { flex: none; font-size: 11px; color: var(--text-3); }
.mn-card.mention .mn-top small { color: var(--accent-ink); font-weight: 700; }
.mn-body { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mn-x { width: 24px; height: 24px; flex: none; }

/* Menções: @pessoa e @@tarefa */
a.mention { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; text-decoration: none; line-height: 1.5; cursor: pointer; white-space: nowrap; }
a.mention:hover { filter: brightness(.96); }
a.mention.me { background: var(--lime); color: var(--ink); }
a.mention.mtask { background: var(--bg-soft); color: var(--text); border: 1px solid var(--border); white-space: normal; }
a.mention.mtask::before { content: ""; width: 10px; height: 10px; border-radius: 3px; border: 1.8px solid var(--accent-ink); flex: none; }
.mw-msg.mine a.mention { background: rgba(26, 26, 26, .12); color: var(--ink); }
.mw-msg.mine a.mention.mtask { background: rgba(255, 255, 255, .55); border-color: rgba(26, 26, 26, .15); }
.menu.mention-pick { position: fixed; z-index: 130; padding: 6px; max-height: 340px; }
.mention-pick .mi { gap: 10px; padding: 7px 10px; }
.mention-pick .mi.sel { background: var(--bg-hover); font-weight: 400; }
.mention-pick .av { width: 26px; height: 26px; font-size: 10px; }
.mp-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mp-tx span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.mp-tx small { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Dados da mensagem */
.mi-preview { background: var(--bg-soft); border-radius: var(--r-lg); padding: 12px 14px; margin: 8px 0 14px; max-height: 160px; overflow: auto; }
.mi-sec { margin-bottom: 12px; }
.mi-sec-t { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.mi-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 13.5px; }
.mi-row span { flex: 1; }

@media (max-width: 760px) {
  .dock-panel { width: calc(100vw - 32px); }
  .mini-win { width: calc(100vw - 32px - 66px); }
  .msg .tools { top: -10px; }
}

/* Arrastar e soltar para reordenar */
.sortable { -webkit-user-drag: element; }
.sort-dragging { opacity: .45; }
.sb-item.sort-t { box-shadow: inset 0 2px 0 var(--lime); }
.sb-item.sort-b { box-shadow: inset 0 -2px 0 var(--lime); }
.sb-item.sort-into { background: rgba(160, 242, 44, .16); box-shadow: inset 0 0 0 1.5px var(--lime); }
.tab.sort-l { box-shadow: inset 2px 0 0 var(--accent-ink); }
.tab.sort-r { box-shadow: inset -2px 0 0 var(--accent-ink); }
.col.sortable > .col-head { cursor: grab; }
.col.sort-l { box-shadow: inset 3px 0 0 var(--accent-ink), inset 0 0 0 1px var(--border); }
.col.sort-r { box-shadow: inset -3px 0 0 var(--accent-ink), inset 0 0 0 1px var(--border); }
.group-head.sortable { cursor: grab; border-radius: var(--r-md); }
.group-head.sort-t { box-shadow: 0 -2px 0 var(--accent-ink); }
.group-head.sort-b { box-shadow: 0 2px 0 var(--accent-ink); }
body.is-sorting .sb-item:hover { background: transparent; }

/* Foto no topo abre o Meu trabalho */
.gb-me { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: box-shadow .15s; }
.gb-me .av { width: 28px; height: 28px; font-size: 10px; border-color: var(--frame, #161616); }
.gb-me:hover, .gb-me.on { box-shadow: 0 0 0 2px var(--lime); }
@media (max-width: 760px) { .gb-me { display: inline-flex !important; } }

/* ==========================================================================
   Agenda: compromissos, convites e lembretes
   ========================================================================== */
/* Avisos da agenda */
.ag-card .ag-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ag-card.invite .ag-ic { background: none; }
.ag-card.soon { border-color: var(--lime); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 35%, transparent), var(--shadow); }
.ag-card.soon .mn-top b { color: var(--accent-ink); }
.ag-body { color: var(--text); font-weight: 600; }
.ag-avs { margin-top: 4px; }
.ag-list { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.ag-li { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 12.5px; color: var(--text); cursor: pointer; text-align: left; }
.ag-li:hover { background: var(--bg-soft); }
.ag-li i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ag-li b { font-variant-numeric: tabular-nums; flex: none; min-width: 52px; }
.ag-li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.mn-card.ag-card { cursor: default; }

/* Linha de compromisso (painel e Meu trabalho) */
.ag-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; cursor: pointer; transition: background-color .12s; }
.ag-row:hover { background: var(--bg-soft); }
.ag-bar { width: 4px; align-self: stretch; border-radius: 4px; flex: none; }
.ag-time { display: flex; flex-direction: column; width: 46px; flex: none; font-variant-numeric: tabular-nums; }
.ag-time b { font-size: 13px; }
.ag-time small { font-size: 11px; color: var(--text-3); }
.ag-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ag-tx b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-tx small { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-row.past { opacity: .55; }
.ag-row.declined .ag-tx b { text-decoration: line-through; color: var(--text-3); }
.ag-row.live { background: color-mix(in srgb, var(--lime) 14%, transparent); }
.ag-row.live .ag-tx small { color: var(--accent-ink); font-weight: 700; }
.ag-row .avs .av { width: 22px; height: 22px; font-size: 9px; }
.ag-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 10px; color: var(--text-3); font-size: 13px; text-align: center; }
.ag-empty.sm { padding: 10px; flex-direction: row; justify-content: flex-start; }
.mw-agenda { margin: 6px 0 18px; padding: 4px 0 8px; border-bottom: 1px solid var(--border); }
.mw-agenda .mw-sec-hd { display: flex; align-items: center; gap: 6px; }
.mw-next { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); padding: 6px 10px 0; }

/* Painel lateral: mini calendário */
.ag-dw { display: flex; flex-direction: column; gap: 6px; }
.ag-pend { border: 1px solid var(--lime); background: color-mix(in srgb, var(--lime) 10%, transparent); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.ag-pend-t { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.ag-pend-i { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid color-mix(in srgb, var(--lime) 30%, transparent); }
.ag-pend-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; cursor: pointer; }
.ag-pend-tx b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-pend-tx small { font-size: 11.5px; color: var(--text-2); }
.ag-mini { border: 1px solid var(--border); border-radius: 16px; padding: 10px; }
.ag-mini-hd { display: flex; align-items: center; gap: 2px; padding: 0 2px 6px 6px; }
.ag-mini-hd b { font-size: 14px; }
.ag-mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.ag-wd { text-align: center; font-size: 11px; font-weight: 700; color: var(--text-3); padding: 4px 0; }
.ag-d { position: relative; height: 38px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-variant-numeric: tabular-nums; }
.ag-d:hover { background: var(--bg-soft); }
.ag-d.out { color: var(--text-3); }
.ag-d.today { font-weight: 800; color: var(--accent-ink); }
.ag-d.sel { background: var(--ink); color: #fff; }
:root[data-theme="dark"] .ag-d.sel { background: var(--lime); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ag-d.sel { background: var(--lime); color: var(--ink); } }
.ag-dots { display: flex; gap: 2px; height: 4px; }
.ag-dots em { width: 4px; height: 4px; border-radius: 50%; }

/* Página da agenda */
.ag-toolbar { gap: 6px; }
.ag-title { margin: 0 0 0 8px; font-size: 18px; }
.ag-title::first-letter { text-transform: uppercase; }
.ag-who { width: auto; height: 34px; }
.ag-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--border); }
.ag-seg button { height: 28px; padding: 0 12px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.ag-seg button.on { background: var(--bg); color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm); }
.ag-content { padding-top: 12px; display: flex; flex-direction: column; overflow: hidden; }
/* mês */
.ag-month { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto repeat(6, minmax(96px, 1fr)); border: 1px solid var(--border); border-radius: 16px; overflow: auto; }
.ag-mh { padding: 8px 10px; font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); }
.ag-mc { padding: 4px 4px 6px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; min-width: 0; cursor: pointer; }
.ag-mc:nth-child(7n) { border-right: 0; }
.ag-mc.we { background: color-mix(in srgb, var(--bg-soft) 60%, transparent); }
.ag-mc.out .ag-mn { color: var(--text-3); }
.ag-mn { align-self: flex-start; min-width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; font-size: 12.5px; font-weight: 600; margin: 0 0 2px 2px; }
.ag-mc.today .ag-mn { background: var(--lime); color: var(--ink); }
.ag-chip { display: flex; align-items: center; gap: 5px; width: 100%; min-width: 0; padding: 2px 6px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 12px; color: var(--text); cursor: pointer; text-align: left; }
.ag-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.ag-chip:hover { background: var(--bg-hover); }
.ag-chip b { font-weight: 600; color: var(--text-2); flex: none; font-variant-numeric: tabular-nums; }
.ag-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-chip.allday { background: color-mix(in srgb, var(--c) 22%, var(--bg)); font-weight: 600; }
.ag-chip.allday::before { display: none; }
.ag-chip.pending span { font-style: italic; }
.ag-chip.declined span { text-decoration: line-through; color: var(--text-3); }
.ag-more { border: 0; background: none; font: inherit; font-size: 11.5px; color: var(--text-2); cursor: pointer; text-align: left; padding: 0 6px; }
/* semana e dia */
.ag-week { flex: 1; min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.ag-wh, .ag-allday, .ag-grid { display: grid; grid-template-columns: 56px repeat(var(--days), minmax(0, 1fr)); }
.ag-wh { border-bottom: 1px solid var(--border); }
.ag-dh { display: flex; flex-direction: column; align-items: center; padding: 8px 0 6px; cursor: pointer; }
.ag-dh small { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-3); letter-spacing: .05em; }
.ag-dh b { font-size: 20px; width: 38px; height: 38px; line-height: 38px; text-align: center; border-radius: 50%; font-weight: 600; }
.ag-dh:hover b { background: var(--bg-soft); }
.ag-dh.today small { color: var(--accent-ink); }
.ag-dh.today b { background: var(--lime); color: var(--ink); }
.ag-allday { border-bottom: 1px solid var(--border); min-height: 30px; }
.ag-ad-l { font-size: 10.5px; color: var(--text-3); display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; }
.ag-adc { border-left: 1px solid var(--border); padding: 3px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ag-wb { flex: 1; overflow-y: auto; position: relative; }
.ag-grid { position: relative; }
.ag-hours { position: relative; }
.ag-hours span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ag-col { position: relative; border-left: 1px solid var(--border); background-image: repeating-linear-gradient(to bottom, var(--border) 0 1px, transparent 1px 56px); cursor: cell; }
.ag-col.we { background-color: color-mix(in srgb, var(--bg-soft) 60%, transparent); }
.ag-ev { position: absolute; z-index: 1; border-radius: 8px; padding: 4px 7px; overflow: hidden; background: color-mix(in srgb, var(--c) 24%, var(--bg)); border-left: 3px solid var(--c); color: var(--text); font-size: 12px; line-height: 1.3; cursor: pointer; box-shadow: var(--shadow-xs); display: flex; flex-direction: column; gap: 1px; user-select: none; touch-action: none; transition: box-shadow .12s; }
.ag-ev:hover { box-shadow: var(--shadow-md); z-index: 2; }
.ag-ev b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-ev small { font-size: 11px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-ev.short { flex-direction: row; align-items: baseline; gap: 6px; }
.ag-ev.short .avs { display: none; }
.ag-ev .avs { margin-top: auto; }
.ag-ev .avs .av { width: 18px; height: 18px; font-size: 8px; }
.ag-ev.pending { background: var(--bg); border: 1px dashed var(--c); border-left: 3px solid var(--c); }
.ag-ev.declined { opacity: .5; }
.ag-ev.declined b { text-decoration: line-through; }
.ag-ev.dragging { opacity: .85; box-shadow: var(--shadow); z-index: 5; cursor: grabbing; }
.ag-now { position: absolute; left: -1px; right: 0; height: 2px; background: #e5484d; z-index: 3; pointer-events: none; }
.ag-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #e5484d; }

/* Editor do compromisso */
.modal.ev-modal { max-width: 560px; }
.ev-modal h3 { font-size: 15px; color: var(--text-2); font-family: var(--font); font-weight: 600; }
input.ev-title { border: 0; border-bottom: 2px solid var(--border); border-radius: 0; padding: 6px 0 8px; font-family: var(--display); font-stretch: 108%; font-size: 22px; font-weight: 800; background: none; margin-bottom: 8px; }
input.ev-title:focus { box-shadow: none; border-bottom-color: var(--accent-ink); }
.ev-row { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; }
.ev-row > span:first-child { color: var(--text-3); margin-top: 8px; flex: none; }
.ev-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1; }
.ev-when input[type=date] { width: auto; }
.ev-times { display: inline-flex; align-items: center; gap: 6px; }
.ev-times input { width: 110px; }
.ev-allday { margin: 0; font-weight: 500; }
.ev-people { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; align-items: center; }
.ev-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px 3px 3px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); font-size: 13px; }
.ev-chip .av { width: 24px; height: 24px; font-size: 9px; }
.ev-chip small { font-size: 11px; color: var(--text-3); }
.ev-chip.r-yes small { color: #16a34a; font-weight: 600; }
.ev-chip.r-no small { color: var(--danger); font-weight: 600; }
.ev-chip.r-owner small { color: var(--accent-ink); font-weight: 600; }
.ev-x { border: 0; background: none; color: var(--text-3); cursor: pointer; display: inline-flex; padding: 2px; border-radius: 50%; }
.ev-x:hover { background: var(--bg-hover); color: var(--text); }
.ev-loc { display: flex; gap: 8px; flex: 1; }
.ev-desc textarea { flex: 1; min-height: 80px; }
.ev-colors { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 4px; }
.ev-sw { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.ev-sw.on { border-color: var(--bg); box-shadow: 0 0 0 2px var(--text); }
.ev-rsvp { display: flex; align-items: center; gap: 8px; padding: 12px; margin-top: 8px; border-radius: 14px; background: var(--bg-soft); }
.ev-rsvp span { flex: 1; font-weight: 600; }
.ev-modal .actions .ev-del { margin-right: auto; }
@media (max-width: 760px) {
  .ag-toolbar .ag-title { width: 100%; order: 9; margin: 6px 0 0; }
  .ag-month { grid-template-rows: auto repeat(6, minmax(70px, 1fr)); }
  .ag-chip b { display: none; }
}
.ag-card .mn-top { flex-wrap: wrap; }
.ag-card .mn-top b { white-space: normal; }

/* ===== v2.5 Etiquetas e renomear na lista ===== */
.tag-chip { --tc: #87909e; display: inline-flex; align-items: center; gap: 4px; max-width: 160px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1; color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 32%, transparent); white-space: nowrap; cursor: default; }
.tag-chip .tg-n { overflow: hidden; text-overflow: ellipsis; }
.tag-chip.sm { height: 18px; padding: 0 7px; font-size: 10.5px; }
.tag-chip[onclick], .tag-chips .tag-chip { cursor: pointer; }
:root[data-theme="dark"] .tag-chip { color: color-mix(in srgb, var(--tc) 70%, #fff); }
.tag-chip .tg-x { border: 0; background: none; color: inherit; font-size: 14px; line-height: 1; padding: 0 0 1px; cursor: pointer; opacity: .6; }
.tag-chip .tg-x:hover { opacity: 1; }
.tag-chips { display: inline-flex; flex-wrap: nowrap; gap: 4px; min-width: 0; overflow: hidden; flex: 0 1 auto; }
.row .name .tag-chips { flex: 0 1 auto; }
.card-tags { margin: 6px 0 2px; }
.card-tags .tag-chips { flex-wrap: wrap; }
.row .name .row-acts { display: none; flex: none; gap: 2px; }
.row:hover .name .row-acts { display: inline-flex; }
.row.renaming .name .row-acts { display: none; }
.ra-btn { width: 24px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--bg); color: var(--text-2); border-radius: 6px; cursor: pointer; padding: 0; }
.ra-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--bg-hover); }
.rn-inp { flex: 1 1 auto; min-width: 120px; height: 26px; padding: 0 8px; font: inherit; border: 1px solid var(--accent); border-radius: 6px; background: var(--bg); color: var(--text); outline: none; box-shadow: 0 0 0 3px var(--accent-soft, rgba(160, 242, 44, .25)); }
.tag-pop { width: 300px; max-width: calc(100vw - 16px); padding: 8px !important; }
.tag-pop .tp-inp { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; outline: none; }
.tag-pop .tp-inp:focus { border-color: var(--accent); }
.tp-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 4px 4px; font-size: 11px; font-weight: 600; color: var(--text-3); }
.tp-head .icon-btn { width: 24px; height: 24px; }
.tp-list { max-height: 300px; overflow-y: auto; }
.tp-it { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px; cursor: pointer; min-height: 32px; }
.tp-it:hover { background: var(--bg-soft); }
.tp-it .tag-chip { cursor: pointer; flex: 0 1 auto; max-width: 190px; }
.tp-check { width: 16px; height: 16px; flex: none; border: 1.5px solid var(--border-strong); border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; }
.tp-it.on .tp-check { background: var(--accent); border-color: var(--accent); color: #1a1a1a; }
.tp-more { margin-left: auto; width: 24px; height: 24px; opacity: 0; }
.tp-it:hover .tp-more { opacity: 1; }
.tp-new { color: var(--text-2); font-size: 13px; }
.tp-new b { color: var(--text); }
.tp-empty { padding: 8px 6px; }
.tag-ed input { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; margin: 6px 0 10px; }
.tg-swatches { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 12px; }
.tg-sw { width: 100%; aspect-ratio: 1; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.tg-sw.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.tg-ed-acts { display: flex; align-items: center; gap: 6px; }
.tm-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; cursor: pointer; min-height: 28px; }
.tg-manager .tg-add { display: flex; gap: 8px; margin-bottom: 12px; }
.tg-manager .tg-add input { flex: 1; height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
.tg-table { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.tg-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.tg-row:last-child { border-bottom: 0; }
.tg-row .tag-chip { max-width: 260px; }
.tg-row .tg-uses { margin-left: auto; margin-right: 6px; }
.tg-manager.page { max-width: 640px; }
.tg-modal { width: 520px; max-width: calc(100vw - 32px); }
.tg-modal .tg-table { max-height: 50vh; overflow-y: auto; }

/* ===== v2.6 Largura das colunas ===== */
.col-rsz-host { position: relative; }
.col-rsz { position: absolute; top: 0; right: 0; width: 9px; height: 100%; cursor: col-resize; z-index: 3; display: block; }
.col-rsz::after { content: ''; position: absolute; top: 4px; bottom: 4px; right: 1px; width: 2px; border-radius: 2px; background: transparent; transition: background-color .12s; }
.row-head:hover .col-rsz::after, .tbl thead tr:hover .col-rsz::after { background: var(--border-strong); }
.col-rsz:hover::after, .col-rsz.on::after { background: var(--accent) !important; }
body.col-resizing, body.col-resizing * { cursor: col-resize !important; user-select: none !important; }
.row > div { min-width: 0; }
