:root {
  --chrome: #151c2e;
  --chrome-2: #1f2840;
  --chrome-3: #2a3552;
  --chrome-text: #e8ecf5;
  --chrome-muted: #9aa5bf;
  --accent: #0055FF;
  --accent-hover: #0042c7;
  --accent-soft: #e6eeff;
  --text: #1e1f21;
  --text-2: #6d6e6f;
  --text-3: #9ca0a6;
  --border: #e6e4e3;
  --border-2: #edeae9;
  --hover: #f6f5f4;
  --bg: #ffffff;
  --bg-soft: #f9f8f8;
  --green: #1aa35a;
  --green-soft: #e3f6ec;
  --red: #d1394a;
  --red-soft: #fde8ea;
  --yellow-soft: #fdf1d0;
  --yellow-text: #8a5b00;
  --purple-soft: #efe4fb;
  --purple-text: #6c2fb0;
  --teal-soft: #dcf4f1;
  --teal-text: #0e6b62;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(15,23,42,.12);
  --top-h: 48px;
  --side-w: 240px;
  --radius: 8px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.45 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--accent); text-decoration: none; }
.ic { width: 16px; height: 16px; flex-shrink: 0; display: block; }
.muted { color: var(--text-2); }
.red { color: var(--red) !important; }
.sm-t { font-size: 12px; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hint { color: var(--text-2); font-size: 12.5px; margin: 6px 0 0; }
.hint.pad { padding: 12px 24px; }

/* ---------- casca ---------- */
#app { height: 100%; display: grid; grid-template-columns: var(--side-w) 1fr; grid-template-rows: var(--top-h) 1fr; }
.top {
  grid-column: 1 / -1; background: var(--chrome); color: var(--chrome-text);
  display: flex; align-items: center; gap: 12px; padding: 0 12px 0 10px; border-bottom: 1px solid #0b1020; z-index: 30;
}
.top-menu { color: var(--chrome-text); }
.btn-create {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px 0 10px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 13.5px; margin-left: 4px;
}
.btn-create:hover { background: var(--accent-hover); }
.search {
  flex: 1; max-width: 560px; margin: 0 auto; height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 12px;
  background: var(--chrome-2); border: 1px solid var(--chrome-3); border-radius: 999px; color: var(--chrome-muted);
}
.search:focus-within { background: #fff; color: var(--text-2); border-color: #fff; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--chrome-text); font-size: 13.5px; }
.search:focus-within input { color: var(--text); }
.search input::placeholder { color: var(--chrome-muted); }
.top-right { display: flex; align-items: center; gap: 10px; }
.top-av { border-radius: 50%; }
.top-av:hover { box-shadow: 0 0 0 2px var(--chrome-3); }
.demo-badge { font-size: 11.5px; font-weight: 600; background: #f59e0b; color: #1f1300; padding: 3px 9px; border-radius: 999px; }

.side {
  background: var(--chrome); color: var(--chrome-text); overflow-y: auto; padding: 10px 8px 24px;
  display: flex; flex-direction: column; gap: 2px; z-index: 20;
}
.side-logo { display: flex; align-items: center; gap: 8px; padding: 6px 10px 14px; }
.side-logo img { height: 22px; width: auto; }
.side-logo span { font-weight: 600; color: var(--chrome-muted); font-size: 13px; padding-left: 8px; border-left: 1px solid var(--chrome-3); }
.side-nav { display: flex; flex-direction: column; gap: 1px; padding-bottom: 12px; border-bottom: 1px solid var(--chrome-2); margin-bottom: 8px; }
.side-item {
  display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 6px;
  color: var(--chrome-text); font-size: 14px; text-align: left; width: 100%;
}
.side-item .ic { color: var(--chrome-muted); }
.side-item:hover { background: var(--chrome-2); }
.side-item.on { background: var(--chrome-3); }
.side-item.on .ic { color: #fff; }
.side-badge { margin-left: auto; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; }
.side-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; }
.side-group { padding: 6px 0 8px; }
.side-h { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 4px 10px; color: var(--chrome-muted); font-size: 12px; font-weight: 600; }
.side-h .icon-btn { color: var(--chrome-muted); }
.side-h .icon-btn:hover { background: var(--chrome-2); color: #fff; }
.side-proj { height: 32px; }
.side-sq { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }
.side-lock { margin-left: auto; opacity: .6; }
.side-lock .ic { width: 13px; height: 13px; }
.side-empty { color: var(--chrome-muted); font-size: 12.5px; padding: 4px 10px; opacity: .8; }
.side-arch { margin-top: auto; color: var(--chrome-muted); }
.side-backdrop { display: none; }

.main { overflow: hidden; display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.page { overflow-y: auto; height: 100%; }

/* ---------- botões ---------- */
.icon-btn { width: 30px; height: 30px; border-radius: 6px; display: inline-grid; place-items: center; color: var(--text-2); flex-shrink: 0; }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn.sm { width: 24px; height: 24px; }
.icon-btn.sm .ic { width: 14px; height: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 6px;
  border: 1px solid var(--border); background: #fff; font-weight: 500; white-space: nowrap;
}
.btn:hover { background: var(--hover); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.big { height: 40px; justify-content: center; width: 100%; font-size: 15px; margin-top: 18px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { background: #b52d3d; }
.btn.warn { border-color: #f5c76b; background: #fff8e6; color: var(--yellow-text); }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 6px; color: var(--text-2); font-size: 13px; white-space: nowrap; }
.btn-ghost:hover { background: var(--hover); color: var(--text); }
.btn-ghost.on { background: var(--accent-soft); color: var(--accent); }
.link-sm { color: var(--accent); font-size: 13px; margin-left: auto; }
.link-sm:hover { text-decoration: underline; }

/* ---------- avatares, pílulas ---------- */
.av {
  width: var(--s); height: var(--s); border-radius: 50%; color: #fff; display: inline-grid; place-items: center; flex-shrink: 0;
  font-size: calc(var(--s) * .4); font-weight: 600; letter-spacing: .02em; line-height: 1;
}
.av-empty { background: transparent; border: 1px dashed var(--text-3); color: var(--text-3); }
.av-empty .ic { width: 60%; height: 60%; }
.av-stack { display: flex; }
.av-stack .av { box-shadow: 0 0 0 2px #fff; }
.av-stack .av + .av { margin-left: -6px; }
.pdot { width: var(--s); height: var(--s); border-radius: 3px; display: inline-block; flex-shrink: 0; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pri-alta { background: var(--purple-soft); color: var(--purple-text); }
.pri-media { background: var(--yellow-soft); color: var(--yellow-text); }
.pri-baixa { background: var(--teal-soft); color: var(--teal-text); }
.proj-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 170px; height: 22px; padding: 0 8px; border-radius: 4px;
  background: color-mix(in srgb, var(--c) 14%, white); color: color-mix(in srgb, var(--c) 70%, black); font-size: 12px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 0;
}
.due { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.due.late { color: var(--red); }
.due.soon { color: var(--green); }
.ghost { color: var(--text-3); opacity: 0; display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px dashed var(--text-3); border-radius: 50%; }
.ghost .ic { width: 13px; height: 13px; }
.ghost.on { opacity: 1; border: 0; }
.tp-v .ghost, .sub-row .ghost, .bd-card .ghost { opacity: 1; }

/* check redondo do Asana */
.chk {
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #a6a5a4; display: inline-grid; place-items: center;
  color: transparent; flex-shrink: 0; transition: all .15s;
}
.chk .ic { width: 11px; height: 11px; stroke-width: 2.6; }
.chk:hover { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.chk.on { background: var(--green); border-color: var(--green); color: #fff; }
.chk.xs { width: 15px; height: 15px; }
.chk.xs .ic { width: 9px; height: 9px; }

/* ---------- cabeçalho de página e abas ---------- */
.page-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px 4px; }
.ph-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ph-title h1 { font-size: 20px; margin: 0; font-weight: 600; }
.ph-icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.ph-icon .ic { width: 18px; height: 18px; }
.ph-name { font-size: 20px; font-weight: 600; border: 1px solid transparent; border-radius: 6px; padding: 2px 6px; min-width: 60px; width: auto; max-width: 52vw; outline: 0; background: transparent; field-sizing: content; }
.ph-name:hover { border-color: var(--border); }
.ph-name:focus { border-color: var(--accent); }
.ph-right { display: flex; align-items: center; gap: 12px; }
.tabs { display: flex; gap: 2px; padding: 0 24px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.tabs.sm { padding: 0; margin: 0 -4px 4px; }
.tab {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 8px; color: var(--text-2); font-size: 14px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tab .ic { width: 15px; height: 15px; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); border-bottom-color: var(--text); font-weight: 500; }
.tab-n { background: var(--hover); color: var(--text-2); font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 7px; }
.tab-n.warn { background: #fff1d6; color: var(--yellow-text); }
.toolbar { display: flex; align-items: center; gap: 8px; padding: 12px 24px; flex-shrink: 0; }
.tb-right { margin-left: auto; display: flex; gap: 4px; }
.proj-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ---------- lista ---------- */
.lv { flex: 1; overflow: auto; padding: 0 0 80px; }
.lv-head, .lv-row { display: grid; grid-template-columns: minmax(280px, 1fr) 150px 140px 120px; }
.lv.my .lv-head, .lv.my .lv-row { grid-template-columns: minmax(280px, 1fr) 140px 190px 120px; }
.lv-head {
  position: sticky; top: 0; background: #fff; z-index: 2; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--text-2); height: 36px; align-items: center;
}
.lv-head > div { padding: 0 10px; border-left: 1px solid var(--border); height: 100%; display: flex; align-items: center; }
.lv-head > div:first-child { border-left: 0; padding-left: 48px; }
.lv-sec { padding-top: 10px; }
.lv-sec-h { display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 24px 0 12px; position: relative; }
.caret { width: 24px; height: 24px; display: grid; place-items: center; color: var(--text-2); border-radius: 4px; transition: transform .15s; }
.caret:hover { background: var(--hover); }
.caret.open { transform: rotate(90deg); }
.sec-name, .sec-label { font-size: 16px; font-weight: 600; border: 1px solid transparent; border-radius: 6px; padding: 2px 6px; outline: 0; background: transparent; min-width: 40px; field-sizing: content; }
.sec-label.red { color: var(--red); }
.sec-name:hover { border-color: var(--border); }
.sec-name:focus { border-color: var(--accent); }
.sec-count { color: var(--text-3); font-size: 13px; margin-left: 4px; }
.sec-more { opacity: 0; }
.lv-sec-h:hover .sec-more { opacity: 1; }
.lv-row {
  min-height: 38px; border-bottom: 1px solid var(--border-2); align-items: stretch; cursor: pointer; background: #fff; position: relative;
}
.lv-row:first-of-type { border-top: 1px solid var(--border-2); }
.lv-row:hover { background: var(--bg-soft); }
.lv-row.sel { background: var(--accent-soft); }
.lv-row > div { display: flex; align-items: center; padding: 0 10px; border-left: 1px solid var(--border-2); min-width: 0; gap: 6px; }
.lv-row > .c-name { border-left: 0; padding-left: 8px; gap: 8px; }
.lv-row:hover .ghost { opacity: 1; }
.grip, .grip-sp { width: 14px; color: var(--text-3); opacity: 0; cursor: grab; display: grid; place-items: center; flex-shrink: 0; margin-left: 2px; }
.grip .ic { width: 14px; height: 14px; }
.lv-row:hover .grip { opacity: 1; }
.t-title {
  flex: 0 1 auto; field-sizing: content; min-width: 60px; max-width: 100%; border: 1px solid transparent; outline: 0; background: transparent; padding: 3px 6px; border-radius: 4px;
  text-overflow: ellipsis; font-size: 14px;
}
.t-title:hover { border-color: var(--border); background: #fff; }
.t-title:focus { border-color: var(--accent); background: #fff; }
.lv-row.done .t-title { color: var(--text-2); }
.lv-row.just-done { animation: fadeDone 1.4s ease forwards; }
@keyframes fadeDone { 0%, 60% { opacity: 1; } 100% { opacity: .35; } }
.t-meta { display: inline-flex; align-items: center; gap: 3px; color: var(--text-3); font-size: 12px; flex-shrink: 0; }
.t-meta .ic { width: 13px; height: 13px; }
.t-det { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--text-2); padding: 3px 6px; border-radius: 4px; opacity: 0; flex-shrink: 0; }
.t-det .ic { width: 12px; height: 12px; }
.lv-row:hover .t-det { opacity: 1; }
.t-det:hover { background: var(--hover); color: var(--text); }
.who-n { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-add { height: 38px; display: flex; align-items: center; padding-left: 74px; color: var(--text-3); cursor: pointer; border-bottom: 1px solid var(--border-2); font-size: 13.5px; }
.lv-add:hover { color: var(--text-2); background: var(--bg-soft); }
.lv-add-sec { display: inline-flex; align-items: center; gap: 6px; margin: 18px 24px; color: var(--text-2); font-weight: 600; padding: 6px 8px; border-radius: 6px; }
.lv-add-sec:hover { background: var(--hover); color: var(--text); }
.dragging { opacity: .4; }
.drop-before { box-shadow: inset 0 2px 0 var(--accent); }
.drop-after { box-shadow: inset 0 -2px 0 var(--accent); }
.drop-into { outline: 2px dashed var(--accent); outline-offset: -2px; background: var(--accent-soft) !important; }

/* ---------- quadro ---------- */
.bd { flex: 1; display: flex; gap: 14px; padding: 4px 24px 24px; overflow-x: auto; align-items: flex-start; min-height: 0; }
.bd-col { width: 290px; flex-shrink: 0; background: var(--bg-soft); border: 1px solid var(--border-2); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; max-height: 100%; }
.bd-col-h { display: flex; align-items: center; gap: 2px; padding: 0 0 8px; }
.bd-col-h .sec-name, .bd-col-h .sec-label { font-size: 14px; flex: 0 1 auto; }
.bd-col-h .sec-count { margin-right: auto; }
.bd-cards { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 20px; }
.bd-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s, border-color .15s; }
.bd-card:hover { border-color: #cfcbc9; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.bd-card.sel { border-color: var(--accent); }
.bd-card.done .bd-t { color: var(--text-2); }
.bd-card.just-done { animation: fadeDone 1.4s ease forwards; }
.bd-top { display: flex; gap: 8px; align-items: flex-start; }
.bd-top .chk { margin-top: 1px; }
.bd-t { font-size: 14px; word-break: break-word; }
.bd-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.bd-foot { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.bd-add { display: flex; align-items: center; gap: 6px; padding: 8px 6px 2px; color: var(--text-2); font-size: 13px; border-radius: 6px; }
.bd-add:hover { color: var(--text); }
.bd-new-col { flex-shrink: 0; width: 220px; height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; }
.bd-new-col:hover { background: var(--hover); }

/* ---------- calendário ---------- */
.cal { flex: 1; display: flex; flex-direction: column; padding: 0 24px 16px; min-height: 0; overflow: auto; }
.cal-bar { display: flex; align-items: center; gap: 6px; padding-bottom: 10px; }
.cal-bar h3 { margin: 0 0 0 8px; font-size: 16px; font-weight: 600; }
.cal-head { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 12px; color: var(--text-2); border: 1px solid var(--border); border-bottom: 0; border-radius: 8px 8px 0 0; }
.cal-head > div { padding: 6px 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--border); border-top: 1px solid var(--border); flex: 1; }
.cal-day { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4px 6px 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; background: #fff; }
.cal-day.out { background: var(--bg-soft); }
.cal-day.out .cal-dn span { color: var(--text-3); }
.cal-dn { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--text-2); height: 24px; }
.cal-day.today .cal-dn span { background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 8px; font-weight: 600; }
.cal-add { opacity: 0; }
.cal-day:hover .cal-add { opacity: 1; }
.cal-task {
  display: flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 3px 6px; border-radius: 4px; cursor: pointer;
  background: color-mix(in srgb, var(--c) 12%, white); border-left: 3px solid var(--c);
}
.cal-task:hover { background: color-mix(in srgb, var(--c) 20%, white); }
.cal-task.done span { text-decoration: line-through; color: var(--text-2); }
.cal-more { font-size: 12px; color: var(--text-2); text-align: left; padding: 0 6px; }
.cal-more:hover { color: var(--text); }

/* ---------- cronograma ---------- */
.tl { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.tl-scroll { flex: 1; overflow: auto; border-top: 1px solid var(--border); }
.tl-inner { position: relative; }
.tl-row { display: flex; height: 38px; border-bottom: 1px solid var(--border-2); }
.tl-left { width: 280px; flex-shrink: 0; position: sticky; left: 0; background: #fff; z-index: 3; border-right: 1px solid var(--border); display: flex; align-items: center; gap: 8px; padding: 0 12px 0 24px; cursor: pointer; font-size: 13.5px; }
.tl-left:hover { background: var(--bg-soft); }
.tl-grp .tl-left { cursor: default; background: var(--bg-soft); }
.tl-grp .tl-track { background: var(--bg-soft); }
.tl-sched { margin-left: auto; font-size: 12px; color: var(--accent); flex-shrink: 0; }
.tl-headrow { height: 46px; position: sticky; top: 0; z-index: 4; background: #fff; }
.tl-corner { color: var(--text-2); font-size: 12px; cursor: default; }
.tl-head { position: relative; flex-shrink: 0; }
.tl-d { position: absolute; top: 0; bottom: 0; width: 34px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 6px; font-size: 11.5px; color: var(--text-2); }
.tl-d b { position: absolute; top: 4px; left: 4px; font-size: 11.5px; color: var(--text); white-space: nowrap; }
.tl-d.we { background: var(--bg-soft); }
.tl-d.tl-today span { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 6px; font-weight: 600; }
.tl-track { position: relative; flex-shrink: 0; background-image: repeating-linear-gradient(90deg, transparent 0 33px, var(--border-2) 33px 34px); }
.tl-bar {
  position: absolute; top: 6px; height: 26px; border-radius: 6px; background: color-mix(in srgb, var(--c) 22%, white); border: 1px solid color-mix(in srgb, var(--c) 55%, white);
  display: flex; align-items: center; gap: 6px; padding: 0 8px 0 4px; font-size: 12.5px; cursor: pointer; overflow: hidden; color: color-mix(in srgb, var(--c) 60%, black);
}
.tl-bar:hover { background: color-mix(in srgb, var(--c) 32%, white); }
.tl-bar.done { opacity: .5; }
.tl-now { position: absolute; top: 46px; bottom: 0; width: 2px; background: var(--accent); opacity: .5; z-index: 2; pointer-events: none; }
.tl-empty { padding: 24px; color: var(--text-2); }

/* ---------- visão geral ---------- */
.ov { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; padding: 24px; overflow: auto; max-width: 1100px; }
.ov h3 { font-size: 16px; margin: 0 0 10px; }
.ov-main h3 + .hint { margin-bottom: 10px; }
.ov-desc { width: 100%; min-height: 140px; border: 1px solid var(--border); border-radius: 8px; padding: 12px; resize: vertical; outline: 0; }
.ov-desc:focus { border-color: var(--accent); }
.ov-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0 28px; }
.ov-stats div { border: 1px solid var(--border); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; }
.ov-stats b { font-size: 24px; font-weight: 600; }
.ov-stats span { color: var(--text-2); font-size: 13px; }
.ov-side h4 { font-size: 12px; color: var(--text-2); font-weight: 600; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .04em; }
.ov-side h4:not(:first-child) { margin-top: 22px; }
.ov-vis { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.ov-vis .ic { width: 20px; height: 20px; margin-top: 2px; }
.ov-vis small { display: block; color: var(--text-2); }
.ov-owner { display: flex; align-items: center; gap: 8px; }

/* ---------- campos e janelas ---------- */
.inp { width: 100%; height: 38px; border: 1px solid var(--border); border-radius: 6px; padding: 0 10px; outline: 0; background: #fff; }
.inp:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin: 16px 0 6px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.sw { width: 26px; height: 26px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.sw.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--text); }
.vis-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vis-opt { position: relative; cursor: pointer; }
.vis-opt input { position: absolute; opacity: 0; }
.vis-opt span { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; height: 100%; }
.vis-opt span .ic { width: 20px; height: 20px; grid-row: span 2; color: var(--text-2); }
.vis-opt small { color: var(--text-2); font-size: 12.5px; }
.vis-opt input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.vis-opt.disabled { opacity: .55; cursor: not-allowed; }
.modal-ov { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fadeIn .15s; }
.modal { background: #fff; border-radius: 12px; width: min(520px, 100%); padding: 20px 24px; box-shadow: var(--shadow); max-height: calc(100vh - 32px); overflow: auto; }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-h h3 { margin: 0; font-size: 18px; }
.modal-p { color: var(--text-2); }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
@keyframes fadeIn { from { opacity: 0; } }

.pop { position: fixed; z-index: 120; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); padding: 6px; min-width: 220px; max-width: 340px; max-height: 70vh; overflow-y: auto; animation: fadeIn .1s; }
.pop.search-pop { width: min(560px, calc(100vw - 16px)); max-width: none; }
.pop-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 4px 10px; border-radius: 6px; text-align: left; color: var(--text); font-size: 14px; }
.pop-item:hover { background: var(--hover); }
.pop-item.active { font-weight: 500; }
.pop-item.danger { color: var(--red); }
.pop-item .muted { margin-left: auto; font-size: 12.5px; }
.pop-item .ic { color: var(--text-2); }
.pop-item.danger .ic { color: var(--red); }
.pop-check { margin-left: auto; color: var(--accent); }
.pop-check .ic { color: var(--accent); }
.pop-sep { height: 1px; background: var(--border-2); margin: 6px 0; }
.pop-head { font-size: 12px; font-weight: 600; color: var(--text-2); padding: 6px 10px 4px; }
.date-pop .inp { margin: 4px 0 6px; }

#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 200; align-items: center; }
.toast { background: #1e1f21; color: #fff; border-radius: 8px; padding: 10px 16px; display: flex; gap: 16px; align-items: center; box-shadow: var(--shadow); font-size: 13.5px; animation: fadeIn .2s; max-width: calc(100vw - 32px); transition: opacity .4s; }
.toast.out { opacity: 0; }
.toast-undo { color: #8fb2ff; font-weight: 600; }

/* ---------- painel da tarefa ---------- */
.pane {
  position: fixed; top: var(--top-h); right: 0; bottom: 0; width: min(640px, 56vw); background: #fff; border-left: 1px solid var(--border);
  box-shadow: -8px 0 24px rgba(15,23,42,.08); transform: translateX(102%); transition: transform .2s ease; z-index: 25;
  display: flex; flex-direction: column;
}
.pane.open { transform: none; }
.pane.wide { width: min(760px, 62vw); }
.tp-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.tp-actions { display: flex; gap: 2px; margin-left: auto; }
.tp-done { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; color: var(--text); }
.tp-done .ic { width: 14px; height: 14px; color: var(--text-2); }
.tp-done:hover { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.tp-done:hover .ic { color: var(--green); }
.tp-done.on { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.tp-done.on .ic { color: var(--green); }
.tp-scroll { flex: 1; overflow-y: auto; padding: 16px 24px 24px; }
.tp-parent { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 13px; max-width: 100%; margin-bottom: 6px; }
.tp-parent:hover { color: var(--text); }
.tp-banner { display: flex; align-items: center; gap: 8px; background: var(--green-soft); color: #0f6b3b; padding: 8px 12px; border-radius: 6px; font-size: 13px; margin-bottom: 10px; }
.tp-title {
  width: 100%; font-size: 22px; font-weight: 600; border: 1px solid transparent; border-radius: 6px; padding: 4px 8px; margin-left: -8px; resize: none; outline: 0; overflow: hidden; line-height: 1.3;
}
.tp-title:hover { border-color: var(--border); }
.tp-title:focus { border-color: var(--accent); }
.tp-fields { display: grid; grid-template-columns: 130px 1fr; row-gap: 6px; align-items: center; margin: 14px 0 6px; }
.tp-l { font-size: 13px; color: var(--text-2); }
.tp-v { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 34px; }
.field-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 3px 8px; border-radius: 6px; margin-left: -8px; font-size: 14px; text-align: left; max-width: 100%; }
.field-btn + .field-btn { margin-left: 0; }
.field-btn:hover { background: var(--hover); }
.field-btn .ic { width: 14px; height: 14px; color: var(--text-2); }
.tp-sec { margin-top: 18px; }
.tp-sec > .tp-l { margin-bottom: 8px; font-weight: 600; color: var(--text); font-size: 14px; display: flex; gap: 8px; }
.tp-desc { width: 100%; min-height: 72px; border: 1px solid transparent; border-radius: 6px; padding: 8px 10px; margin-left: -10px; resize: none; outline: 0; overflow: hidden; }
.tp-desc:hover { border-color: var(--border); }
.tp-desc:focus { border-color: var(--accent); }
.subs { border-top: 1px solid var(--border-2); margin-bottom: 6px; }
.sub-row { display: flex; align-items: center; gap: 8px; height: 38px; border-bottom: 1px solid var(--border-2); padding: 0 4px; cursor: pointer; }
.sub-row:hover { background: var(--bg-soft); }
.sub-t { flex: 1; min-width: 0; border: 1px solid transparent; border-radius: 4px; padding: 3px 6px; outline: 0; background: transparent; }
.sub-t:focus { border-color: var(--accent); background: #fff; }
.sub-row.done .sub-t { color: var(--text-2); }
.sub-due { min-width: 24px; display: grid; place-items: center; }
.sub-open { color: var(--text-3); }
.tp-activity { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border); }
.tp-activity > .tp-l { font-weight: 600; color: var(--text); font-size: 14px; margin-bottom: 12px; }
.stories { display: flex; flex-direction: column; gap: 10px; }
.st-sys { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); padding-left: 10px; }
.st-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }
.st-cm { display: flex; gap: 10px; padding: 6px 0; }
.st-h { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; }
.st-h .muted { font-size: 12px; }
.st-body { margin-top: 2px; word-break: break-word; }
.tp-comment { display: flex; gap: 10px; align-items: flex-start; padding: 12px 24px 14px; border-top: 1px solid var(--border); background: var(--bg-soft); flex-shrink: 0; }
.cm-box { flex: 1; border: 1px solid var(--border); border-radius: 8px; background: #fff; display: flex; flex-direction: column; }
.cm-box:focus-within { border-color: var(--accent); }
.cm-in { border: 0; outline: 0; resize: none; padding: 8px 10px; min-height: 38px; border-radius: 8px; field-sizing: content; max-height: 200px; }
.cm-box .btn { align-self: flex-end; margin: 0 6px 6px; display: none; }
.cm-box:focus-within .btn, .cm-box .btn:focus { display: inline-flex; }

/* reunião */
.mt-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.mt-head h2 { margin: 0; font-size: 20px; }
.mt-ic { width: 32px; height: 32px; border-radius: 8px; background: #e8f0fe; color: #1a5fd0; display: grid; place-items: center; flex-shrink: 0; }
.mt-ic.big { width: 44px; height: 44px; border-radius: 10px; }
.mt-ic.big .ic { width: 22px; height: 22px; }
.mt-l { margin: 22px 0 10px; font-weight: 600; color: var(--text); font-size: 14px; }
.transcript { font-size: 14px; line-height: 1.6; }
.transcript p { margin: 0 0 10px; }
.transcript b { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 1px; }
.warn-t { color: var(--yellow-text); font-weight: 500; }
.mt-list { overflow-y: auto; padding: 8px 24px 60px; flex: 1; }
.mt-month { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; margin: 16px 0 6px; }
.mt-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border-2); border-radius: 8px; margin-bottom: 6px; cursor: pointer; color: var(--text); }
.mt-row:hover { background: var(--bg-soft); }
.mt-row.sel { border-color: var(--accent); background: var(--accent-soft); }
.mt-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mt-info small { color: var(--text-2); }

/* caixa de entrada */
.inbox { overflow-y: auto; flex: 1; padding: 8px 0 60px; }
.ib-group { font-size: 12px; font-weight: 600; color: var(--text-2); padding: 14px 24px 6px; }
.ib-row { display: flex; gap: 12px; padding: 12px 24px 12px 14px; border-bottom: 1px solid var(--border-2); cursor: pointer; position: relative; }
.ib-row:hover { background: var(--bg-soft); }
.ib-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 12px; flex-shrink: 0; }
.ib-row.unread .ib-dot { background: var(--accent); }
.ib-av { position: relative; flex-shrink: 0; }
.ib-av .av .ic { width: 16px; height: 16px; }
.ib-kind { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--border); display: grid; place-items: center; color: var(--text-2); }
.ib-kind .ic { width: 11px; height: 11px; }
.ib-body { flex: 1; min-width: 0; }
.ib-task { display: flex; align-items: center; gap: 6px; }
.ib-text { color: var(--text); font-size: 13.5px; margin-top: 2px; }
.ib-row:not(.unread) .ib-text { color: var(--text-2); }
.ib-meta { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-3); margin-top: 4px; }
.ib-x { opacity: 0; }
.ib-row:hover .ib-x { opacity: 1; }

/* início */
.home { padding: 0 24px 60px; }
.home-head { text-align: center; padding: 34px 0 26px; }
.home-date { color: var(--text-2); font-size: 15px; }
.home-head h1 { font-size: 30px; font-weight: 500; margin: 6px 0 14px; }
.home-stats span { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-soft); border: 1px solid var(--border-2); border-radius: 999px; padding: 6px 14px; color: var(--text-2); font-size: 13px; }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1080px; margin: 0 auto; }
.card { border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; background: #fff; min-height: 380px; }
.card-h { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.card-h h3 { margin: 0; font-size: 18px; font-weight: 600; }
.mini-list { display: flex; flex-direction: column; }
.mini-add { display: flex; align-items: center; gap: 8px; color: var(--text-2); height: 38px; padding: 0 4px; border-bottom: 1px solid var(--border-2); font-size: 13.5px; }
.mini-add:hover { color: var(--text); }
.mini-row { display: flex; align-items: center; gap: 10px; height: 40px; border-bottom: 1px solid var(--border-2); padding: 0 4px; cursor: pointer; }
.mini-row:hover { background: var(--bg-soft); }
.mini-row.done .mini-t { color: var(--text-2); }
.mini-t { flex: 1; }
.mini-row .proj-chip { max-width: 120px; }
.mini-empty { color: var(--text-2); padding: 24px 4px; text-align: center; }
.proj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.proj-tile { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; color: var(--text); text-align: left; min-width: 0; }
.proj-tile:hover { background: var(--bg-soft); }
.proj-ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.proj-ic.dashed { border: 1.5px dashed var(--text-3); color: var(--text-2); }
.proj-ic .ic { width: 20px; height: 20px; }
.proj-tile-t { display: flex; flex-direction: column; min-width: 0; }
.proj-tile-t small { color: var(--text-2); font-size: 12px; }

.empty-page { margin: 60px auto; text-align: center; max-width: 420px; color: var(--text-2); padding: 0 16px; }
.empty-page h2 { color: var(--text); font-size: 18px; margin: 10px 0 6px; }
.empty-page > .ic { width: 40px; height: 40px; margin: 0 auto; color: var(--text-3); }
.empty-page.small { margin: 40px auto; }
.loading { grid-column: 1 / -1; grid-row: 1 / -1; display: grid; place-items: center; }
.loading img { width: 48px; animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .35; transform: scale(.92); } }

/* login */
body.auth #app { display: block; overflow: auto; }
.auth-wrap { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(160deg, #f4f7ff 0%, #ffffff 60%); }
.auth-card { width: min(400px, 100%); background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 32px 28px; box-shadow: 0 10px 40px rgba(15,23,42,.08); display: flex; flex-direction: column; }
.auth-logo { height: 30px; width: auto; align-self: flex-start; margin-bottom: 22px; }
.auth-card h1 { margin: 0 0 4px; font-size: 22px; }
.auth-card .link-sm { margin: 14px auto 0; }
.auth-msg { background: var(--accent-soft); color: #173a8a; padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-top: 10px; }

/* ---------- celular e telas menores ---------- */
@media (max-width: 1100px) {
  .lv-head, .lv-row { grid-template-columns: minmax(220px, 1fr) 120px 120px 100px; }
  .lv.my .lv-head, .lv.my .lv-row { grid-template-columns: minmax(220px, 1fr) 120px 150px 100px; }
  .who-n { display: none; }
}
@media (max-width: 860px) {
  #app { grid-template-columns: 1fr; }
  .side { position: fixed; top: var(--top-h); bottom: 0; left: 0; width: 270px; transform: translateX(-100%); transition: transform .2s; z-index: 40; }
  body.nav-open .side { transform: none; }
  body.nav-open .side-backdrop { display: block; position: fixed; inset: var(--top-h) 0 0 0; background: rgba(0,0,0,.35); z-index: 35; }
  .pane, .pane.wide { width: 100%; }
  .home-grid { grid-template-columns: 1fr; }
  .ov { grid-template-columns: 1fr; }
  .ov-stats { grid-template-columns: repeat(2, 1fr); }
  .demo-badge { display: none; }
  .search { max-width: none; }
  .btn-create span { display: none; }
  .btn-create { padding: 0 8px; }
}
@media (min-width: 861px) { .top-menu { display: none; } }
@media (max-width: 640px) {
  .page-h, .toolbar { padding-left: 16px; padding-right: 16px; }
  .tabs { padding: 0 16px; }
  .lv-head { display: none; }
  .lv-row, .lv.my .lv-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .lv-row > .c-pri, .lv-row > .c-proj { display: none; }
  .lv-row > div { border-left: 0; padding: 0 6px; }
  .lv-add { padding-left: 52px; }
  .t-det { display: none; }
  .grip { display: none; }
  .ph-right .av-stack { display: none; }
  .ph-name { max-width: 60vw; }
  .tp-scroll, .tp-comment { padding-left: 16px; padding-right: 16px; }
  .tp-fields { grid-template-columns: 100px 1fr; }
  .home { padding: 0 16px 60px; }
  .proj-grid { grid-template-columns: 1fr; }
  .tb-right .btn-ghost { font-size: 0; gap: 0; }
  .tb-right .btn-ghost .ic { width: 16px; height: 16px; }
  .bd { padding: 4px 16px 16px; }
  .bd-col { width: 82vw; }
  .cal { padding: 0 8px 12px; }
  .cal-grid { grid-template-rows: repeat(6, minmax(70px, 1fr)) !important; }
  .cal-task span { display: none; }
  .tl-left { width: 170px; padding-left: 16px; }
  .mt-list { padding: 8px 16px 60px; }
  .ib-row { padding-right: 16px; }
  .vis-opts { grid-template-columns: 1fr; }
}
