:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f1f2f4;
  --text: #172b4d;
  --muted: #5e6c84;
  --border: #dfe1e6;
  --primary: #0c66e4;
  --primary-hover: #0055cc;
  --danger: #c9372c;
  --success: #1f845a;
  --warning: #b65c02;
  --topbar: #1d2125;
  --list-bg: #f1f2f4;
  --shadow: 0 1px 1px rgba(9,30,66,.25), 0 0 1px rgba(9,30,66,.31);
  --shadow-lg: 0 8px 24px rgba(9,30,66,.25);
  --radius: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; color: var(--text); background: var(--bg);
}
#app { height: 100%; display: flex; flex-direction: column; }
a { color: var(--primary); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; }

/* ---------- Botões e campos ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  border: 0; border-radius: 4px; padding: 7px 12px; cursor: pointer;
  background: var(--surface-2); color: var(--text); font-weight: 500; white-space: nowrap;
}
.btn:hover { background: #dcdfe4; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-hover); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: rgba(9,30,66,.08); }
.btn.small { padding: 4px 8px; font-size: 13px; }
.btn.block { width: 100%; justify-content: flex-start; }
.btn:disabled { opacity: .6; cursor: default; }
.icon-btn { border: 0; background: transparent; cursor: pointer; border-radius: 4px; padding: 4px 6px; color: inherit; }
.icon-btn:hover { background: rgba(9,30,66,.1); }

.input, select.input, textarea.input {
  width: 100%; border: 1px solid #8590a2; border-radius: 4px; padding: 7px 9px; background: var(--surface);
}
.input:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; }
textarea.input { resize: vertical; min-height: 60px; }
label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.spacer { flex: 1; }
.hidden { display: none !important; }

/* ---------- Login ---------- */
.auth-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: linear-gradient(135deg, #0c66e4 0%, #6e5dc6 100%); }
.auth-box { background: var(--surface); width: 100%; max-width: 380px; padding: 32px; border-radius: 12px; box-shadow: var(--shadow-lg); }
.auth-box h1 { font-size: 22px; margin-bottom: 4px; }
.auth-logo { width: 64px; height: 64px; display: block; margin-bottom: 12px; object-fit: contain; }
.auth-company { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* Personalização */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.settings-logo { width: 96px; height: 96px; object-fit: contain; background: var(--surface-2); border-radius: 12px; padding: 8px; }
.preview-top { background: var(--topbar); color: #fff; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px 8px 0 0; }
.preview-top .pv-nav { color: #c7d1db; font-size: 13px; padding: 2px 8px; }
.preview-login { background: linear-gradient(135deg, #0c66e4 0%, #6e5dc6 100%); padding: 24px; border-radius: 0 0 8px 8px; }
@media (max-width: 760px) { .settings-grid { grid-template-columns: 1fr; } }
.brand-logo { width: 30px; height: 30px; padding: 2px; border-radius: 6px; background: #f4f5f7; flex-shrink: 0; object-fit: contain; }
.auth-box p { margin: 0 0 20px; }
.error-msg { color: var(--danger); font-size: 13px; min-height: 18px; margin-bottom: 8px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--topbar); color: #fff; display: flex; align-items: center; gap: 4px; padding: 6px 12px; flex-shrink: 0; }
.topbar .brand { font-weight: 700; font-size: 16px; margin-right: 12px; display: flex; align-items: center; gap: 8px; color: #fff; }
.topbar .nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.topbar .nav a { white-space: nowrap; color: #c7d1db; padding: 6px 10px; border-radius: 4px; font-weight: 500; }
.topbar .nav a:hover, .topbar .nav a.active { background: rgba(255,255,255,.12); color: #fff; }
.topbar .user-btn { background: transparent; border: 0; color: #fff; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 4px; }
.topbar .user-btn:hover { background: rgba(255,255,255,.12); }

.avatar {
  width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; user-select: none;
}
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }
.avatars { display: flex; }
.avatars .avatar { margin-left: -4px; border: 2px solid var(--surface); }

/* ---------- Página padrão ---------- */
.page { flex: 1; overflow: auto; padding: 24px; }
.page-inner { max-width: 1280px; margin: 0 auto; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; }

/* ---------- Projetos ---------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.project-tile {
  border-radius: var(--radius); color: #fff; padding: 14px; min-height: 130px; cursor: pointer; position: relative;
  display: flex; flex-direction: column; box-shadow: var(--shadow); transition: filter .15s;
}
.project-tile:hover { filter: brightness(.92); }
.project-tile h3 { font-size: 16px; margin-bottom: 4px; }
.project-tile .desc { font-size: 12px; opacity: .9; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.project-tile .stats { margin-top: auto; font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; opacity: .95; }
.progress { height: 6px; background: rgba(255,255,255,.35); border-radius: 3px; overflow: hidden; margin: 8px 0 6px; }
.progress > div { height: 100%; background: #fff; }
.progress.dark { background: var(--surface-2); }
.progress.dark > div { background: var(--primary); }
.progress.dark.complete > div { background: var(--success); }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }

/* ---------- Quadro (Kanban) ---------- */
.board-page { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.board-head { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: rgba(0,0,0,.24); color: #fff; flex-wrap: wrap; }
.board-head h1 { font-size: 18px; margin-right: 8px; }
.board-head .btn { background: rgba(255,255,255,.2); color: #fff; }
.board-head .btn:hover { background: rgba(255,255,255,.3); }
.board-head .btn.active { background: #fff; color: var(--text); }
.board-head .input { width: 180px; padding: 5px 8px; background: rgba(255,255,255,.95); border: 0; color: var(--text); }
.board-head select.input { width: 150px; }
.board-body { flex: 1; overflow: auto; min-height: 0; }
.lists { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px 24px; height: 100%; }
.list {
  background: var(--list-bg); border-radius: 12px; width: 280px; flex-shrink: 0; max-height: 100%;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.list-header { display: flex; align-items: center; gap: 4px; padding: 10px 8px 4px 12px; cursor: grab; }
.list-header h3 { font-size: 14px; flex: 1; padding: 4px 0; overflow-wrap: anywhere; }
.list-header .count { font-size: 12px; color: var(--muted); background: rgba(9,30,66,.08); padding: 1px 7px; border-radius: 10px; }
.list-header input { flex: 1; }
.cards { padding: 4px 8px; overflow-y: auto; min-height: 8px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.list-footer { padding: 4px 8px 8px; }
.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 10px; cursor: pointer;
  position: relative; border-left: 3px solid transparent;
}
.card:hover { outline: 2px solid var(--primary); }
.card.prio-alta { border-left-color: #f5a623; }
.card.prio-urgente { border-left-color: #e2483d; }
.card.done .card-title { text-decoration: line-through; color: var(--muted); }
.card-labels { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.label-chip { display: inline-block; border-radius: 4px; padding: 1px 8px; font-size: 12px; font-weight: 600; color: #fff; min-width: 40px; min-height: 16px; }
.card-title { overflow-wrap: anywhere; line-height: 1.35; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 3px; border-radius: 4px; padding: 1px 4px; }
.badge.overdue { background: #e2483d; color: #fff; }
.badge.soon { background: #f5cd47; color: #172b4d; }
.badge.ok { background: #1f845a; color: #fff; }
.badges .avatars { margin-left: auto; }
.sortable-ghost { opacity: .35; }
.sortable-drag { transform: rotate(3deg); }
.composer textarea { margin-bottom: 6px; }
.add-list { width: 280px; flex-shrink: 0; }
.add-list .btn { width: 100%; justify-content: flex-start; background: rgba(255,255,255,.24); color: #fff; padding: 10px 12px; border-radius: 12px; }
.add-list .btn:hover { background: rgba(255,255,255,.35); }
.add-list .box { background: var(--list-bg); border-radius: 12px; padding: 8px; }

/* ---------- 5W2H ---------- */
.table-wrap { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th, table.grid td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.grid th { background: var(--surface-2); font-size: 12px; color: var(--muted); position: sticky; top: 0; z-index: 1; white-space: nowrap; }
table.grid th small { display: block; font-weight: 400; }
table.grid tbody tr:hover { background: #f7f8f9; }
table.grid tr.clickable { cursor: pointer; }
table.grid td.wrap { min-width: 140px; max-width: 260px; white-space: pre-wrap; overflow-wrap: anywhere; }
table.grid tfoot td { font-weight: 700; background: var(--surface-2); }
.w5-board { padding: 16px; flex: 1; overflow: auto; }

/* ---------- Status ---------- */
.status { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status.pendente { background: #e9f2ff; color: #0055cc; }
.status.em_andamento { background: #fff7d6; color: #7f5f01; }
.status.concluido { background: #dcfff1; color: #216e4e; }
.status.em_atraso { background: #ffeceb; color: #ae2e24; }
.prio { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.prio.baixa { background: #e9f2ff; color: #0055cc; }
.prio.media { background: #f1f2f4; color: #44546f; }
.prio.alta { background: #fff3eb; color: #a54800; }
.prio.urgente { background: #ffeceb; color: #ae2e24; }

/* ---------- Tarefas ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; background: var(--surface); padding: 12px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.filters label { display: flex; flex-direction: column; font-size: 12px; font-weight: 600; color: var(--muted); gap: 4px; }
.filters .input { width: auto; min-width: 130px; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; }
.stat .v { font-size: 22px; font-weight: 700; margin-top: 2px; }
.stat .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat.clickable { cursor: pointer; }
.stat.selected { outline: 2px solid var(--primary); }
.calc { background: var(--surface-2); border-radius: 4px; padding: 7px 9px; font-weight: 700; min-height: 34px; }
.time-input { display: flex; gap: 4px; }

/* ---------- Modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(9,30,66,.55); display: flex; align-items: flex-start; justify-content: center; z-index: 100; overflow-y: auto; padding: 48px 16px; }
.modal { background: var(--surface); border-radius: 12px; width: 100%; max-width: 520px; box-shadow: var(--shadow-lg); position: relative; }
.modal.wide { max-width: 920px; background: var(--surface-2); }
.modal-head { display: flex; align-items: center; gap: 8px; padding: 16px 20px 0; }
.modal-head h2 { font-size: 18px; flex: 1; }
.modal-body { padding: 16px 20px 20px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 0 20px 20px; }
.modal .close { position: absolute; top: 10px; right: 10px; font-size: 20px; line-height: 1; z-index: 2; }

/* Cartão detalhado */
.cd-head { padding: 18px 48px 4px 20px; }
.cd-title { font-size: 20px; font-weight: 600; width: 100%; border: 0; background: transparent; padding: 4px 6px; border-radius: 4px; resize: none; overflow: hidden; }
.cd-title:focus { background: var(--surface); outline: 2px solid var(--primary); }
.cd-sub { padding: 0 6px; }
.cd-grid { display: grid; grid-template-columns: 1fr 190px; gap: 16px; padding: 12px 20px 20px; }
.cd-main > section { margin-bottom: 22px; }
.cd-main h4 { font-size: 15px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.cd-side h5 { margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.cd-side .btn { margin-bottom: 6px; }
.cd-side section { margin-bottom: 16px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.meta-row h5 { margin: 0 0 4px; font-size: 12px; color: var(--muted); }
.panel { background: var(--surface); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.w5 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.w5 label span b { color: var(--text); }
.w5 textarea { min-height: 52px; }
.fields-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fields-grid label.field { margin: 0; }
.checklist { margin-bottom: 16px; }
.checklist-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.checklist-head strong { flex: 1; }
.check-item { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 4px; }
.check-item:hover { background: rgba(9,30,66,.06); }
.check-item.done span { text-decoration: line-through; color: var(--muted); }
.check-item span { flex: 1; overflow-wrap: anywhere; cursor: text; }
.check-item .icon-btn { visibility: hidden; }
.check-item:hover .icon-btn { visibility: visible; }
.check-item input[type=checkbox] { width: 16px; height: 16px; }
.attach { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 6px; }
.attach:hover { background: rgba(9,30,66,.06); }
.attach .thumb { width: 64px; height: 44px; border-radius: 4px; background: #dcdfe4; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; color: var(--muted); overflow: hidden; flex-shrink: 0; }
.attach .thumb img { width: 100%; height: 100%; object-fit: cover; }
.attach .info { flex: 1; min-width: 0; }
.attach .info a { font-weight: 600; overflow-wrap: anywhere; }
.comment { display: flex; gap: 8px; margin-bottom: 10px; }
.comment .bubble { background: var(--surface); border-radius: 8px; padding: 6px 10px; box-shadow: var(--shadow); white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.activity-item { font-size: 13px; padding: 4px 0; }
.dropzone { border: 2px dashed #8590a2; border-radius: 8px; padding: 10px; text-align: center; color: var(--muted); margin-top: 6px; }
.dropzone.over { border-color: var(--primary); background: #e9f2ff; }

/* Popover */
.popover { position: fixed; z-index: 200; background: var(--surface); border-radius: 8px; box-shadow: var(--shadow-lg); width: 290px; padding: 12px; max-height: 70vh; overflow: auto; }
.popover h4 { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.pop-option { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 4px; cursor: pointer; }
.pop-option:hover { background: var(--surface-2); }
.pop-option .label-chip { flex: 1; padding: 6px 10px; }
.colors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 6px 0 10px; }
.colors button { height: 28px; border: 0; border-radius: 4px; cursor: pointer; }
.colors button.sel { outline: 3px solid var(--text); outline-offset: 1px; }

/* Toast */
#toasts { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #172b4d; color: #fff; padding: 10px 16px; border-radius: 6px; box-shadow: var(--shadow-lg); }
.toast.error { background: var(--danger); }

/* Responsivo */
@media (max-width: 760px) {
  .page { padding: 16px; }
  .cd-grid { grid-template-columns: 1fr; }
  .w5, .fields-grid { grid-template-columns: 1fr; }
  .topbar .brand span { display: none; }
  .topbar .user-btn .uname { display: none; }
  .row { flex-direction: column; gap: 0; }
  .board-head .input { width: 100%; }
}

@media print {
  .topbar, .board-head .btn, .no-print, .board-head .input { display: none !important; }
  .board-head { background: none; color: #000; }
  .board-page { background: #fff !important; }
  .table-wrap { box-shadow: none; overflow: visible; }
  .w5-board, .board-body, .page { overflow: visible; }
}

/* ---------- Painel da aba Tarefas ---------- */
.task-dash { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.2fr) minmax(300px, 1.2fr); gap: 12px; margin-bottom: 16px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi, .dash-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; }
.kpi .k { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kpi .v { font-size: 28px; font-weight: 700; line-height: 1.2; margin-top: 2px; }
.kpi .h { font-size: 11px; color: var(--muted); }
.kpi.clickable, .legend li.clickable, .donut-seg { cursor: pointer; }
.kpi:hover { box-shadow: var(--shadow-lg); }
.kpi.selected, .legend li.selected { outline: 2px solid var(--primary); }
.dash-card h3 { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.donut-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.donut { flex-shrink: 0; }
.donut-seg:hover { opacity: .8; }
.donut-v { font-size: 26px; font-weight: 700; fill: var(--text); }
.donut-k { font-size: 11px; fill: var(--muted); }
.legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 2px; }
.legend li { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 4px; }
.legend li:hover { background: var(--surface-2); }
.legend .lname { flex: 1; }
.legend .pct { color: var(--muted); width: 40px; text-align: right; font-variant-numeric: tabular-nums; }
.eff-info { flex: 1; min-width: 150px; }
.eff-info p { margin: 6px 0 0; }
.eff-badge { display: inline-block; padding: 3px 10px; border-radius: 10px; font-weight: 700; font-size: 13px; }
.eff-badge.good { background: #dcfff1; color: #216e4e; }
.eff-badge.warn { background: #fff7d6; color: #7f5f01; }
.eff-badge.bad { background: #ffeceb; color: #ae2e24; }
@media (max-width: 1100px) { .task-dash { grid-template-columns: 1fr 1fr; } .kpis { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) { .task-dash { grid-template-columns: 1fr; } .kpis { grid-template-columns: 1fr 1fr; } }

/* ---------- Gantt ---------- */
.seg { display: inline-flex; gap: 2px; background: var(--surface-2); padding: 2px; border-radius: 6px; }
.seg .btn.active, .gantt-tools .btn.active { background: var(--primary); color: #fff; }
.gantt-panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); --glabel: 280px; overflow: hidden; }
.board-body > .gantt-panel { margin: 12px 16px; }
.gantt-tools { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.g-leg { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); margin-left: 8px; }
.diamond { display: inline-block; width: 9px; height: 9px; background: var(--muted); transform: rotate(45deg); }
.g-scroll { overflow: auto; max-height: calc(100vh - 230px); }
.g-inner { position: relative; }
.g-row { display: flex; border-bottom: 1px solid var(--border); min-height: 40px; }
.g-label { position: sticky; left: 0; z-index: 2; width: var(--glabel); min-width: var(--glabel); background: var(--surface);
  border-right: 1px solid var(--border); padding: 5px 10px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.g-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.g-sub { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-track { position: relative; flex-shrink: 0;
  background-image: linear-gradient(to right, #ebecf0 1px, transparent 1px); background-repeat: repeat; }
.g-head { position: sticky; top: 0; z-index: 4; min-height: 44px; }
.g-head .g-label { z-index: 5; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface-2); }
.g-head .g-track { background: var(--surface-2); }
.g-month { position: absolute; top: 0; height: 22px; line-height: 22px; padding-left: 6px; font-size: 12px; font-weight: 700;
  border-left: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-transform: capitalize; }
.g-tick { position: absolute; top: 22px; height: 22px; line-height: 22px; font-size: 11px; color: var(--muted); text-align: center;
  border-left: 1px solid var(--border); white-space: nowrap; overflow: hidden; }
.g-tick.wk { text-align: left; padding-left: 4px; }
.g-tick.we { background: rgba(9,30,66,.05); }
.g-group { min-height: 30px; }
.g-group .g-label { background: var(--surface-2); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.g-group .g-track { background-color: var(--surface-2); }
.g-item { cursor: pointer; }
.g-item:hover .g-label, .g-item:hover .g-track { background-color: #f7f8f9; }
.g-bar { position: absolute; top: 50%; height: 18px; transform: translateY(-50%); border-radius: 4px; overflow: hidden;
  background: color-mix(in srgb, var(--c) 35%, white); box-shadow: inset 0 0 0 1px var(--c); }
.g-fill { height: 100%; background: var(--c); }
.g-ms { position: absolute; top: 50%; width: 14px; height: 14px; margin-left: -7px; background: var(--c);
  transform: translateY(-50%) rotate(45deg); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--c); }
.g-today { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #d03b3b; z-index: 1; pointer-events: none; opacity: .7; }
.g-note { padding: 8px 12px; margin: 0; }
@media (max-width: 760px) { .gantt-panel { --glabel: 150px; } }
@media print { .g-scroll { max-height: none; overflow: visible; } .gantt-tools .btn { display: none; } }
