/* =========================================================
   Suncce Tasks — UI Redesign (Apple-inspired + Productivity)
   v1.12 · Sem alteração de fluxos / funções
   Tipografia densa, superfícies limpas, hierarquia objetiva
   ========================================================= */

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --surface-3: #f0f0f2;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --muted: #86868b;
  --line: #e5e5ea;
  --line-strong: #d2d2d7;
  --orange: #e85114;
  --orange-hover: #d44810;
  --orange-soft: #fff4ef;
  --orange-line: #ffd9c7;
  --danger: #ff3b30;
  --danger-soft: #fff2f1;
  --success: #34c759;
  --warning: #ff9500;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.12);
  --shadow-drawer: 0 24px 80px rgba(0,0,0,.18);
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --focus-ring: 0 0 0 3px rgba(232,81,20,.18);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
               "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
button, input, select, textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}
button { cursor: pointer; border: none; background: none; padding: 0; }
[hidden] { display: none !important; }
body.drawer-open,
body.modal-open { overflow: hidden; }

/* ---------- Shared primitives ---------- */
.eyebrow,
.soft-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}
.grow { flex: 1; }
.muted-small { font-size: 11px; color: var(--muted); }

label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  outline: none;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus {
  border-color: var(--orange);
  box-shadow: var(--focus-ring);
}
input:disabled, select:disabled, textarea:disabled {
  background: var(--surface-3);
  color: var(--muted);
  cursor: not-allowed;
}
textarea { resize: vertical; line-height: 1.45; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 560;
  transition: background .15s ease, border-color .15s ease, transform .1s ease, opacity .15s ease;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.btn.primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); }
.btn.dark {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.btn.dark:hover { background: #2c2c2e; border-color: #2c2c2e; }
.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}
.btn.ghost:hover { background: var(--surface-3); color: var(--text); }
.btn.danger-outline {
  color: var(--danger);
  border-color: #ffc9c5;
  background: var(--surface);
}
.btn.danger-outline:hover { background: var(--danger-soft); }
.btn.large { padding: 11px 16px; font-size: 13px; }
.btn.compact-btn { height: 34px; padding: 0 12px; white-space: nowrap; }

.text-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 560;
  font-size: 12px;
  padding: 6px 0;
}
.text-btn:hover { color: var(--orange); }

.icon-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  transition: background .15s ease, color .15s ease, transform .1s ease;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.small { width: 28px; height: 28px; font-size: 15px; }
.icon-btn.accent { color: var(--orange); }

.emoji-icon {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  font-size: 13px;
  line-height: 1;
  border-radius: 7px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(0,0,0,.04);
}
.emoji-icon.bare {
  width: auto;
  height: auto;
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  flex: none;
  font-size: 14px;
  vertical-align: -1px;
}
.emoji-button {
  display: inline-grid !important;
  place-items: center !important;
  width: 32px;
  height: 32px;
  padding: 0 !important;
  border-radius: var(--radius-sm) !important;
}

.segmented {
  display: inline-flex;
  padding: 2px;
  background: var(--surface-3);
  border-radius: var(--radius-sm);
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 560;
  color: var(--muted);
  transition: background .15s, color .15s, box-shadow .15s;
}
.segmented button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}
.segmented button:hover:not(.active) { color: var(--text); }

.select-compact {
  width: auto;
  padding: 6px 28px 6px 10px;
  font-size: 11px;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 650;
  flex: none;
  overflow: hidden;
  color: var(--text-secondary);
}
.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  border: 2px solid var(--surface);
  font-size: 8px;
  font-weight: 700;
  margin-left: -7px;
  color: var(--text-secondary);
}
.mini-avatar.more { background: #e0e0e3; }
.avatar-stack {
  display: flex;
  justify-content: flex-end;
  padding-left: 7px;
}
.no-assignee { font-size: 10px; color: #aaa; }

.priority-pill {
  display: inline-flex;
  width: max-content;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 7px;
  background: var(--surface-3);
  color: var(--muted);
}
.priority-urgent { background: #ffe5e3; color: #d70015; }
.priority-high { background: #fff0e0; color: #c93400; }
.priority-medium { background: #eef1ff; color: #3a4db7; }
.priority-low { background: #e8f8ec; color: #248a3d; }
.overdue-pill { font-size: 9px; color: var(--danger); font-weight: 700; }
.is-overdue { color: var(--danger) !important; font-weight: 650; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  background: #1d1d1f;
  color: #fff;
  padding: 11px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  font-weight: 560;
  max-width: min(360px, calc(100vw - 40px));
}
.toast[data-type="error"] { background: var(--danger); }

.mobile-only { display: none; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================================================
   AUTH
   ========================================================= */
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}
.auth-card {
  width: min(400px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}
.auth-logo {
  width: 120px;
  height: auto;
  display: block;
}
.auth-copy { margin: 28px 0 22px; }
.auth-copy h1 {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 4px 0 6px;
  line-height: 1.15;
}
.auth-copy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}
.stack { display: grid; gap: 12px; }
.setup-warning {
  margin-top: 14px;
  background: #fff8f0;
  border: 1px solid #ffd9b0;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.45;
  color: #8a4b00;
}

/* =========================================================
   APP SHELL
   ========================================================= */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  transition: grid-template-columns .2s ease;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #f0f0f2;
  border-right: 1px solid var(--line);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar-top { padding: 0 2px; }
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 2px 4px;
}
.sidebar-logo {
  width: 78px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}
.sidebar-toggle {
  font-size: 16px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.new-task-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 0;
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 620;
  margin-top: 6px;
  box-shadow: 0 1px 3px rgba(139,45,0,.12);
  transition: background .15s, transform .1s;
}
.new-task-btn:hover { background: var(--orange-hover); }
.new-task-btn:active { transform: scale(.98); }
.new-task-btn .action-emoji {
  background: rgba(255,255,255,.2);
  border-color: transparent;
  font-size: 12px;
}

.main-nav {
  display: grid;
  gap: 2px;
  margin-top: 14px;
}
.nav-item,
.sector-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-align: left;
  color: #5c5c61;
  font-size: 12px;
  font-weight: 500;
  min-height: 36px;
  transition: background .14s, color .14s;
}
.nav-item:hover,
.sector-nav-item:hover { background: rgba(255,255,255,.55); color: var(--text); }
.nav-item.active,
.sector-nav-item.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}
.nav-item.active .emoji-icon {
  background: var(--orange-soft);
  border-color: var(--orange-line);
}
.nav-item .emoji-icon {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  font-size: 13px;
}

.nav-section { margin-top: 18px; min-height: 0; overflow: auto; flex: 1; }
.nav-section-title {
  padding: 0 10px 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #98989d;
  font-weight: 650;
}
.sector-nav { display: grid; gap: 2px; }
.sector-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sector-color, var(--orange));
  flex: none;
}
.nav-empty {
  display: block;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--muted);
}

.sector-nav-group { display: grid; gap: 1px; }
.sector-nav-parent-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 24px;
  gap: 2px;
  align-items: center;
}
.sector-nav-parent-row > .sector-nav-item { min-width: 0; }
.sector-collapse-btn {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #98989d;
  padding: 0;
}
.sector-collapse-btn:hover { background: rgba(0,0,0,.05); color: var(--text); }
.sector-collapse-btn svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .16s ease;
}
.sector-nav-group:not(.is-collapsed) .sector-collapse-btn svg { transform: rotate(90deg); }
.sector-nav-children {
  display: grid;
  gap: 1px;
  margin: 1px 0 4px 12px;
  padding-left: 8px;
  border-left: 1px solid #dcdce0;
}
.sector-nav-group.is-collapsed .sector-nav-children { display: none !important; }
.sector-nav-item.is-child {
  font-size: 11.5px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.sector-nav-item.is-child .sector-dot { width: 5px; height: 5px; }
.sector-child-count {
  margin-left: auto;
  font-size: 10px;
  color: #98989d;
  background: #e4e4e8;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  font-weight: 600;
}
.sector-nav-item.active .sector-child-count {
  background: var(--orange-soft);
  color: var(--orange);
}

.sidebar-user {
  margin-top: auto;
  padding: 10px 4px 2px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 6px;
  align-items: center;
}
.profile-trigger {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0,1fr);
  gap: 8px;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 2px;
  text-align: left;
  color: inherit;
  border-radius: var(--radius-sm);
}
.profile-trigger:hover { background: rgba(255,255,255,.45); }
.user-copy { min-width: 0; display: grid; }
.user-copy strong,
.user-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-copy strong { font-size: 11.5px; font-weight: 600; }
.user-copy span { font-size: 10px; color: var(--muted); margin-top: 1px; }

body.sidebar-collapsed .app-shell { grid-template-columns: 56px minmax(0,1fr); }
body.sidebar-collapsed .sidebar { padding-left: 6px; padding-right: 6px; }
body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .nav-section-title,
body.sidebar-collapsed .nav-empty,
body.sidebar-collapsed .sector-child-count { display: none !important; }
body.sidebar-collapsed .brand-row { justify-content: center; }
body.sidebar-collapsed .sidebar-logo {
  width: 36px;
  height: 36px;
  object-position: center;
}
body.sidebar-collapsed .sidebar-toggle {
  position: absolute;
  right: 4px;
  top: 8px;
  opacity: 0;
  transform: rotate(180deg);
}
body.sidebar-collapsed .sidebar:hover .sidebar-toggle { opacity: 1; }
body.sidebar-collapsed .new-task-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  margin: 6px auto 0;
}
body.sidebar-collapsed .new-task-btn .nav-label { display: none; }
body.sidebar-collapsed .nav-item,
body.sidebar-collapsed .sector-nav-item {
  justify-content: center;
  padding: 8px 0;
}
body.sidebar-collapsed .nav-item .emoji-icon {
  width: 26px;
  height: 26px;
  font-size: 14px;
}
body.sidebar-collapsed .sector-nav-parent-row { grid-template-columns: 1fr; }
body.sidebar-collapsed .sector-collapse-btn,
body.sidebar-collapsed .sector-nav-children { display: none !important; }
body.sidebar-collapsed .sidebar-user {
  grid-template-columns: 1fr;
  justify-items: center;
}
body.sidebar-collapsed .profile-trigger { grid-template-columns: 1fr; justify-items: center; }
body.sidebar-collapsed .user-copy { display: none; }
body.sidebar-collapsed #logout-btn { margin-top: 2px; }

.workspace { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(245,245,247,.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  position: sticky;
  top: 0;
  z-index: 30;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  width: min(380px, 50vw);
  background: var(--surface-3);
  border-radius: var(--radius-sm);
  padding: 0 10px;
}
.search-box input {
  border: 0;
  background: transparent;
  padding: 8px 0;
  font-size: 12.5px;
}
.search-box input:focus { box-shadow: none; }
.search-emoji {
  width: auto;
  height: auto;
  background: none;
  border: 0;
  font-size: 12px;
  opacity: .65;
  filter: grayscale(.15);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.notification-btn {
  width: 32px;
  height: 32px;
  position: relative;
  border-radius: var(--radius-sm);
}
.notification-btn:hover { background: var(--surface-3); }
.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--bg);
}
.notification-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 16px;
  width: min(340px, calc(100vw - 24px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 40;
  overflow: hidden;
}
.notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.notification-list {
  max-height: 320px;
  overflow: auto;
}

.content {
  padding: 24px 28px 56px;
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
}

.hero-head,
.page-head { margin-bottom: 16px; }
.hero-head h1,
.page-head h1 {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.025em;
  margin: 2px 0 4px;
  line-height: 1.2;
}
.hero-head p,
.page-head p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 13px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.view-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 28px;
}
.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 15px;
  text-align: left;
  display: grid;
  gap: 6px;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: var(--shadow-xs);
}
.metric-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.metric-card:first-child { border-top: 2px solid var(--orange); }
.metric-card strong {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.metric-card span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 550;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: 15px;
  font-weight: 620;
  margin: 0 0 2px;
  letter-spacing: -0.01em;
}
.section-head p {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0;
}
/* =========================================================
   TASK LISTS
   ========================================================= */
.task-list { display: grid; gap: 6px; }

.task-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto 88px 18px;
  gap: 14px;
  align-items: center;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 13px;
  color: var(--text);
  box-shadow: var(--shadow-xs);
  transition: border-color .15s, box-shadow .15s;
}
.task-row:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.task-row-main { min-width: 0; display: grid; gap: 2px; }
.task-row-main strong {
  font-size: 13px;
  font-weight: 580;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-row-main > span {
  font-size: 11px;
  color: var(--muted);
}
.task-row-top {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-bottom: 1px;
}
.task-row-date {
  font-size: 11.5px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}
.task-row-arrow { color: #c0c0c4; font-size: 16px; }
.task-row-people {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}
.empty-state strong {
  color: var(--text);
  font-size: 13px;
  margin-top: 8px;
  font-weight: 600;
}
.empty-state p {
  font-size: 12px;
  margin: 4px 0 0;
}
.empty-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: #8e8e93;
  font-size: 18px;
}

/* =========================================================
   KANBAN
   ========================================================= */
.kanban {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 280px);
  gap: 10px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 14px;
}
.kanban-column {
  background: #ececee;
  border: 1px solid #e0e0e4;
  border-radius: var(--radius-md);
  padding: 8px;
  min-height: 160px;
}
.kanban-column > header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 4px 9px;
  font-size: 11.5px;
  font-weight: 600;
}
.kanban-column > header strong { flex: 1; }
.kanban-column > header > span:last-child {
  color: var(--muted);
  font-size: 10px;
  font-weight: 550;
}
.column-color {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--column-color, var(--orange));
}
.kanban-cards {
  display: grid;
  gap: 6px;
  min-height: 48px;
  border-radius: var(--radius-sm);
  transition: background .12s, outline-color .12s;
}
.kanban-cards.drag-over {
  background: rgba(232,81,20,.06);
  outline: 1px dashed rgba(232,81,20,.4);
  outline-offset: 2px;
}
.kanban-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 11px;
  text-align: left;
  color: var(--text);
  box-shadow: var(--shadow-xs);
  cursor: grab;
  transition: border-color .15s, box-shadow .15s, opacity .15s, transform .15s;
}
.kanban-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.kanban-card:active { cursor: grabbing; }
.kanban-card.dragging {
  opacity: .4;
  transform: scale(.985);
}
.kanban-card > strong {
  display: block;
  font-size: 12.5px;
  font-weight: 580;
  line-height: 1.35;
  margin: 6px 0 3px;
}
.kanban-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0 0 10px;
}
.kanban-card-top,
.kanban-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.kanban-card-top { justify-content: flex-start; }
.kanban-card-top .late-dot { margin-left: auto; }
.kanban-card-bottom { margin-top: 10px; }
.drag-grip {
  font-size: 10px;
  color: #b0b0b5;
  letter-spacing: -2px;
  margin-right: 4px;
}
.due { font-size: 10px; color: var(--muted); }
.late-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--danger);
}
.column-empty {
  border: 1px dashed #d0d0d5;
  border-radius: var(--radius-sm);
  padding: 20px 10px;
  text-align: center;
  color: #aaa;
  font-size: 11px;
}

/* Table / list view */
.table-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: auto;
  box-shadow: var(--shadow-xs);
}
.table-card table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}
.table-card th,
.table-card td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  white-space: nowrap;
}
.table-card th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  background: #fafafa;
  font-weight: 620;
}
.table-card tbody tr { cursor: pointer; transition: background .12s; }
.table-card tbody tr:hover { background: #fafafa; }
.table-card tbody tr:last-child td { border-bottom: 0; }
.table-card td .avatar-stack {
  justify-content: flex-start;
  padding-left: 7px;
  width: max-content;
}

/* Custom fields */
.custom-field-head { min-width: 140px; white-space: nowrap; }
.custom-field-head > span { display: inline-flex; align-items: center; gap: 5px; }
.custom-field-add-head,
.custom-field-add-cell { width: 40px; min-width: 40px; text-align: center !important; }
.table-add-column-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: color .14s, background-color .14s, border-color .14s, box-shadow .14s, opacity .14s;
}
.table-add-column-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-soft);
}
.custom-field-cell { padding: 6px 7px !important; min-width: 130px; }
.custom-column-width-table .custom-field-head,
.custom-column-width-table .custom-field-cell {
  width: var(--custom-field-column-width, 180px) !important;
  min-width: var(--custom-field-column-width, 180px) !important;
  max-width: var(--custom-field-column-width, 180px) !important;
  box-sizing: border-box;
}
.list-row-drag-handle {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 25px;
  margin: 0 5px 0 -5px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #92929a;
  font-size: 17px;
  line-height: 1;
  cursor: grab;
  vertical-align: middle;
  touch-action: none;
}
.list-row-drag-handle:hover { background: #f0f0f3; color: var(--text); }
.list-row-drag-handle:active { cursor: grabbing; }
.status-list-table tr.is-list-dragging,
.label-list-table tr.is-list-dragging { opacity: .42; }
.status-list-table tr.is-list-drop-target,
.label-list-table tr.is-list-drop-target { box-shadow: inset 0 2px #5b50f5; }
.list-order-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
}
.list-order-hint .compact-btn { flex: 0 0 auto; }
.custom-field-input {
  width: 100%;
  min-width: 100px;
  border: 1px solid transparent !important;
  background: transparent !important;
  border-radius: 6px !important;
  padding: 6px 7px !important;
  font-size: 12px !important;
  min-height: 30px !important;
  transition: color .14s, background-color .14s, border-color .14s, box-shadow .14s, opacity .14s;
}
.custom-field-cell:hover .custom-field-input {
  background: #f5f5f7 !important;
  border-color: var(--line) !important;
}
.custom-field-input:focus {
  background: #fff !important;
  border-color: #f0a078 !important;
  box-shadow: 0 0 0 2px rgba(232,81,20,.1) !important;
  outline: 0;
}
.custom-field-input.is-saving { opacity: .55; }
.custom-field-input.is-saved { box-shadow: 0 0 0 2px rgba(52,199,89,.15) !important; }
.custom-money {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 11px;
}
.custom-link-cell {
  display: grid;
  grid-template-columns: minmax(90px,1fr) 22px;
  align-items: center;
  gap: 3px;
}
.custom-link-open {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: var(--orange);
  text-decoration: none;
}
.custom-link-open:hover { background: var(--orange-soft); }
.custom-check { display: grid; place-items: center; margin: 0; }
.custom-check input { position: absolute; opacity: 0; pointer-events: none; }
.custom-check span {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  display: block;
  position: relative;
}
.custom-check input:checked + span {
  background: var(--orange);
  border-color: var(--orange);
}
.custom-check input:checked + span:after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* Subsector overview */
.subsector-overview { display: grid; gap: 10px; }
.subsector-block {
  background: #ececee;
  border: 1px solid #e0e0e4;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.subsector-block-head {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(200px,1fr) auto 20px;
  gap: 12px;
  align-items: center;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--text);
  transition: background .12s;
}
.subsector-block-head:hover { background: #e6e6e9; }
.subsector-title-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.subsector-title-wrap > span:last-child { display: grid; min-width: 0; }
.subsector-title-wrap strong {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.subsector-title-wrap small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.subsector-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.subsector-arrow,
.subsector-row-arrow {
  font-size: 18px;
  color: #a0a0a5;
  font-weight: 300;
}
.subsector-task-list {
  background: #f7f7f8;
  border-top: 1px solid #e0e0e4;
}
.subsector-task-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(200px,1fr) 80px 110px 76px 16px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid #e8e8eb;
  background: transparent;
  text-align: left;
  padding: 9px 14px;
  cursor: pointer;
  color: var(--text);
  transition: background .12s;
}
.subsector-task-row:last-child { border-bottom: 0; }
.subsector-task-row:hover { background: #fff; }
.subsector-task-main { display: grid; gap: 1px; min-width: 0; }
.subsector-task-main strong {
  font-size: 12px;
  font-weight: 560;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.subsector-task-main small { font-size: 10.5px; color: var(--muted); }
.subsector-assignees { display: flex; align-items: center; min-width: 0; }
.subsector-due { font-size: 11px; color: var(--muted); text-align: right; }
.subsector-empty { padding: 14px; font-size: 12px; color: var(--muted); }

/* =========================================================
   SETTINGS
   ========================================================= */
.settings-page-head { margin-bottom: 14px; }
.settings-shell {
  display: grid;
  grid-template-columns: 140px minmax(0,1fr);
  gap: 14px;
  align-items: start;
}
.settings-tabs {
  position: sticky;
  top: 68px;
  display: grid;
  gap: 2px;
}
.settings-tab {
  border: 0;
  background: transparent;
  color: #6e6e73;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-align: left;
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
  transition: background .14s, color .14s;
}
.settings-tab:hover { background: #eaeaed; color: var(--text); }
.settings-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--line);
}
.settings-tab.active .settings-tab-icon { color: var(--orange); }
.settings-tab-icon { font-size: 13px !important; }

.settings-content { min-width: 0; }
.settings-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.settings-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.settings-panel-head h2 {
  font-size: 15px;
  font-weight: 620;
  margin: 0 0 3px;
  letter-spacing: -0.01em;
}
.settings-panel-head p {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0;
}
.settings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
}
.settings-search {
  width: min(320px, 100%);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0 9px;
}
.settings-search span { font-size: 12px; color: #888; }
.settings-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 7px 0;
  font-size: 12px;
}
.settings-search input:focus { box-shadow: none; }
.settings-count { font-size: 10px; color: var(--muted); }

.user-admin-list { display: grid; }
.user-admin-row {
  display: grid;
  grid-template-columns: 32px minmax(140px,210px) minmax(0,1fr) 28px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #eeeef0;
  transition: background .12s;
}
.user-admin-row:last-child { border-bottom: 0; }
.user-admin-row:hover { background: #fafafa; }
.user-admin-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #555;
  overflow: hidden;
  flex: none;
}
.user-admin-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.user-edit-btn {
  color: #7d7d82;
  border-radius: 7px;
}
.user-edit-btn .icon-svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.7;
}
.user-edit-btn:hover {
  color: var(--orange);
  background: var(--orange-soft);
}
.user-admin-main { display: grid; gap: 1px; min-width: 0; }
.user-admin-main > span {
  font-size: 10px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-admin-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.user-admin-name strong {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.system-admin-badge {
  font-size: 8px !important;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--orange-soft);
  color: #b8450a;
  border: 1px solid var(--orange-line);
  border-radius: 999px;
  padding: 2px 5px;
  white-space: nowrap;
  font-weight: 650;
}
.user-admin-memberships { display: flex; gap: 4px; flex-wrap: wrap; }
.membership-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  background: #fafafa;
  border-radius: 999px;
  padding: 3px 6px;
  font-size: 9px;
  color: #666;
}
.membership-chip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--chip-color);
}
.membership-empty { font-size: 9px; color: #aaa; }

.settings-two-col {
  display: grid;
  grid-template-columns: minmax(220px,320px) minmax(0,1fr);
  gap: 10px;
  padding: 12px;
}
.settings-subcard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fdfdfd;
}
.settings-subcard h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}
.compact-head { margin-bottom: 12px; }
.compact-head h2,
.compact-head h3 { margin: 0 0 3px; }
.compact-head p { margin: 0; font-size: 11px; color: var(--muted); }
.compact-form { gap: 8px; }
.inline-form-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  align-items: end;
}
.inline-form-row label { margin: 0; }
.inline-form-row input[type=color] { height: 32px; padding: 2px; }
.field-help {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: -2px;
  line-height: 1.35;
}

.settings-sector-list { display: flex; flex-direction: column; gap: 6px; }
.settings-sector-group { display: grid; gap: 3px; }
.settings-sector-item {
  display: grid;
  grid-template-columns: 22px 8px minmax(0,1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.settings-sector-item.is-subsector { background: #f8f8f9; }
.sector-dot.large { width: 10px; height: 10px; flex: 0 0 10px; }
.settings-sector-item.is-subsector .sector-dot.large { width: 7px; height: 7px; }
.settings-sector-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.settings-sector-copy strong { font-size: 12px; }
.settings-sector-copy span { font-size: 10px !important; color: var(--muted); }
.settings-subsector-list {
  display: grid;
  gap: 3px;
  margin-left: 20px;
  padding-left: 10px;
  border-left: 1px solid #e4e4e8;
}
.settings-sector-group.is-collapsed .settings-subsector-list { display: none !important; }
.settings-sector-collapse,
.settings-sector-collapse-spacer {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}
.settings-sector-collapse {
  border: 0;
  background: transparent;
  border-radius: 6px;
  color: #98989d;
  padding: 0;
}
.settings-sector-collapse:hover { background: #ececee; color: #444; }
.settings-sector-collapse svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .16s ease;
}
.settings-sector-group:not(.is-collapsed) .settings-sector-collapse svg { transform: rotate(90deg); }

.sector-delete-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #ffc9c5;
  background: #fff8f7;
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 620;
  cursor: pointer;
  transition: color .14s, background-color .14s, border-color .14s, box-shadow .14s, opacity .14s;
}
.sector-delete-btn:hover { background: #fff0ee; border-color: #f0a8a2; }
.sector-delete-btn:disabled { opacity: .5; cursor: wait; }

.admin-callout {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafafa;
  color: #555;
  margin-bottom: 14px;
  font-size: 12px;
}

.status-manager-card {
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  padding: 12px 14px !important;
}
.status-form {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr 80px auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 12px;
}
.status-form label { font-size: 10px; }
.status-form input,
.status-form select {
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}
.color-field input { height: 32px; padding: 2px; }
.status-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
}
.status-row {
  display: grid;
  grid-template-columns: 7px 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 9px;
  background: #fafafa;
}
.status-row > div { display: grid; gap: 1px; }
.status-row strong { font-size: 11.5px; }
.status-row span { font-size: 9.5px; color: var(--muted); }
.danger-icon { color: #a53b32; }
.danger-icon:hover { background: #fff0ee; color: var(--danger); }
.status-manage-btn { color: #777; }

/* =========================================================
   MODALS (user, profile, custom field)
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
}
.user-modal {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: grid;
  place-items: center;
  padding: 20px;
}
.user-modal-card {
  width: min(720px, 96vw);
  max-height: min(740px, 92vh);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-drawer);
  overflow: hidden;
}
.user-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.user-modal-head h2 {
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.015em;
  margin: 2px 0 0;
}
.user-modal-body {
  padding: 16px 18px;
  overflow: auto;
}
.user-modal-body label {
  font-size: 11px;
  font-weight: 550;
  color: #555;
}
.user-modal-body input,
.user-modal-body select { margin-top: 4px; }
.user-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  background: #fafafa;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field-helper {
  font-size: 10px;
  color: var(--muted);
  margin: 4px 0 14px;
}
.membership-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-bottom: 8px;
}
.membership-head > div:first-child { display: grid; gap: 2px; }
.membership-head strong { font-size: 12px; }
.membership-head span { font-size: 10px; color: var(--muted); }
.role-legend { display: flex; gap: 6px; }
.role-legend span { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; }
.role-legend b {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #f0f0f2;
  color: #666;
  font-size: 8px;
}
.user-memberships { display: grid; gap: 5px; }
.membership-row {
  display: grid;
  grid-template-columns: 28px 7px minmax(0,1fr) 120px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 7px 9px;
  background: #fafafa;
  opacity: .6;
}
.membership-row.active {
  background: #fff;
  opacity: 1;
  border-color: #d4d4d8;
}
.membership-toggle input { display: none; }
.membership-toggle span {
  display: block;
  width: 24px;
  height: 14px;
  border-radius: 999px;
  background: #d0d0d5;
  position: relative;
  cursor: pointer;
  transition: color .14s, background-color .14s, border-color .14s, box-shadow .14s, opacity .14s;
}
.membership-toggle span:after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #fff;
  transition: color .14s, background-color .14s, border-color .14s, box-shadow .14s, opacity .14s;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.membership-toggle input:checked + span { background: var(--orange); }
.membership-toggle input:checked + span:after { transform: translateX(10px); }
.membership-sector-copy { display: grid; gap: 0; min-width: 0; }
.membership-sector-copy strong { font-size: 11px; }
.membership-sector-copy span {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.membership-role {
  margin: 0 !important;
  padding: 6px 7px !important;
  font-size: 10px !important;
  border-radius: 6px !important;
}
.membership-role:disabled { background: #f3f3f5; color: #aaa; }

.profile-modal-card { width: min(520px, 96vw); }
.profile-photo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 2px 0 16px;
}
.profile-photo-preview {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  border: 1px solid var(--line);
  font-size: 18px;
  font-weight: 600;
  flex: none;
  overflow: hidden;
}
.profile-photo-copy { display: grid; justify-items: start; gap: 3px; }
.profile-photo-copy strong { font-size: 13px; }
.profile-photo-copy span { font-size: 11px; color: var(--muted); }
.profile-upload-btn {
  margin-top: 4px !important;
  display: inline-flex !important;
  width: auto !important;
  font-size: 11px !important;
  cursor: pointer;
}
.profile-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.profile-section.password-section { grid-template-columns: 1fr 1fr; }
.profile-section-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2px;
}
.profile-section-head strong { font-size: 12.5px; }
.profile-section-head span { font-size: 11px; color: var(--muted); }
.profile-section label { font-size: 11px; font-weight: 500; }
.profile-section input {
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.profile-section input:disabled {
  color: #777;
  background: #f5f5f7;
}

.custom-field-modal-card { width: min(580px, calc(100vw - 28px)); }
.custom-field-modal-body { gap: 14px; }
.custom-field-column-settings {
  display: grid;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fafafa;
}
.list-column-visibility-settings { display: grid; gap: 8px; }
.list-column-visibility-settings > strong,
.custom-column-width-setting { color: var(--text-secondary); font-size: 11px; font-weight: 600; }
.list-column-visibility-settings > div { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.list-column-visibility-settings label { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: 11px; font-weight: 450; }
.list-column-visibility-settings input { width: 14px; min-height: 14px; margin: 0; accent-color: #5b50f5; }
.custom-column-width-setting { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 12px; }
.custom-column-width-setting input { grid-column: 1 / 2; width: 100%; accent-color: #5b50f5; }
.custom-column-width-setting output { grid-column: 2; grid-row: 1 / 3; color: var(--muted); font-size: 11px; font-weight: 500; }
.custom-field-intro {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 11px;
  border-radius: var(--radius-sm);
  background: #f5f5f7;
}
.custom-field-intro .emoji-icon { font-size: 15px; }
.custom-field-intro p {
  margin: 1px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}
.custom-field-create-grid {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(140px,.8fr) auto;
  gap: 9px;
  align-items: end;
}
.custom-field-create-btn { height: 36px; white-space: nowrap; }
.custom-field-divider { height: 1px; background: var(--line); }
.custom-field-existing-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.custom-field-existing-head strong { font-size: 12.5px; }
.custom-field-existing-head span { font-size: 10.5px; color: var(--muted); }
.custom-field-existing-list { display: grid; gap: 5px; }
.custom-field-existing-row {
  display: grid;
  grid-template-columns: 28px minmax(0,1fr) 26px 26px;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.custom-field-name-editor {
  grid-column: 2 / 5;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  gap: 6px;
}
.custom-field-name-editor[hidden] { display: none; }
.custom-field-name-editor input { min-width: 0; height: 32px; padding: 5px 8px; font-size: 12px; }
.custom-field-name-editor .tiny { min-height: 30px; padding: 0 8px; font-size: 11px; }
.custom-field-type-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #f5f5f7;
  font-size: 13px;
}
.custom-field-existing-row > div { display: grid; gap: 1px; }
.custom-field-existing-row strong { font-size: 12px; font-weight: 580; }
.custom-field-existing-row small { font-size: 10px; color: var(--muted); }
.custom-field-empty {
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
}
/* =========================================================
   TASK DRAWER / MODAL
   ========================================================= */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 80;
}

.task-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  width: auto;
  height: auto;
  background: transparent;
  transform: none !important;
  display: none;
  place-items: center;
  padding: 24px;
  box-shadow: none;
}
.task-drawer.open { display: grid; }

.drawer-inner {
  width: min(900px, calc(100vw - 40px));
  height: min(840px, calc(100vh - 40px));
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-drawer);
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
}
.drawer-inner.has-comments-pane {
  width: min(1180px, calc(100vw - 32px));
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
}
.drawer-head h2 {
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.02em;
  margin: 2px 0 0;
  line-height: 1.2;
}

.drawer-content-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  overflow: hidden;
  background: #fff;
}
.drawer-inner.has-comments-pane .drawer-content-layout {
  grid-template-columns: minmax(0,1fr) minmax(300px,340px);
}

.drawer-body {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 16px 20px 24px;
  display: grid;
  gap: 12px;
  background: #fff;
}

.drawer-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 11px 20px;
  background: rgba(250,250,250,.96);
  backdrop-filter: blur(10px);
}

/* Task form sections */
.task-primary-fields { display: grid; gap: 4px; padding: 0 0 2px; }
.task-title-field { gap: 5px; }
.task-title-field > input {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  padding: 11px 12px;
  border-radius: var(--radius);
  background: #fafafa;
}
.task-title-hint {
  font-size: 10.5px;
  color: var(--muted);
  padding-left: 2px;
}

.task-form-section {
  border: 1px solid var(--line);
  background: #fafafa;
  border-radius: var(--radius-md);
  padding: 12px;
}
.task-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}
.task-section-heading > div { display: grid; gap: 1px; }
.task-section-heading strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.task-section-heading span {
  font-size: 10.5px;
  color: var(--muted);
}

.task-location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 9px;
}
.task-location-grid label { min-width: 0; }
.field-inline-help {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 450;
  line-height: 1.25;
  margin-top: -1px;
}

.task-planning-grid {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(240px,.8fr);
  gap: 12px;
  align-items: end;
}
.task-field-label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  color: var(--text-secondary);
  margin-bottom: 5px;
}
.priority-control {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  padding: 2px;
  background: var(--surface-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.priority-control button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
  padding: 7px 5px;
  border-radius: 6px;
  transition: color .12s, background-color .12s, border-color .12s, box-shadow .12s, opacity .12s;
}
.priority-control button:hover {
  color: var(--text);
  background: rgba(255,255,255,.5);
}
.priority-control button.active {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-xs);
}
.priority-control button[data-task-priority="urgent"].active { color: #d70015; }
.priority-control button[data-task-priority="high"].active { color: #c93400; }

.task-date-field { display: grid; gap: 5px; }
.date-shortcuts {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}
.date-shortcuts button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 10px;
  transition: color .12s, background-color .12s, border-color .12s, box-shadow .12s, opacity .12s;
}
.date-shortcuts button:hover {
  background: var(--surface-3);
  color: var(--text);
}
.date-shortcuts button:last-child {
  margin-left: auto;
  color: #aaa;
}

.task-context-section textarea {
  background: #fff;
  border-color: var(--line);
  min-height: 100px;
  line-height: 1.45;
  font-size: 12.5px;
}

.task-people-section .task-section-heading { align-items: center; }
.selection-summary {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.assignee-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 6px;
  margin-top: 2px;
}
.assignee-option {
  display: grid;
  grid-template-columns: 28px minmax(0,1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 400;
  min-height: 44px;
  transition: color .12s, background-color .12s, border-color .12s, box-shadow .12s, opacity .12s;
  background: #fff;
}
.assignee-option input { display: none; }
.assignee-option > span:nth-of-type(2) { display: grid; min-width: 0; }
.assignee-option strong {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.assignee-option small {
  font-size: 9px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.assignee-option .checkmark {
  opacity: 0;
  color: #fff;
  background: var(--text);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
}
.assignee-option.selected {
  border-color: #ffc5a9;
  background: #fff8f4;
}
.assignee-option.selected .checkmark { opacity: 1; }
.assignee-picker.disabled { pointer-events: none; opacity: .6; }
.picker-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  padding: 14px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 11px;
}

/* Collab tabs */
.task-collab-section { margin-top: 2px; }
.section-divider {
  height: 1px;
  background: var(--line);
  margin: 2px 0 6px;
}
.task-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.task-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 550;
  color: var(--muted);
  transition: color .12s, background-color .12s, border-color .12s, box-shadow .12s, opacity .12s;
}
.task-tabs button:hover { color: var(--text); background: #f5f5f7; }
.task-tabs button.active {
  background: var(--orange-soft);
  color: #d94a05;
}
.task-tabs .emoji-icon.bare { font-size: 12px; }

.task-tab-panel { display: grid; gap: 8px; }
.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.subtask-list { display: grid; gap: 4px; }
.inline-add-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
}
.inline-add-row input { background: #fff; }

.file-drop {
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
  cursor: pointer;
  background: #fafafa;
  transition: color .14s, background-color .14s, border-color .14s, box-shadow .14s, opacity .14s;
}
.file-drop:hover {
  border-color: var(--orange);
  background: var(--orange-soft);
}
.file-drop strong { font-size: 12px; }
.file-drop small { font-size: 10.5px; color: var(--muted); }
.attachment-list { display: grid; gap: 5px; }

.approval-list { display: grid; gap: 6px; }
.approval-request-box {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 7px;
  align-items: end;
}

.activity-list { display: grid; gap: 8px; }

/* Create mode collab */
.task-collab-section.create-mode {
  border: 1px solid var(--line);
  background: #fafafa;
  border-radius: var(--radius-md);
  padding: 12px;
}
.task-collab-section.create-mode .section-divider,
.task-collab-section.create-mode .task-tabs { display: none; }
.task-collab-section.create-mode .task-tab-panel { padding: 0; border: 0; }
.task-collab-section.create-mode .field-label-row { margin-bottom: 7px; }
.task-collab-section.create-mode .field-label-row strong:after {
  content: ' inicial';
  font-weight: 500;
  color: var(--muted);
}
.task-collab-section.create-mode .micro-empty {
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: var(--muted);
}
.task-collab-section.create-mode .inline-add-row input { background: #fff; }

/* Comments pane */
.task-comments-pane {
  min-width: 0;
  min-height: 0;
  border-left: 1px solid var(--line);
  background: #fafafa;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  overflow: hidden;
}
.comments-pane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 11px;
  border-bottom: 1px solid var(--line);
  background: rgba(250,250,250,.96);
}
.comments-pane-head > div { display: grid; gap: 2px; }
.comments-pane-head strong { font-size: 13px; font-weight: 620; }
.comments-pane-head span {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.3;
}
.comment-count-badge {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #efefef;
  color: #666 !important;
  display: grid;
  place-items: center;
  padding: 0 6px;
  font-size: 10px !important;
  font-weight: 620;
}
.comments-pane-list {
  min-height: 0;
  overflow: auto;
  padding: 12px 12px 16px;
  align-content: start;
  gap: 12px;
  display: grid;
}
.comment-item {
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  gap: 8px;
}
.comment-item .avatar { width: 28px; height: 28px; font-size: 9px; }
.comment-meta {
  display: flex;
  gap: 6px;
  align-items: baseline;
}
.comment-meta strong { font-size: 11px; }
.comment-meta span { font-size: 9px; color: var(--muted); }
.comment-item p {
  font-size: 12px;
  line-height: 1.5;
  margin: 3px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #333;
}
.comment-empty {
  padding: 14px;
  background: #f0f0f2;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 11px;
}
.comments-pane-composer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.comment-input-wrap {
  position: relative;
  display: grid;
  gap: 4px;
}
.comment-input-wrap textarea {
  width: 100%;
  min-height: 68px;
  max-height: 140px;
  resize: vertical;
  border-radius: var(--radius);
  background: #f5f5f7;
  border: 1px solid var(--line);
  padding: 9px 11px;
  line-height: 1.4;
}
.comment-input-wrap textarea:focus {
  background: #fff;
  border-color: #c8c8cc;
  box-shadow: 0 0 0 2px rgba(232,81,20,.08);
}
.comment-hint {
  font-size: 9px;
  color: var(--muted);
  padding-left: 2px;
}
.comment-send-btn {
  justify-self: end;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
}
.comment-mention {
  display: inline-block;
  color: #d94a05;
  background: #fff0e8;
  border-radius: 4px;
  padding: 0 3px;
  font-weight: 620;
}
.mention-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 2px);
  z-index: 25;
  background: rgba(255,255,255,.98);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px;
  box-shadow: var(--shadow-md);
  max-height: 210px;
  overflow: auto;
  backdrop-filter: blur(12px);
}
.mention-option {
  width: 100%;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 28px minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 6px 7px;
  border-radius: 7px;
  color: var(--text);
  transition: background .1s;
}
.mention-option:hover,
.mention-option.active { background: #f0f0f2; }
.mention-option > span:nth-child(2) { display: grid; min-width: 0; }
.mention-option strong { font-size: 11px; font-weight: 600; }
.mention-option small {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mention-token {
  font-size: 9px;
  color: #d94a05;
  background: #fff1e9;
  padding: 2px 5px;
  border-radius: 5px;
  font-weight: 620;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 180px minmax(0,1fr); }
  .content { padding: 20px 18px 48px; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .task-row { grid-template-columns: minmax(0,1fr) auto 76px; }
  .task-row-arrow { display: none; }
  .assignee-picker { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .view-actions { width: 100%; justify-content: space-between; }
  .status-form { grid-template-columns: 1fr 1fr; }
  .status-form .compact-btn { width: max-content; }
  .subsector-stats span:nth-child(n+3) { display: none; }
  .subsector-task-row { grid-template-columns: minmax(160px,1fr) 70px 84px 16px; }
  .subsector-task-row > .subsector-assignees { display: none; }
}

@media (max-width: 820px) {
  .task-location-grid { grid-template-columns: 1fr 1fr; }
  .task-location-grid label:last-child { grid-column: 1 / -1; }
  .task-planning-grid { grid-template-columns: 1fr; }
  .assignee-picker { grid-template-columns: 1fr; }
  .drawer-inner.has-comments-pane .drawer-content-layout {
    grid-template-columns: minmax(0,1fr) minmax(260px,38vw);
  }
}

@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: 60px;
    z-index: 60;
    padding: 6px 8px;
    border-right: 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: rgba(245,245,247,.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .sidebar-top,
  .nav-section,
  .sidebar-user { display: none; }
  .main-nav { display: contents; margin: 0; }
  .nav-item {
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    font-size: 9px;
    padding: 4px;
    min-height: auto;
  }
  .nav-item .emoji-icon { font-size: 16px; }
  .nav-item.active {
    background: transparent;
    box-shadow: none;
  }
  .sidebar:after {
    content: 'Setores';
    display: grid;
    place-items: center;
    font-size: 9px;
    color: var(--muted);
  }
  .topbar { height: 52px; padding: 0 12px; }
  .search-box { width: auto; flex: 1; }
  .mobile-only { display: block; }
  .content { padding: 18px 12px 80px; }
  .hero-head h1,
  .page-head h1 { font-size: 22px; }
  .metric-grid { gap: 7px; margin: 14px 0 22px; }
  .metric-card { padding: 12px; }
  .metric-card strong { font-size: 20px; }
  .task-row {
    grid-template-columns: minmax(0,1fr) auto;
    padding: 10px 11px;
  }
  .task-row-people { display: none; }
  .task-row-date {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }
  .section-head p { display: none; }
  .kanban { grid-auto-columns: 84vw; }
  .task-drawer { padding: 0; place-items: end center; }
  .drawer-inner {
    width: 100vw;
    height: 94vh;
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
  }
  .drawer-head,
  .drawer-body,
  .drawer-footer { padding-left: 14px; padding-right: 14px; }
  .two-col { grid-template-columns: 1fr; }
  .comment-composer { grid-template-columns: 1fr; }
  body.sidebar-collapsed .app-shell { display: block; }
  .sidebar-toggle { display: none; }
  .status-form { grid-template-columns: 1fr; }
  .status-list { grid-template-columns: 1fr; }
  .settings-shell { grid-template-columns: 1fr; }
  .settings-tabs {
    position: static;
    display: flex;
    border-bottom: 1px solid var(--line);
    padding-bottom: 6px;
    overflow: auto;
  }
  .settings-tab { white-space: nowrap; }
  .settings-two-col { grid-template-columns: 1fr; }
  .user-admin-row {
    grid-template-columns: 30px minmax(120px,1fr) 26px;
  }
  .user-admin-memberships { grid-column: 2 / 4; }
  .subsector-block-head { grid-template-columns: 1fr 16px; }
  .subsector-stats { display: none; }
  .subsector-task-row {
    grid-template-columns: minmax(0,1fr) 64px 16px;
  }
  .subsector-task-row > .subsector-assignees,
  .subsector-task-row > .subsector-due { display: none; }
  .drawer-inner.has-comments-pane .drawer-content-layout {
    display: block;
    overflow: auto;
  }
  .drawer-inner.has-comments-pane .drawer-body { overflow: visible; }
  .drawer-inner.has-comments-pane .task-comments-pane {
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: 320px;
    overflow: visible;
  }
  .drawer-inner.has-comments-pane .comments-pane-list { max-height: 280px; }
}

@media (max-width: 560px) {
  .user-modal { padding: 0; place-items: end center; }
  .user-modal-card {
    width: 100vw;
    max-height: 94vh;
    border-radius: 16px 16px 0 0;
  }
  .user-modal-body .two-col { grid-template-columns: 1fr; }
  .membership-row { grid-template-columns: 28px 7px 1fr; }
  .membership-role { grid-column: 3; }
  .settings-tab span:last-child { display: none; }
  .settings-tab { justify-content: center; min-width: 42px; }
  .settings-tabs { justify-content: flex-start; }
  .role-legend { display: none; }
  .drawer-body { padding: 14px; }
  .task-location-grid { grid-template-columns: 1fr; }
  .task-location-grid label:last-child { grid-column: auto; }
  .priority-control { grid-template-columns: repeat(2,1fr); }
  .task-form-section { padding: 10px; }
  .task-title-field > input { font-size: 15px; }
  .task-title-hint { display: none; }
  .profile-section,
  .profile-section.password-section { grid-template-columns: 1fr; }
  .profile-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .custom-field-create-grid { grid-template-columns: 1fr; }
  .custom-field-create-btn { width: 100%; }
  .approval-request-box { grid-template-columns: 1fr; }
  .sector-delete-btn span:last-child { display: none; }
  .sector-delete-btn { padding: 7px; }
}
/* =========================================================
   ÍCONES SÓBRIOS — v1.12.1
   Cole este bloco no FINAL do app.css
   ========================================================= */

.emoji-icon,
.emoji-icon.bare,
.nav-item .emoji-icon,
.new-task-btn .action-emoji,
.search-emoji,
.settings-tab-icon,
.task-tabs .emoji-icon.bare,
.btn .emoji-icon.bare,
.empty-icon.emoji-icon {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  font-size: inherit;
  opacity: 1;
}

.icon-svg {
  width: 18px;
  height: 18px;
  display: block;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item .icon-svg,
.sector-nav-item .icon-svg {
  width: 17px;
  height: 17px;
  color: #6e6e73;
}

.nav-item.active .icon-svg,
.sector-nav-item.active .icon-svg {
  color: var(--orange, #e85114);
}

.new-task-btn .icon-svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.search-box .icon-svg {
  width: 15px;
  height: 15px;
  color: #8e8e93;
  opacity: 0.85;
}

.icon-btn .icon-svg,
.emoji-button .icon-svg {
  width: 18px;
  height: 18px;
  color: currentColor;
}

.settings-tab .icon-svg {
  width: 16px;
  height: 16px;
  color: #6e6e73;
}

.settings-tab.active .icon-svg {
  color: var(--orange, #e85114);
}

.task-tabs .icon-svg {
  width: 14px;
  height: 14px;
}

.btn .icon-svg {
  width: 14px;
  height: 14px;
}

.empty-icon.icon-svg,
.empty-icon .icon-svg {
  width: 22px;
  height: 22px;
  color: #8e8e93;
  margin: 0 auto;
}
/* =========================================================
   Checklist — checkbox + texto na mesma linha
   ========================================================= */

.subtask-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.subtask-list [data-subtask-id] {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px;
  padding: 8px 10px;
  background: #f5f5f7;
  border: 1px solid #ececee;
  border-radius: 8px;
  min-height: 38px;
}

.subtask-list [data-subtask-id]:hover {
  background: #f0f0f2;
  border-color: #e0e0e4;
}

/* Checkbox à esquerda, na mesma linha */
.subtask-list input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0 !important;
  flex-shrink: 0;
  accent-color: #e85114;
  cursor: pointer;
}

/* Qualquer wrapper interno também fica em linha */
.subtask-list [data-subtask-id] label,
.subtask-list [data-subtask-id] > div {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px;
  flex: 1;
  min-width: 0;
  margin: 0;
}

/* Texto */
.subtask-list [data-subtask-id] span:not(.subtask-delete) {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: #1d1d1f;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subtask-list input:checked + span,
.subtask-list [data-subtask-id].is-done span {
  color: #86868b;
  text-decoration: line-through;
}

/* × à direita */
.subtask-delete {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  border-radius: 6px;
  color: #c0c0c4;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

.subtask-delete:hover {
  color: #ff3b30;
  background: #fff2f1;
}

.subtask-delete svg,
.subtask-delete .emoji-icon,
.subtask-delete .icon-svg {
  display: none !important;
}

.inline-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.inline-add-row input {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12.5px;
}

#add-subtask-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #e85114;
  background: #fff4ef;
  border: 1px solid #ffd9c7;
  flex-shrink: 0;
}

#add-subtask-btn:hover {
  background: #ffe8db;
}
/* =========================================================
   Custom Select — visual moderno
   ========================================================= */

.custom-select {
  position: relative;
  width: 100%;
  font-size: 13px;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e5ea;
  border-radius: 10px;
  background: #fff;
  color: #1d1d1f;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  text-align: left;
  min-height: 40px;
}

.custom-select-trigger:hover {
  border-color: #d2d2d7;
  background: #fafafa;
}

.custom-select.open .custom-select-trigger,
.custom-select-trigger:focus {
  outline: none;
  border-color: #e85114;
  box-shadow: 0 0 0 3px rgba(232,81,20,.15);
  background: #fff;
}

.custom-select-value {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-value.is-placeholder {
  color: #86868b;
  font-weight: 400;
}

.custom-select-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #86868b;
  transition: transform .15s ease;
}

.custom-select.open .custom-select-chevron {
  transform: rotate(180deg);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  padding: 4px;
  display: none;
}

.custom-select.open .custom-select-menu {
  display: block;
}

.custom-select-option {
  display: block;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 450;
  text-align: left;
  cursor: pointer;
  transition: background .1s;
}

.custom-select-option:hover,
.custom-select-option.is-focused {
  background: #f5f5f7;
}

.custom-select-option.is-selected {
  background: #fff4ef;
  color: #e85114;
  font-weight: 560;
}

.custom-select-option:disabled,
.custom-select-option.is-disabled {
  color: #c0c0c4;
  cursor: default;
}

/* Esconde o select nativo quando o custom está ativo */
select.custom-select-native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
}

/* Compacto (filtros) */
.custom-select.is-compact .custom-select-trigger {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 12px;
  border-radius: 8px;
}

.custom-select.is-compact .custom-select-menu {
  border-radius: 10px;
}
/* =========================================================
   Responsáveis — foto + nome minimalista
   ========================================================= */

.assignee-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.assignee-option {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 8px 10px !important;
  border: 1px solid #e5e5ea !important;
  border-radius: 10px !important;
  background: #fff !important;
  cursor: pointer;
  min-height: 44px;
  transition: border-color .12s, background .12s;
  grid-template-columns: none !important; /* sobrescreve grid antigo */
}

.assignee-option:hover {
  background: #fafafa !important;
  border-color: #d2d2d7 !important;
}

.assignee-option.selected {
  border-color: #ffc5a9 !important;
  background: #fff8f4 !important;
}

.assignee-option input {
  display: none !important;
}

.assignee-option .avatar,
.assignee-option .assignee-avatar,
.assignee-option .assignee-avatar .avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  flex-shrink: 0;
  font-size: 10px !important;
  overflow: hidden;
}

.assignee-option .avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.assignee-option .assignee-name,
.assignee-option strong {
  flex: 1;
  min-width: 0;
  font-size: 13px !important;
  font-weight: 520 !important;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Esconde e-mail no picker */
.assignee-option small {
  display: none !important;
}

.assignee-option .checkmark {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50%;
  background: #1d1d1f !important;
  color: #fff !important;
  font-size: 10px !important;
  display: grid;
  place-items: center;
  opacity: 0;
  flex-shrink: 0;
}

.assignee-option.selected .checkmark {
  opacity: 1;
}

/* Mini avatars no resto do sistema (lista, kanban, etc.) */
.mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #f0f0f2;
  border: 2px solid #fff;
  font-size: 8px;
  font-weight: 700;
  color: #6e6e73;
  margin-left: -7px;
}

.mini-avatar .avatar-image,
.mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-stack {
  display: flex;
  justify-content: flex-end;
  padding-left: 7px;
}

/* =========================================================
   Consolidação v1.12.1 — acessibilidade e refinamentos
   Mantém o visual de responsáveis (foto + primeiro nome).
   ========================================================= */

.custom-select.is-disabled {
  opacity: .58;
  cursor: not-allowed;
}
.custom-select.is-disabled .custom-select-trigger {
  cursor: not-allowed;
  background: #f3f3f5;
  color: #8e8e93;
  border-color: #e5e5ea;
  box-shadow: none;
}
.custom-select.is-disabled .custom-select-chevron { opacity: .55; }
.custom-select-option:focus-visible,
.custom-select-trigger:focus-visible {
  outline: none;
  border-color: var(--orange);
  box-shadow: var(--focus-ring);
}

/* O controle para reabrir a sidebar continua discreto, mas não desaparece em touch. */
body.sidebar-collapsed .sidebar-toggle {
  opacity: .48;
}
body.sidebar-collapsed .sidebar:hover .sidebar-toggle,
body.sidebar-collapsed .sidebar-toggle:focus-visible {
  opacity: 1;
}

/* Entre 621 e 720 px, preserva comentários ao lado da tarefa em vez de empilhar. */
@media (min-width: 621px) and (max-width: 720px) {
  .drawer-inner.has-comments-pane .drawer-content-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(240px, 38vw);
    overflow: hidden;
  }
  .drawer-inner.has-comments-pane .drawer-body { overflow: auto; }
  .drawer-inner.has-comments-pane .task-comments-pane {
    border-left: 1px solid var(--line);
    border-top: 0;
    min-height: 0;
    overflow: hidden;
  }
  .drawer-inner.has-comments-pane .comments-pane-list {
    max-height: none;
  }
}


/* =========================================================
   Lucide icon cleanup — v1.12.3
   Replaces remaining emoji-style UI icons with line icons.
   ========================================================= */
.empty-icon .icon-svg {
  width: 18px;
  height: 18px;
  color: #8e8e93;
}
.custom-field-type-icon .icon-svg {
  width: 15px;
  height: 15px;
  color: #6e6e73;
}
.custom-field-head .icon-svg {
  width: 13px;
  height: 13px;
  color: #8e8e93;
  vertical-align: -2px;
}
.file-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: none;
  color: #6e6e73;
}
.file-icon .icon-svg {
  width: 15px;
  height: 15px;
}
.status-manage-btn .icon-svg,
.danger-icon .icon-svg,
.attachment-delete .icon-svg {
  width: 16px;
  height: 16px;
}
.status-manage-btn {
  color: #737378;
}
.status-manage-btn:hover {
  color: var(--orange);
}
.danger-icon {
  color: #8e8e93;
}
.danger-icon:hover {
  color: var(--danger);
  background: var(--danger-soft);
}


/* =========================================================
   V1.14 — Arquivamento + histórico detalhado
   ========================================================= */
.archive-view-toggle {
  gap: 6px;
  border: 1px solid transparent;
}
.archive-view-toggle.is-active {
  color: var(--orange);
  background: var(--orange-soft);
  border-color: var(--orange-line);
}
.archive-view-toggle .icon-svg { width: 15px; height: 15px; }

.task-row.is-archived,
.kanban-card.is-archived,
.subsector-task-row.is-archived {
  opacity: .72;
}
.task-row.is-archived strong,
.kanban-card.is-archived > strong,
.subsector-task-row.is-archived strong {
  color: var(--text-secondary);
}
.archived-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eeeeF1;
  color: #6e6e73;
  font-size: 9px;
  font-weight: 650;
}

.task-archived-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: #5d5d62;
  background: #f5f5f7;
  border-bottom: 1px solid var(--line);
}
.task-archived-banner .icon-svg {
  width: 17px;
  height: 17px;
  color: #7b7b80;
}
.task-archived-banner > div {
  display: grid;
  gap: 1px;
}
.task-archived-banner strong {
  font-size: 11.5px;
  font-weight: 620;
}
.task-archived-banner span {
  font-size: 10px;
  color: var(--muted);
}

.archive-task-btn,
.restore-task-btn {
  border: 1px solid var(--line);
  background: var(--surface);
}
.archive-task-btn:hover,
.restore-task-btn:hover {
  border-color: var(--line-strong);
  background: var(--surface-3);
}
.restore-task-btn {
  color: var(--orange);
}

.activity-item {
  display: grid;
  grid-template-columns: 8px minmax(0,1fr);
  gap: 9px;
  align-items: start;
}
.activity-dot {
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background: #c8c8cd;
}
.activity-item p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.48;
  color: #444448;
}
.activity-item p strong {
  color: var(--text);
  font-weight: 620;
}
.activity-change {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-left: 2px;
}
.activity-value {
  display: inline-block;
  max-width: 300px;
  padding: 1px 5px;
  border-radius: 5px;
  background: #f1f1f3;
  color: #5c5c61;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}
.activity-value.is-new {
  color: #b64008;
  background: #fff2eb;
}
.activity-arrow {
  color: #aaaab0;
  font-size: 10px;
}
.activity-item small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
}

@media (max-width: 720px) {
  .archive-view-toggle span { display: none; }
  .archive-view-toggle { width: 34px; padding: 0; height: 34px; }
  .task-archived-banner { padding-left: 14px; padding-right: 14px; }
}


/* =========================================================
   V1.15 — Busca global + recorrência
   ========================================================= */
.search-shortcut {
  flex: none;
  border: 0;
  background: transparent;
  color: #9b9ba0;
  font-size: 9px;
  font-weight: 550;
  padding: 0;
}
.search-box:focus-within .search-shortcut { color: var(--orange); }

.global-search-backdrop { z-index: 130; }
.global-search-modal {
  position: fixed;
  inset: 0;
  z-index: 131;
  display: grid;
  place-items: start center;
  padding: min(14vh,120px) 18px 20px;
}
.global-search-card {
  width: min(720px, calc(100vw - 28px));
  max-height: min(680px, 76vh);
  background: rgba(255,255,255,.98);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0,0,0,.22);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0,1fr);
  backdrop-filter: blur(18px);
}
.global-search-input-row {
  display: grid;
  grid-template-columns: 22px minmax(0,1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.global-search-input-row .icon-svg {
  width: 18px;
  height: 18px;
  color: #8e8e93;
}
.global-search-input-row input {
  border: 0;
  box-shadow: none !important;
  padding: 4px 0;
  font-size: 16px;
  font-weight: 520;
  background: transparent;
}
.global-search-input-row kbd,
.global-search-meta kbd {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  background: #f5f5f7;
  color: var(--muted);
  font-size: 9px;
}
.global-search-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 16px;
  background: #fafafa;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.global-search-results {
  min-height: 130px;
  overflow: auto;
  padding: 6px;
}
.global-search-group-label {
  padding: 8px 9px 5px;
  color: #96969b;
  font-size: 9px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.global-search-result {
  width: 100%;
  display: grid;
  grid-template-columns: 30px minmax(0,1fr) auto;
  gap: 9px;
  align-items: center;
  text-align: left;
  padding: 8px 9px;
  border-radius: 9px;
  color: var(--text);
  transition: background .1s;
}
.global-search-result:hover,
.global-search-result.is-active {
  background: #f1f1f3;
}
.global-search-result-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f5f5f7;
  color: #747479;
}
.global-search-result-icon .icon-svg {
  width: 15px;
  height: 15px;
}
.global-search-result-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.global-search-result-copy strong {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.global-search-result-copy span {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.global-search-result-type {
  color: #a0a0a5;
  font-size: 9px;
}
.global-search-empty {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 38px 20px;
  color: var(--muted);
  font-size: 11px;
}
.global-search-empty .icon-svg {
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
}

.task-recurrence-grid {
  display: grid;
  grid-template-columns: minmax(150px,1fr) minmax(160px,.8fr) minmax(160px,.9fr);
  gap: 9px;
}
.recurrence-interval-control {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 7px;
  align-items: center;
}
.recurrence-interval-control span {
  font-size: 11px;
  color: var(--muted);
}
.task-recurrence-section.is-disabled {
  opacity: .58;
}
.task-recurrence-section.is-disabled select,
.task-recurrence-section.is-disabled input {
  pointer-events: none;
}

@media (max-width: 820px) {
  .task-recurrence-grid { grid-template-columns: 1fr 1fr; }
  #task-recurrence-end-field { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .search-shortcut { display: none; }
  .global-search-modal {
    place-items: start stretch;
    padding: 10px;
  }
  .global-search-card {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 14px;
  }
  .task-recurrence-grid { grid-template-columns: 1fr; }
  #task-recurrence-end-field { grid-column: auto; }
}


/* V1.15.0 UI1 — recorrência usa o mesmo select premium do sistema */
.task-recurrence-section .custom-select {
  width: 100%;
}
.task-recurrence-section .custom-select-trigger {
  min-height: 38px;
}
.task-recurrence-section .custom-select-menu {
  z-index: 120;
}


/* =========================================================
   V1.18 — Ações em massa + Realtime
   ========================================================= */
.bulk-action-bar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(250,250,250,.98);
  backdrop-filter: blur(12px);
}
.bulk-selection-copy {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
}
.bulk-selection-copy > span {
  font-size: 11.5px;
  font-weight: 620;
  color: var(--text);
}
.bulk-action-controls {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}
.bulk-control {
  width: auto;
  min-width: 128px;
}
.bulk-control > span {
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 2px;
}
.bulk-date-control {
  min-width: 135px;
}
.bulk-date-control input {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 11px;
}
.bulk-action-bar .custom-select {
  min-width: 128px;
}
.bulk-action-bar .custom-select-trigger {
  min-height: 34px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.bulk-action-bar .btn {
  min-height: 34px;
}
.bulk-select-head {
  width: 36px;
  min-width: 36px;
  text-align: center !important;
}
.bulk-select-cell {
  width: 36px;
  min-width: 36px;
  text-align: center !important;
}
.table-check {
  display: inline-grid;
  place-items: center;
  margin: 0;
  cursor: pointer;
}
.table-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.table-check span {
  width: 17px;
  height: 17px;
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  position: relative;
  transition: color .12s, background-color .12s, border-color .12s, box-shadow .12s, opacity .12s;
}
.table-check input:checked + span {
  border-color: var(--orange);
  background: var(--orange);
}
.table-check input:checked + span::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}
.table-check input:indeterminate + span {
  border-color: var(--orange);
  background: var(--orange);
}
.table-check input:indeterminate + span::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  top: 7px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}
.table-card tbody tr.is-selected {
  background: #fff8f4;
}
.table-card tbody tr.is-selected:hover {
  background: #fff4ee;
}
.bulk-action-bar #bulk-archive-btn {
  color: var(--text-secondary);
  border: 1px solid var(--line);
}
.bulk-action-bar #bulk-archive-btn:hover {
  color: var(--text);
  background: var(--surface-3);
}
.bulk-action-bar #bulk-archive-btn.is-restore {
  color: var(--orange);
}

@media (max-width: 980px) {
  .bulk-action-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .bulk-action-controls {
    justify-content: flex-start;
    width: 100%;
  }
}
@media (max-width: 720px) {
  .bulk-action-bar {
    position: static;
  }
  .bulk-control {
    min-width: calc(50% - 4px);
  }
  .bulk-action-bar .custom-select {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 560px) {
  .bulk-control {
    width: 100%;
    min-width: 100%;
  }
  .bulk-action-controls .btn {
    flex: 1;
  }
}


/* =========================================================
   V1.18.1 — Central de notificações refinada
   ========================================================= */
.notification-popover {
  width: min(390px, calc(100vw - 24px));
  border-radius: 14px;
  box-shadow: 0 18px 55px rgba(0,0,0,.13);
}

.notification-head {
  padding: 13px 14px 11px;
  min-height: 48px;
}
.notification-head > strong {
  font-size: 13px;
  font-weight: 620;
  letter-spacing: -0.01em;
}
.notification-head #notification-count {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 500;
}

.notification-list {
  max-height: 390px;
  overflow: auto;
  padding: 4px;
  background: #fff;
}

.notification-item {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 10px;
  align-items: start;
  text-align: left;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  transition: background .12s ease;
}

.notification-item + .notification-item {
  margin-top: 1px;
}

.notification-item:hover {
  background: #f6f6f8;
}

.notification-item.unread {
  background: #fffaf7;
}

.notification-item.unread:hover {
  background: #fff5ef;
}

.notification-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin: 0;
  flex: none;
  font-size: 10px;
  background: #f0f0f2;
}

.notification-avatar-fallback {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: #8e8e93;
}

.notification-avatar-fallback .icon-svg {
  width: 15px;
  height: 15px;
}

.notification-content {
  min-width: 0;
  display: grid;
  gap: 3px;
  text-align: left;
}

.notification-title-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 8px;
  align-items: center;
}

.notification-title-row strong {
  min-width: 0;
  font-size: 11.5px;
  line-height: 1.3;
  font-weight: 620;
  color: var(--text);
  text-align: left;
}

.notification-content small {
  display: block;
  font-size: 10.5px;
  line-height: 1.38;
  color: var(--text-secondary);
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.notification-content em {
  display: block;
  margin-top: 1px;
  font-style: normal;
  font-size: 9.5px;
  line-height: 1.2;
  color: #9a9a9f;
  text-align: left;
}

.notification-unread-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}

.notification-empty {
  margin: 8px;
  text-align: left;
}

@media (max-width: 560px) {
  .notification-popover {
    right: 8px;
    width: calc(100vw - 16px);
  }
}


/* =========================================================
   V1.19 — Estado de sincronização
   ========================================================= */
.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 7px;
  border-radius: 8px;
  color: #7f7f84;
  background: transparent;
  user-select: none;
  transition: color .15s, background .15s;
}
.sync-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a7a7ac;
  box-shadow: 0 0 0 0 rgba(167,167,172,0);
  transition: background .15s, box-shadow .15s;
}
.sync-status-label {
  font-size: 9.5px;
  line-height: 1;
  font-weight: 520;
  white-space: nowrap;
}
.sync-status.is-synced {
  color: #687268;
}
.sync-status.is-synced .sync-status-dot {
  background: #7f9a82;
}
.sync-status.is-connecting {
  color: #9a6b4c;
  background: #fff9f5;
}
.sync-status.is-connecting .sync-status-dot {
  background: var(--orange);
  animation: sync-pulse 1.5s ease-in-out infinite;
}
.sync-status.is-offline,
.sync-status.is-error {
  color: #9a4c4c;
  background: #fff7f7;
}
.sync-status.is-offline .sync-status-dot,
.sync-status.is-error .sync-status-dot {
  background: #c56d6d;
}
@keyframes sync-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(242,80,3,.08); }
  50% { box-shadow: 0 0 0 4px rgba(242,80,3,.10); }
}
@media (max-width: 720px) {
  .sync-status {
    width: 28px;
    justify-content: center;
    padding: 0;
  }
  .sync-status-label { display: none; }
}


/* =========================================================
   V1.20 — Favoritos + Recentes
   ========================================================= */
.quick-nav-section {
  padding-top: 7px;
}
.quick-nav-section + .quick-nav-section {
  padding-top: 2px;
}
.quick-nav-section .nav-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.quick-nav-title-icon {
  width: 12px;
  height: 12px;
  color: #a3a3a8;
  flex: none;
}
.quick-nav-list {
  display: grid;
  gap: 1px;
}
.quick-nav-item {
  width: 100%;
  min-width: 0;
  height: 31px;
  display: grid;
  grid-template-columns: 18px minmax(0,1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-align: left;
  transition: background .12s,color .12s;
}
.quick-nav-item:hover {
  color: var(--text);
  background: #f0f0f2;
}
.quick-nav-item.is-active {
  color: var(--text);
  background: #ededf0;
}
.quick-nav-item-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #88888d;
}
.quick-nav-item-icon .icon-svg {
  width: 13px;
  height: 13px;
}
.quick-nav-item-label {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 10.5px;
  font-weight: 520;
}
.quick-nav-item-meta {
  font-size: 8.5px;
  color: #aaaab0;
}
.sidebar-collapsed .quick-nav-section .nav-section-title {
  justify-content: center;
}
.sidebar-collapsed .quick-nav-section .nav-section-title .quick-nav-title-icon {
  display: none;
}
.sidebar-collapsed .quick-nav-item {
  width: 34px;
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 0;
  margin-inline: auto;
}
.sidebar-collapsed .quick-nav-item-label,
.sidebar-collapsed .quick-nav-item-meta {
  display: none;
}

.favorite-toggle-btn {
  width: 32px;
  height: 32px;
  color: #8f8f94;
  border-radius: 8px;
  transition: color .12s,background .12s,transform .12s;
}
.favorite-toggle-btn:hover {
  color: var(--orange);
  background: var(--orange-soft);
}
.favorite-toggle-btn:active {
  transform: scale(.96);
}
.favorite-toggle-btn .favorite-star-icon {
  width: 16px;
  height: 16px;
}
.favorite-toggle-btn.is-favorite {
  color: var(--orange);
  background: var(--orange-soft);
}
.favorite-toggle-btn.is-favorite .favorite-star-icon {
  fill: currentColor;
}
.drawer-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 720px) {
  .quick-nav-item {
    height: 34px;
  }
}


/* =========================================================
   V1.20.1 — Favoritos/Recentes recolhíveis
   ========================================================= */
.quick-nav-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.quick-nav-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #a3a3a8;
}
.quick-nav-chevron {
  width: 12px;
  height: 12px;
  transition: transform .16s ease;
}
.quick-nav-toggle[aria-expanded="false"] .quick-nav-chevron {
  transform: rotate(-90deg);
}
.quick-nav-collapsible {
  overflow: hidden;
  max-height: 260px;
  opacity: 1;
  transition: max-height .18s ease, opacity .14s ease, margin .18s ease;
}
.quick-nav-section.is-collapsed .quick-nav-collapsible {
  max-height: 0;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}
.quick-nav-toggle:hover .quick-nav-title-actions {
  color: #7f7f84;
}
.sidebar-collapsed .quick-nav-toggle {
  justify-content: center;
}
.sidebar-collapsed .quick-nav-title-actions {
  display: none;
}


/* =========================================================
   V1.20.2 — Sidebar compacta para Favoritos e Recentes
   ========================================================= */

/* A regra base .nav-section usa flex:1 para a lista de setores.
   Favoritos e Recentes são blocos auxiliares e não devem ocupar
   parcelas iguais da altura da sidebar. */
.quick-nav-section {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  margin-top: 8px;
  padding-top: 0;
}

.quick-nav-section + .quick-nav-section {
  margin-top: 6px;
  padding-top: 0;
}

.quick-nav-section .nav-section-title {
  min-height: 24px;
  margin: 0;
  padding: 0 8px;
}

.quick-nav-collapsible {
  max-height: 190px;
  margin-top: 2px;
}

.quick-nav-section.is-collapsed {
  margin-bottom: 0;
}

.quick-nav-section.is-collapsed .quick-nav-collapsible {
  max-height: 0;
  margin-top: 0;
}

/* O bloco de Setores volta a ser o único que ocupa o espaço restante. */
.quick-nav-section + .nav-section:not(.quick-nav-section),
#recents-nav-section + .nav-section {
  margin-top: 10px;
}

/* Quando Favoritos não existe e Recentes é o primeiro bloco visível. */
#favorites-nav-section[hidden] + #recents-nav-section {
  margin-top: 8px;
}

/* Sidebar recolhida: mantém densidade compacta. */
body.sidebar-collapsed .quick-nav-section {
  margin-top: 6px;
}

@media (max-width: 720px) {
  .quick-nav-section {
    margin-top: 6px;
  }
  .quick-nav-section + .quick-nav-section {
    margin-top: 4px;
  }
}


/* =========================================================
   V1.21 — Tipografia Apple-like + tarefa existente mais sutil
   ========================================================= */

/* ---------------------------------------------------------
   Hierarquia textual
   Mantém a sidebar intacta: .nav-section-title continua
   em caixa alta/negrito para separar grupos de navegação.
   --------------------------------------------------------- */
.eyebrow,
.soft-label {
  font-size: 12px;
  font-weight: 450;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #7d7d82;
  margin-bottom: 3px;
}

.hero-head h1,
.page-head h1 {
  font-size: 28px;
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 3px 0 6px;
}

.hero-head p,
.page-head p {
  font-size: 13.5px;
  line-height: 1.38;
  color: #737378;
}

.settings-page-head .eyebrow {
  margin-bottom: 4px;
}

.drawer-head {
  padding-top: 17px;
  padding-bottom: 13px;
}

.drawer-head .eyebrow {
  font-size: 11.5px;
  color: #818186;
  margin-bottom: 4px;
}

.drawer-head h2 {
  font-size: 20px;
  font-weight: 560;
  letter-spacing: -0.025em;
  line-height: 1.16;
  margin: 0;
}

/* ---------------------------------------------------------
   Tarefa existente — aparência mais editorial/documental
   --------------------------------------------------------- */
.drawer-inner.is-existing-task {
  border-color: rgba(60,60,67,.10);
}

.drawer-inner.is-existing-task .drawer-head {
  border-bottom-color: rgba(60,60,67,.08);
  background: rgba(255,255,255,.98);
}

/* O título editável deixa de parecer um campo de formulário. */
.drawer-inner.is-existing-task .task-primary-fields {
  padding: 2px 1px 4px;
  gap: 2px;
}

.drawer-inner.is-existing-task .task-title-field {
  gap: 0;
  font-size: 0;
  color: transparent;
}

.drawer-inner.is-existing-task .task-title-field > input {
  min-height: 40px;
  padding: 3px 3px 5px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font-size: 22px;
  line-height: 1.22;
  font-weight: 560;
  letter-spacing: -0.03em;
  transition: border-color .15s ease, background .15s ease;
}

.drawer-inner.is-existing-task .task-title-field > input:hover {
  border-bottom-color: rgba(60,60,67,.12);
  background: transparent;
}

.drawer-inner.is-existing-task .task-title-field > input:focus {
  border-bottom-color: rgba(242,80,3,.42);
  box-shadow: none;
  background: transparent;
}

.drawer-inner.is-existing-task .task-title-hint {
  display: none;
}

/* Evita repetir o título grande duas vezes no mesmo modal. */
.drawer-inner.is-existing-task .drawer-head h2 {
  display: none;
}

/* Blocos funcionais com baixo contraste. */
.drawer-inner.is-existing-task .task-form-section {
  border-color: rgba(60,60,67,.075);
  background: rgba(248,248,250,.56);
  border-radius: 14px;
  padding: 13px 14px;
}

.drawer-inner.is-existing-task .task-form-section:hover {
  border-color: rgba(60,60,67,.10);
}

.drawer-inner.is-existing-task .task-section-heading {
  margin-bottom: 11px;
}

.drawer-inner.is-existing-task .task-section-heading strong {
  font-size: 13.5px;
  line-height: 1.25;
  font-weight: 520;
  letter-spacing: -0.015em;
  color: #27272a;
}

.drawer-inner.is-existing-task .task-section-heading span {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.35;
  color: #8a8a90;
}

.drawer-inner.is-existing-task label,
.drawer-inner.is-existing-task .task-field-label {
  font-size: 11px;
  font-weight: 500;
  color: #6f6f74;
}

/* Inputs ainda são claramente interativos, mas deixam de ser caixas pesadas. */
.drawer-inner.is-existing-task input:not(#task-title):not([type="checkbox"]):not([type="radio"]),
.drawer-inner.is-existing-task textarea {
  border-color: rgba(60,60,67,.075);
  background: rgba(255,255,255,.72);
  box-shadow: none;
}

.drawer-inner.is-existing-task input:not(#task-title):not([type="checkbox"]):not([type="radio"]):hover,
.drawer-inner.is-existing-task textarea:hover {
  border-color: rgba(60,60,67,.13);
  background: rgba(255,255,255,.90);
}

.drawer-inner.is-existing-task input:not(#task-title):not([type="checkbox"]):not([type="radio"]):focus,
.drawer-inner.is-existing-task textarea:focus {
  border-color: rgba(242,80,3,.34);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(242,80,3,.055);
}

/* Select customizado — mesmo componente, contraste menor. */
.drawer-inner.is-existing-task .custom-select-trigger {
  border-color: rgba(60,60,67,.075);
  background: rgba(255,255,255,.72);
  box-shadow: none;
}

.drawer-inner.is-existing-task .custom-select-trigger:hover {
  border-color: rgba(60,60,67,.13);
  background: rgba(255,255,255,.94);
}

.drawer-inner.is-existing-task .custom-select.open .custom-select-trigger,
.drawer-inner.is-existing-task .custom-select-trigger:focus {
  border-color: rgba(242,80,3,.34);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(242,80,3,.055);
}

/* Planejamento como controle discreto, não como card dentro de card. */
.drawer-inner.is-existing-task .priority-control {
  border-color: transparent;
  background: rgba(118,118,128,.075);
  padding: 2px;
}

.drawer-inner.is-existing-task .priority-control button {
  color: #77777c;
  font-weight: 520;
}

.drawer-inner.is-existing-task .priority-control button.active {
  background: rgba(255,255,255,.95);
  box-shadow: 0 1px 3px rgba(0,0,0,.055);
}

/* Descrição mais parecida com área editorial. */
.drawer-inner.is-existing-task .task-context-section textarea {
  min-height: 94px;
  background: rgba(255,255,255,.52);
  border-color: rgba(60,60,67,.06);
}

/* Pessoas: cards visualmente mais leves. */
.drawer-inner.is-existing-task .assignee-option {
  border-color: rgba(60,60,67,.07);
  background: rgba(255,255,255,.60);
  box-shadow: none;
}

.drawer-inner.is-existing-task .assignee-option:hover {
  border-color: rgba(60,60,67,.12);
  background: rgba(255,255,255,.9);
}

.drawer-inner.is-existing-task .assignee-option.selected {
  border-color: rgba(242,80,3,.22);
  background: rgba(255,247,242,.72);
}

/* Colaboração/tabs com divisores ainda mais suaves. */
.drawer-inner.is-existing-task .section-divider,
.drawer-inner.is-existing-task .task-tabs,
.drawer-inner.is-existing-task .drawer-footer {
  border-color: rgba(60,60,67,.075);
}

/* Mantém criação de nova tarefa com affordance mais clara. */
.drawer-inner.is-new-task .task-title-field > input {
  background: #fafafa;
}

/* Ajustes mobile sem aumentar ruído. */
@media (max-width: 720px) {
  .hero-head h1,
  .page-head h1 {
    font-size: 25px;
  }

  .drawer-inner.is-existing-task .task-title-field > input {
    font-size: 20px;
  }

  .drawer-inner.is-existing-task .task-form-section {
    padding: 11px 12px;
    border-radius: 12px;
  }
}


/* =========================================================
   V1.21.1 — Controles de visualização lateralizados
   ========================================================= */

/* Desktop: ações, prioridade e seletor de visualização passam
   a compartilhar a mesma linha, reduzindo a altura do cabeçalho. */
.view-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.view-controls .view-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.view-controls .priority-filter-wrap {
  width: auto;
  min-width: 190px;
  margin: 0;
}

.view-controls .priority-filter-wrap .custom-select,
.view-controls .priority-filter-wrap select {
  width: 100%;
}

.view-controls .view-switch {
  display: inline-flex;
  align-items: center;
  margin: 0;
  flex: 0 0 auto;
}

/* Compatibilidade com a estrutura atual quando os controles
   estão diretamente dentro do bloco de ferramentas. */
.view-toolbar,
.board-toolbar,
.sector-view-toolbar {
  align-items: center;
}

.view-toolbar > .view-actions,
.view-toolbar > .priority-filter-wrap,
.view-toolbar > .view-switch,
.board-toolbar > .view-actions,
.board-toolbar > .priority-filter-wrap,
.board-toolbar > .view-switch,
.sector-view-toolbar > .view-actions,
.sector-view-toolbar > .priority-filter-wrap,
.sector-view-toolbar > .view-switch {
  margin-top: 0;
  margin-bottom: 0;
}

/* Em telas estreitas pode quebrar naturalmente sem apertar os controles. */
@media (max-width: 760px) {
  .view-controls {
    justify-content: flex-start;
  }

  .view-controls .priority-filter-wrap {
    min-width: 170px;
    flex: 1 1 170px;
  }
}


/* =========================================================
   V1.21.2 — Correção real dos controles do setor em uma linha
   ========================================================= */

/* A estrutura real do HTML usa .sector-head > .view-actions.
   O select customizado herda width:100%, por isso quebrava a linha. */
.sector-head {
  align-items: center;
}

.sector-head > .view-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 7px;
  width: auto;
  max-width: 100%;
  margin-left: auto;
}

.sector-head > .view-actions > .favorite-toggle-btn,
.sector-head > .view-actions > .archive-view-toggle,
.sector-head > .view-actions > .segmented {
  flex: 0 0 auto;
}

/* Wrapper gerado pelo componente de select premium */
.sector-head > .view-actions > .custom-select.is-compact {
  width: 205px;
  min-width: 205px;
  max-width: 205px;
  flex: 0 0 205px;
}

.sector-head > .view-actions > .custom-select.is-compact .custom-select-trigger {
  min-height: 34px;
}

.sector-head > .view-actions > #sector-mode {
  white-space: nowrap;
}

/* Em telas intermediárias, mantém horizontal e permite reduzir o filtro. */
@media (max-width: 1180px) {
  .sector-head > .view-actions > .custom-select.is-compact {
    width: 175px;
    min-width: 175px;
    max-width: 175px;
    flex-basis: 175px;
  }
}

/* Só empilha quando realmente não há largura suficiente. */
@media (max-width: 820px) {
  .sector-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .sector-head > .view-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .sector-head > .view-actions > .custom-select.is-compact {
    width: min(230px,100%);
    min-width: 180px;
    max-width: 230px;
    flex: 1 1 180px;
  }
}


/* =========================================================
   V1.22 — Ordenação clicável na visualização Lista
   ========================================================= */
.sortable-th {
  padding: 0 !important;
}

.table-sort-btn {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  padding: 0 14px;
  color: #85858a;
  text-align: left;
  font-size: 9.5px;
  font-weight: 620;
  letter-spacing: .015em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  white-space: nowrap;
  transition: color .12s, background .12s;
}

.table-sort-btn:hover {
  color: #55555a;
  background: rgba(118,118,128,.045);
}

.table-sort-btn.is-active {
  color: var(--text);
}

.table-sort-icon {
  width: 12px;
  height: 12px;
  display: inline-grid;
  place-items: center;
  color: #b2b2b7;
  opacity: 0;
  transition: opacity .12s,color .12s;
}

.table-sort-btn:hover .table-sort-icon,
.table-sort-icon.is-active {
  opacity: 1;
}

.table-sort-icon.is-active {
  color: var(--orange);
}

.table-sort-icon .icon-svg {
  width: 11px;
  height: 11px;
}

.custom-field-head .table-sort-btn {
  padding-left: 10px;
  padding-right: 10px;
}

.custom-field-head .table-sort-btn > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Não interfere na coluna de seleção nem no botão de adicionar coluna. */
.bulk-select-head,
.custom-field-add-head {
  vertical-align: middle;
}

@media (max-width: 720px) {
  .table-sort-btn {
    min-height: 46px;
    padding-inline: 10px;
  }
}

/* =========================================================
   V1.23 — Cabeçalhos sem quebra + Etiquetas
   ========================================================= */
.table-card table {
  width: max(100%, max-content);
  min-width: 100%;
}
.sortable-th {
  min-width: 112px;
  white-space: nowrap !important;
}
.custom-field-head {
  min-width: 150px !important;
  white-space: nowrap !important;
}
.table-sort-btn,
.table-sort-btn > span,
.custom-field-head .table-sort-btn > span:first-child {
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
  min-width: max-content;
}
.table-sort-icon { flex: 0 0 12px; }

.task-title-with-labels {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.task-labels {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  max-width: 280px;
  overflow: hidden;
}
.task-label-chip {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  max-width: 118px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--label-color);
  color: #fff;
  font-size: 8.5px;
  line-height: 1;
  font-weight: 620;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kanban-card .task-labels {
  max-width: 100%;
  margin-top: -1px;
  margin-bottom: 2px;
}
.kanban-card .task-label-chip {
  max-width: 102px;
  font-size: 8px;
  min-height: 17px;
  padding-inline: 6px;
}

.task-labels-section .task-section-heading { align-items: center; }
.label-new-btn { flex: none; gap: 5px; color: #66666b; }
.label-new-btn .icon-svg { width: 13px; height: 13px; }
.task-label-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
}
.label-picker-empty {
  padding: 3px 0;
  color: #99999e;
  font-size: 10.5px;
}
.label-picker-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 29px;
  padding: 4px 8px;
  border: 1px solid rgba(60,60,67,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #5f5f64;
  font-size: 10.5px;
  font-weight: 520;
  transition: background .12s,border-color .12s;
}
.label-picker-chip:hover { background:#fff; border-color:rgba(60,60,67,.14); }
.label-picker-chip.is-selected {
  background: color-mix(in srgb,var(--label-color) 8%, #fff);
  border-color: color-mix(in srgb,var(--label-color) 35%, transparent);
}
.label-picker-chip .icon-svg { width:12px; height:12px; color:var(--label-color); }
.label-picker-dot { width:7px; height:7px; border-radius:50%; background:var(--label-color); }

.label-create-panel {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(180px,1fr) minmax(220px,1.1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(60,60,67,.07);
  background: rgba(255,255,255,.62);
}
.label-color-field { display:grid; gap:5px; }
.label-color-palette { display:flex; flex-wrap:wrap; gap:5px; min-height:38px; align-items:center; }
.label-color-swatch {
  width:23px; height:23px; display:grid; place-items:center; padding:0;
  border-radius:50%; border:2px solid transparent; background:transparent;
}
.label-color-swatch > span {
  width:17px; height:17px; border-radius:50%; background:var(--swatch);
}
.label-color-swatch.is-selected { border-color:var(--swatch); }
.label-create-actions { display:inline-flex; gap:6px; justify-content:flex-end; }
.task-labels-section.read-only .label-picker-chip { cursor:default; }

@media (max-width:820px) {
  .label-create-panel { grid-template-columns:1fr; }
  .label-create-actions { justify-content:flex-start; }
}

/* =========================================================
   V1.23.1 — Adição rápida de etiquetas em Lista/Kanban
   ========================================================= */
.task-label-add-btn {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(60,60,67,.07);
  border-radius: 999px;
  background: rgba(118,118,128,.045);
  color: #a2a2a7;
  opacity: .58;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
  transition: opacity .12s,background .12s,color .12s,border-color .12s,transform .12s;
}
.task-label-add-btn .icon-svg {
  width: 10px;
  height: 10px;
}
.task-label-add-btn:hover {
  opacity: 1;
  color: var(--orange);
  background: var(--orange-soft);
  border-color: rgba(242,80,3,.16);
  transform: translateY(-1px);
}
.task-title-with-labels:hover .task-label-add-btn,
.kanban-card:hover .task-label-add-btn {
  opacity: .92;
}

/* Sempre após a última etiqueta */
.task-labels .task-label-add-btn {
  order: 999;
}

.quick-label-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: transparent;
}
.quick-label-popover {
  position: fixed;
  z-index: 151;
  width: min(320px,calc(100vw - 24px));
  max-height: 420px;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  border: 1px solid rgba(60,60,67,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.985);
  box-shadow: 0 18px 55px rgba(0,0,0,.14);
  overflow: hidden;
}
.quick-label-popover:not(.is-anchored) {
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}
.quick-label-popover.is-anchored {
  transform: none;
}
.quick-label-popover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 9px;
  border-bottom: 1px solid rgba(60,60,67,.07);
}
.quick-label-popover-head > div {
  display: grid;
  gap: 2px;
}
.quick-label-popover-head strong {
  font-size: 12px;
  font-weight: 620;
}
.quick-label-popover-head span {
  font-size: 10px;
  color: #929297;
}
.quick-label-options {
  display: grid;
  gap: 3px;
  padding: 6px;
  overflow: auto;
}
.quick-label-option {
  width: 100%;
  display: grid;
  grid-template-columns: 10px minmax(0,1fr) 16px;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  border-radius: 8px;
  text-align: left;
  color: #55555a;
  background: transparent;
  transition: background .1s;
}
.quick-label-option:hover {
  background: #f5f5f7;
}
.quick-label-option.is-selected {
  background: color-mix(in srgb,var(--label-color) 8%, #fff);
  color: #29292d;
}
.quick-label-option-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--label-color);
}
.quick-label-option .icon-svg {
  width: 13px;
  height: 13px;
  color: var(--label-color);
}
.quick-label-empty {
  padding: 24px 12px;
  text-align: center;
  font-size: 10.5px;
  color: #99999e;
}
.quick-label-popover-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px;
  border-top: 1px solid rgba(60,60,67,.07);
  background: #fafafa;
}

@media (max-width:720px) {
  .quick-label-popover {
    width: calc(100vw - 20px);
    max-height: min(520px,calc(100vh - 20px));
  }
}


/* =========================================================
   V1.23.2 — Etiquetas rápidas com autocomplete e criação inline
   ========================================================= */
.quick-label-popover {
  width: min(340px, calc(100vw - 24px));
}

.quick-label-search-wrap {
  display: grid;
  grid-template-columns: 18px minmax(0,1fr);
  gap: 7px;
  align-items: center;
  margin: 8px 8px 5px;
  padding: 0 9px;
  min-height: 38px;
  border: 1px solid rgba(60,60,67,.09);
  border-radius: 10px;
  background: rgba(248,248,250,.86);
  transition: border-color .12s, background .12s, box-shadow .12s;
}

.quick-label-search-wrap:focus-within {
  border-color: rgba(242,80,3,.28);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(242,80,3,.05);
}

.quick-label-search-icon {
  width: 15px;
  height: 15px;
  color: #9a9a9f;
}

.quick-label-search-wrap input {
  width: 100%;
  min-height: 36px;
  padding: 0;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 11.5px;
  color: var(--text);
}

.quick-label-search-wrap input::placeholder {
  color: #a0a0a5;
}

.quick-label-options {
  max-height: 190px;
}

.quick-label-option-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.quick-label-create-panel {
  display: grid;
  gap: 9px;
  padding: 10px;
  margin: 0 7px 7px;
  border: 1px solid rgba(242,80,3,.10);
  border-radius: 11px;
  background: #fff9f5;
}

.quick-label-create-copy {
  display: grid;
  gap: 2px;
}

.quick-label-create-copy > span {
  color: #929297;
  font-size: 9px;
}

.quick-label-create-copy > strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
}

.quick-label-color-palette {
  min-height: 29px;
  gap: 4px;
}

.quick-label-color-palette .label-color-swatch {
  width: 22px;
  height: 22px;
}

.quick-label-color-palette .label-color-swatch > span {
  width: 16px;
  height: 16px;
}

.quick-label-create-panel #quick-label-create-btn {
  justify-self: start;
}

.quick-label-popover-foot {
  align-items: center;
}

#quick-label-selected-count {
  color: #929297;
  font-size: 9.5px;
}

@media (max-width:720px) {
  .quick-label-popover {
    width: calc(100vw - 20px);
  }

  .quick-label-options {
    max-height: 240px;
  }
}


/* =========================================================
   V1.23.4 — Cabeçalhos da Lista em linha única
   ========================================================= */

/* Evita qualquer quebra interna no cabeçalho, inclusive campos
   personalizados com ícone + título, como "$ VALORES". */
#sector-table-head-row th,
#sector-table-head-row th * {
  white-space: nowrap !important;
}

#sector-table-head-row .sortable-th,
#sector-table-head-row .custom-field-head {
  vertical-align: middle;
}

#sector-table-head-row .table-sort-btn {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 5px;
  width: max-content;
  min-width: 100%;
}

#sector-table-head-row .table-sort-btn > span:first-child,
#sector-table-head-row .custom-field-head .table-sort-btn > span:first-child {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 4px;
  width: auto;
  min-width: max-content;
}

/* Ícone/tipo do campo não pode ocupar uma linha separada. */
#sector-table-head-row .custom-field-head .table-sort-btn > span:first-child > span,
#sector-table-head-row .custom-field-head .table-sort-btn > span:first-child > svg,
#sector-table-head-row .custom-field-head .table-sort-btn > span:first-child > .icon-svg {
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: middle;
}

/* Dá largura mínima adequada para campos customizados. */
#sector-table-head-row .custom-field-head {
  min-width: 170px !important;
}

/* A tabela pode rolar horizontalmente, mas jamais quebrar o cabeçalho. */
#sector-list-view.table-card {
  overflow-x: auto;
}

#sector-list-view.table-card table {
  table-layout: auto;
  width: max-content;
  min-width: 100%;
}


/* =========================================================
   V1.23.5 — Correção estrutural de ícone + texto nos cabeçalhos
   ========================================================= */

/*
  A causa da quebra não era white-space.
  O SVG Lucide global usa display:block, então em campos personalizados
  ele empurrava o nome da coluna para a linha de baixo.
  O wrapper real é:
  button > span > span[title] > svg + texto
*/

#sector-table-head-row .custom-field-head .table-sort-btn > span:first-child > span[title] {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  width: max-content !important;
  min-width: max-content !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

#sector-table-head-row .custom-field-head .table-sort-btn > span:first-child > span[title] .icon-svg {
  display: inline-block !important;
  width: 13px !important;
  height: 13px !important;
  flex: 0 0 13px !important;
  margin: 0 !important;
  vertical-align: middle !important;
}

/* O próprio wrapper do rótulo também nunca pode virar coluna. */
#sector-table-head-row .custom-field-head .table-sort-btn > span:first-child {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  min-width: max-content !important;
}

/* Reserva largura mínima suficiente para ícone + texto + seta. */
#sector-table-head-row .custom-field-head {
  width: auto !important;
  min-width: 170px !important;
}

#sector-table-head-row .custom-field-head .table-sort-btn {
  width: max-content !important;
  min-width: 100% !important;
  flex-wrap: nowrap !important;
}


/* =========================================================
   V1.24 — Permissões hierárquicas no modal de usuários
   ========================================================= */
.user-memberships {
  gap: 8px;
}

.membership-group {
  display: grid;
  gap: 4px;
}

.membership-parent-row {
  position: relative;
  z-index: 1;
  background: #fafafa;
}

.membership-group.has-parent-access .membership-parent-row {
  border-color: rgba(242,80,3,.24);
  background: #fffaf7;
}

.membership-children {
  display: grid;
  gap: 3px;
  margin-left: 18px;
  padding-left: 13px;
  border-left: 1px solid rgba(60,60,67,.09);
}

.membership-child-row {
  min-height: 47px;
  border-color: rgba(60,60,67,.07);
  background: rgba(249,249,250,.72);
}

.membership-child-row::before {
  content: '';
  position: absolute;
}

.membership-child-row.is-inherited {
  opacity: .76;
  background: rgba(248,248,250,.72);
  border-color: rgba(60,60,67,.055);
}

.membership-child-row.is-inherited .membership-toggle span {
  background: rgba(242,80,3,.52);
}

.membership-child-row.is-inherited .membership-sector-copy strong {
  color: #56565b;
}

.membership-child-helper {
  color: var(--muted);
}

.membership-child-row.is-inherited .membership-child-helper {
  color: #9a7664;
}

.membership-chip-inherited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  margin-left: 3px;
  padding: 0 4px;
  border-radius: 999px;
  background: #f0f0f2;
  color: #8a8a90;
  font-size: 8px;
  font-weight: 600;
}

.membership-parent-row .membership-sector-copy strong {
  font-weight: 620;
}

.membership-group .custom-select {
  min-width: 120px;
}

.membership-row .custom-select-trigger {
  min-height: 34px;
  padding-top: 6px;
  padding-bottom: 6px;
}

@media (max-width: 720px) {
  .membership-children {
    margin-left: 10px;
    padding-left: 9px;
  }
}


/* =========================================================
   V1.25 — Home mais clean, horizontal e Apple-like
   ========================================================= */

/* Hero mais leve */
.home-view .hero-head,
#home-view .hero-head {
  margin-bottom: 14px;
}

.home-view .hero-head h1,
#home-view .hero-head h1 {
  font-size: 30px;
  font-weight: 560;
  letter-spacing: -0.035em;
  margin-bottom: 5px;
}

.home-view .hero-head p,
#home-view .hero-head p {
  font-size: 13px;
  color: #7a7a80;
}

/* Cards de resumo: mais baixos, menos caixotados */
.home-stats,
.dashboard-stats,
#home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  margin-top: 8px;
}

.home-stat-card,
.stat-card,
.dashboard-stat-card {
  min-height: 72px;
  padding: 14px 16px 12px;
  border-radius: 14px;
  border: 1px solid rgba(60,60,67,.07);
  background: rgba(255,255,255,.72);
  box-shadow: 0 1px 2px rgba(0,0,0,.018);
}

.home-stat-card strong,
.stat-card strong,
.dashboard-stat-card strong {
  font-size: 22px;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1;
}

.home-stat-card span,
.stat-card span,
.dashboard-stat-card span {
  margin-top: 8px;
  font-size: 10px;
  color: #8a8a90;
  font-weight: 520;
}

/* Remove destaque excessivo do primeiro card */
.home-stat-card:first-child,
.stat-card:first-child,
.dashboard-stat-card:first-child {
  border-top-color: rgba(242,80,3,.16);
}

/* Cabeçalho da área "Precisa da sua atenção" */
.home-section-head,
.attention-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  margin-bottom: 9px;
}

.home-section-head h2,
.attention-section-head h2 {
  font-size: 16px;
  font-weight: 560;
  letter-spacing: -0.02em;
  margin: 0 0 3px;
}

.home-section-head p,
.attention-section-head p {
  font-size: 10.5px;
  color: #8b8b91;
  margin: 0;
}

.home-section-head a,
.attention-section-head a,
.home-section-head button,
.attention-section-head button {
  font-size: 10.5px;
  color: #7d7d82;
  font-weight: 520;
}

/* Lista de tarefas da Home mais fina e horizontal */
.attention-list,
.home-task-list,
#attention-list {
  display: grid;
  gap: 6px;
}

.attention-item,
.home-task-item,
.dashboard-task-item {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 9px 14px;
  border-radius: 13px;
  border: 1px solid rgba(60,60,67,.065);
  background: rgba(255,255,255,.72);
  box-shadow: 0 1px 2px rgba(0,0,0,.014);
  transition: background .12s,border-color .12s,transform .12s;
}

.attention-item:hover,
.home-task-item:hover,
.dashboard-task-item:hover {
  background: rgba(255,255,255,.96);
  border-color: rgba(60,60,67,.10);
  transform: translateY(-1px);
}

/* bloco principal da tarefa */
.attention-item-main,
.home-task-item-main,
.dashboard-task-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.attention-item-main strong,
.home-task-item-main strong,
.dashboard-task-main strong {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12.5px;
  font-weight: 560;
  letter-spacing: -0.01em;
}

.attention-item-main small,
.home-task-item-main small,
.dashboard-task-main small {
  font-size: 9.5px;
  color: #8c8c92;
  white-space: nowrap;
}

/* prioridade fica discreta e lateral */
.attention-item .priority-pill,
.home-task-item .priority-pill,
.dashboard-task-item .priority-pill {
  justify-self: start;
  min-height: 19px;
  padding: 2px 7px;
  font-size: 8px;
  border-radius: 999px;
}

/* responsáveis */
.attention-item .avatar-stack,
.home-task-item .avatar-stack,
.dashboard-task-item .avatar-stack {
  min-width: 44px;
  justify-content: flex-end;
}

/* prazo */
.attention-item .task-date,
.home-task-item .task-date,
.dashboard-task-item .task-date {
  min-width: 76px;
  text-align: right;
  font-size: 9.5px;
  color: #7f7f84;
}

/* seta/ação final */
.attention-item .chevron,
.home-task-item .chevron,
.dashboard-task-item .chevron {
  color: #b5b5ba;
}

/* caso o markup atual agrupe prioridade junto do conteúdo,
   força visual horizontal sem aumentar altura */
.attention-item > .priority-pill:first-child,
.home-task-item > .priority-pill:first-child,
.dashboard-task-item > .priority-pill:first-child {
  align-self: center;
}

/* Respiro geral menor na home */
.home-view,
#home-view {
  padding-top: 18px;
}

.home-view .content-shell,
#home-view .content-shell {
  gap: 14px;
}

/* Responsividade */
@media (max-width: 1100px) {
  .home-stats,
  .dashboard-stats,
  #home-stats {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .attention-item,
  .home-task-item,
  .dashboard-task-item {
    grid-template-columns: minmax(0,1fr) auto auto;
  }
}

@media (max-width: 720px) {
  .home-stats,
  .dashboard-stats,
  #home-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .home-stat-card,
  .stat-card,
  .dashboard-stat-card {
    min-height: 68px;
    padding: 12px 13px;
  }

  .attention-item,
  .home-task-item,
  .dashboard-task-item {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 10px;
    padding: 9px 11px;
  }

  .attention-item .task-date,
  .home-task-item .task-date,
  .dashboard-task-item .task-date {
    min-width: auto;
  }
}


/* =========================================================
   V1.25.1 — Home redesenhada de verdade
   Usa os seletores reais: .metric-grid, .metric-card,
   .section-head e #attention-list.
   ========================================================= */

/* Mais respiro no topo, mas menos peso visual */
#home-view {
  padding-top: 26px;
}

#home-view .hero-head {
  margin-bottom: 14px;
}

#home-view .hero-head .eyebrow {
  font-size: 11px;
  color: #8a8a90;
  margin-bottom: 5px;
}

#home-view .hero-head h1 {
  font-size: 32px;
  line-height: 1.02;
  font-weight: 540;
  letter-spacing: -0.045em;
  margin: 0 0 7px;
}

#home-view .hero-head p {
  font-size: 13px;
  color: #77777c;
}

/* Métricas viram uma faixa visual mais leve */
#home-view .metric-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1px;
  margin: 16px 0 30px;
  padding: 0;
  border: 1px solid rgba(60,60,67,.075);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(60,60,67,.075);
}

#home-view .metric-card {
  min-height: 76px;
  padding: 16px 18px 14px;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(255,255,255,.92);
  box-shadow: none !important;
  gap: 8px;
}

#home-view .metric-card:first-child {
  border-top: 0 !important;
}

#home-view .metric-card:hover {
  background: #fff;
  box-shadow: none !important;
}

#home-view .metric-card strong {
  font-size: 24px;
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.04em;
}

#home-view .metric-card span {
  font-size: 10px;
  font-weight: 500;
  color: #8a8a90;
}

/* Cabeçalho da atenção mais editorial */
#home-view .section-head {
  align-items: center;
  margin: 0 0 10px;
  padding: 0 2px;
}

#home-view .section-head h2 {
  font-size: 16px;
  font-weight: 560;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}

#home-view .section-head p {
  font-size: 10.5px;
  color: #8b8b91;
}

#home-view .section-head .text-btn {
  min-height: auto;
  padding: 4px 0;
  color: #7f7f84;
  font-size: 10.5px;
  font-weight: 520;
}

/* Área de tarefas agora funciona como lista clean, e não cards altos */
#home-view #attention-list {
  gap: 0;
  border: 1px solid rgba(60,60,67,.075);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.9);
}

.home-attention-row {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 76px minmax(240px,1.5fr) minmax(160px,.7fr) 72px 72px 14px;
  gap: 12px;
  align-items: center;
  padding: 8px 14px;
  text-align: left;
  color: var(--text);
  background: rgba(255,255,255,.86);
  border: 0;
  border-bottom: 1px solid rgba(60,60,67,.065);
  border-radius: 0;
  box-shadow: none;
  transition: background .12s;
}

.home-attention-row:last-child {
  border-bottom: 0;
}

.home-attention-row:hover {
  background: #fff;
}

.home-attention-priority {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.home-attention-priority .priority-pill,
.home-attention-priority .overdue-pill {
  min-height: 18px;
  padding: 2px 7px;
  font-size: 8px;
  white-space: nowrap;
}

.home-attention-title {
  min-width: 0;
}

.home-attention-title strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12.5px;
  font-weight: 560;
  letter-spacing: -0.012em;
}

.home-attention-context {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: #8a8a90;
  font-size: 9.5px;
  white-space: nowrap;
}

.home-attention-context span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-attention-context i {
  width: 3px;
  height: 3px;
  flex: 0 0 3px;
  border-radius: 50%;
  background: #c2c2c7;
}

.home-attention-people {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 48px;
}

.home-attention-date {
  text-align: right;
  color: #85858a;
  font-size: 9.5px;
  white-space: nowrap;
}

.home-attention-date.is-overdue {
  color: #c45e57;
}

.home-attention-arrow {
  width: 12px;
  height: 12px;
  color: #b7b7bc;
}

/* Ao invés de cards independentes, toda a atenção é uma superfície única */
#home-view #attention-list .empty-state {
  background: #fff;
  border: 0;
}

/* Desktop intermediário */
@media (max-width: 1200px) {
  .home-attention-row {
    grid-template-columns: 70px minmax(220px,1fr) minmax(120px,.65fr) 64px 68px 12px;
    gap: 9px;
  }
}

/* Tablet */
@media (max-width: 900px) {
  #home-view .metric-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .home-attention-row {
    grid-template-columns: 70px minmax(0,1fr) 62px 68px 12px;
  }

  .home-attention-context {
    display: none;
  }
}

/* Mobile */
@media (max-width: 640px) {
  #home-view {
    padding-top: 18px;
  }

  #home-view .hero-head h1 {
    font-size: 27px;
  }

  #home-view .metric-grid {
    margin-bottom: 22px;
  }

  #home-view .metric-card {
    min-height: 68px;
    padding: 13px;
  }

  .home-attention-row {
    grid-template-columns: minmax(0,1fr) auto 10px;
    gap: 8px;
    min-height: 58px;
    padding: 9px 11px;
  }

  .home-attention-priority {
    display: none;
  }

  .home-attention-people {
    display: none;
  }

  .home-attention-date {
    font-size: 9px;
  }
}


/* =========================================================
   V1.25.2 — Minhas tarefas no mesmo padrão visual da Home
   ========================================================= */

#mine-view {
  padding-top: 26px;
}

/* Cabeçalho mais leve */
#mine-view .page-head {
  align-items: end;
  margin-bottom: 16px;
}

#mine-view .page-head .eyebrow {
  font-size: 11px;
  color: #8a8a90;
  margin-bottom: 5px;
}

#mine-view .page-head h1 {
  font-size: 30px;
  line-height: 1.04;
  font-weight: 540;
  letter-spacing: -0.042em;
  margin: 0 0 7px;
}

#mine-view .page-head p {
  font-size: 13px;
  color: #77777c;
}

/* Filtros compactos */
#mine-view #mine-filter {
  padding: 2px;
  gap: 1px;
  border-radius: 10px;
  background: rgba(118,118,128,.07);
}

#mine-view #mine-filter button {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  color: #85858a;
  font-size: 9.5px;
  font-weight: 520;
}

#mine-view #mine-filter button.active {
  color: var(--text);
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 3px rgba(0,0,0,.045);
}

/* Lista única, sem cards independentes */
#mine-view #mine-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(60,60,67,.075);
  border-radius: 16px;
  background: rgba(255,255,255,.9);
}

.my-task-row {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns:
    76px
    minmax(260px,1.45fr)
    minmax(170px,.75fr)
    72px
    76px
    14px;
  gap: 12px;
  align-items: center;
  padding: 8px 14px;
  border: 0;
  border-bottom: 1px solid rgba(60,60,67,.065);
  border-radius: 0;
  background: rgba(255,255,255,.86);
  box-shadow: none;
  color: var(--text);
  text-align: left;
  transition: background .12s;
}

.my-task-row:last-child {
  border-bottom: 0;
}

.my-task-row:hover {
  background: #fff;
}

.my-task-priority {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.my-task-priority .priority-pill,
.my-task-priority .overdue-pill {
  min-height: 18px;
  padding: 2px 7px;
  font-size: 8px;
  white-space: nowrap;
}

.my-task-title {
  min-width: 0;
}

.my-task-title strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12.5px;
  font-weight: 560;
  letter-spacing: -0.012em;
}

.my-task-context {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: #8a8a90;
  font-size: 9.5px;
  white-space: nowrap;
}

.my-task-context span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-task-context i {
  width: 3px;
  height: 3px;
  flex: 0 0 3px;
  border-radius: 50%;
  background: #c2c2c7;
}

.my-task-people {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 48px;
}

.my-task-date {
  text-align: right;
  color: #85858a;
  font-size: 9.5px;
  white-space: nowrap;
}

.my-task-date.is-overdue {
  color: #c45e57;
}

.my-task-arrow {
  width: 12px;
  height: 12px;
  color: #b7b7bc;
}

#mine-view #mine-list .empty-state {
  border: 0;
  background: #fff;
}

@media (max-width: 1200px) {
  .my-task-row {
    grid-template-columns:
      70px
      minmax(220px,1fr)
      minmax(130px,.65fr)
      64px
      70px
      12px;
    gap: 9px;
  }
}

@media (max-width: 900px) {
  .my-task-row {
    grid-template-columns: 70px minmax(0,1fr) 62px 68px 12px;
  }

  .my-task-context {
    display: none;
  }
}

@media (max-width: 640px) {
  #mine-view {
    padding-top: 18px;
  }

  #mine-view .page-head {
    align-items: flex-start;
    gap: 12px;
  }

  #mine-view .page-head h1 {
    font-size: 27px;
  }

  .my-task-row {
    grid-template-columns: minmax(0,1fr) auto 10px;
    gap: 8px;
    min-height: 58px;
    padding: 9px 11px;
  }

  .my-task-priority,
  .my-task-people {
    display: none;
  }

  .my-task-date {
    font-size: 9px;
  }
}


/* =========================================================
   V1.26 — Visualização por Etiquetas
   ========================================================= */

.label-view {
  display: grid;
  gap: 12px;
  margin-top: 2px;
}

.label-group-block {
  overflow: hidden;
  border: 1px solid rgba(60,60,67,.075);
  border-radius: 15px;
  background: rgba(255,255,255,.86);
}

.label-group-head {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 13px;
  border-bottom: 1px solid rgba(60,60,67,.065);
  background: rgba(248,248,250,.74);
}

.label-group-title {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.label-group-color {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 999px;
  background: var(--label-color);
}

.label-group-color.is-neutral {
  background: #b8b8bd;
}

.label-group-title strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.label-group-count {
  min-width: 23px;
  height: 23px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(118,118,128,.07);
  color: #818187;
  font-size: 9px;
  font-weight: 560;
}

.label-group-tasks {
  display: grid;
}

.label-task-card {
  min-height: 50px;
  display: grid;
  grid-template-columns: minmax(260px,1fr) 78px 82px 26px;
  gap: 10px;
  align-items: center;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(60,60,67,.06);
  background: rgba(255,255,255,.72);
  cursor: pointer;
  transition: background .12s;
}

.label-task-card:last-child {
  border-bottom: 0;
}

.label-task-card:hover {
  background: #fff;
}

.label-task-card-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.label-task-card-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.label-task-card-title strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 560;
  letter-spacing: -0.01em;
}

.label-task-card-meta {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8b8b91;
  font-size: 9px;
}

.label-task-card-meta > span:last-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.label-task-card-meta .priority-pill {
  min-height: 17px;
  padding: 2px 6px;
  font-size: 7.5px;
}

.label-task-card-people {
  display: flex;
  justify-content: flex-end;
  min-width: 46px;
}

.label-task-card-date {
  text-align: right;
  color: #85858a;
  font-size: 9.5px;
  white-space: nowrap;
}

.label-task-card-date.is-overdue {
  color: #c45e57;
}

.label-task-card > .task-label-add-btn {
  opacity: .52;
  justify-self: end;
}

.label-task-card:hover > .task-label-add-btn {
  opacity: .95;
}

.label-group-block.is-unlabelled {
  margin-top: 2px;
}

.label-group-block.is-unlabelled .label-group-head {
  background: rgba(246,246,248,.72);
}

/* o seletor com três modos continua compacto */
#sector-mode {
  white-space: nowrap;
}

#sector-mode button {
  min-width: auto;
}

/* Tasks com múltiplas etiquetas aparecem em mais de um bloco.
   Isso é intencional: cada bloco representa uma etiqueta. */

@media (max-width: 900px) {
  .label-task-card {
    grid-template-columns: minmax(0,1fr) 68px 26px;
  }

  .label-task-card-people {
    display: none;
  }
}

@media (max-width: 620px) {
  .label-view {
    gap: 9px;
  }

  .label-task-card {
    grid-template-columns: minmax(0,1fr) 26px;
    gap: 8px;
    min-height: 52px;
    padding: 8px 10px;
  }

  .label-task-card-date {
    display: none;
  }

  .label-group-head {
    padding-inline: 11px;
  }
}


/* =========================================================
   V1.26.1 — Etiquetas = Lista agrupada
   ========================================================= */

/* Neutraliza o layout em cards da primeira versão */
#label-view.label-view {
  display: grid;
  gap: 14px;
}

.label-list-group {
  overflow: hidden;
  border: 1px solid rgba(60,60,67,.075);
  border-radius: 15px;
  background: rgba(255,255,255,.90);
}

.label-list-group-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 8px 13px;
  border-bottom: 1px solid rgba(60,60,67,.065);
  background: rgba(247,247,249,.78);
}

.label-list-group-title {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.label-list-group-title strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.label-list-group-count {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(118,118,128,.07);
  color: #89898e;
  font-size: 8.5px;
  font-weight: 560;
}

.label-list-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.label-list-table {
  width: max(100%, max-content);
  min-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.label-list-table thead {
  background: rgba(250,250,251,.76);
}

.label-list-table th {
  height: 43px;
  border-bottom: 1px solid rgba(60,60,67,.06);
  color: #8b8b91;
  font-size: 9px;
  font-weight: 600;
  vertical-align: middle;
}

.label-list-table td {
  height: 54px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(60,60,67,.06);
  color: var(--text);
  font-size: 10.5px;
  vertical-align: middle;
  white-space: nowrap;
}

.label-list-table tbody tr:last-child td {
  border-bottom: 0;
}

.label-list-table tbody tr {
  background: rgba(255,255,255,.78);
  cursor: pointer;
  transition: background .12s;
}

.label-list-table tbody tr:hover {
  background: #fff;
}

.label-list-table .table-sort-btn {
  min-height: 43px;
}

.label-list-table .task-title-with-labels {
  max-width: 420px;
}

.label-list-table .task-title-with-labels > strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.label-list-table .custom-field-cell {
  min-width: 130px;
}

/* Oculta o antigo visual em cards caso alguma regra residual exista */
.label-task-card,
.label-group-block,
.label-group-tasks {
  display: none !important;
}

.label-list-group.is-unlabelled {
  margin-top: 2px;
}

.label-list-group.is-unlabelled .label-list-group-head {
  background: rgba(246,246,248,.78);
}

@media (max-width: 900px) {
  .label-list-table td {
    height: 52px;
    padding-inline: 11px;
  }

  .label-list-table .task-title-with-labels {
    max-width: 300px;
  }
}


/* =========================================================
   V1.27 — Criação rápida de setores pela sidebar
   ========================================================= */

.sector-sidebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.sidebar-quick-add,
.sector-parent-add-btn {
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #aaaab0;
  opacity: .68;
  transition: color .12s, background .12s, opacity .12s;
}

.sidebar-quick-add {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.sidebar-quick-add .icon-svg {
  width: 12px;
  height: 12px;
}

.sidebar-quick-add:hover,
.sector-parent-add-btn:hover {
  color: #69696e;
  background: rgba(118,118,128,.07);
  opacity: 1;
}

.sector-nav-parent-row {
  display: flex;
  align-items: center;
}

.sector-nav-parent-row > .sector-nav-item {
  min-width: 0;
  flex: 1 1 auto;
}

.sector-parent-add-btn {
  width: 22px;
  height: 24px;
  flex: 0 0 22px;
  margin-left: 1px;
  opacity: 0;
}

.sector-parent-add-btn .icon-svg {
  width: 11px;
  height: 11px;
}

.sector-nav-parent-row:hover .sector-parent-add-btn,
.sector-parent-add-btn:focus-visible {
  opacity: .72;
}

/* Mantém o + acessível no touch, onde não existe hover. */
@media (hover: none), (pointer: coarse) {
  .sector-parent-add-btn {
    opacity: .58;
  }
}

.sidebar-collapsed .sector-sidebar-title {
  justify-content: center;
}

.sidebar-collapsed .sidebar-quick-add {
  display: none;
}

.sidebar-collapsed .sector-parent-add-btn {
  display: none;
}

/* Popover */
.quick-sector-backdrop {
  position: fixed;
  inset: 0;
  z-index: 170;
  background: transparent;
}

.quick-sector-popover {
  position: fixed;
  z-index: 171;
  width: min(300px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid rgba(60,60,67,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.985);
  box-shadow: 0 16px 46px rgba(0,0,0,.13);
}

.quick-sector-popover:not(.is-anchored) {
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}

.quick-sector-popover.is-anchored {
  transform: none;
}

.quick-sector-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.quick-sector-head > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.quick-sector-head strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 620;
  letter-spacing: -0.012em;
}

.quick-sector-head span {
  color: #929297;
  font-size: 9.5px;
  line-height: 1.35;
}

.quick-sector-field {
  display: grid;
  gap: 5px;
}

.quick-sector-field > span,
.quick-sector-color-field > span {
  color: #77777c;
  font-size: 9.5px;
  font-weight: 520;
}

.quick-sector-field input {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(60,60,67,.10);
  border-radius: 10px;
  outline: 0;
  background: #fafafa;
  color: var(--text);
  font-size: 11.5px;
  transition: background .12s,border-color .12s,box-shadow .12s;
}

.quick-sector-field input:focus {
  border-color: rgba(242,80,3,.34);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(242,80,3,.05);
}

.quick-sector-color-field {
  display: grid;
  gap: 7px;
  margin-top: 11px;
}

.quick-sector-colors {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.quick-sector-color {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: transparent;
  transition: border-color .1s,transform .1s;
}

.quick-sector-color:hover {
  transform: scale(1.06);
}

.quick-sector-color > span {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--sector-swatch);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.045);
}

.quick-sector-color.is-selected {
  border-color: var(--sector-swatch);
}

.quick-sector-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 13px;
}

@media (max-width: 720px) {
  .quick-sector-popover {
    width: calc(100vw - 20px);
  }
}


/* =========================================================
   V1.28 — Setor-mãe organizacional + colunas por sub-setor
   ========================================================= */

.custom-field-empty {
  padding: 12px 4px;
  color: #99999e;
  font-size: 10.5px;
}

#custom-field-scope-label {
  color: #85858a;
}

/* Em setor principal, a visão consolidada é o conteúdo principal. */
#sector-view .subsector-overview:not([hidden]) {
  margin-top: 2px;
}


/* =========================================================
   V1.28.1 — Status em pill colorida na Lista e Etiquetas
   ========================================================= */

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  max-width: 150px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--status-color);
  color: #fff;
  font-size: 8.5px;
  line-height: 1;
  font-weight: 620;
  letter-spacing: .005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
}

.status-pill.is-neutral {
  background: #8E8E93;
}

/* Mantém o destaque sutil e proporcional dentro das duas tabelas. */
#sector-table-body .status-pill,
.label-list-table .status-pill {
  vertical-align: middle;
}

@media (max-width: 720px) {
  .status-pill {
    max-width: 120px;
  }
}

/* V1.28.2 — Sidebar sem rolagem horizontal */
.sidebar, .sidebar-scroll, .sidebar-nav, #sector-nav, .sector-nav {
  overflow-x: hidden !important;
  max-width: 100%;
}
.sidebar *, .sidebar-scroll *, .sidebar-nav *, #sector-nav *, .sector-nav * {
  box-sizing: border-box;
  min-width: 0;
}
.sector-nav-item, .sector-nav-parent-row, .sector-nav-children, .nav-section, .nav-item {
  max-width: 100%;
}
.sector-nav-item .sector-name, .sector-nav-item span, .nav-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* =========================================================
   V1.28.3 — Nova tarefa livre antes da escolha de localização
   ========================================================= */

/* O formulário deve parecer utilizável mesmo antes do destino ser definido. */
#task-form.is-new-task input:not(:disabled),
#task-form.is-new-task textarea:not(:disabled) {
  opacity: 1;
}

/* Controles realmente dependentes do sub-setor continuam discretos enquanto
   aguardam a escolha, sem contaminar o restante do formulário. */
#task-form.is-new-task #task-column:disabled,
#task-form.is-new-task #task-subsector:disabled {
  opacity: .62;
}

/* V1.29.0 — Refinamento visual do fluxo de tarefas */
#task-drawer .drawer-header{padding-top:14px;padding-bottom:12px}
#task-drawer .drawer-body{padding-top:12px;padding-bottom:14px}
#task-drawer .form-section,#task-drawer .task-form-section,#task-drawer .task-section,
#task-drawer .field-section,#task-drawer .drawer-section,#task-drawer .form-card,
#task-drawer .task-card,#task-drawer fieldset{
 padding:12px 14px;margin-bottom:10px;border-color:rgba(60,60,67,.08);
 border-radius:13px;background:rgba(255,255,255,.48);box-shadow:none
}
#task-title{
 min-height:46px!important;padding:7px 2px!important;border-color:transparent!important;
 border-radius:0!important;background:transparent!important;box-shadow:none!important;
 font-size:18px!important;line-height:1.25!important;font-weight:560!important;letter-spacing:-.02em
}
#task-title:hover{background:rgba(118,118,128,.035)!important}
#task-title:focus{
 padding-left:8px!important;padding-right:8px!important;border-color:rgba(60,60,67,.10)!important;
 border-radius:10px!important;background:#fff!important;box-shadow:0 0 0 3px rgba(242,80,3,.045)!important
}
#task-description{
 min-height:112px!important;padding:12px 13px!important;border:1px solid rgba(60,60,67,.08)!important;
 border-radius:12px!important;background:rgba(248,248,250,.72)!important;line-height:1.5!important;
 resize:vertical;box-shadow:none!important
}
#task-description:focus{background:#fff!important;border-color:rgba(60,60,67,.14)!important;box-shadow:0 0 0 3px rgba(242,80,3,.04)!important}
#task-labels-section.labels-location-pending{min-height:auto!important;padding-top:9px!important;padding-bottom:9px!important;opacity:.68}
#task-labels-section.labels-location-pending .label-picker,
#task-labels-section.labels-location-pending .task-label-picker,
#task-labels-section.labels-location-pending .label-options,
#task-labels-section.labels-location-pending [data-label-list]{display:none!important}
#task-labels-section.labels-location-ready{opacity:1}
#task-drawer .label-pill,#task-drawer .task-label,#task-drawer .label-chip{
 min-height:22px;padding:4px 9px;border-radius:999px;line-height:1
}
#assignee-picker{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:6px!important}
#assignee-picker .assignee-option,#assignee-picker .assignee-item,
#assignee-picker .assignee-pill,#assignee-picker button{
 flex:0 0 auto!important;width:auto!important;min-width:0!important;min-height:32px!important;
 padding:4px 9px 4px 5px!important;border-radius:999px!important;gap:6px!important
}
#assignee-picker img,#assignee-picker .avatar{width:24px!important;height:24px!important;flex:0 0 24px!important;border-radius:50%!important}
#assignee-picker .assignee-email,#assignee-picker small,#assignee-picker .secondary{display:none!important}
#task-drawer .planning-grid,#task-drawer .task-planning-grid{
 display:grid;grid-template-columns:minmax(0,1.2fr) minmax(220px,.8fr);gap:10px 14px;align-items:end
}
#task-priority-control{min-height:36px}
#task-due-date{min-height:38px}
#task-drawer .recurrence-section,#task-drawer [data-recurrence-section],
#task-drawer .checklist-section,#task-drawer [data-checklist-section],
#task-drawer .subtasks-section{padding-top:10px;padding-bottom:10px}
#task-drawer .subtask-row,#task-drawer .checklist-item{
 min-height:32px;padding:5px 2px;border-bottom:1px solid rgba(60,60,67,.055);background:transparent
}
#task-drawer .subtask-row:last-child,#task-drawer .checklist-item:last-child{border-bottom:0}
#subtask-input{min-height:34px}
#task-drawer .drawer-footer{
 min-height:56px;padding-top:8px;padding-bottom:8px;background:rgba(255,255,255,.92);
 backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-top-color:rgba(60,60,67,.08)
}
#task-drawer input:not([type="checkbox"]):not([type="radio"]),
#task-drawer select,#task-drawer .custom-select-trigger{min-height:38px}
@media(min-width:900px){
 #task-drawer .drawer-content{max-width:1120px}
 #task-drawer .task-location-grid,#task-drawer .location-grid,#task-drawer .task-location-fields{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)
 }
}
@media(max-width:760px){
 #task-drawer .planning-grid,#task-drawer .task-planning-grid{grid-template-columns:1fr}
 #task-title{font-size:17px!important}
 #task-description{min-height:100px!important}
}


/* =========================================================
   V1.29.1 — Task drawer mais denso e objetivo
   ========================================================= */

/* Menos "cards dentro do card": seções viram grupos de conteúdo. */
#task-drawer .task-form-section {
  padding: 9px 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(60,60,67,.07) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#task-drawer .task-form-section:last-of-type {
  border-bottom: 0 !important;
}

#task-drawer .task-primary-fields {
  padding-bottom: 8px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(60,60,67,.07);
}

/* Cabeçalhos ocupam muito menos altura. */
#task-drawer .task-section-heading {
  min-height: auto !important;
  margin: 0 0 7px !important;
  gap: 8px !important;
}

#task-drawer .task-section-heading strong {
  font-size: 11.5px !important;
  font-weight: 600;
}

#task-drawer .task-section-heading span {
  margin-top: 1px;
  font-size: 9px !important;
  line-height: 1.25;
  color: #8c8c92;
}

/* Localização = uma faixa compacta. */
#task-drawer .task-location-grid {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,.85fr) !important;
  gap: 8px !important;
  align-items: start;
}

#task-drawer .task-location-grid label {
  gap: 4px !important;
  margin: 0 !important;
  font-size: 10px;
}

#task-drawer .task-location-grid .custom-select-trigger,
#task-drawer .task-location-grid select {
  min-height: 35px !important;
}

#task-subsector-helper {
  margin-top: 3px !important;
  font-size: 8.5px !important;
  line-height: 1.2 !important;
}

/* Etiquetas aparecem como uma linha de pills imediatamente após localização. */
#task-labels-section.task-labels-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0 !important;
}

#task-labels-section.task-labels-inline[hidden] {
  display: none !important;
}

#task-labels-section .task-section-heading {
  flex: 0 0 auto;
  margin: 0 !important;
}

#task-labels-section .task-section-heading > div > span {
  display: none !important;
}

#task-labels-section .task-label-picker {
  flex: 1 1 auto;
  min-width: 0;
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

#task-labels-section .label-picker-chip {
  min-height: 22px !important;
  padding: 4px 9px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--label-color) 14%, #fff) !important;
  color: var(--label-color) !important;
  font-size: 9px !important;
  font-weight: 580 !important;
  gap: 4px !important;
}

#task-labels-section .label-picker-chip.is-selected {
  background: var(--label-color) !important;
  color: #fff !important;
}

#task-labels-section .label-picker-dot {
  display: none !important;
}

#task-labels-section .label-new-btn {
  flex: 0 0 auto;
  min-height: 26px !important;
  padding: 4px 7px !important;
  border: 0 !important;
  background: transparent !important;
  color: #8a8a90 !important;
  font-size: 9px !important;
}

#task-labels-section .label-new-btn:hover {
  color: var(--orange) !important;
  background: rgba(242,80,3,.05) !important;
}

/* Se o painel de nova etiqueta for aberto, vira popover-like dentro da linha. */
#task-labels-section .label-create-panel {
  flex-basis: 100%;
  padding: 9px !important;
  margin-top: 2px;
  border: 1px solid rgba(60,60,67,.08);
  border-radius: 10px;
  background: #fafafa;
}

/* Planejamento mais baixo. */
#task-drawer .task-planning-section {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

#task-drawer .task-planning-grid {
  grid-template-columns: minmax(0,1.35fr) minmax(230px,.65fr) !important;
  gap: 10px !important;
}

#task-drawer .task-priority-field,
#task-drawer .task-date-field {
  gap: 4px !important;
}

#task-drawer .task-field-label,
#task-drawer .task-date-field label {
  font-size: 10px !important;
}

#task-priority-control {
  min-height: 34px !important;
}

#task-priority-control button {
  min-height: 30px !important;
  padding: 4px 8px !important;
}

#task-due-date {
  min-height: 34px !important;
}

#task-drawer .date-shortcuts {
  margin-top: 3px !important;
  gap: 4px !important;
}

#task-drawer .date-shortcuts button {
  min-height: 22px !important;
  padding: 2px 6px !important;
  font-size: 8.5px !important;
}

/* Recorrência: reduz presença quando fechada. */
#task-recurrence-section {
  padding-top: 7px !important;
  padding-bottom: 7px !important;
}

#task-recurrence-section .task-section-heading {
  margin-bottom: 4px !important;
}

/* Descrição mais importante, mas sem criar altura artificial. */
#task-drawer .task-description-section,
#task-drawer [data-description-section] {
  padding-top: 9px !important;
}

#task-description {
  min-height: 96px !important;
}

/* Responsáveis em pills reais, sem largura sobrando. */
#task-drawer .assignee-section,
#task-drawer [data-assignee-section] {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

#assignee-picker {
  gap: 5px !important;
}

#assignee-picker .assignee-option {
  width: auto !important;
  min-width: 0 !important;
  min-height: 29px !important;
  padding: 3px 7px 3px 4px !important;
  gap: 5px !important;
}

#assignee-picker .assignee-avatar,
#assignee-picker .avatar {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
}

#assignee-picker .assignee-name {
  font-size: 9.5px !important;
  white-space: nowrap;
}

#assignee-picker .checkmark {
  width: 14px !important;
  height: 14px !important;
  font-size: 8px !important;
}

/* Checklist: linha limpa, sem caixa permanente grande. */
#task-drawer .task-tabs {
  margin-top: 7px !important;
}

#task-drawer .subtask-row {
  min-height: 29px !important;
  padding: 3px 1px !important;
}

#subtask-input {
  min-height: 31px !important;
  border-color: transparent !important;
  background: rgba(118,118,128,.045) !important;
}

#subtask-input:focus {
  border-color: rgba(60,60,67,.10) !important;
  background: #fff !important;
}

/* Densidade geral do corpo. */
#task-drawer .drawer-body {
  padding-top: 8px !important;
}

#task-drawer .drawer-content-layout {
  gap: 10px !important;
}

@media (max-width: 760px) {
  #task-drawer .task-location-grid,
  #task-drawer .task-planning-grid {
    grid-template-columns: 1fr !important;
  }

  #task-labels-section.task-labels-inline {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}


/* =========================================================
   V1.29.2 — Etiquetas vazias + recorrência pós-checklist
   ========================================================= */

/* Sub-setor sem etiquetas: pequena indicação + ação, sem box vazio. */
#task-labels-section .task-label-empty-inline {
  color: #9a9aa0;
  font-size: 9px;
  white-space: nowrap;
}

#task-labels-section:has(.task-label-empty-inline) {
  min-height: 34px;
}

#task-labels-section:has(.task-label-empty-inline) .label-new-btn {
  color: var(--orange) !important;
  background: rgba(242,80,3,.045) !important;
  border-radius: 8px !important;
}

/* Recorrência depois do checklist: uma faixa horizontal compacta. */
#task-recurrence-section {
  display: grid !important;
  grid-template-columns: minmax(160px,.72fr) minmax(220px,1fr);
  align-items: end;
  gap: 10px 18px;
  padding: 9px 0 !important;
  border-top: 1px solid rgba(60,60,67,.07) !important;
  border-bottom: 0 !important;
  background: transparent !important;
}

#task-recurrence-section .task-section-heading {
  margin: 0 !important;
  align-self: center;
}

#task-recurrence-section .task-section-heading > div {
  display: grid;
  gap: 2px;
}

#task-recurrence-section .task-section-heading strong {
  font-size: 11px !important;
}

#task-recurrence-section .task-section-heading span {
  font-size: 8.5px !important;
  line-height: 1.2 !important;
}

#task-recurrence-section .task-recurrence-fields,
#task-recurrence-section .recurrence-fields,
#task-recurrence-section > div:last-child {
  margin: 0 !important;
}

#task-recurrence-section label {
  margin: 0 !important;
  gap: 3px !important;
  font-size: 9px !important;
}

#task-recurrence-type,
#task-recurrence-section .custom-select-trigger {
  min-height: 34px !important;
}

#task-recurrence-section .field-helper,
#task-recurrence-section small {
  margin-top: 2px !important;
  font-size: 8px !important;
  line-height: 1.2 !important;
}

/* Quando "não repetir", não deixa altura sobrando. */
#task-recurrence-section[data-recurrence-active="false"] {
  min-height: 0;
}

/* Em telas maiores, a recorrência vira uma linha quase de preferências. */
@media (min-width: 900px) {
  #task-recurrence-section {
    grid-template-columns: 240px minmax(260px,420px);
    justify-content: start;
  }
}

@media (max-width: 760px) {
  #task-recurrence-section {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
}


/* =========================================================
   V1.30 — Editar, excluir e reordenar setores
   ========================================================= */

/* Uma única área de ações discreta no hover. */
.sector-nav-parent-row,
.sector-nav-child-row {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 100%;
}

.sector-nav-child-row {
  min-width: 0;
}

.sector-nav-child-row > .sector-nav-item,
.sector-nav-parent-row > .sector-nav-item {
  flex: 1 1 auto;
  min-width: 0;
}

/* Drag handle: três pontos verticais, baixo contraste. */
.sector-drag-handle {
  width: 12px;
  height: 28px;
  flex: 0 0 12px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  padding: 0;
  margin-right: 1px;
  border: 0;
  background: transparent;
  cursor: grab;
  opacity: .16;
  transition: opacity .12s,background .12s;
}

.sector-drag-handle:active {
  cursor: grabbing;
}

.sector-drag-handle span {
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: #77777d;
}

.sector-nav-parent-row:hover .sector-drag-handle,
.sector-nav-child-row:hover .sector-drag-handle,
.sector-drag-handle:focus-visible {
  opacity: .55;
}

/* Menu "..." único para editar/excluir. */
.sector-more-btn {
  width: 22px;
  height: 26px;
  flex: 0 0 22px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #99999f;
  opacity: 0;
  transition: opacity .12s,background .12s,color .12s;
}

.sector-more-btn .icon-svg {
  width: 13px;
  height: 13px;
}

.sector-nav-parent-row:hover .sector-more-btn,
.sector-nav-child-row:hover .sector-more-btn,
.sector-more-btn:focus-visible {
  opacity: .72;
}

.sector-more-btn:hover {
  opacity: 1 !important;
  color: #66666b;
  background: rgba(118,118,128,.07);
}

/* + do sub-setor e ... dividem a área de ações sem poluir. */
.sector-nav-parent-row .sector-parent-add-btn {
  margin-left: 0;
}

/* Feedback da ordenação. */
[data-sector-drag-row].is-sector-dragging {
  opacity: .40;
}

[data-sector-drag-row].is-sector-drop-target > .sector-nav-parent-row,
.sector-nav-child-row.is-sector-drop-target {
  background: rgba(242,80,3,.045);
  border-radius: 9px;
}

[data-sector-drag-row].is-sector-drop-target::before {
  content: '';
  position: absolute;
  left: 14px;
  right: 8px;
  top: -1px;
  height: 2px;
  border-radius: 999px;
  background: rgba(242,80,3,.58);
  z-index: 3;
}

@media (hover:none),(pointer:coarse) {
  .sector-more-btn {
    opacity: .48;
  }
  .sector-drag-handle {
    opacity: .30;
  }
}

/* Popover mínimo das ações. */
.sector-action-backdrop {
  position: fixed;
  inset: 0;
  z-index: 174;
  background: transparent;
}

.sector-action-menu {
  position: fixed;
  z-index: 175;
  width: 154px;
  padding: 5px;
  border: 1px solid rgba(60,60,67,.10);
  border-radius: 11px;
  background: rgba(255,255,255,.985);
  box-shadow: 0 12px 34px rgba(0,0,0,.12);
}

.sector-action-menu button {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #3e3e42;
  font-size: 10px;
  text-align: left;
}

.sector-action-menu button:hover:not(:disabled) {
  background: rgba(118,118,128,.07);
}

.sector-action-menu button.is-danger {
  color: #c43d35;
}

.sector-action-menu button:disabled {
  opacity: .38;
}

.sector-action-menu .icon-svg {
  width: 14px;
  height: 14px;
}

/* Editor rápido ganhou descrição sem crescer demais. */
.quick-sector-description-field {
  margin-top: 8px;
}

.quick-sector-description-field em {
  color: #aaaab0;
  font-size: 8px;
  font-style: normal;
  font-weight: 400;
}

/* Configurações: lápis Lucide discreto. */
.settings-sector-edit-btn {
  color: #8b8b90;
}

.settings-sector-edit-btn:hover {
  color: #57575c;
  background: rgba(118,118,128,.07);
}

/* Sidebar recolhida não exibe controles de gestão. */
.sidebar-collapsed .sector-drag-handle,
.sidebar-collapsed .sector-more-btn {
  display: none;
}


/* =========================================================
   V1.30.1 — Sidebar mais limpa + prioridade inline
   ========================================================= */

/* Contador de sub-setores removido; nome recebe a largura. */
.sector-child-count { display:none !important; }
.sector-nav-item .nav-label {
  min-width:0;
  flex:1 1 auto;
}

/* Pills de prioridade passam a comunicar que são interativas. */
[data-quick-priority] {
  cursor:pointer;
  transition:filter .12s, transform .12s, box-shadow .12s;
}
[data-quick-priority]:hover {
  filter:brightness(.97);
  box-shadow:0 0 0 2px rgba(118,118,128,.06);
}
[data-quick-priority]:active { transform:scale(.97); }
[data-quick-priority]:focus-visible {
  outline:2px solid rgba(242,80,3,.25);
  outline-offset:2px;
}

.priority-quick-backdrop {
  position:fixed;
  inset:0;
  z-index:184;
  background:transparent;
}
.priority-quick-popover {
  position:fixed;
  z-index:185;
  width:180px;
  padding:6px;
  border:1px solid rgba(60,60,67,.10);
  border-radius:12px;
  background:rgba(255,255,255,.985);
  box-shadow:0 14px 38px rgba(0,0,0,.13);
}
.priority-quick-title {
  padding:6px 8px 5px;
  color:#8a8a8f;
  font-size:9px;
  font-weight:500;
}
.priority-quick-options {
  display:grid;
  gap:2px;
}
.priority-quick-option {
  width:100%;
  min-height:34px;
  display:grid;
  grid-template-columns:auto 1fr 16px;
  align-items:center;
  gap:8px;
  padding:5px 7px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#3c3c40;
  text-align:left;
  font-size:10px;
}
.priority-quick-option:hover {
  background:rgba(118,118,128,.07);
}
.priority-quick-option.is-selected {
  background:rgba(118,118,128,.055);
}
.priority-quick-option .icon-svg {
  width:13px;
  height:13px;
  color:#6e6e73;
}


/* =========================================================
   V1.30.2 — Status editável inline
   ========================================================= */

[data-quick-status] {
  cursor: pointer;
  transition: filter .12s, transform .12s, box-shadow .12s;
}

[data-quick-status]:hover {
  filter: brightness(.97);
  box-shadow: 0 0 0 2px rgba(118,118,128,.06);
}

[data-quick-status]:active {
  transform: scale(.97);
}

[data-quick-status]:focus-visible {
  outline: 2px solid rgba(242,80,3,.25);
  outline-offset: 2px;
}

.status-quick-backdrop {
  position: fixed;
  inset: 0;
  z-index: 186;
  background: transparent;
}

.status-quick-popover {
  position: fixed;
  z-index: 187;
  width: 210px;
  max-height: 286px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(60,60,67,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.985);
  box-shadow: 0 14px 38px rgba(0,0,0,.13);
}

.status-quick-title {
  padding: 6px 8px 5px;
  color: #8a8a8f;
  font-size: 9px;
  font-weight: 500;
}

.status-quick-options {
  display: grid;
  gap: 2px;
}

.status-quick-option {
  width: 100%;
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 16px;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
}

.status-quick-option:hover {
  background: rgba(118,118,128,.07);
}

.status-quick-option.is-selected {
  background: rgba(118,118,128,.055);
}

.status-quick-option .status-pill {
  justify-self: start;
  max-width: 160px;
}

.status-quick-option .icon-svg {
  width: 13px;
  height: 13px;
  color: #6e6e73;
}


/* =========================================================
   V1.31 — Caixa de entrada de notificações
   ========================================================= */

.nav-unread-badge {
  min-width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(242,80,3,.10);
  color: var(--orange);
  font-size: 8px;
  font-weight: 650;
}

.notification-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}

.notification-clear-btn {
  padding: 3px 5px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8a8a90;
  font-size: 9px;
  font-weight: 520;
}

.notification-clear-btn:hover {
  color: #55555a;
  background: rgba(118,118,128,.06);
}

.notification-clear-btn:disabled {
  opacity: .4;
}

/* Caixa de entrada */
.inbox-view {
  padding-top: 2px;
}

.inbox-page-head {
  align-items: end;
  margin-bottom: 14px;
}

.inbox-unread-count {
  flex: 0 0 auto;
  padding-bottom: 4px;
  color: #8a8a90;
  font-size: 10px;
  white-space: nowrap;
}

.inbox-list {
  overflow: hidden;
  border: 1px solid rgba(60,60,67,.075);
  border-radius: 15px;
  background: rgba(255,255,255,.88);
}

.inbox-item {
  position: relative;
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 42px;
  align-items: stretch;
  border-bottom: 1px solid rgba(60,60,67,.065);
  background: rgba(255,255,255,.78);
}

.inbox-item:last-child {
  border-bottom: 0;
}

.inbox-item.unread {
  background: #fffaf7;
}

.inbox-item:hover {
  background: #fff;
}

.inbox-item.unread:hover {
  background: #fff7f2;
}

.inbox-item-open {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 11px;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.inbox-item-content {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.inbox-item-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.inbox-item-title strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.inbox-item-content small {
  overflow: hidden;
  color: #68686d;
  font-size: 9.5px;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.inbox-item-content em {
  color: #9a9aa0;
  font-size: 8.5px;
  font-style: normal;
}

.inbox-delete-btn {
  width: 32px;
  height: 32px;
  place-self: center;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #b0b0b5;
  opacity: .45;
  transition: opacity .12s,background .12s,color .12s;
}

.inbox-item:hover .inbox-delete-btn,
.inbox-delete-btn:focus-visible {
  opacity: .85;
}

.inbox-delete-btn:hover {
  color: #c43d35;
  background: rgba(196,61,53,.06);
  opacity: 1;
}

.inbox-delete-btn .icon-svg {
  width: 14px;
  height: 14px;
}

.inbox-empty {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: #99999e;
  text-align: center;
}

.inbox-empty .icon-svg {
  width: 24px;
  height: 24px;
  margin-bottom: 3px;
  color: #aaaab0;
}

.inbox-empty strong {
  color: #6f6f74;
  font-size: 11px;
  font-weight: 580;
}

.inbox-empty span {
  font-size: 9.5px;
}

.sidebar-collapsed .nav-unread-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 7px;
  width: 7px;
  height: 7px;
  padding: 0;
  font-size: 0;
}

@media (max-width: 700px) {
  .inbox-page-head {
    align-items: flex-start;
  }

  .inbox-item {
    grid-template-columns: minmax(0,1fr) 38px;
  }
}


/* =========================================================
   V1.32.0 — PRONTIM! Brand System
   ========================================================= */

:root {
  --orange: #5d5cfc !important;
  --brand: #5d5cfc;
  --brand-rgb: 93,92,252;
  --brand-soft: rgba(93,92,252,.08);
  --brand-soft-strong: rgba(93,92,252,.13);
  --text: #161616 !important;
  --ink: #161616;
}

/* Novo logo em toda a aplicação. */
.suncce-logo {
  content: url("../assets/prontim-logo.svg");
}

.sidebar-logo {
  width: 116px !important;
  max-width: 116px !important;
  height: auto !important;
}

/* Base clara e texto Prontim. */
body,
input,
textarea,
select,
button {
  color: #161616;
}

::selection {
  background: rgba(93,92,252,.18);
}

/* Reforço da nova cor em controles que antes dependiam do laranja. */
.btn.primary,
button.primary,
.primary-btn {
  background: #5d5cfc !important;
  border-color: #5d5cfc !important;
}

.btn.primary:hover,
button.primary:hover,
.primary-btn:hover {
  background: #5554ed !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(93,92,252,.34) !important;
}

/* =========================================================
   Login Prontim!
   ========================================================= */

.prontim-auth-shell {
  min-height: 100vh;
  display: grid !important;
  grid-template-columns: minmax(0,1.25fr) minmax(380px,.75fr);
  gap: clamp(42px,7vw,110px);
  align-items: center;
  padding: clamp(38px,5vw,72px);
  background:
    radial-gradient(circle at 16% 18%, rgba(93,92,252,.075), transparent 31%),
    linear-gradient(180deg,#fcfcfd 0%,#f7f7f9 100%);
}

.prontim-auth-brand {
  min-height: calc(100vh - clamp(76px,10vw,144px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-width: 0;
}

.prontim-auth-logo {
  display: block;
  width: clamp(148px,15vw,208px);
  height: auto;
}

.prontim-auth-message {
  max-width: 690px;
  padding-bottom: 3%;
}

.prontim-auth-message h1 {
  max-width: 650px;
  margin: 0;
  color: #161616;
  font-size: clamp(42px,5vw,76px);
  line-height: .97;
  font-weight: 590;
  letter-spacing: -.06em;
  text-wrap: balance;
}

.prontim-auth-message p {
  margin: 20px 0 0;
  color: #7c7c83;
  font-size: clamp(13px,1.1vw,16px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -.015em;
}

.prontim-auth-card {
  justify-self: end;
  width: min(100%,430px);
  padding: 32px !important;
  border: 1px solid rgba(60,60,67,.08) !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 28px 80px rgba(0,0,0,.075) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.prontim-auth-copy {
  margin-bottom: 24px;
}

.prontim-auth-copy .eyebrow {
  color: #8a8a90;
  font-size: 10px;
  font-weight: 560;
}

.prontim-auth-copy h2 {
  margin: 6px 0 7px;
  color: #161616;
  font-size: 26px;
  line-height: 1.08;
  font-weight: 610;
  letter-spacing: -.035em;
}

.prontim-auth-copy p {
  margin: 0;
  color: #86868c;
  font-size: 11.5px;
  line-height: 1.45;
}

.prontim-auth-card .stack {
  gap: 13px;
}

.auth-flow-copy {
  margin: 0;
  color: #6e6e73;
  font-size: 12px;
  line-height: 1.5;
}

.auth-secondary-action {
  justify-self: start;
  color: #5d5cfc;
  font-size: 11px;
}

.auth-feedback {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f1f1ff;
  color: #4140b8;
  font-size: 11px;
  line-height: 1.5;
}

.auth-feedback[data-type="error"] {
  background: #fff2f1;
  color: #b42318;
}

.prontim-auth-card label {
  gap: 6px;
  color: #626267;
  font-size: 10px;
  font-weight: 540;
}

.prontim-auth-card input {
  min-height: 44px !important;
  padding: 0 12px;
  border: 1px solid rgba(60,60,67,.10) !important;
  border-radius: 11px !important;
  background: #fafafa !important;
  color: #161616;
  font-size: 13px;
  box-shadow: none !important;
}

.prontim-auth-card input:focus {
  border-color: rgba(93,92,252,.38) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(93,92,252,.07) !important;
}

.prontim-auth-card button[type="submit"] {
  min-height: 44px;
  margin-top: 3px;
  border-radius: 11px;
  background: #5d5cfc !important;
  color: #fff !important;
  font-size: 11px;
  font-weight: 620;
  box-shadow: none;
}

.prontim-auth-card button[type="submit"]:hover {
  background: #5554ed !important;
}

/* Favicon mascot has no visual surface here; logo inside login card is intentionally absent. */

@media (max-width: 900px) {
  .prontim-auth-shell {
    min-height: 100vh;
    grid-template-columns: 1fr;
    gap: 36px;
    align-content: center;
    padding: 34px 24px;
  }

  .prontim-auth-brand {
    min-height: auto;
    gap: 34px;
  }

  .prontim-auth-message {
    padding: 0;
  }

  .prontim-auth-message h1 {
    max-width: 680px;
    font-size: clamp(38px,8vw,56px);
  }

  .prontim-auth-card {
    justify-self: stretch;
    width: min(100%,520px);
  }
}

@media (max-width: 560px) {
  .prontim-auth-shell {
    gap: 28px;
    padding: 24px 16px;
  }

  .prontim-auth-logo {
    width: 146px;
  }

  .prontim-auth-message h1 {
    font-size: 36px;
  }

  .prontim-auth-message p {
    margin-top: 12px;
    font-size: 12px;
  }

  .prontim-auth-card {
    padding: 24px !important;
    border-radius: 19px !important;
  }
}


/* =========================================================
   V1.32.1 — Corrige sobreposição Login + Aplicação
   ========================================================= */

/*
  O redesign V1.32.0 aplicou display:grid !important no auth-view.
  Isso sobrescrevia o atributo HTML [hidden], fazendo a tela de login
  continuar renderizada acima da aplicação depois do login.
*/
#auth-view[hidden],
#app-view[hidden],
.auth-shell[hidden],
.view[hidden] {
  display: none !important;
}

/* Login existe como uma tela independente e não cria altura residual. */
#auth-view:not([hidden]) {
  min-height: 100vh;
}

/* Aplicação volta ao topo quando autenticada. */
#app-view:not([hidden]) {
  min-height: 100vh;
}

/* Evita qualquer margem residual entre as duas shells. */
#auth-view,
#app-view {
  margin: 0;
}


/* =========================================================
   V1.32.2 — Logo responsivo ao estado da sidebar
   ========================================================= */

/* Expandida: mantém a assinatura horizontal completa do Prontim!. */
.sidebar:not(.collapsed) .sidebar-logo,
.sidebar:not(.is-collapsed) .sidebar-logo {
  content: url("../assets/prontim-logo.svg");
}

/* Recolhida: usa somente o mascote, igual ao favicon. */
.sidebar.collapsed .sidebar-logo,
.sidebar.is-collapsed .sidebar-logo,
body.sidebar-collapsed .sidebar .sidebar-logo,
body.is-sidebar-collapsed .sidebar .sidebar-logo,
.app-shell.sidebar-collapsed .sidebar .sidebar-logo {
  content: url("../assets/prontim-favicon.svg") !important;
  width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  object-fit: contain;
}

/* Centraliza o mascote no espaço reduzido. */
.sidebar.collapsed .sidebar-brand,
.sidebar.is-collapsed .sidebar-brand,
body.sidebar-collapsed .sidebar .sidebar-brand,
body.is-sidebar-collapsed .sidebar .sidebar-brand,
.app-shell.sidebar-collapsed .sidebar .sidebar-brand {
  justify-content: center;
}

/* V1.33.0 — Gestão rápida + Observadores */
.watchers-trigger{display:inline-flex;align-items:center;gap:7px;padding:5px 7px;border:0;border-radius:9px;background:transparent;color:#77777d;font-size:10px;font-weight:540}
.watchers-trigger:hover{background:rgba(118,118,128,.06);color:#161616}.watchers-trigger .icon-svg{width:14px;height:14px;color:#8b8b91}
.watchers-trigger small{color:#5d5cfc;font-size:9px;margin-left:3px}.task-watchers-section{margin-top:-5px}
.watcher-picker-wrap{margin-top:6px;padding:7px;border-radius:12px;background:rgba(118,118,128,.035)}
.bulk-action-bar #bulk-duplicate-btn,.bulk-action-bar #bulk-move-btn{white-space:nowrap}
.bulk-action-bar #bulk-duplicate-btn .icon-svg,.bulk-action-bar #bulk-move-btn .icon-svg{width:13px;height:13px}
.mini-modal-backdrop{position:fixed;inset:0;z-index:190;background:rgba(0,0,0,.10);backdrop-filter:blur(2px)}
.mini-modal{position:fixed;z-index:191;left:50%;top:50%;transform:translate(-50%,-50%);width:min(390px,calc(100vw - 28px));border:1px solid rgba(60,60,67,.10);border-radius:18px;background:rgba(255,255,255,.98);box-shadow:0 24px 70px rgba(0,0,0,.14);overflow:visible}
.mini-modal-head{display:flex;align-items:center;justify-content:space-between;padding:15px 16px 10px}.mini-modal-head>div{display:grid;gap:2px}
.mini-modal-head strong{font-size:13px}.mini-modal-head span{font-size:9.5px;color:#8a8a90}
.mini-modal-body{display:grid;gap:10px;padding:8px 16px 14px}.mini-modal-body label{font-size:9px;color:#777;display:grid;gap:4px}
.mini-modal-footer{display:flex;justify-content:flex-end;padding:10px 16px 15px;border-top:1px solid rgba(60,60,67,.06)}


/* =========================================================
   V1.33.1 — Correções Observadores / Hover / Recorrência
   ========================================================= */

/* Observadores seguem exatamente a mesma linguagem de pills dos responsáveis. */
.task-watchers-section {
  margin-top: -4px;
  padding-top: 2px;
}

.watchers-trigger {
  min-height: 28px;
  padding: 4px 7px;
  border-radius: 8px;
}

.watcher-picker-wrap {
  margin-top: 6px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

#watcher-picker {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
}

#watcher-picker .watcher-option {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 32px !important;
  padding: 4px 9px 4px 5px !important;
  border-radius: 999px !important;
  gap: 6px !important;
  background: #fff;
  border: 1px solid rgba(60,60,67,.10);
}

#watcher-picker .watcher-option:hover {
  background: rgba(118,118,128,.035);
}

#watcher-picker .watcher-option.selected {
  border-color: rgba(93,92,252,.26);
  background: rgba(93,92,252,.045);
}

#watcher-picker .watcher-option .assignee-avatar {
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px !important;
  border-radius: 50% !important;
}

#watcher-picker .watcher-option .assignee-name {
  font-size: 9.5px !important;
  white-space: nowrap;
}

/* Botão Nova tarefa: hover permanece na identidade roxa Prontim!. */
#new-task-btn,
.new-task-btn,
.sidebar .btn.primary,
.sidebar .primary-btn {
  background: #5d5cfc !important;
  border-color: #5d5cfc !important;
  color: #fff !important;
}

#new-task-btn:hover,
.new-task-btn:hover,
.sidebar .btn.primary:hover,
.sidebar .primary-btn:hover {
  background: #5554ed !important;
  border-color: #5554ed !important;
  color: #fff !important;
  filter: none !important;
}

/* Recorrência pertence somente à aba Checklist. */
#task-recurrence-section[hidden] {
  display: none !important;
}


/* =========================================================
   V1.33.2 — Sidebar orientada a Setores
   ========================================================= */

/* A navegação principal fica compacta para entregar área vertical aos setores. */
.sidebar .main-nav{
  gap:2px;
  margin-bottom:8px;
}
.sidebar .main-nav .nav-item{
  min-height:34px;
}

/* Setores passam a ser a região operacional dominante da sidebar. */
.sector-sidebar-section{
  flex:1 1 auto;
  min-height:0;
  margin-top:2px !important;
  display:flex;
  flex-direction:column;
}
.sector-sidebar-title{
  flex:0 0 auto;
  margin:0 7px 5px !important;
  padding:5px 4px !important;
}
.sector-nav{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  padding:0 6px 8px 5px !important;
}

/* Setor mãe: linha inteira, confortável e claramente navegável. */
.sector-nav-parent-row,
.sector-nav-child-row{
  position:relative;
  border-radius:9px;
  min-width:0;
}
.sector-nav-parent-row{
  min-height:35px;
  display:flex;
  align-items:center;
  padding:1px 2px;
}
.sector-nav-item{
  min-width:0 !important;
}
.sector-nav-item.is-parent{
  flex:1 1 auto;
  min-height:33px !important;
  border-radius:8px !important;
  padding:0 5px 0 7px !important;
  gap:8px !important;
  font-weight:520;
}
.sector-nav-parent-row:hover{
  background:rgba(118,118,128,.055);
}
.sector-nav-group.has-active-child > .sector-nav-parent-row{
  background:rgba(118,118,128,.035);
}
.sector-nav-item.is-parent.active{
  background:rgba(118,118,128,.10) !important;
  color:#161616 !important;
  font-weight:620;
}
.sector-nav-item.is-parent .sector-dot{
  width:7px !important;
  height:7px !important;
  flex:0 0 7px !important;
}
.sector-nav-item .nav-label{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  min-width:0;
}

/* Sub-setores: hierarquia limpa, sem repetir a cor do setor mãe. */
.sector-nav-children{
  position:relative;
  margin:1px 0 4px 17px !important;
  padding-left:10px !important;
  border-left:1px solid rgba(60,60,67,.10);
}
.sector-nav-child-row{
  min-height:31px;
  display:flex;
  align-items:center;
  margin:1px 0;
}
.sector-nav-item.is-child{
  flex:1 1 auto;
  min-height:30px !important;
  padding:0 7px !important;
  border-radius:8px !important;
  font-size:10.5px;
}
.sector-nav-child-row:hover{
  background:rgba(118,118,128,.045);
}
.sector-nav-item.is-child.active{
  background:rgba(93,92,252,.075) !important;
  color:#161616 !important;
  font-weight:610;
}
.sector-nav-item.is-child.active::before{
  content:"";
  position:absolute;
  left:-11px;
  top:7px;
  width:2px;
  height:16px;
  border-radius:999px;
  background:#5d5cfc;
}

/* Controles de organização só aparecem quando há intenção do usuário. */
.sector-drag-handle,
.sector-parent-add-btn,
.sector-action-btn{
  opacity:0 !important;
  pointer-events:none;
  transition:opacity .14s ease;
}
.sector-nav-parent-row:hover .sector-drag-handle,
.sector-nav-parent-row:hover .sector-parent-add-btn,
.sector-nav-parent-row:hover .sector-action-btn,
.sector-nav-child-row:hover .sector-drag-handle,
.sector-nav-child-row:hover .sector-action-btn{
  opacity:.62 !important;
  pointer-events:auto;
}
.sector-collapse-btn{
  opacity:.62;
  flex:0 0 auto;
}
.sector-nav-parent-row:hover .sector-collapse-btn{opacity:.9}

/* Footer: perfil + configurações + sair. */
.sidebar-user{
  flex:0 0 auto;
  gap:3px !important;
  padding-top:7px !important;
}
.sidebar-footer-settings{
  flex:0 0 auto;
}
.sidebar-footer-settings:hover,
#logout-btn:hover{
  background:rgba(118,118,128,.08) !important;
  color:#161616 !important;
}

/* Favoritos e Recentes deixam a sidebar e viram utilitários do header. */
.header-quick-btn{
  position:relative;
}
.header-quick-btn[aria-expanded="true"]{
  background:rgba(118,118,128,.08);
  color:#161616;
}
.header-quick-popover{
  position:absolute;
  z-index:150;
  top:52px;
  right:54px;
  width:min(310px,calc(100vw - 24px));
  padding:8px;
  border:1px solid rgba(60,60,67,.10);
  border-radius:15px;
  background:rgba(255,255,255,.98);
  box-shadow:0 18px 55px rgba(0,0,0,.12);
  backdrop-filter:blur(18px);
}
#recents-nav-section{right:18px}
#favorites-nav-section{right:56px}
.header-quick-popover-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  padding:7px 8px 8px;
}
.header-quick-popover-head strong{
  font-size:12px;
  color:#161616;
}
.header-quick-popover-head span{
  font-size:9px;
  color:#96969c;
}
.header-quick-list{
  display:grid;
  gap:2px;
  max-height:300px;
  overflow:auto;
}
.header-quick-list .quick-nav-item{
  width:100%;
  min-height:38px;
  border-radius:9px;
}
.header-quick-empty{
  padding:20px 10px;
  text-align:center;
  color:#98989e;
  font-size:10px;
}

/* Sidebar recolhida: footer permanece coerente e sem textos. */
.sidebar.collapsed .sidebar-footer-settings,
.sidebar.is-collapsed .sidebar-footer-settings{
  margin-inline:auto;
}

@media (max-width: 760px){
  .header-quick-btn{display:none !important}
  .header-quick-popover{display:none !important}
}


/* =========================================================
   V1.33.3 — Densidade vertical dos setores
   ========================================================= */

/* Remove o excesso de respiro entre grupos de setores mãe. */
.sector-nav-group{
  margin:0 !important;
  padding:0 !important;
}

.sector-nav-parent-row{
  min-height:32px !important;
  margin:1px 0 !important;
  padding:0 2px !important;
}

.sector-nav-item.is-parent{
  min-height:30px !important;
  height:30px !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
}

/* Mantém sub-setores igualmente compactos. */
.sector-nav-children{
  margin-top:0 !important;
  margin-bottom:2px !important;
}

.sector-nav-child-row{
  min-height:29px !important;
  margin:0 !important;
}

.sector-nav-item.is-child{
  min-height:28px !important;
  height:28px !important;
}

/* Evita qualquer regra antiga distribuindo os setores pela altura disponível. */
.sector-nav{
  align-content:start !important;
  justify-content:flex-start !important;
}

.sector-nav > *{
  flex:0 0 auto !important;
}

/* V1.33.4 — Configurações e Sair lado a lado */
.sidebar-user{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto auto !important;
  grid-template-rows:auto !important;
  align-items:center !important;
  column-gap:4px !important;
}
.sidebar-user-main{
  grid-column:1 !important;
  grid-row:1 !important;
  min-width:0 !important;
}
.sidebar-footer-settings{
  grid-column:2 !important;
  grid-row:1 !important;
  margin:0 !important;
}
#logout-btn{
  grid-column:3 !important;
  grid-row:1 !important;
  margin:0 !important;
}

/* V1.33.5 — Rubik Bold somente nos títulos principais de página */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@700&display=swap');

.page-title,
.view-title,
.dashboard-title,
.content-header h1,
.page-header h1,
main h1 {
  font-family: 'Rubik', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.035em;
}

/* Mantém títulos internos, cards, modais, sidebar e campos na tipografia original. */


/* =========================================================
   V1.33.6 — Comentários como composer de chat
   ========================================================= */

/* Composer compacto: botão enviar e anexo ficam dentro da caixa. */
.comments-pane-composer{
  gap:5px !important;
}

.comment-input-wrap-chat{
  position:relative;
  overflow:visible;
  padding:0 !important;
  border:1px solid rgba(60,60,67,.10);
  border-radius:14px;
  background:#fff;
  transition:border-color .12s,box-shadow .12s;
}

.comment-input-wrap-chat:focus-within{
  border-color:rgba(93,92,252,.28);
  box-shadow:0 0 0 3px rgba(93,92,252,.055);
}

.comment-input-wrap-chat #comment-input{
  width:100%;
  min-height:86px;
  padding:12px 12px 42px !important;
  border:0 !important;
  border-radius:14px !important;
  background:transparent !important;
  box-shadow:none !important;
  resize:vertical;
}

.comment-composer-toolbar{
  position:absolute;
  left:7px;
  right:7px;
  bottom:7px;
  display:flex;
  align-items:center;
  gap:6px;
  pointer-events:none;
}

.comment-composer-toolbar > *{
  pointer-events:auto;
}

.comment-attach-btn{
  width:30px;
  height:28px;
  display:inline-grid;
  place-items:center;
  flex:0 0 30px;
  border-radius:8px;
  color:#87878d;
  cursor:pointer;
}

.comment-attach-btn:hover{
  color:#5d5cfc;
  background:rgba(93,92,252,.065);
}

.comment-attach-btn .icon-svg{
  width:15px;
  height:15px;
}

.comment-enter-hint{
  flex:1 1 auto;
  min-width:0;
  color:#aaaab0;
  font-size:8px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.comment-send-inside{
  min-height:28px !important;
  height:28px;
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:0 9px !important;
  border:0;
  border-radius:8px !important;
  background:#161616 !important;
  color:#fff !important;
  font-size:9px;
  font-weight:600;
}

.comment-send-inside:hover{
  background:#2b2b2b !important;
}

.comment-send-inside .icon-svg{
  width:12px;
  height:12px;
}

.comments-pane-composer > .comment-hint{
  margin:0 3px;
  font-size:8.5px;
  color:#99999f;
}

/* Anexos passam a fazer parte visualmente da conversa. */
.comment-attachment-list{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}

.comment-attachment-list:empty{
  display:none;
}

.comment-attachment-chip{
  max-width:100%;
  display:inline-flex;
  align-items:center;
  overflow:hidden;
  border:1px solid rgba(60,60,67,.08);
  border-radius:10px;
  background:rgba(118,118,128,.035);
}

.comment-attachment-open{
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
  padding:6px 7px;
  border:0;
  background:transparent;
  text-align:left;
}

.comment-attachment-open > .icon-svg{
  width:15px;
  height:15px;
  flex:0 0 15px;
  color:#77777d;
}

.comment-attachment-open > span{
  min-width:0;
  display:grid;
}

.comment-attachment-open strong{
  max-width:190px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#4c4c51;
  font-size:9px;
  font-weight:560;
}

.comment-attachment-open small{
  color:#99999f;
  font-size:7.5px;
}

.comment-attachment-delete{
  width:24px;
  height:28px;
  display:grid;
  place-items:center;
  flex:0 0 24px;
  border:0;
  background:transparent;
  color:#aaaab0;
  font-size:13px;
}

.comment-attachment-delete:hover{
  color:#c43d35;
  background:rgba(196,61,53,.05);
}

/* Não existe mais a aba Arquivos. */
#task-tab-files{
  display:none !important;
}


/* =========================================================
   V1.33.7 — Anexo como parte do envio da conversa
   ========================================================= */

.pending-comment-attachment{
  margin-bottom:5px;
}

.pending-comment-file{
  display:flex;
  align-items:center;
  gap:8px;
  max-width:100%;
  padding:6px 7px;
  border:1px solid rgba(93,92,252,.13);
  border-radius:11px;
  background:rgba(93,92,252,.035);
}

.pending-comment-file > img{
  width:42px;
  height:42px;
  flex:0 0 42px;
  object-fit:cover;
  border-radius:8px;
}

.pending-file-icon{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:rgba(118,118,128,.07);
  color:#77777d;
}

.pending-file-icon .icon-svg{
  width:16px;
  height:16px;
}

.pending-comment-file-copy{
  min-width:0;
  flex:1;
  display:grid;
  gap:2px;
}

.pending-comment-file-copy strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#4b4b50;
  font-size:9px;
  font-weight:590;
}

.pending-comment-file-copy small{
  color:#99999f;
  font-size:7.8px;
}

#remove-pending-comment-file{
  width:24px;
  height:24px;
  flex:0 0 24px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#aaaab0;
  font-size:14px;
}

#remove-pending-comment-file:hover{
  background:rgba(196,61,53,.06);
  color:#c43d35;
}

.comment-body{
  min-width:0;
}

.chat-comment-attachments{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:6px;
}

.chat-image-attachment{
  position:relative;
  width:min(220px,100%);
  overflow:hidden;
  display:block;
  padding:0;
  border:1px solid rgba(60,60,67,.08);
  border-radius:12px;
  background:#f5f5f7;
  text-align:left;
}

.chat-image-attachment img{
  width:100%;
  max-height:220px;
  display:block;
  object-fit:cover;
}

.chat-image-loading{
  height:120px;
  display:grid;
  place-items:center;
  color:#a0a0a5;
}

.chat-image-loading .icon-svg{
  width:22px;
  height:22px;
}

.chat-image-name{
  display:block;
  padding:6px 8px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#77777c;
  font-size:8px;
  background:#fff;
}

.chat-file-attachment{
  max-width:260px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:7px 9px;
  border:1px solid rgba(60,60,67,.08);
  border-radius:11px;
  background:rgba(118,118,128,.035);
  text-align:left;
}

.chat-file-attachment > .icon-svg{
  width:16px;
  height:16px;
  flex:0 0 16px;
  color:#76767c;
}

.chat-file-attachment > span{
  min-width:0;
  display:grid;
}

.chat-file-attachment strong{
  max-width:205px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#4d4d52;
  font-size:9px;
}

.chat-file-attachment small{
  color:#99999f;
  font-size:7.5px;
}


/* V1.33.8 — Download direto nos anexos do chat */
.chat-image-attachment{
  position:relative;
}

.chat-attachment-download{
  position:absolute;
  top:7px;
  right:7px;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.58);
  border-radius:9px;
  background:rgba(255,255,255,.88);
  color:#161616;
  box-shadow:0 2px 10px rgba(0,0,0,.10);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  opacity:.72;
  transition:opacity .12s ease, transform .12s ease, background .12s ease;
  z-index:2;
}

.chat-image-attachment:hover .chat-attachment-download,
.chat-attachment-download:focus-visible{
  opacity:1;
}

.chat-attachment-download:hover{
  background:#fff;
  transform:translateY(-1px);
}

.chat-attachment-download .icon-svg,
.chat-file-download .icon-svg{
  width:14px;
  height:14px;
}

.chat-file-download{
  width:28px;
  height:28px;
  flex:0 0 28px;
  display:grid;
  place-items:center;
  margin-left:4px;
  border-radius:8px;
  color:#7d7d83;
  transition:background .12s ease,color .12s ease;
}

.chat-file-download:hover,
.chat-file-download:focus-visible{
  background:rgba(93,92,252,.07);
  color:#5d5cfc;
}


/* =========================================================
   V1.35.0 — Central de Comandos Ctrl + K
   ========================================================= */

.global-search-card{
  width:min(680px,calc(100vw - 30px)) !important;
}

.global-search-input-row{
  min-height:54px;
}

.global-search-input-row input{
  font-size:14px !important;
}

.command-palette-key-help{
  display:inline-flex;
  align-items:center;
  gap:3px;
}

.command-palette-key-help kbd{
  min-width:18px;
  height:18px;
  display:inline-grid;
  place-items:center;
  padding:0 4px;
  border:1px solid rgba(60,60,67,.10);
  border-radius:5px;
  background:rgba(118,118,128,.05);
  color:#77777d;
  font-size:8px;
  box-shadow:none;
}

.command-palette-group{
  padding-bottom:4px;
}

.command-palette-action .command-action-icon{
  color:#5d5cfc;
  background:rgba(93,92,252,.075);
}

.command-action-tag{
  flex:0 0 auto;
  padding:3px 6px;
  border-radius:999px;
  background:rgba(118,118,128,.055);
  color:#98989e;
  font-size:7.5px;
  font-weight:550;
}

.global-search-result{
  position:relative;
  transition:background .10s ease,transform .10s ease;
}

.global-search-result.is-command-selected{
  background:rgba(93,92,252,.075) !important;
}

.global-search-result.is-command-selected::before{
  content:"";
  position:absolute;
  left:2px;
  top:8px;
  bottom:8px;
  width:2px;
  border-radius:999px;
  background:#5d5cfc;
}

.global-search-result.is-command-selected .global-search-result-copy strong{
  color:#161616;
}

.command-quick-link .global-search-result-icon{
  background:rgba(118,118,128,.055);
}

.global-search-results{
  max-height:min(62vh,560px) !important;
  scroll-behavior:smooth;
}

@media (max-width:600px){
  .command-palette-key-help{
    display:none;
  }
}


/* =========================================================
   V1.36.0 — Agenda
   ========================================================= */

.agenda-page-head {
  align-items: flex-end;
  margin-bottom: 14px;
}

.agenda-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.agenda-connect-card {
  min-height: 210px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(60,60,67,.075);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
}

.agenda-connect-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(93,92,252,.08);
  color: #5d5cfc;
}

.agenda-connect-icon .icon-svg {
  width: 25px;
  height: 25px;
}

.agenda-connect-copy {
  display: grid;
  gap: 5px;
}

.agenda-connect-copy strong {
  color: #161616;
  font-size: 14px;
}

.agenda-connect-copy p {
  max-width: 540px;
  margin: 0;
  color: #77777d;
  font-size: 10.5px;
  line-height: 1.5;
}

.agenda-content {
  display: grid;
  gap: 10px;
}

.agenda-toolbar {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agenda-range-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.agenda-range-title {
  color: #161616;
  font-size: 12px;
}

.agenda-layout {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .65fr);
  gap: 10px;
}

.agenda-calendar-card,
.agenda-events-card {
  overflow: hidden;
  border: 1px solid rgba(60,60,67,.075);
  border-radius: 15px;
  background: rgba(255,255,255,.91);
}

.agenda-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid rgba(60,60,67,.06);
}

.agenda-weekdays span {
  padding: 8px 5px;
  color: #99999f;
  font-size: 7.5px;
  font-weight: 650;
  text-align: center;
}

.agenda-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: minmax(88px, 1fr);
}

.agenda-day {
  min-width: 0;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px;
  border-right: 1px solid rgba(60,60,67,.05);
  border-bottom: 1px solid rgba(60,60,67,.05);
}

.agenda-day.is-outside {
  background: rgba(118,118,128,.018);
  opacity: .52;
}

.agenda-day-number {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #66666c;
  font-size: 9px;
  font-weight: 560;
}

.agenda-day.is-today .agenda-day-number {
  background: #5d5cfc;
  color: #fff;
}

.agenda-day-events {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.agenda-mini-event {
  width: 100%;
  overflow: hidden;
  padding: 3px 5px;
  border: 0;
  border-radius: 5px;
  background: rgba(93,92,252,.065);
  color: #5a59cf;
  font-size: 7.5px;
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.agenda-mini-event:hover {
  background: rgba(93,92,252,.11);
}

.agenda-day-events small {
  color: #99999f;
  font-size: 7px;
}

.agenda-events-card {
  display: flex;
  flex-direction: column;
}

.agenda-events-head {
  padding: 13px 13px 9px;
  border-bottom: 1px solid rgba(60,60,67,.06);
}

.agenda-events-head > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.agenda-events-head strong {
  font-size: 11px;
}

.agenda-events-head span {
  color: #99999f;
  font-size: 8px;
}

.agenda-events-list {
  min-height: 0;
  overflow: auto;
  padding: 5px;
}

.agenda-event-row {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) 14px;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
}

.agenda-event-row:hover {
  background: rgba(118,118,128,.045);
}

.agenda-event-date {
  height: 36px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 8px;
  background: rgba(118,118,128,.05);
}

.agenda-event-date strong {
  font-size: 11px;
}

.agenda-event-date small {
  color: #8b8b91;
  font-size: 6.5px;
}

.agenda-event-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.agenda-event-copy strong {
  overflow: hidden;
  color: #3e3e43;
  font-size: 9.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.agenda-event-copy span {
  overflow: hidden;
  color: #929298;
  font-size: 7.8px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.agenda-event-row > .icon-svg {
  width: 12px;
  height: 12px;
  color: #aaaab0;
}

.agenda-empty {
  padding: 28px 12px;
  color: #99999f;
  font-size: 9px;
  text-align: center;
}

@media (max-width: 980px) {
  .agenda-layout {
    grid-template-columns: 1fr;
  }

  .agenda-events-card {
    max-height: 340px;
  }
}

@media (max-width: 700px) {
  .agenda-page-head {
    align-items: flex-start;
  }

  .agenda-head-actions {
    flex-wrap: wrap;
  }

  .agenda-connect-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .agenda-month-grid {
    grid-auto-rows: minmax(70px, 1fr);
  }

  .agenda-mini-event {
    display: none;
  }
}


/* =========================================================
   V1.36.1 — Agenda nativa do Prontim!
   ========================================================= */

.agenda-google-card{
  min-height:72px !important;
  grid-template-columns:auto minmax(0,1fr) auto !important;
  padding:12px 14px !important;
  margin-bottom:10px;
  border-radius:13px !important;
}

.agenda-google-card .agenda-connect-icon{
  width:36px;
  height:36px;
  border-radius:10px;
}

.agenda-google-card .agenda-connect-icon .icon-svg{
  width:18px;
  height:18px;
}

.agenda-google-card .agenda-connect-copy strong{
  font-size:10.5px;
}

.agenda-google-card .agenda-connect-copy p{
  font-size:8.8px;
  line-height:1.4;
}

.agenda-toolbar-title{
  display:grid;
  justify-items:end;
  gap:2px;
}

.agenda-toolbar-title span{
  color:#9b9ba1;
  font-size:7.5px;
}

.agenda-day{
  cursor:pointer;
}

.agenda-mini-event{
  display:flex;
  align-items:center;
  gap:4px;
}

.agenda-mini-event .agenda-source-dot{
  width:5px;
  height:5px;
  flex:0 0 5px;
  border-radius:50%;
  background:#5d5cfc;
}

.agenda-mini-event.is-google{
  background:rgba(66,133,244,.065);
  color:#4c72ad;
}

.agenda-mini-event.is-google .agenda-source-dot{
  background:#4285f4;
}

.agenda-event-copy small.agenda-event-source{
  width:max-content;
  margin-top:2px;
  padding:2px 5px;
  border-radius:999px;
  font-size:6.5px;
  font-weight:600;
}

.agenda-event-source.prontim{
  background:rgba(93,92,252,.075);
  color:#5d5cfc;
}

.agenda-event-source.google{
  background:rgba(66,133,244,.075);
  color:#4285f4;
}

/* Event modal */
.agenda-event-modal{
  position:fixed;
  z-index:230;
  inset:0;
  display:grid;
  place-items:center;
  pointer-events:none;
}

.agenda-event-modal[hidden]{
  display:none !important;
}

.agenda-event-modal-card{
  width:min(560px,calc(100vw - 28px));
  max-height:min(760px,calc(100vh - 28px));
  overflow:auto;
  pointer-events:auto;
  border:1px solid rgba(60,60,67,.09);
  border-radius:20px;
  background:rgba(255,255,255,.98);
  box-shadow:0 28px 90px rgba(0,0,0,.16);
}

.agenda-event-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:18px 18px 10px;
}

.agenda-event-modal-head h2{
  margin:4px 0 0;
  color:#161616;
  font-size:20px;
  font-weight:630;
  letter-spacing:-.035em;
}

.agenda-event-modal-body{
  display:grid;
  gap:13px;
  padding:8px 18px 18px;
}

.agenda-event-modal-body > label,
.agenda-event-date-time label{
  display:grid;
  gap:5px;
  color:#66666c;
  font-size:9px;
  font-weight:550;
}

.agenda-event-modal-body input,
.agenda-event-modal-body textarea{
  width:100%;
  border:1px solid rgba(60,60,67,.10);
  border-radius:10px;
  background:#fafafa;
}

.agenda-event-modal-body input{
  min-height:39px;
  padding:0 10px;
}

.agenda-event-modal-body textarea{
  min-height:86px;
  padding:10px;
  resize:vertical;
}

.agenda-event-modal-body input:focus,
.agenda-event-modal-body textarea:focus{
  border-color:rgba(93,92,252,.30);
  background:#fff;
  box-shadow:0 0 0 3px rgba(93,92,252,.055);
}

.field-optional{
  color:#aaaab0;
  font-size:7px;
  font-weight:450;
}

.agenda-event-date-time{
  display:grid;
  grid-template-columns:1.25fr .75fr .75fr;
  gap:8px;
}

.agenda-participant-section{
  display:grid;
  gap:8px;
  padding-top:3px;
}

.agenda-participant-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
}

.agenda-participant-head > div{
  display:grid;
  gap:2px;
}

.agenda-participant-head strong{
  color:#55555a;
  font-size:10px;
}

.agenda-participant-head span,
.agenda-participant-head small{
  color:#99999f;
  font-size:7.8px;
}

.agenda-participant-search-wrap{
  height:34px;
  display:flex;
  align-items:center;
  gap:6px;
  padding:0 9px;
  border:1px solid rgba(60,60,67,.08);
  border-radius:9px;
  background:#fafafa;
}

.agenda-participant-search-wrap .icon-svg{
  width:13px;
  height:13px;
  color:#99999f;
}

.agenda-participant-search-wrap input{
  min-height:0 !important;
  height:31px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

.agenda-participant-picker{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  max-height:126px;
  overflow:auto;
}

.agenda-participant-pill{
  min-height:30px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:3px 7px 3px 4px;
  border:1px solid rgba(60,60,67,.09);
  border-radius:999px;
  background:#fff;
  color:#66666c;
  font-size:9px;
}

.agenda-participant-pill .avatar{
  width:22px;
  height:22px;
  flex:0 0 22px;
}

.agenda-participant-pill .icon-svg{
  width:11px;
  height:11px;
  color:#aaaab0;
}

.agenda-participant-pill:hover{
  background:rgba(118,118,128,.035);
}

.agenda-participant-pill.selected{
  border-color:rgba(93,92,252,.24);
  background:rgba(93,92,252,.055);
  color:#4d4cb8;
}

.agenda-participant-pill.selected .icon-svg{
  color:#5d5cfc;
}

.agenda-participant-empty{
  width:100%;
  padding:12px;
  color:#99999f;
  font-size:8px;
  text-align:center;
}

.agenda-event-modal-footer{
  display:flex;
  align-items:center;
  gap:6px;
  padding:11px 18px 16px;
  border-top:1px solid rgba(60,60,67,.055);
}

.modal-footer-spacer{
  flex:1;
}

.danger-text{
  color:#c43d35 !important;
}

@media(max-width:620px){
  .agenda-event-date-time{
    grid-template-columns:1fr 1fr;
  }

  .agenda-event-date-time label:first-child{
    grid-column:1/-1;
  }

  .agenda-google-card{
    grid-template-columns:auto 1fr !important;
  }

  .agenda-google-card > button{
    grid-column:1/-1;
  }
}


/* =========================================================
   V1.36.4 — Pop-up de eventos Google dentro do Prontim!
   ========================================================= */

.google-event-modal{
  position:fixed;
  z-index:240;
  inset:0;
  display:grid;
  place-items:center;
  pointer-events:none;
}

.google-event-modal[hidden]{
  display:none !important;
}

.google-event-modal-card{
  width:min(560px,calc(100vw - 28px));
  max-height:min(760px,calc(100vh - 28px));
  overflow:auto;
  pointer-events:auto;
  border:1px solid rgba(60,60,67,.09);
  border-radius:20px;
  background:rgba(255,255,255,.985);
  box-shadow:0 28px 90px rgba(0,0,0,.16);
}

.google-event-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:18px 18px 10px;
}

.google-event-modal-title-wrap{
  min-width:0;
  display:grid;
  gap:7px;
}

.google-event-source-badge{
  width:max-content;
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:3px 7px;
  border-radius:999px;
  background:rgba(66,133,244,.075);
  color:#4b72b8;
  font-size:7.5px;
  font-weight:600;
}

.google-event-source-dot{
  width:5px;
  height:5px;
  border-radius:50%;
  background:#4285f4;
}

.google-event-modal-head h2{
  max-width:470px;
  margin:0;
  color:#161616;
  font-size:21px;
  line-height:1.15;
  font-weight:650;
  letter-spacing:-.035em;
}

.google-event-modal-body{
  display:grid;
  gap:14px;
  padding:8px 18px 18px;
}

.google-event-meta-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}

.google-event-meta-item{
  min-width:0;
  display:flex;
  align-items:center;
  gap:9px;
  padding:10px;
  border-radius:11px;
  background:rgba(118,118,128,.035);
}

.google-event-meta-item > .icon-svg{
  width:16px;
  height:16px;
  flex:0 0 16px;
  color:#818187;
}

.google-event-meta-item > div{
  min-width:0;
  display:grid;
  gap:2px;
}

.google-event-meta-item span{
  color:#99999f;
  font-size:7px;
}

.google-event-meta-item strong{
  overflow:hidden;
  color:#4c4c51;
  font-size:9.5px;
  font-weight:580;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.google-event-description-block,
.google-event-attendees-block,
.google-event-meet-block{
  display:grid;
  gap:7px;
}

.google-event-description-block > span,
.google-event-section-head > span{
  color:#77777d;
  font-size:8px;
  font-weight:620;
}

.google-event-description-block p{
  margin:0;
  padding:10px 11px;
  border-radius:11px;
  background:rgba(118,118,128,.03);
  color:#5e5e64;
  font-size:9.5px;
  line-height:1.5;
  white-space:pre-wrap;
}

.google-event-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.google-event-section-head small{
  color:#99999f;
  font-size:7.5px;
}

.google-event-attendees{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.google-event-attendee{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
  padding:5px 8px 5px 5px;
  border:1px solid rgba(60,60,67,.07);
  border-radius:999px;
  background:#fff;
}

.google-event-attendee-avatar{
  width:23px;
  height:23px;
  display:grid;
  place-items:center;
  flex:0 0 23px;
  border-radius:50%;
  background:rgba(66,133,244,.09);
  color:#4b72b8;
  font-size:8px;
  font-weight:650;
}

.google-event-attendee-copy{
  min-width:0;
  display:grid;
}

.google-event-attendee-copy strong{
  max-width:145px;
  overflow:hidden;
  color:#55555a;
  font-size:8.5px;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.google-event-attendee-copy small{
  color:#a0a0a6;
  font-size:6.5px;
}

.google-event-meet-btn{
  width:max-content;
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:34px;
  padding:0 10px;
  border:1px solid rgba(66,133,244,.14);
  border-radius:9px;
  background:rgba(66,133,244,.055);
  color:#3f6fb5;
  font-size:9px;
  font-weight:600;
}

.google-event-meet-btn:hover{
  background:rgba(66,133,244,.09);
}

.google-event-meet-btn .icon-svg{
  width:14px;
  height:14px;
}

.google-event-modal-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:11px 18px 16px;
  border-top:1px solid rgba(60,60,67,.055);
}

.google-event-calendar-name{
  min-width:0;
  overflow:hidden;
  color:#9a9aa0;
  font-size:7.5px;
  white-space:nowrap;
  text-overflow:ellipsis;
}

@media(max-width:600px){
  .google-event-meta-grid{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   PRONTIM! V1.37 — MOTION SYSTEM
   ========================================================= */
:root{
  --motion-instant:90ms;
  --motion-fast:140ms;
  --motion-standard:180ms;
  --motion-modal:220ms;
  --motion-close:145ms;
  --motion-ease:cubic-bezier(.2,.75,.25,1);
  --motion-ease-out:cubic-bezier(.16,1,.3,1);
}
button,.btn,.icon-btn,.nav-item,.task-row,.my-task-row,.home-attention-row{
  transition:background-color var(--motion-fast) ease,border-color var(--motion-fast) ease,color var(--motion-fast) ease,box-shadow var(--motion-fast) ease,transform var(--motion-instant) ease,opacity var(--motion-fast) ease;
}
button:active:not(:disabled),.btn:active:not(:disabled),.icon-btn:active:not(:disabled){transform:translateY(1px) scale(.995)}
.task-row:hover,.my-task-row:hover,.home-attention-row:hover{transform:translateY(-1px)}
.user-modal-card,.profile-modal-card,.custom-field-modal-card,.agenda-event-modal-card,.google-event-modal-card,.global-search-card,.bulk-move-modal,.quick-label-popover,.quick-sector-popover,.priority-quick-popover,.status-quick-popover{will-change:transform,opacity;transform-origin:center center}
.is-motion-loading{position:relative!important;pointer-events:none!important}
.is-motion-loading::after{content:"";width:12px;height:12px;margin-left:7px;display:inline-block;vertical-align:-2px;border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;opacity:.72;animation:prontim-spin .65s linear infinite}
.is-motion-loading>*{opacity:.86}
@keyframes prontim-spin{to{transform:rotate(360deg)}}
.agenda-skeleton-list{display:grid;gap:4px;padding:5px}
.agenda-skeleton-row{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:9px;padding:8px}
.agenda-skeleton-row>i{width:34px;height:36px;border-radius:8px;background:linear-gradient(90deg,rgba(118,118,128,.055),rgba(118,118,128,.10),rgba(118,118,128,.055));background-size:220% 100%;animation:prontim-shimmer 1.4s ease-in-out infinite}
.agenda-skeleton-row>span{display:grid;gap:6px}
.agenda-skeleton-row b,.agenda-skeleton-row em{display:block;border-radius:999px;background:linear-gradient(90deg,rgba(118,118,128,.055),rgba(118,118,128,.10),rgba(118,118,128,.055));background-size:220% 100%;animation:prontim-shimmer 1.4s ease-in-out infinite}
.agenda-skeleton-row b{width:68%;height:9px}.agenda-skeleton-row em{width:42%;height:7px}
@keyframes prontim-shimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}
::view-transition-old(root){animation:prontim-view-old 160ms ease both}
::view-transition-new(root){animation:prontim-view-new 220ms var(--motion-ease-out) both}
@keyframes prontim-view-old{to{opacity:.25;transform:translateY(-2px)}}
@keyframes prontim-view-new{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
#toast{will-change:transform,opacity}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important}
  ::view-transition-old(root),::view-transition-new(root){animation:none!important}
  .task-row:hover,.my-task-row:hover,.home-attention-row:hover{transform:none!important}
}


/* V1.37.1 — Agenda: perfis reconhecidos + legibilidade */
.agenda-mini-event{
  min-height:22px !important;
  padding:4px 6px !important;
  font-size:8.9px !important;
  font-weight:620 !important;
  line-height:1.2 !important;
  letter-spacing:-.005em;
}
.agenda-mini-event > span:last-child{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.agenda-day-events{gap:4px !important}

.google-event-attendee{
  padding:4px 8px 4px 4px !important;
}
.google-event-attendee.is-prontim-user{
  border-color:rgba(93,92,252,.13);
  background:rgba(93,92,252,.028);
}
.google-event-attendee-avatar.has-profile{
  overflow:hidden;
  padding:0 !important;
  background:transparent !important;
}
.google-event-attendee-avatar.has-profile img,
.google-event-attendee-avatar.has-profile .avatar-img,
.google-event-attendee-avatar.has-profile > *{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
}
.google-event-attendee-copy strong{
  max-width:170px !important;
  font-size:9.2px !important;
  font-weight:620 !important;
}
.google-event-attendee-copy small{
  font-size:6.8px !important;
}


/* =========================================================
   PRONTIM! V1.38 — MINHAS TAREFAS + MASCOTES
   ========================================================= */
#mine-view.mine-hub-view{padding-top:24px;max-width:1480px;margin:0 auto}
.mine-hub-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:18px}
.mine-hub-head h1{font-family:"Rubik",system-ui,sans-serif;font-size:32px;font-weight:700;letter-spacing:-.045em;line-height:1.02;margin:2px 0 6px;color:#161616}
.mine-hub-head p{margin:0;color:#818187;font-size:12.5px}
.task-mascot-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 26px}
.task-mascot-card{
  position:relative;
  isolation:isolate;
  min-height:128px;
  overflow:hidden;
  border:1px solid var(--mascot-border);
  border-radius:20px;
  padding:16px 17px;
  background:linear-gradient(135deg,var(--mascot-bg) 0%,rgba(255,255,255,.90) 100%);
  text-align:left;
  box-shadow:0 1px 2px rgba(0,0,0,.012),0 7px 20px rgba(0,0,0,.018);
  transition:transform 160ms cubic-bezier(.2,.75,.25,1),box-shadow 160ms ease,border-color 160ms ease,background 160ms ease;
}
.task-mascot-card::before{
  content:"";
  position:absolute;
  width:118px;
  height:118px;
  right:-28px;
  top:-34px;
  z-index:-1;
  border-radius:50%;
  background:var(--mascot-glow);
  opacity:.48;
  filter:blur(1px);
}
.task-mascot-card:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(0,0,0,.035);
  border-color:color-mix(in srgb,var(--mascot-accent) 18%,rgba(60,60,67,.08));
}
.task-mascot-card.is-selected{
  border-color:color-mix(in srgb,var(--mascot-accent) 28%,rgba(60,60,67,.08));
  box-shadow:0 0 0 2px color-mix(in srgb,var(--mascot-accent) 7%,transparent),0 8px 22px rgba(0,0,0,.025);
}
.task-mascot-card.is-today{
  --mascot-accent:#4f72d8;
  --mascot-bg:#f5f8ff;
  --mascot-border:rgba(79,114,216,.10);
  --mascot-glow:rgba(79,114,216,.10);
}
.task-mascot-card.is-overdue{
  --mascot-accent:#df5a62;
  --mascot-bg:#fff7f7;
  --mascot-border:rgba(223,90,98,.10);
  --mascot-glow:rgba(223,90,98,.095);
}
.task-mascot-card.is-progress{
  --mascot-accent:#c48322;
  --mascot-bg:#fffaf1;
  --mascot-border:rgba(196,131,34,.11);
  --mascot-glow:rgba(196,131,34,.10);
}
.task-mascot-card.is-done{
  --mascot-accent:#3d9a63;
  --mascot-bg:#f4fbf7;
  --mascot-border:rgba(61,154,99,.10);
  --mascot-glow:rgba(61,154,99,.09);
}
.task-mascot-copy{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  height:100%;
}
.task-mascot-copy small{
  font-size:11.5px;
  font-weight:640;
  color:#343438;
  letter-spacing:-.01em;
}
.task-mascot-copy strong{
  margin-top:auto;
  font-family:"Rubik",system-ui,sans-serif;
  font-size:29px;
  line-height:1;
  font-weight:700;
  color:var(--mascot-accent);
  letter-spacing:-.045em;
}
.task-mascot-card img{
  position:absolute;
  z-index:1;
  right:5px;
  bottom:-8px;
  width:43%;
  height:104%;
  object-fit:contain;
  object-position:right bottom;
  pointer-events:none;
  user-select:none;
  opacity:.88;
  filter:saturate(.92) contrast(.98);
}
.mine-task-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 10px}
.mine-task-section-head h2{margin:0 0 3px;font-size:16px;font-weight:650;letter-spacing:-.025em;color:#161616}
.mine-task-section-head p{margin:0;color:#8a8a90;font-size:10.5px}
#mine-view #mine-filter{margin:0}
@media(max-width:1050px){.task-mascot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.task-mascot-card{min-height:122px}}
@media(max-width:700px){.task-mascot-grid{grid-template-columns:1fr 1fr;gap:8px}.task-mascot-card{min-height:105px;border-radius:18px;padding:13px}.task-mascot-card img{width:52%}.task-mascot-copy strong{font-size:25px}.mine-task-section-head{align-items:flex-start;flex-direction:column}.mine-hub-head h1{font-size:29px}}


/* V1.38.2 — cards de status mais sutis */
@media(max-width:760px){
  .task-mascot-card{
    min-height:116px;
    padding:14px 15px;
  }
  .task-mascot-card img{
    width:40%;
    opacity:.82;
  }
}


/* =========================================================
   V1.38.3 — Status: dropdown sem recorte
   O settings-panel padrão usa overflow:hidden para preservar
   os cantos. Na criação de status isso cortava o menu do
   custom select de Setor.
   ========================================================= */
#settings-statuses-panel{
  overflow:visible;
  position:relative;
  z-index:3;
}

#settings-statuses-panel .settings-panel-head{
  border-radius:var(--radius-md) var(--radius-md) 0 0;
  background:var(--surface);
}

#settings-statuses-panel .status-manager-card{
  position:relative;
  z-index:2;
  border-radius:0 0 var(--radius-md) var(--radius-md) !important;
}

#settings-statuses-panel .status-form{
  position:relative;
  z-index:5;
}

#settings-statuses-panel .status-form > label{
  min-width:0;
}

#settings-statuses-panel .custom-select{
  position:relative;
  z-index:6;
}

#settings-statuses-panel .custom-select.open{
  z-index:80;
}

#settings-statuses-panel .custom-select-menu{
  z-index:90;
  max-height:min(260px,40vh);
}


/* =========================================================
   V1.39.0 — Motion & Performance 2
   Movimento curto, funcional e com baixa interferência visual.
   ========================================================= */

/* Kanban: feedback físico discreto */
.kanban-card{
  transition:
    transform 150ms cubic-bezier(.2,.75,.25,1),
    box-shadow 150ms ease,
    border-color 150ms ease,
    opacity 120ms ease;
  will-change:auto;
}
.kanban-card[draggable="true"]:active{cursor:grabbing}
.kanban-card.dragging{
  opacity:.58;
  transform:rotate(.35deg) scale(.985);
  box-shadow:0 14px 32px rgba(22,22,22,.10);
}
.kanban-cards{
  transition:background-color 140ms ease,box-shadow 140ms ease;
}
.kanban-cards.drag-over{
  background:rgba(93,92,252,.035);
  box-shadow:inset 0 0 0 1px rgba(93,92,252,.13);
  border-radius:14px;
}

/* Sidebar reorder */
[data-sector-drag-row]{
  transition:transform 140ms cubic-bezier(.2,.75,.25,1),opacity 120ms ease,background 120ms ease;
}
[data-sector-drag-row].is-sector-dragging{
  opacity:.55;
  transform:scale(.985);
}
[data-sector-drag-row].is-sector-drop-target{
  transform:translateY(1px);
}
[data-sector-drag-row].is-sector-drop-target::before{
  opacity:.8;
  transition:opacity 120ms ease;
}

/* Pills: sensação de componente interativo sem "efeito brinquedo" */
.status-pill[role="button"],
.priority-pill[role="button"]{
  transition:transform 105ms ease,filter 120ms ease,box-shadow 120ms ease;
}
.status-pill[role="button"]:hover,
.priority-pill[role="button"]:hover{
  transform:translateY(-1px);
  filter:brightness(.985);
}
.status-pill[role="button"]:active,
.priority-pill[role="button"]:active{transform:scale(.975)}

/* Popovers rápidos com composição mais leve */
.status-quick-popover,
.priority-quick-popover,
.quick-label-popover{
  transform-origin:top left;
  will-change:transform,opacity;
}

/* Botões: loading preserva geometria */
.btn.is-motion-loading,
button.is-motion-loading{
  position:relative;
  pointer-events:none;
}
.btn.is-motion-loading > :not(.motion-spinner),
button.is-motion-loading > :not(.motion-spinner){
  opacity:.62;
}

/* Skeleton base reutilizável para novas áreas */
.prontim-skeleton{
  position:relative;
  overflow:hidden;
  background:#f1f1f3;
  border-radius:8px;
}
.prontim-skeleton::after{
  content:"";
  position:absolute;
  inset:0;
  transform:translateX(-100%);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.72),transparent);
  animation:prontimSkeleton 1.15s ease-in-out infinite;
}
@keyframes prontimSkeleton{to{transform:translateX(100%)}}

/* Focus mais suave e consistente */
input,textarea,.custom-select-trigger{
  transition:border-color 130ms ease,box-shadow 130ms ease,background-color 130ms ease;
}

/* Performance: não renderiza visualmente blocos muito abaixo do viewport */
.status-list,
.inbox-list,
.activity-list{
  content-visibility:auto;
  contain-intrinsic-size:1px 420px;
}

@media(prefers-reduced-motion:reduce){
  .kanban-card,
  .kanban-cards,
  [data-sector-drag-row],
  .status-pill[role="button"],
  .priority-pill[role="button"]{
    transition:none !important;
    transform:none !important;
  }
  .prontim-skeleton::after{animation:none}
}


/* =========================================================
   V1.39.1 — Agenda Auto Sync + legibilidade
   ========================================================= */
.agenda-sync-status{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  min-height:12px;
  color:#a0a0a6;
  font-size:7px;
  font-weight:520;
  letter-spacing:0;
}
.agenda-sync-status.is-syncing::before{
  content:"";
  width:5px;
  height:5px;
  margin-right:4px;
  border:1px solid #a0a0a6;
  border-right-color:transparent;
  border-radius:50%;
  animation:prontim-spin .7s linear infinite;
}

.agenda-mini-event-copy{
  min-width:0;
  display:flex;
  align-items:center;
  gap:3px;
  overflow:hidden;
}
.agenda-mini-event-time{
  flex:0 0 auto;
  font-size:8.5px;
  font-weight:500;
  opacity:.82;
}
.agenda-mini-event-title{
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:8.8px;
  font-weight:700;
  letter-spacing:-.01em;
}
.agenda-event-copy strong{
  font-weight:700 !important;
  color:#303035 !important;
}


/* =========================================================
   V1.40.0 — Calendário de tarefas do subsetor
   ========================================================= */
.task-calendar-view{border:1px solid #e7e7ea;border-radius:18px;background:#fff;overflow:visible}
.task-calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border-bottom:1px solid #ededf0;flex-wrap:wrap}
.task-calendar-nav,.task-calendar-filters{display:flex;align-items:center;gap:7px}
.task-calendar-nav strong{min-width:125px;font-family:"Rubik",system-ui,sans-serif;font-size:14px;color:#161616;text-align:center}
.task-calendar-filters .custom-select{min-width:118px}
.task-calendar-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-bottom:1px solid #ededf0;background:#fafafa}
.task-calendar-weekdays span{padding:8px 10px;font-size:9px;font-weight:650;color:#8b8b91;text-align:right}
.task-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.task-calendar-day{min-width:0;min-height:112px;padding:7px;border-right:1px solid #efeff1;border-bottom:1px solid #efeff1;background:#fff;transition:background 120ms ease,box-shadow 120ms ease}
.task-calendar-day:nth-child(7n){border-right:0}
.task-calendar-day:nth-last-child(-n+7){border-bottom:0}
.task-calendar-day.is-outside{background:#fbfbfc}
.task-calendar-day.is-outside .task-calendar-day-number{opacity:.35}
.task-calendar-day.is-today .task-calendar-day-number{background:#161616;color:#fff}
.task-calendar-day.is-drop-target{background:rgba(93,92,252,.035);box-shadow:inset 0 0 0 1px rgba(93,92,252,.16)}
.task-calendar-day-number{display:flex;width:24px;height:24px;margin-left:auto;align-items:center;justify-content:center;border:0;border-radius:50%;background:transparent;color:#55555b;font-size:10px;font-weight:650;cursor:pointer}
.task-calendar-day-events{display:flex;flex-direction:column;gap:4px;margin-top:5px}
.task-calendar-event{display:flex;align-items:center;gap:5px;width:100%;min-width:0;padding:5px 6px;border:1px solid color-mix(in srgb,var(--calendar-status) 15%,transparent);border-radius:7px;background:color-mix(in srgb,var(--calendar-status) 6%,#fff);color:#252529;text-align:left;cursor:pointer;transition:transform 120ms ease,opacity 120ms ease,box-shadow 120ms ease}
.task-calendar-event:hover{transform:translateY(-1px);box-shadow:0 3px 8px rgba(0,0,0,.04)}
.task-calendar-event.is-dragging{opacity:.45;transform:scale(.98)}
.task-calendar-event-state{flex:0 0 auto;color:var(--calendar-status);font-size:10px;font-weight:800}
.task-calendar-event-copy{display:flex;align-items:baseline;gap:4px;min-width:0;overflow:hidden}
.task-calendar-event-copy small{flex:0 0 auto;color:#8a8a90;font-size:7.5px;font-weight:550}
.task-calendar-event-copy strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8.5px;font-weight:700}
.task-calendar-event.is-done{opacity:.58}
.task-calendar-event.is-done .task-calendar-event-copy strong{text-decoration:line-through;text-decoration-thickness:1px}
.task-calendar-event.is-late{border-color:rgba(214,69,75,.18);background:#fff7f7}
.task-calendar-event.is-late .task-calendar-event-state{color:#d6454b}
.task-calendar-legend{display:flex;align-items:center;gap:14px;padding:9px 14px;color:#96969c;font-size:8px;border-top:1px solid #ededf0}
.task-calendar-legend span{display:flex;align-items:center;gap:5px}
.calendar-legend-dot{width:6px;height:6px;border-radius:50%;background:#8e8e93}.calendar-legend-dot.is-done{background:#4a9d69}.calendar-legend-dot.is-late{background:#d6454b}
.task-planning-grid{grid-template-columns:minmax(0,1fr) minmax(180px,.7fr) minmax(210px,.85fr)}
.task-scheduled-field .field-help{display:block;margin-top:5px;font-size:8px;color:#99999f}
@media(max-width:980px){.task-calendar-day{min-height:96px}.task-planning-grid{grid-template-columns:1fr 1fr}.task-scheduled-field{grid-column:1/-1}}
@media(max-width:720px){.task-calendar-view{overflow-x:auto}.task-calendar-toolbar,.task-calendar-weekdays,.task-calendar-grid,.task-calendar-legend{min-width:720px}.task-calendar-day{min-height:90px}}


/* =========================================================
   V1.40.1 — compatibilidade com tarefas já existentes
   ========================================================= */
.task-calendar-event.is-due-fallback{
  background:color-mix(in srgb,var(--calendar-status) 3%,#fff);
  border-style:dashed;
  opacity:.88;
}
.task-calendar-event.is-due-fallback .task-calendar-source-label{
  flex:0 0 auto;
  padding:1px 4px;
  border-radius:999px;
  background:rgba(118,118,128,.07);
  color:#8b8b91;
  font-size:6.5px;
  font-weight:650;
  text-transform:uppercase;
  letter-spacing:.02em;
}

.task-calendar-undated{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:12px;
  padding:8px 12px;
  border-bottom:1px solid #ededf0;
  background:#fcfcfd;
}
.task-calendar-undated[hidden]{display:none!important}
.task-calendar-undated-head{
  display:grid;
  gap:1px;
  white-space:nowrap;
}
.task-calendar-undated-head>span{
  color:#5f5f65;
  font-size:9px;
  font-weight:650;
}
.task-calendar-undated-head small{
  color:#9a9aa0;
  font-size:7px;
}
.task-calendar-undated-list{
  min-width:0;
  display:flex;
  align-items:center;
  gap:5px;
  overflow-x:auto;
  scrollbar-width:thin;
}
.task-calendar-undated-task{
  max-width:190px;
  min-width:0;
  display:inline-flex;
  align-items:center;
  gap:5px;
  flex:0 0 auto;
  padding:5px 8px;
  border:1px solid rgba(60,60,67,.075);
  border-radius:999px;
  background:#fff;
  color:#55555a;
  cursor:grab;
}
.task-calendar-undated-task>span{
  width:5px;
  height:5px;
  flex:0 0 5px;
  border-radius:50%;
  background:var(--calendar-status);
}
.task-calendar-undated-task strong{
  max-width:155px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:8px;
  font-weight:600;
}
.task-calendar-undated-task.is-dragging{
  opacity:.4;
}
@media(max-width:720px){
  .task-calendar-undated{
    min-width:720px;
  }
}


/* =========================================================
   V1.40.2 — Planejamento compacto e lateral
   ========================================================= */
.task-planning-grid.task-planning-grid-v2{
  display:grid;
  grid-template-columns:minmax(260px,1.15fr) minmax(205px,.72fr) minmax(235px,.86fr);
  gap:10px;
  align-items:start;
}
.planning-control-card{
  min-width:0;
  padding:10px;
  border:1px solid rgba(60,60,67,.07);
  border-radius:12px;
  background:#fff;
}
.planning-control-card .task-field-label{
  margin:0 0 7px;
  color:#66666c;
  font-size:9.5px;
  font-weight:600;
}

/* Prioridade: compacta, sem ocupar toda a largura da seção */
.priority-control.priority-control-compact{
  display:flex;
  align-items:center;
  gap:3px;
  width:100%;
  padding:3px;
  border:0;
  border-radius:9px;
  background:#f5f5f7;
}
.priority-control.priority-control-compact button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  flex:1 1 0;
  min-width:0;
  height:32px;
  padding:0 7px;
  border-radius:7px;
  font-size:9.5px;
  font-weight:580;
}
.priority-control.priority-control-compact button i{
  display:block;
  width:5px;
  height:5px;
  flex:0 0 5px;
  border-radius:50%;
  background:#b5b5ba;
}
.priority-control.priority-control-compact button[data-task-priority="medium"] i{background:#d29a38}
.priority-control.priority-control-compact button[data-task-priority="high"] i{background:#df7854}
.priority-control.priority-control-compact button[data-task-priority="urgent"] i{background:#d94b52}
.priority-control.priority-control-compact button.active{
  background:#fff;
  box-shadow:0 1px 3px rgba(0,0,0,.055),0 0 0 1px rgba(60,60,67,.035);
}
.priority-control.priority-control-compact button[data-task-priority="low"].active{color:#65656b}
.priority-control.priority-control-compact button[data-task-priority="medium"].active{color:#9a6818}
.priority-control.priority-control-compact button[data-task-priority="high"].active{color:#b95330}
.priority-control.priority-control-compact button[data-task-priority="urgent"].active{color:#c3313b}

/* Date / datetime: superfície própria e ícone consistente */
.planning-date-shell{
  position:relative;
  display:flex;
  align-items:center;
  width:100%;
  height:38px;
  border:1px solid #e4e4e8;
  border-radius:9px;
  background:#fafafa;
  transition:border-color 130ms ease,box-shadow 130ms ease,background 130ms ease;
}
.planning-date-shell:focus-within{
  border-color:#c9c9cf;
  background:#fff;
  box-shadow:0 0 0 3px rgba(60,60,67,.045);
}
.planning-date-icon{
  position:absolute;
  left:11px;
  width:14px;
  height:14px;
  fill:none;
  stroke:#85858b;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
  pointer-events:none;
}
.planning-date-input{
  width:100%;
  height:100%;
  min-width:0;
  padding:0 10px 0 34px!important;
  border:0!important;
  outline:0!important;
  border-radius:9px!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#36363a;
  font-family:inherit;
  font-size:10.5px;
  font-weight:520;
}
.planning-date-input::-webkit-calendar-picker-indicator{
  width:15px;
  height:15px;
  margin:0;
  padding:5px;
  border-radius:6px;
  cursor:pointer;
  opacity:.55;
}
.planning-date-input::-webkit-calendar-picker-indicator:hover{
  background:#ededf0;
  opacity:.8;
}
.task-planning-grid-v2 .date-shortcuts{
  gap:3px;
  margin-top:2px;
  flex-wrap:nowrap;
}
.task-planning-grid-v2 .date-shortcuts button{
  padding:3px 5px;
  font-size:7.5px;
  border-radius:5px;
}
.task-planning-grid-v2 .date-shortcuts button:last-child{
  margin-left:auto;
}
.task-planning-grid-v2 .field-help{
  margin-top:2px;
  font-size:7.5px;
  line-height:1.25;
  color:#9a9aa0;
}

@media(max-width:980px){
  .task-planning-grid.task-planning-grid-v2{
    grid-template-columns:1fr 1fr;
  }
  .task-planning-grid-v2 .task-priority-field{
    grid-column:1/-1;
  }
}
@media(max-width:680px){
  .task-planning-grid.task-planning-grid-v2{
    grid-template-columns:1fr;
  }
  .task-planning-grid-v2 .task-priority-field{
    grid-column:auto;
  }
}


/* =========================================================
   V1.40.3 — Planejamento lateral + date picker Prontim!
   ========================================================= */
.task-planning-grid.task-planning-grid-v2{
  grid-template-columns:minmax(250px,.95fr) minmax(210px,.78fr) minmax(235px,.9fr) !important;
  align-items:start;
}

/* Remove visual dependence on browser-native date controls */
.planning-date-trigger{
  width:100%;
  height:42px;
  display:grid;
  grid-template-columns:20px minmax(0,1fr) 16px;
  align-items:center;
  gap:8px;
  padding:0 10px;
  border:1px solid #e4e4e8;
  border-radius:10px;
  background:#fafafa;
  color:#55555b;
  text-align:left;
  transition:border-color 130ms ease,box-shadow 130ms ease,background 130ms ease,transform 90ms ease;
}
.planning-date-trigger:hover{
  background:#fff;
  border-color:#d4d4d9;
}
.planning-date-trigger:active{transform:scale(.995)}
.planning-date-trigger.has-value{
  background:#fff;
  border-color:#dedee3;
}
.planning-date-trigger:disabled{
  opacity:.45;
  cursor:not-allowed;
}
.planning-date-trigger .planning-date-icon{
  position:static;
  width:15px;
  height:15px;
  stroke:#85858b;
}
.planning-date-trigger-copy{
  min-width:0;
  display:grid;
  gap:1px;
}
.planning-date-trigger-copy strong{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:#444449;
  font-size:9.7px;
  font-weight:620;
}
.planning-date-trigger-copy small{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:#a0a0a6;
  font-size:7.3px;
  font-weight:480;
}
.planning-date-chevron{
  width:13px;
  height:13px;
  fill:none;
  stroke:#aaaab0;
  stroke-width:1.8;
}

/* Priority even more compact so all 3 controls breathe */
.task-planning-grid-v2 .priority-control-compact{
  height:42px;
}
.task-planning-grid-v2 .priority-control-compact button{
  height:34px;
  padding:0 6px;
  font-size:9px;
}

/* Modern shared picker */
.planning-date-backdrop{
  position:fixed;
  inset:0;
  z-index:245;
  background:rgba(20,20,22,.18);
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
}
.planning-date-popover{
  position:fixed;
  z-index:246;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(390px,calc(100vw - 28px));
  overflow:hidden;
  border:1px solid rgba(60,60,67,.10);
  border-radius:18px;
  background:rgba(255,255,255,.985);
  box-shadow:0 28px 80px rgba(0,0,0,.16);
}
.planning-date-popover[hidden],
.planning-date-backdrop[hidden]{display:none!important}

.planning-date-popover-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:15px 16px 10px;
}
.planning-date-popover-head>div{display:grid;gap:2px}
.planning-date-popover-head span{
  color:#9a9aa0;
  font-size:7px;
  font-weight:620;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.planning-date-popover-head strong{
  color:#161616;
  font-family:"Rubik",system-ui,sans-serif;
  font-size:15px;
  font-weight:700;
  letter-spacing:-.025em;
}

.planning-calendar-head{
  display:grid;
  grid-template-columns:30px 1fr 30px;
  align-items:center;
  gap:8px;
  padding:4px 14px 9px;
}
.planning-calendar-head>strong{
  text-align:center;
  color:#4b4b50;
  font-size:10.5px;
  font-weight:650;
}
.planning-calendar-weekdays,
.planning-date-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  padding:0 13px;
}
.planning-calendar-weekdays{
  margin-bottom:3px;
}
.planning-calendar-weekdays span{
  padding:4px 0;
  color:#aaaab0;
  font-size:7px;
  font-weight:650;
  text-align:center;
}
.planning-date-grid{
  gap:2px;
}
.planning-date-day{
  width:34px;
  height:34px;
  justify-self:center;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#4d4d52;
  font-size:9.5px;
  font-weight:560;
  transition:background 110ms ease,color 110ms ease,transform 90ms ease;
}
.planning-date-day:hover{
  background:#f2f2f4;
}
.planning-date-day:active{transform:scale(.94)}
.planning-date-day.is-outside{
  color:#c0c0c5;
}
.planning-date-day.is-today{
  box-shadow:inset 0 0 0 1px rgba(93,92,252,.35);
  color:#5d5cfc;
}
.planning-date-day.is-selected{
  background:#5d5cfc;
  color:#fff;
  box-shadow:none;
}

.planning-time-section{
  margin:11px 13px 0;
  padding:10px;
  border:1px solid rgba(60,60,67,.065);
  border-radius:12px;
  background:#fafafa;
}
.planning-time-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:7px;
}
.planning-time-head span{
  color:#5f5f65;
  font-size:8.5px;
  font-weight:650;
}
.planning-time-head small{
  color:#aaaab0;
  font-size:7px;
}
.planning-time-row{
  display:flex;
  align-items:center;
  gap:5px;
  flex-wrap:wrap;
}
.planning-time-chip{
  height:28px;
  padding:0 8px;
  border:1px solid #e5e5e9;
  border-radius:8px;
  background:#fff;
  color:#68686e;
  font-size:8px;
  font-weight:580;
}
.planning-time-chip:hover{
  border-color:#d5d5da;
  background:#f7f7f8;
}
.planning-time-chip.is-selected{
  border-color:rgba(93,92,252,.22);
  background:rgba(93,92,252,.07);
  color:#5453da;
}
.planning-time-custom{
  height:28px;
  display:flex;
  align-items:center;
  gap:5px;
  padding:0 7px;
  margin-left:auto;
  border:1px solid #e5e5e9;
  border-radius:8px;
  background:#fff;
}
.planning-time-custom svg{
  width:12px;
  height:12px;
  fill:none;
  stroke:#8e8e93;
  stroke-width:1.6;
}
.planning-time-custom input{
  width:68px;
  height:26px;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  font-size:8px;
  color:#55555a;
}
.planning-time-custom input::-webkit-calendar-picker-indicator{
  opacity:.45;
}

.planning-date-popover-foot{
  display:flex;
  align-items:center;
  gap:6px;
  padding:11px 13px 13px;
  margin-top:10px;
  border-top:1px solid rgba(60,60,67,.055);
}

/* Keep all three controls truly lateral on normal desktop drawer widths */
@media(min-width:900px){
  .task-planning-grid.task-planning-grid-v2{
    grid-template-columns:minmax(240px,.95fr) minmax(205px,.78fr) minmax(225px,.9fr)!important;
  }
}
@media(max-width:899px){
  .task-planning-grid.task-planning-grid-v2{
    grid-template-columns:1fr 1fr!important;
  }
  .task-planning-grid-v2 .task-priority-field{
    grid-column:1/-1;
  }
}
@media(max-width:620px){
  .task-planning-grid.task-planning-grid-v2{
    grid-template-columns:1fr!important;
  }
  .task-planning-grid-v2 .task-priority-field{
    grid-column:auto;
  }
}
@media(prefers-reduced-motion:reduce){
  .planning-date-trigger,
  .planning-date-day{transition:none!important}
}


/* =========================================================
   V1.40.4 — Planejamento: 3 campos realmente lado a lado
   ========================================================= */

/* Sobrescreve regras responsivas antigas que faziam Prioridade ocupar
   uma linha inteira e Data programada cair para baixo. */
.task-planning-grid.task-planning-grid-v2{
  display:grid !important;
  grid-template-columns:minmax(0,1.15fr) minmax(0,.72fr) minmax(0,.82fr) !important;
  gap:10px !important;
  align-items:start !important;
}

.task-planning-grid-v2 > .task-priority-field,
.task-planning-grid-v2 > .task-date-field,
.task-planning-grid-v2 > .task-scheduled-field{
  grid-column:auto !important;
  min-width:0 !important;
  width:auto !important;
}

/* Prioridade fica mais enxuta para equilibrar a linha. */
.task-planning-grid-v2 .priority-control-compact{
  width:100% !important;
  min-width:0;
}

.task-planning-grid-v2 .priority-control-compact button{
  min-width:0;
  padding-left:4px;
  padding-right:4px;
}

/* As caixas de Prazo e Data programada usam toda a própria coluna,
   sem forçar largura mínima que cause quebra. */
.task-planning-grid-v2 .planning-date-trigger{
  width:100%;
  min-width:0;
}

.task-planning-grid-v2 .planning-date-trigger-copy{
  min-width:0;
}

/* Só empilha em telas realmente estreitas. */
@media(max-width:720px){
  .task-planning-grid.task-planning-grid-v2{
    grid-template-columns:1fr !important;
  }
}

@media(min-width:721px){
  .task-planning-grid.task-planning-grid-v2{
    grid-template-columns:minmax(0,1.15fr) minmax(0,.72fr) minmax(0,.82fr) !important;
  }
  .task-planning-grid-v2 > .task-priority-field,
  .task-planning-grid-v2 > .task-date-field,
  .task-planning-grid-v2 > .task-scheduled-field{
    grid-column:auto !important;
  }
}


/* =========================================================
   V1.40.5 — Planejamento: proporções compactas reais
   ========================================================= */

/* A seção de planejamento usa 3 colunas compactas e equilibradas.
   Prioridade deixa de ocupar metade do drawer. */
.task-planning-grid.task-planning-grid-v2{
  display:grid !important;
  grid-template-columns:minmax(300px,1.35fr) minmax(180px,.72fr) minmax(210px,.82fr) !important;
  gap:10px !important;
  align-items:start !important;
}

.task-planning-grid-v2 > .planning-control-card{
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  grid-column:auto !important;
  box-sizing:border-box;
}

/* Prioridade mais curta internamente */
.task-planning-grid-v2 .priority-control-compact{
  width:100% !important;
  min-width:0 !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
}

.task-planning-grid-v2 .priority-control-compact button{
  min-width:0 !important;
  padding-left:3px !important;
  padding-right:3px !important;
  font-size:8.7px !important;
}

/* Prazo e Data programada compactos, sem crescer além da coluna */
.task-planning-grid-v2 .planning-date-trigger{
  min-width:0 !important;
  width:100% !important;
  max-width:100% !important;
  height:40px !important;
}

.task-planning-grid-v2 .planning-date-trigger-copy strong{
  font-size:9px !important;
}

.task-planning-grid-v2 .planning-date-trigger-copy small{
  font-size:7px !important;
}

/* Reduz padding das 3 caixas */
.task-planning-grid-v2 .planning-control-card{
  padding:9px !important;
  border-radius:11px !important;
}

/* Desktop: sempre 3 lado a lado enquanto houver espaço real */
@media(min-width:760px){
  .task-planning-grid.task-planning-grid-v2{
    grid-template-columns:minmax(280px,1.28fr) minmax(175px,.7fr) minmax(205px,.8fr) !important;
  }
}

/* Só empilha abaixo de 760px */
@media(max-width:759px){
  .task-planning-grid.task-planning-grid-v2{
    grid-template-columns:1fr !important;
  }
}


/* =========================================================
   V1.40.6 — Planejamento horizontal + date picker compacto
   + descrição enriquecida
   ========================================================= */

/* 3 controles realmente na MESMA LINHA. Flex evita qualquer herança
   de grid-column das versões anteriores. */
.task-planning-grid.task-planning-grid-v2{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:flex-start !important;
  gap:8px !important;
  width:100% !important;
}

.task-planning-grid-v2 > .task-priority-field{
  flex:1.15 1 0 !important;
  width:0 !important;
  min-width:260px !important;
  max-width:none !important;
  grid-column:auto !important;
}
.task-planning-grid-v2 > .task-date-field:not(.task-scheduled-field){
  flex:.67 1 0 !important;
  width:0 !important;
  min-width:175px !important;
  max-width:none !important;
  grid-column:auto !important;
}
.task-planning-grid-v2 > .task-scheduled-field{
  flex:.78 1 0 !important;
  width:0 !important;
  min-width:205px !important;
  max-width:none !important;
  grid-column:auto !important;
}

.task-planning-grid-v2 .planning-control-card{
  padding:8px !important;
  border-radius:10px !important;
}
.task-planning-grid-v2 .priority-control-compact,
.task-planning-grid-v2 .planning-date-trigger{
  height:38px !important;
}
.task-planning-grid-v2 .priority-control-compact button{
  height:32px !important;
  padding:0 3px !important;
  font-size:8.5px !important;
}
.task-planning-grid-v2 .task-field-label{
  margin-bottom:5px !important;
  font-size:8.8px !important;
}
.task-planning-grid-v2 .field-help{
  display:none !important;
}
.task-planning-grid-v2 .date-shortcuts{
  margin-top:1px;
}
.task-planning-grid-v2 .date-shortcuts button{
  padding:2px 4px !important;
  font-size:7px !important;
}

/* Mantém a linha horizontal até uma largura realmente pequena. */
@media(max-width:760px){
  .task-planning-grid.task-planning-grid-v2{
    flex-wrap:wrap !important;
  }
  .task-planning-grid-v2 > .task-priority-field,
  .task-planning-grid-v2 > .task-date-field:not(.task-scheduled-field),
  .task-planning-grid-v2 > .task-scheduled-field{
    flex:1 1 100% !important;
    width:100% !important;
    min-width:0 !important;
  }
}

/* Date picker menor e sempre dentro do viewport */
.planning-date-popover.planning-date-popover-compact{
  left:12px;
  top:12px;
  transform:none !important;
  width:min(318px,calc(100vw - 24px)) !important;
  max-height:calc(100vh - 20px) !important;
  overflow:auto !important;
  border-radius:14px !important;
  box-shadow:0 18px 52px rgba(0,0,0,.16) !important;
}

.planning-date-popover-compact .planning-date-popover-head{
  padding:11px 12px 7px !important;
}
.planning-date-popover-compact .planning-date-popover-head strong{
  font-size:13px !important;
}
.planning-date-popover-compact .planning-calendar-head{
  grid-template-columns:26px 1fr 26px !important;
  padding:2px 10px 6px !important;
}
.planning-date-popover-compact .planning-calendar-head>strong{
  font-size:9.5px !important;
}
.planning-date-popover-compact .planning-calendar-weekdays,
.planning-date-popover-compact .planning-date-grid{
  padding-left:9px !important;
  padding-right:9px !important;
}
.planning-date-popover-compact .planning-date-grid{
  gap:1px !important;
}
.planning-date-popover-compact .planning-date-day{
  width:29px !important;
  height:29px !important;
  border-radius:8px !important;
  font-size:8.5px !important;
}
.planning-date-popover-compact .planning-time-section{
  margin:7px 9px 0 !important;
  padding:8px !important;
}
.planning-date-popover-compact .planning-time-chip{
  height:25px !important;
  padding:0 6px !important;
  font-size:7.5px !important;
}
.planning-date-popover-compact .planning-time-custom{
  height:25px !important;
}
.planning-date-popover-compact .planning-date-popover-foot{
  padding:8px 9px 9px !important;
  margin-top:7px !important;
}

/* Abertura ancorada; backdrop serve só para click-outside */
.planning-date-backdrop{
  background:transparent !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

/* Remove os textos explicativos dos cabeçalhos sem deixar espaço extra. */
.task-section-heading > div > span:empty{display:none}
.task-section-heading{
  margin-bottom:7px !important;
}

/* Editor de descrição */
.task-description-editor{
  overflow:hidden;
  border:1px solid #e1e1e5;
  border-radius:11px;
  background:#fff;
  transition:border-color 130ms ease,box-shadow 130ms ease;
}
.task-description-editor:focus-within{
  border-color:#c9c9cf;
  box-shadow:0 0 0 3px rgba(60,60,67,.04);
}
.task-description-toolbar{
  display:flex;
  align-items:center;
  gap:2px;
  min-height:34px;
  padding:4px 6px;
  border-bottom:1px solid #eeeeef;
  background:#fafafa;
}
.task-description-toolbar button{
  width:27px;
  height:25px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#6f6f75;
  font-size:10px;
}
.task-description-toolbar button:hover{
  background:#ededf0;
  color:#161616;
}
.task-description-toolbar button:disabled{
  opacity:.35;
}
.task-description-toolbar .icon-svg{
  width:13px;
  height:13px;
}
.description-toolbar-divider{
  width:1px;
  height:16px;
  margin:0 3px;
  background:#e0e0e3;
}
.task-description-editor #task-description{
  width:100%;
  min-height:145px !important;
  padding:11px 12px !important;
  border:0 !important;
  border-radius:0 !important;
  background:#fff !important;
  box-shadow:none !important;
  resize:vertical;
  color:#39393e;
  font-size:11.5px !important;
  line-height:1.55 !important;
  font-family:inherit;
}
.task-description-editor #task-description:focus{
  outline:0 !important;
  box-shadow:none !important;
}

/* =========================================================
   V1.40.7 — Checklist/recorrência compactos + calendário
   ========================================================= */
.task-inline-collapsible{border-top:1px solid rgba(60,60,67,.055)}
.task-inline-trigger{width:100%;min-height:38px;display:grid;grid-template-columns:17px minmax(0,1fr) auto 14px;align-items:center;gap:7px;padding:7px 2px;border:0;background:transparent;color:#65656b;text-align:left}
.task-inline-trigger:hover{color:#303035}
.task-inline-trigger>.icon-svg:first-child{width:14px;height:14px;color:#8d8d93}
.task-inline-trigger>span{font-size:9.5px;font-weight:560}
.task-inline-trigger>small{color:#aaaab0;font-size:7.5px;font-weight:500}
.task-inline-chevron{width:12px!important;height:12px!important;color:#aaaab0;transition:transform 140ms ease}
.task-inline-trigger.is-open .task-inline-chevron{transform:rotate(180deg)}
.task-inline-content{padding:2px 0 10px 24px}
.task-inline-content[hidden]{display:none!important}

.task-recurrence-collapsible{margin-top:-2px;border-top:0;border-bottom:1px solid rgba(60,60,67,.055)}
.task-recurrence-content .task-recurrence-grid{grid-template-columns:minmax(150px,.8fr) minmax(130px,.65fr) minmax(150px,.8fr);gap:7px}
.task-recurrence-content .field-help{margin-top:5px;font-size:7.5px}

.task-checklist-collapsible{margin-top:2px}
.task-checklist-content .micro-empty{display:none!important}
.task-checklist-content .subtask-list:empty{display:none}
.task-checklist-add-row{margin-top:3px}
.task-checklist-add-row input{min-height:34px}
.task-checklist-content .subtask-item{min-height:32px}

.task-calendar-day{position:relative;cursor:pointer;padding:7px!important;transition:background-color 120ms ease,box-shadow 120ms ease}
.task-calendar-day:hover{background:#fbfbfc;box-shadow:inset 0 0 0 1px rgba(60,60,67,.055)}
.task-calendar-day.is-today{background:rgba(93,92,252,.018)}
.task-calendar-day.is-today:hover{background:rgba(93,92,252,.03)}
.task-calendar-day-head{display:flex;align-items:center;justify-content:space-between;min-height:24px;margin-bottom:3px}
.task-calendar-day-number{width:23px!important;height:23px!important;display:grid!important;place-items:center;margin:0!important;border-radius:50%;color:#606066;font-size:9px!important;font-weight:650!important;pointer-events:none}
.task-calendar-day.is-today .task-calendar-day-number{background:#5d5cfc!important;color:#fff!important}
.task-calendar-day-count{min-width:17px;height:17px;display:grid;place-items:center;padding:0 4px;border-radius:999px;background:#f0f0f2;color:#8c8c92;font-size:6.8px;font-weight:650}
.task-calendar-day-add{width:17px;height:17px;display:grid;place-items:center;border-radius:50%;color:#b4b4b9;font-size:12px;font-weight:400;opacity:0;transition:opacity 110ms ease,background 110ms ease}
.task-calendar-day:hover .task-calendar-day-add{opacity:1;background:#f0f0f2}
.task-calendar-day-events{position:relative;z-index:2}
.task-calendar-event{position:relative;overflow:hidden;padding:5px 6px 5px 8px!important;border-color:rgba(60,60,67,.055)!important;background:#fff!important;box-shadow:0 1px 2px rgba(0,0,0,.018)}
.task-calendar-event::before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--calendar-status);opacity:.8}
.task-calendar-event:hover{box-shadow:0 4px 10px rgba(0,0,0,.05)!important;border-color:rgba(60,60,67,.09)!important}
.task-calendar-event-copy strong{font-size:8.8px!important;font-weight:680!important;color:#38383d!important}
.task-calendar-event-copy small{font-size:7px!important}
.task-calendar-event-state{font-size:8px!important}
.task-calendar-event.is-done{background:#fafafa!important}
.task-calendar-event.is-late{background:#fff8f8!important}
.task-calendar-day.is-outside{background:#fcfcfd}
.task-calendar-day.is-outside .task-calendar-day-head{opacity:.45}
@media(max-width:760px){.task-recurrence-content .task-recurrence-grid{grid-template-columns:1fr}}


/* =========================================================
   V1.40.8 — Aprovação recolhível + timeline unificada
   ========================================================= */
.task-approval-collapsible{
  margin-top:2px;
  border-top:1px solid rgba(60,60,67,.055);
}
.task-approval-content{
  padding-bottom:10px;
}

/* Remove qualquer resquício visual das antigas tabs */
.task-collab-section .task-tabs{display:none!important}

/* Timeline: comentários têm foco, atividade vira contexto leve */
.task-timeline{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.timeline-comment{
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  gap:8px;
  align-items:flex-start;
}
.timeline-comment-avatar{
  width:28px;
  height:28px;
}
.timeline-comment-avatar .avatar-image,
.timeline-comment-avatar img{
  width:28px;
  height:28px;
  border-radius:50%;
  object-fit:cover;
}
.timeline-comment-body{
  min-width:0;
  padding:8px 10px;
  border:1px solid #e6e6e9;
  border-radius:11px;
  background:#fff;
}
.timeline-comment-meta{
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:4px;
}
.timeline-comment-meta strong{
  color:#343439;
  font-size:9.3px;
  font-weight:650;
}
.timeline-comment-meta time{
  margin-left:auto;
  color:#aaaab0;
  font-size:6.8px;
}
.timeline-comment-text{
  color:#3f3f44;
  font-size:10px;
  line-height:1.5;
  white-space:pre-wrap;
}
.timeline-activity{
  display:grid;
  grid-template-columns:7px minmax(0,1fr) auto;
  align-items:center;
  gap:6px;
  padding:0 4px 0 9px;
  color:#9a9aa0;
  font-size:7.8px;
  line-height:1.35;
}
.timeline-activity-dot{
  width:4px;
  height:4px;
  border-radius:50%;
  background:#c7c7cc;
}
.timeline-activity time{
  color:#b5b5ba;
  font-size:6.6px;
}

/* Comentários com anexos continuam prioritários */
.timeline-comment .comment-attachment-card{
  margin-top:7px;
}

/* Feed mais limpo */
.comment-list{
  padding-top:4px;
}

/* V1.40.9 — histórico existente dentro da conversa */
.timeline-activity{
  opacity:.78;
}
.timeline-comment{
  opacity:1;
}
.timeline-comment-files{
  margin-top:7px;
}

/* V1.40.11 — legibilidade do histórico */
.timeline-activity{
  font-size:8.6px!important;
  line-height:1.42;
}
.timeline-activity time{
  font-size:7.2px!important;
}

/* V1.41.1 — Lista agrupada por status + descrição autoajustável */
#sector-table-body .list-status-group-row td{
  padding:14px 12px 6px !important;
  background:transparent !important;
  border-bottom:0 !important;
  pointer-events:none;
}
#sector-table-body .list-status-group-row:first-child td{padding-top:8px !important}
.list-status-group-name{
  color:#5f5f65;
  font-size:10.5px;
  font-weight:650;
  letter-spacing:.01em;
}
.list-status-group-count{
  display:inline-grid;
  place-items:center;
  min-width:18px;
  height:18px;
  margin-left:6px;
  padding:0 5px;
  border-radius:999px;
  background:#f1f1f3;
  color:#8a8a90;
  font-size:9px;
  font-weight:600;
}
.task-description-editor #task-description{
  min-height:84px !important;
  height:auto;
  overflow-y:hidden !important;
  resize:none !important;
}

/* =========================================================
   V1.41.2 — Grupos de status como blocos visuais independentes
   ========================================================= */
#sector-table{
  border-collapse:separate !important;
  border-spacing:0 !important;
}
#sector-table-body .list-status-group-spacer td{
  height:14px !important;
  padding:0 !important;
  border:0 !important;
  background:#f5f5f7 !important;
}
#sector-table-body .list-status-group-spacer:first-child td{
  height:10px !important;
}
#sector-table-body .list-status-group-row td{
  padding:12px 15px 9px !important;
  background:#fff !important;
  border-top:1px solid #e7e7ea !important;
  border-bottom:0 !important;
}
#sector-table-body .list-status-group-row td:first-child{
  border-left:1px solid #e7e7ea !important;
  border-right:1px solid #e7e7ea !important;
  border-radius:13px 13px 0 0 !important;
}
#sector-table-body .list-status-group-row + tr:not(.list-status-group-spacer) td{
  background:#fff;
}
#sector-table-body .list-status-group-row ~ tr[data-task-id] td:first-child{
  border-left:1px solid #e7e7ea;
}
#sector-table-body .list-status-group-row ~ tr[data-task-id] td:last-child{
  border-right:1px solid #e7e7ea;
}
/* Fecha cada bloco antes do próximo espaçador e também no último item da tabela. */
#sector-table-body tr[data-task-id]:has(+ .list-status-group-spacer) td{
  border-bottom:1px solid #e7e7ea !important;
}
#sector-table-body tr[data-task-id]:has(+ .list-status-group-spacer) td:first-child{
  border-radius:0 0 0 13px;
}
#sector-table-body tr[data-task-id]:has(+ .list-status-group-spacer) td:last-child{
  border-radius:0 0 13px 0;
}
#sector-table-body tr[data-task-id]:last-child td{
  border-bottom:1px solid #e7e7ea !important;
}
#sector-table-body tr[data-task-id]:last-child td:first-child{
  border-radius:0 0 0 13px;
}
#sector-table-body tr[data-task-id]:last-child td:last-child{
  border-radius:0 0 13px 0;
}
.list-status-group-name{
  font-size:11px;
  font-weight:650;
  color:#55565c;
}
.list-status-group-count{
  background:#f1f1f3;
  color:#888990;
}

/* V1.41.3 — Legibilidade da descrição da tarefa */
.task-description-editor #task-description{
  font-size:13.5px !important;
  font-weight:450 !important;
  line-height:1.58 !important;
  letter-spacing:.002em;
}

/* =========================================================
   V1.41.4 — Lista por status no mesmo padrão da view Etiquetas
   ========================================================= */

/* Neutraliza completamente a tentativa anterior de "blocos dentro da mesma tabela". */
#sector-list-view.table-card{
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#sector-list-view > table{
  display:none !important;
}

.status-list-groups{
  display:grid;
  gap:14px;
}

.status-list-group{
  overflow:hidden;
  border:1px solid rgba(60,60,67,.075);
  border-radius:15px;
  background:rgba(255,255,255,.90);
}

.status-list-group-head{
  min-height:42px;
  display:flex;
  align-items:center;
  padding:8px 13px;
  border-bottom:1px solid rgba(60,60,67,.065);
  background:rgba(247,247,249,.78);
}

.status-list-group-title{
  min-width:0;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.status-group-color{
  width:8px;
  height:8px;
  flex:0 0 auto;
  border-radius:50%;
  background:var(--status-color,#a7a7ad);
}

.status-list-group-title strong{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:11.5px;
  font-weight:600;
  letter-spacing:-.01em;
}

.status-list-group-count{
  min-width:20px;
  height:20px;
  display:inline-grid;
  place-items:center;
  padding:0 5px;
  border-radius:999px;
  background:rgba(118,118,128,.07);
  color:#89898e;
  font-size:8.5px;
  font-weight:560;
}

.status-list-table-wrap{
  width:100%;
  overflow-x:auto;
}

.status-list-table{
  width:max(100%, max-content);
  min-width:100%;
  border-collapse:collapse !important;
  table-layout:auto;
}

.status-list-table thead{
  background:rgba(250,250,251,.76);
}

.status-list-table th{
  height:43px;
  border-bottom:1px solid rgba(60,60,67,.06);
  color:#8b8b91;
  font-size:9px;
  font-weight:600;
  vertical-align:middle;
}

.status-list-table td{
  height:54px;
  padding:8px 14px;
  border-bottom:1px solid rgba(60,60,67,.06);
  color:var(--text);
  font-size:10.5px;
  vertical-align:middle;
  white-space:nowrap;
}

.status-list-table tbody tr{
  background:rgba(255,255,255,.78);
  cursor:pointer;
  transition:background .12s;
}

.status-list-table tbody tr:hover{
  background:#fff;
}

.status-list-table tbody tr:last-child td{
  border-bottom:0;
}

.status-list-table .table-sort-btn{
  min-height:43px;
}

.status-list-table .task-title-with-labels{
  max-width:420px;
}

.status-list-table .task-title-with-labels > strong{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.status-list-table .custom-field-cell{
  min-width:130px;
}

/* As regras V1.41.1/V1.41.2 não têm mais efeito visual. */
#sector-table-body .list-status-group-row,
#sector-table-body .list-status-group-spacer{
  display:none !important;
}

@media (max-width:900px){
  .status-list-table td{
    height:52px;
    padding-inline:11px;
  }
  .status-list-table .task-title-with-labels{
    max-width:300px;
  }
}

/* V1.41.5 — editor rich text real para a descrição */
.task-description-editor #task-description{
  display:none !important;
}
.task-description-rich{
  min-height:84px;
  width:100%;
  padding:12px 14px;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  font:inherit;
  font-size:13.5px;
  font-weight:450;
  line-height:1.58;
  letter-spacing:.002em;
  overflow-wrap:anywhere;
  white-space:normal;
}
.task-description-rich:empty::before{
  content:attr(data-placeholder);
  color:#a0a0a7;
  pointer-events:none;
}
.task-description-rich strong,
.task-description-rich b{
  font-weight:700;
}
.task-description-rich em,
.task-description-rich i{
  font-style:italic;
}
.task-description-rich ul,
.task-description-rich ol{
  margin:4px 0 4px 20px;
  padding:0;
}
.task-description-rich li{
  margin:2px 0;
}
.task-description-rich a{
  color:#2563eb;
  text-decoration:underline;
  text-underline-offset:2px;
}
.task-description-rich[contenteditable="false"]{
  cursor:default;
}

/* V1.41.6 — Rodapé da sidebar recolhida em pilha vertical */
body.sidebar-collapsed .sidebar-footer,
.sidebar.is-collapsed .sidebar-footer,
#sidebar.is-collapsed .sidebar-footer{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:7px !important;
  padding-inline:0 !important;
}

body.sidebar-collapsed .sidebar-footer .sidebar-profile,
.sidebar.is-collapsed .sidebar-footer .sidebar-profile,
#sidebar.is-collapsed .sidebar-footer .sidebar-profile{
  width:32px !important;
  min-width:32px !important;
  height:32px !important;
  margin:0 !important;
  padding:0 !important;
  display:grid !important;
  place-items:center !important;
}

body.sidebar-collapsed .sidebar-footer .sidebar-profile img,
.sidebar.is-collapsed .sidebar-footer .sidebar-profile img,
#sidebar.is-collapsed .sidebar-footer .sidebar-profile img{
  width:30px !important;
  height:30px !important;
  min-width:30px !important;
  border-radius:50% !important;
}

body.sidebar-collapsed .sidebar-footer .icon-btn,
.sidebar.is-collapsed .sidebar-footer .icon-btn,
#sidebar.is-collapsed .sidebar-footer .icon-btn,
body.sidebar-collapsed .sidebar-footer button,
.sidebar.is-collapsed .sidebar-footer button,
#sidebar.is-collapsed .sidebar-footer button{
  width:32px !important;
  min-width:32px !important;
  height:32px !important;
  margin:0 !important;
  padding:0 !important;
  display:grid !important;
  place-items:center !important;
  flex:0 0 32px !important;
}

body.sidebar-collapsed .sidebar-footer .profile-meta,
.sidebar.is-collapsed .sidebar-footer .profile-meta,
#sidebar.is-collapsed .sidebar-footer .profile-meta{
  display:none !important;
}

/* =========================================================
   V1.41.7 — Correção definitiva do footer da sidebar recolhida
   O container real é .sidebar-user (não .sidebar-footer).
   ========================================================= */
body.sidebar-collapsed .sidebar-user{
  display:grid !important;
  grid-template-columns:36px !important;
  grid-template-rows:36px 32px 32px !important;
  align-items:center !important;
  justify-items:center !important;
  justify-content:center !important;
  row-gap:6px !important;
  column-gap:0 !important;
  width:100% !important;
  padding:9px 0 8px !important;
}

body.sidebar-collapsed .sidebar-user .profile-trigger{
  grid-column:1 !important;
  grid-row:1 !important;
  width:36px !important;
  min-width:36px !important;
  height:36px !important;
  margin:0 !important;
  padding:0 !important;
  display:grid !important;
  grid-template-columns:1fr !important;
  place-items:center !important;
  overflow:visible !important;
}

body.sidebar-collapsed .sidebar-user #user-avatar{
  width:32px !important;
  min-width:32px !important;
  height:32px !important;
  margin:0 !important;
}

body.sidebar-collapsed .sidebar-user .user-copy{
  display:none !important;
}

body.sidebar-collapsed .sidebar-user #settings-nav-btn{
  grid-column:1 !important;
  grid-row:2 !important;
  width:32px !important;
  min-width:32px !important;
  height:32px !important;
  margin:0 !important;
  padding:0 !important;
  place-self:center !important;
}

body.sidebar-collapsed .sidebar-user #logout-btn{
  grid-column:1 !important;
  grid-row:3 !important;
  width:32px !important;
  min-width:32px !important;
  height:32px !important;
  margin:0 !important;
  padding:0 !important;
  place-self:center !important;
}

body.sidebar-collapsed .sidebar-user #settings-nav-btn .icon-svg,
body.sidebar-collapsed .sidebar-user #logout-btn .icon-svg{
  width:16px !important;
  height:16px !important;
}

/* Remove as regras da tentativa anterior, que apontavam para classes inexistentes. */
body.sidebar-collapsed .sidebar-footer{
  display:initial;
}

/* =========================================================
   V1.42.0 — Etiquetas: filtros combináveis + seleção em massa
   ========================================================= */
.bulk-action-host{
  margin:0 0 12px;
}
.bulk-action-host[hidden]{
  display:none !important;
}
.bulk-action-host .bulk-action-bar{
  border:1px solid rgba(60,60,67,.08);
  border-radius:14px;
  background:rgba(255,255,255,.94);
}

.label-view-filter-bar{
  min-height:38px;
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 10px;
  padding:2px 2px;
  overflow:hidden;
}
.label-view-filter-caption{
  flex:0 0 auto;
  color:#8a8a90;
  font-size:9.5px;
  font-weight:560;
}
.label-view-filter-pills{
  min-width:0;
  display:flex;
  align-items:center;
  gap:6px;
  overflow-x:auto;
  scrollbar-width:none;
  padding:2px 0;
}
.label-view-filter-pills::-webkit-scrollbar{display:none}
.label-filter-pill{
  min-height:27px;
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:0 9px;
  border:1px solid rgba(60,60,67,.10);
  border-radius:999px;
  background:rgba(255,255,255,.72);
  color:#68686e;
  font-size:9.5px;
  font-weight:560;
  cursor:pointer;
  transition:background .12s,border-color .12s,transform .12s;
}
.label-filter-pill:hover{
  background:#fff;
}
.label-filter-pill.is-selected{
  border-color:color-mix(in srgb,var(--label-color,#777) 35%,transparent);
  background:color-mix(in srgb,var(--label-color,#777) 9%,white);
  color:#3f3f44;
}
.label-filter-pill[data-label-filter-clear].is-selected{
  border-color:rgba(60,60,67,.14);
  background:#f0f0f2;
}
.label-filter-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--label-color,#8e8e93);
}
.label-filter-mode{
  flex:0 0 auto;
  color:#a0a0a6;
  font-size:8.5px;
}

.label-list-combination-title{
  flex-wrap:wrap;
}
.label-filter-summary-pill{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:22px;
  padding:0 7px;
  border-radius:999px;
  background:color-mix(in srgb,var(--label-color,#777) 10%,white);
  color:#57575d;
  font-size:9px;
  font-weight:600;
}
.label-filter-summary-pill i{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--label-color,#777);
}

.label-list-table .bulk-select-head,
.label-list-table .bulk-select-cell{
  width:42px;
  min-width:42px;
  padding-left:14px;
  padding-right:6px;
}
.label-list-table tbody tr.is-selected{
  background:rgba(0,122,255,.035);
}

/* V1.42.2 — seletor moderno para colunas personalizadas do tipo Data */
.custom-date-cell{
  min-width:128px;
}
.custom-date-trigger{
  width:100%;
  min-width:118px;
  height:32px;
  display:flex;
  align-items:center;
  padding:0 9px;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  color:#8b8b91;
  font:inherit;
  font-size:10.5px;
  text-align:left;
  cursor:pointer;
  transition:background .12s,border-color .12s;
}
.custom-date-trigger:hover{
  background:#f7f7f9;
  border-color:rgba(60,60,67,.08);
}
.custom-date-trigger.has-value{
  color:var(--text);
}
.custom-date-trigger:disabled{
  cursor:default;
  opacity:.62;
}
.custom-date-storage{
  display:none !important;
}

/* V1.42.3 — DatePicker unificado para datas restantes do sistema */
.system-date-field{
  width:100%;
  min-width:0;
}
.system-date-field > input[type="hidden"]{
  display:none !important;
}
.system-date-trigger{
  width:100%;
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:0 11px;
  border:1px solid rgba(60,60,67,.12);
  border-radius:10px;
  background:rgba(248,248,250,.74);
  color:#8a8a90;
  font:inherit;
  font-size:11px;
  text-align:left;
  cursor:pointer;
  transition:background .12s,border-color .12s,box-shadow .12s;
}
.system-date-trigger:hover:not(:disabled){
  background:#fff;
  border-color:rgba(60,60,67,.18);
}
.system-date-trigger.has-value{
  color:var(--text);
}
.system-date-trigger:focus-visible{
  outline:none;
  border-color:rgba(91,91,255,.38);
  box-shadow:0 0 0 3px rgba(91,91,255,.08);
}
.system-date-trigger:disabled{
  cursor:default;
  opacity:.55;
}
.system-date-trigger.compact{
  min-width:118px;
  min-height:32px;
  border-radius:8px;
  font-size:10px;
}
.bulk-date-control .system-date-field{
  min-width:118px;
}

/* =========================================================
   V1.42.4 — TimePicker moderno e compartilhado
   ========================================================= */
.system-time-field{
  width:100%;
  min-width:0;
}
.system-time-field > input[type="hidden"],
.planning-time-custom > input[type="hidden"]{
  display:none !important;
}
.system-time-trigger{
  width:100%;
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:0 11px;
  border:1px solid rgba(60,60,67,.12);
  border-radius:10px;
  background:rgba(248,248,250,.74);
  color:#8a8a90;
  font:inherit;
  font-size:11px;
  text-align:left;
  cursor:pointer;
  transition:background .12s,border-color .12s,box-shadow .12s;
}
.system-time-trigger:hover:not(:disabled){
  background:#fff;
  border-color:rgba(60,60,67,.18);
}
.system-time-trigger.has-value{
  color:var(--text);
}
.system-time-trigger:focus-visible{
  outline:none;
  border-color:rgba(91,91,255,.38);
  box-shadow:0 0 0 3px rgba(91,91,255,.08);
}
.system-time-trigger:disabled{
  cursor:default;
  opacity:.55;
}
.planning-time-trigger{
  min-width:82px;
  min-height:32px;
  border-radius:999px;
  justify-content:center;
  padding:0 10px;
}

.system-time-popover{
  position:fixed;
  z-index:1205;
  width:min(318px,calc(100vw - 20px));
  overflow:hidden;
  border:1px solid rgba(60,60,67,.10);
  border-radius:16px;
  background:rgba(255,255,255,.985);
  box-shadow:0 18px 44px rgba(0,0,0,.12);
}
.system-time-popover[hidden]{display:none!important}

.system-time-body{
  padding:10px 14px 12px;
}
.system-time-display{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:2px 0 12px;
  font-size:23px;
  font-weight:650;
  letter-spacing:-.02em;
}
.system-time-display > span{
  color:#77777d;
  transform:translateY(-1px);
}
.system-time-display-part{
  min-width:48px;
  height:42px;
  border:1px solid transparent;
  border-radius:10px;
  background:#f4f4f6;
  color:#33343a;
  font:inherit;
  cursor:pointer;
}
.system-time-display-part.is-active{
  border-color:rgba(91,91,255,.26);
  background:rgba(91,91,255,.075);
  color:#5050e8;
}
.system-time-columns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.system-time-column-wrap{
  min-width:0;
}
.system-time-column-wrap > span{
  display:block;
  margin:0 0 5px 4px;
  color:#96969c;
  font-size:8.5px;
  font-weight:600;
}
.system-time-column{
  height:186px;
  overflow-y:auto;
  padding:4px;
  border:1px solid rgba(60,60,67,.07);
  border-radius:12px;
  background:#fafafa;
  scrollbar-width:thin;
}
.system-time-option{
  width:100%;
  height:30px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#55565c;
  font-size:10.5px;
  cursor:pointer;
}
.system-time-option:hover{
  background:#f0f0f2;
}
.system-time-option.is-selected{
  background:rgba(91,91,255,.10);
  color:#4f4fe5;
  font-weight:650;
}

/* Gestão de projetos V1.44 */
.projects-view{--project-accent:#6257ed;padding-bottom:36px}
.projects-page-head{align-items:center;margin-bottom:18px}
.projects-page-head h1{margin:5px 0 4px;font-size:27px;letter-spacing:-.035em}
.projects-page-head p{margin:0;color:var(--muted);font-size:13px}
.projects-page-head .btn{height:39px;padding:0 14px;gap:7px;border-radius:11px;box-shadow:0 7px 16px rgba(98,87,237,.17)}
.project-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 16px}
.project-metric-card{min-height:72px;padding:13px 15px;display:flex;align-items:center;justify-content:space-between;border:1px solid rgba(30,35,55,.07);border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(27,35,66,.035)}
.project-metric-card span{font-size:12px;color:var(--muted);font-weight:550}.project-metric-card strong{font-size:23px;letter-spacing:-.04em;color:#29253f}
.projects-workspace{display:grid;grid-template-columns:minmax(245px,.82fr) minmax(0,2.1fr);gap:14px;align-items:start}
.projects-catalog-panel,.project-detail-panel{background:#fff;border:1px solid rgba(30,35,55,.075);border-radius:16px;box-shadow:0 5px 18px rgba(27,35,66,.035);min-width:0}
.projects-catalog-panel{padding:15px 12px;position:sticky;top:16px;max-height:calc(100vh - 124px);display:flex;flex-direction:column}
.projects-catalog-head{padding:1px 4px 12px;display:flex;justify-content:space-between}.projects-catalog-head>div{display:flex;align-items:baseline;justify-content:space-between;gap:10px;width:100%}.projects-catalog-head strong{font-size:13px}.projects-catalog-head span{font-size:10px;color:#9495a1;white-space:nowrap}
.project-search{display:flex;align-items:center;gap:8px;height:36px;padding:0 10px;border:1px solid #e8e8ee;background:#fafafd;border-radius:10px;color:#9697a4}.project-search>span{font-size:19px;line-height:1}.project-search input{border:0!important;background:transparent!important;outline:none;min-width:0;width:100%;font-size:11px!important;box-shadow:none!important;padding:0!important}
.projects-catalog{margin-top:10px;overflow:auto;display:grid;gap:5px}.project-catalog-item{width:100%;display:grid;grid-template-columns:31px minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px 8px;background:transparent;border:1px solid transparent;border-radius:11px;text-align:left;cursor:pointer;color:inherit;transition:background .16s,border-color .16s}.project-catalog-item:hover{background:#f7f7ff}.project-catalog-item.is-selected{background:#f2f1ff;border-color:#dedbff}.project-catalog-mark{width:31px;height:31px;border-radius:10px;background:linear-gradient(145deg,#eeeaff,#e5e7ff);color:#6257ed;display:grid;place-items:center;font-size:12px;font-weight:700}.project-catalog-copy{min-width:0;display:grid;gap:4px}.project-catalog-copy strong{font-size:11.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-catalog-copy>span:not(.project-progress-track){font-size:9.5px;color:#8d8e9a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-catalog-percent{font-size:10px;font-weight:650;color:#646578}.project-progress-track{display:block;height:5px;border-radius:99px;background:#eeeef3;overflow:hidden}.project-progress-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7568f6,#45c8a1);transition:width .25s ease}
.projects-empty,.project-detail-empty{min-height:200px;padding:28px 15px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.projects-empty-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:14px;background:#f2f0ff;color:#6559ef;font-size:20px;margin-bottom:11px}.projects-empty strong,.project-detail-empty strong{font-size:13px}.projects-empty p,.project-detail-empty p{max-width:265px;font-size:10.5px;line-height:1.5;color:#8b8c99;margin:6px 0 13px}.project-detail-panel{padding:20px 21px;min-height:420px}.project-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:1px 1px 17px;border-bottom:1px solid #f0f0f4}.project-detail-head h2{font-size:21px;letter-spacing:-.03em;margin:4px 0}.project-detail-head p{font-size:10.5px;color:#9293a0;margin:0}.project-state-pill{padding:6px 10px;border-radius:99px;background:#f2f0ff;color:#6257ed;font-size:10px;font-weight:650;white-space:nowrap}.project-state-pill.is-complete{background:#eaf8f2;color:#1a9c6f}
.project-progress-summary{padding:16px 1px 15px;border-bottom:1px solid #f0f0f4}.project-progress-summary-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:9px}.project-progress-summary-head>div{display:flex;align-items:baseline;gap:10px}.project-progress-summary-head>div span{font-size:11px;color:#797b88}.project-progress-summary-head strong{font-size:21px;letter-spacing:-.04em}.project-progress-summary-head>span{font-size:10px;color:#9293a0}.project-progress-track-large{height:8px}.project-kpis{display:flex;gap:20px;margin-top:12px}.project-kpis span{font-size:10px;color:#888995}.project-kpis strong{font-size:11px;color:#343547;margin-right:3px}.project-task-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 1px 12px}.project-task-toolbar h3{font-size:13px;margin:0 0 4px}.project-task-toolbar p{font-size:9.5px;color:#9293a0;margin:0}.project-task-filters{display:flex;gap:3px;padding:3px;border-radius:9px;background:#f5f5f8}.project-task-filters button{border:0;background:transparent;border-radius:7px;padding:6px 8px;color:#858693;font-size:9px;cursor:pointer;white-space:nowrap}.project-task-filters button span{margin-left:2px;opacity:.68}.project-task-filters button.is-active{background:#fff;color:#5148d1;box-shadow:0 1px 3px rgba(22,22,40,.1)}
.project-task-table{border:1px solid #eeeef3;border-radius:11px;overflow:hidden}.project-task-table-head,.project-task-row{display:grid;grid-template-columns:minmax(180px,2.2fr) minmax(88px,.85fr) minmax(82px,.9fr) minmax(105px,1.15fr) minmax(70px,.7fr);align-items:center;gap:10px}.project-task-table-head{padding:9px 11px;background:#fafafd;color:#9697a2;font-size:9px;font-weight:600}.project-task-row{min-height:52px;padding:7px 11px;border-top:1px solid #f0f0f4;font-size:10px;color:#727482;cursor:grab;transition:background .12s,opacity .12s}.project-task-row:hover{background:#fbfbff}.project-task-row.is-done .project-task-title-cell strong{text-decoration:line-through;color:#8a8b97}.project-task-row.is-archived{background:#fafafa;color:#999}.project-task-row.is-dragging{opacity:.35}.project-task-row.is-drop-target{box-shadow:inset 0 2px #695df1;background:#f6f5ff}.project-task-title-cell{display:flex;align-items:center;gap:8px;min-width:0}.project-task-title-cell>span:last-child{min-width:0;display:grid;gap:3px}.project-task-title-cell strong{font-size:10.5px;font-weight:590;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#3c3d4a}.project-task-title-cell small{font-size:8.5px;color:#a0a1ab;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-task-drag{padding:0;width:13px;border:0;background:transparent;color:#b1b2bd;font-size:15px;line-height:20px;cursor:grab}.project-task-row:hover .project-task-drag{color:#6157e8}.project-task-check{flex:none;width:15px;height:15px;border:1px solid #dedee5;border-radius:50%;display:grid;place-items:center;color:white;font-size:9px}.project-task-check.is-checked{border-color:#40bd93;background:#40bd93}.project-task-status{display:inline-block;vertical-align:middle;width:6px;height:6px;border-radius:50%;margin-right:5px;background:#d0a147}.project-task-status.is-progress{background:#7065ed}.project-task-status.is-done{background:#42bd92}.project-task-assignee{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#555765;font-weight:550}.project-task-assignee.is-empty{color:#a0a1ab;font-weight:450}.project-task-assignee-stack{justify-content:flex-start;width:max-content;max-width:100%;padding-left:7px}.project-task-assignee-stack .mini-avatar{width:25px;height:25px;flex:0 0 25px;box-shadow:0 0 0 2px #fff}.project-tasks-empty{padding:35px 12px;display:grid;justify-items:center;text-align:center;gap:5px}.project-tasks-empty>span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#ecf8f2;color:#2fa87b}.project-tasks-empty strong{font-size:11px}.project-tasks-empty p{margin:0;color:#999aa5;font-size:9px}.project-task-row.can-open{cursor:pointer}.project-task-row.is-summary-only{cursor:default}
.project-create-backdrop{position:fixed;inset:0;z-index:1400;background:rgba(24,25,38,.28);backdrop-filter:blur(3px)}.project-create-modal{position:fixed;inset:0;z-index:1401;display:grid;place-items:center;padding:18px;pointer-events:none}.project-create-modal[hidden],.project-create-backdrop[hidden]{display:none!important}.project-create-card{pointer-events:auto;position:relative;width:min(100%,410px);padding:27px 28px 23px;background:#fff;border:1px solid rgba(31,34,55,.06);border-radius:22px;box-shadow:0 25px 70px rgba(33,31,62,.19)}.project-create-icon{width:35px;height:35px;border-radius:12px;display:grid;place-items:center;color:#6156e9;background:#f1efff;font-size:18px;margin-bottom:17px}.project-create-close{position:absolute;right:15px;top:15px;font-size:21px;color:#878895}.project-create-card .eyebrow{font-size:9px;color:#7771d9}.project-create-card h2{font-size:21px;margin:5px 0}.project-create-card p{font-size:11px;line-height:1.55;color:#858693;margin:0 0 19px}.project-create-card label{display:block;font-size:10px;font-weight:600;margin-bottom:6px}.project-create-card input{width:100%;height:42px;border:1px solid #e4e4ec;border-radius:10px;padding:0 12px;font-size:12px;outline:none}.project-create-card input:focus{border-color:#8981f4;box-shadow:0 0 0 3px rgba(105,94,240,.12)}.project-create-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:19px}.project-create-actions .btn{min-height:36px;font-size:10px}
.task-project-field{min-width:0;display:flex;flex-direction:column;gap:4px}.task-project-field>label{font-size:10px!important;color:var(--text-secondary);font-weight:550}.task-project-field>.custom-select{width:100%}.task-project-field .custom-select-trigger{min-height:40px}.task-project-field .custom-select-menu{z-index:140}.task-project-field select:not(.custom-select-native){min-width:0;width:100%;height:40px;padding:0 11px;border:1px solid #e8e8ee;border-radius:10px;background:#fff;color:#424351;font-size:11px;outline:none}.task-project-field select:not(.custom-select-native):focus{border-color:#8981f4;box-shadow:0 0 0 3px rgba(105,94,240,.1)}.optional-label{font-size:8px;color:#a1a2ad;font-weight:450}.project-create-inline{align-self:flex-start;padding:0;border:0;background:transparent;color:#6157e8;font-size:9px;font-weight:550;cursor:pointer}.project-create-inline:hover{text-decoration:underline}
@media(min-width:900px){#task-drawer .task-location-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.85fr) minmax(130px,.95fr)!important}}
@media(max-width:1050px){.projects-workspace{grid-template-columns:minmax(220px,.9fr) minmax(0,1.7fr)}.project-detail-panel{padding:16px}.project-task-table-head,.project-task-row{grid-template-columns:minmax(140px,2fr) minmax(78px,.8fr) minmax(62px,.7fr) minmax(92px,1fr) minmax(66px,.7fr);gap:7px;padding-left:8px;padding-right:8px}}
@media(max-width:760px){.projects-page-head{align-items:flex-start;gap:12px}.projects-page-head h1{font-size:23px}.projects-page-head .btn{padding:0 9px;font-size:10px}.project-metrics{gap:7px}.project-metric-card{padding:10px;min-height:61px;align-items:flex-start;flex-direction:column;gap:3px}.project-metric-card span{font-size:9px}.project-metric-card strong{font-size:18px}.projects-workspace{grid-template-columns:1fr}.projects-catalog-panel{position:static;max-height:none}.projects-catalog{grid-template-columns:repeat(auto-fit,minmax(205px,1fr));max-height:250px}.project-detail-panel{padding:13px;min-height:300px}.project-task-toolbar{align-items:flex-start;flex-direction:column}.project-task-filters{width:100%}.project-task-filters button{flex:1}.project-task-table-head{display:none}.project-task-row{grid-template-columns:minmax(0,1.5fr) minmax(85px,.9fr) minmax(58px,.65fr);gap:5px;min-height:48px}.project-task-row>span:nth-child(2),.project-task-row>span:nth-child(3){display:none}.project-task-row>span:last-child{text-align:right}.project-task-title-cell{gap:4px}.project-task-drag{width:10px}.project-progress-summary-head{align-items:flex-start;flex-direction:column;gap:4px}.project-kpis{justify-content:space-between;gap:8px}.project-state-pill{font-size:8.5px;padding:5px 8px}#task-drawer .task-location-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.task-project-field{grid-column:auto}}
@media(max-width:380px){.project-task-row{grid-template-columns:minmax(0,1.4fr) minmax(64px,.8fr) minmax(52px,.65fr)}.project-task-title-cell strong{font-size:9px}.project-task-row{font-size:9px}.project-catalog-item{grid-template-columns:28px minmax(0,1fr) auto;padding:8px 6px}}
.project-access-note{margin:0 0 10px;padding:9px 11px;border:1px solid #ebe9ff;border-radius:9px;background:#f8f7ff;color:#726da8;font-size:9.5px;line-height:1.45}

/* Gestão de projetos V1.45 — responsável, prazo, saúde e filtros */
.project-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.project-metric-card.is-risk strong{color:#cf4c43}
.project-health-mini{font-style:normal;font-weight:650}.project-health-mini.is-risk{color:#c84a42}.project-health-mini.is-attention{color:#b77a18}.project-health-mini.is-healthy{color:#23936f}.project-health-mini.is-complete{color:#23936f}.project-health-mini.is-planning{color:#7771d9}
.project-detail-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.project-detail-actions .btn{height:30px;padding:0 9px;font-size:9px;box-shadow:none}
.project-health-pill{display:inline-flex;align-items:center;gap:5px;padding:6px 10px;border-radius:99px;font-size:9.5px;font-weight:650;white-space:nowrap}.project-health-pill:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.project-health-pill.is-risk{color:#bd4039;background:#fff0ef}.project-health-pill.is-attention{color:#a96b0b;background:#fff7e8}.project-health-pill.is-healthy,.project-health-pill.is-complete{color:#178967;background:#eaf8f2}.project-health-pill.is-planning{color:#6257ed;background:#f2f0ff}
.project-meta-strip{display:grid;grid-template-columns:minmax(160px,1.15fr) minmax(100px,.65fr) minmax(180px,1.35fr);gap:10px;padding:12px 1px;border-bottom:1px solid #f0f0f4}.project-meta-strip>div{min-width:0;padding:10px 11px;border:1px solid #eeeeF3;border-radius:11px;background:#fbfbfd}.project-meta-strip small{display:block;margin-bottom:4px;color:#9899a5;font-size:8.5px}.project-meta-strip strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#444552;font-size:10.5px}.project-meta-owner{display:flex;align-items:center;gap:9px}.project-meta-owner>span:last-child{min-width:0}.project-meta-avatar{width:28px;height:28px;flex:0 0 28px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:#ecebf6;color:#6257ed;font-size:9px;font-weight:700}.project-meta-avatar .avatar-image{width:100%;height:100%;object-fit:cover}
.project-task-select-filters{display:flex;align-items:flex-end;gap:8px;margin:0 0 10px}.project-task-select-filters>label{display:grid;gap:4px;min-width:155px}.project-task-select-filters>label>span{font-size:8.5px;color:#9293a0}.project-task-select-filters .custom-select{width:100%}.project-task-select-filters .custom-select-trigger{min-height:33px;padding:6px 9px;border-radius:8px;font-size:9.5px}.project-task-select-filters .custom-select-menu{z-index:80}.project-task-select-filters .custom-select-option{padding:7px 9px;font-size:9.5px}.project-clear-filters{height:33px;padding:0 9px;border:0;border-radius:8px;background:#f4f3ff;color:#6157e8;font-size:9px;font-weight:600;cursor:pointer}
.project-settings-fields{display:grid;gap:13px}.project-settings-fields>label{display:grid;gap:6px;margin:0}.project-settings-fields .custom-select{width:100%}.project-settings-fields .custom-select-menu{z-index:1500}.project-settings-card{overflow:visible}
@media(max-width:900px){.project-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.project-meta-strip{grid-template-columns:1fr 1fr}.project-meta-health{grid-column:1/-1}}
@media(max-width:760px){.project-detail-head{align-items:flex-start}.project-detail-actions{justify-content:flex-start}.project-task-select-filters{align-items:stretch;flex-direction:column}.project-task-select-filters>label{min-width:0}.project-clear-filters{align-self:flex-start}.project-meta-strip{grid-template-columns:1fr}.project-meta-health{grid-column:auto}}

/* V1.46 — portfolio, timeline, alerts, history and archive */
.project-portfolio-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:18px 0 12px;padding:14px 16px;border:1px solid #e8e8ef;border-radius:16px;background:#fff}
.project-portfolio-controls{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}.project-portfolio-controls>label{display:grid;gap:5px;min-width:170px}.project-portfolio-controls>label>span{font-size:9px;font-weight:700;color:#777887}.project-portfolio-controls .custom-select{width:100%}.project-view-toggle{display:flex;padding:3px;border-radius:10px;background:#f3f3f7}.project-view-toggle button{border:0;background:transparent;border-radius:8px;padding:8px 11px;font:700 9px inherit;color:#777887;cursor:pointer}.project-view-toggle button.is-active{background:#fff;color:#554cf5;box-shadow:0 2px 8px #28236412}
.projects-workspace{display:block}.projects-catalog-panel{width:100%;max-width:none;margin-bottom:16px}.projects-catalog{max-height:none;overflow:visible}.projects-catalog.is-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;padding:4px 0}.projects-catalog.is-table{padding:0}
.project-portfolio-card{display:grid;gap:12px;text-align:left;border:1px solid #e8e8ef;border-radius:14px;background:#fff;padding:15px;cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease}.project-portfolio-card:hover,.project-portfolio-card.is-selected{border-color:#746df7;box-shadow:0 8px 25px #312a8d13;transform:translateY(-1px)}.project-portfolio-card header,.project-portfolio-card footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.project-portfolio-card h3{margin:0;font-size:14px;color:#23232a}.project-portfolio-card footer{font-size:9px;color:#777887}.project-portfolio-card footer strong{font-size:12px;color:#292934}.project-portfolio-card footer i{font-style:normal}.project-card-owner{display:flex;align-items:center;gap:7px;font-size:10px;color:#666775}.project-card-owner img,.project-card-owner .avatar-fallback,.project-card-owner .empty-avatar{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#efeff7;font-size:8px}
.project-portfolio-table{border:1px solid #e7e7ee;border-radius:13px;overflow:hidden}.project-portfolio-head,.project-portfolio-row{display:grid;grid-template-columns:minmax(180px,1.5fr) .7fr minmax(145px,1fr) .65fr .8fr .7fr;align-items:center;gap:10px}.project-portfolio-head{padding:10px 14px;background:#f8f8fb;color:#858693;font-size:8px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.project-portfolio-row{width:100%;padding:12px 14px;border:0;border-top:1px solid #eeeeF3;background:#fff;text-align:left;color:#555663;font-size:10px;cursor:pointer}.project-portfolio-row:hover,.project-portfolio-row.is-selected{background:#f8f7ff}.project-portfolio-row.is-selected{box-shadow:inset 3px 0 #6158f6}.project-portfolio-row>span:first-child{display:grid;gap:2px}.project-portfolio-row>span:first-child strong{font-size:11px;color:#272730}.project-portfolio-row small{color:#999aa5;font-size:8px}.project-table-owner{display:flex!important;align-items:center;gap:7px}.project-table-owner img,.project-table-owner .avatar-fallback,.project-table-owner>i{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#eeeefa;font-size:7px;font-style:normal}.project-portfolio-row>span:nth-child(5){display:grid;grid-template-columns:auto 1fr;align-items:center;gap:7px}.project-portfolio-row .project-progress-track{height:4px}.project-portfolio-row .project-progress-track b{display:block;height:100%;border-radius:inherit;background:#6259f5}
.project-priority{display:inline-flex;width:max-content;padding:4px 7px;border-radius:999px;font-size:8px;font-weight:750;font-style:normal;background:#f0f0f4;color:#666}.project-priority.is-high{background:#fff0df;color:#b36517}.project-priority.is-urgent{background:#ffebe9;color:#c83e35}.project-priority.is-low{background:#eaf7f1;color:#2b7c5d}
.project-detail-panel{width:100%}.project-detail-tabs{display:flex;gap:5px;margin:18px 0 0;padding:4px;background:#f4f4f8;border-radius:11px;width:max-content}.project-detail-tabs button{border:0;border-radius:8px;background:transparent;padding:8px 12px;color:#777887;font-size:9px;font-weight:700;cursor:pointer}.project-detail-tabs button.is-active{background:#fff;color:#544bf4;box-shadow:0 2px 8px #2e286014}.project-detail-tabs span{margin-left:3px}.project-tab-body{padding-top:16px}
.project-executive-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.project-executive-grid article{display:grid;gap:5px;min-height:92px;padding:14px;border:1px solid #e9e9ef;border-radius:13px;background:#fff}.project-executive-grid article>span{font-size:9px;color:#81828f}.project-executive-grid article>strong{font-size:14px;color:#24242c;line-height:1.2}.project-executive-grid article>small{font-size:8.5px;color:#999aa5}.project-executive-grid article.is-danger{border-color:#ffd5d1;background:#fff9f8}.project-executive-grid article.is-danger>strong{color:#cc443b}
.project-alerts{margin-top:16px;padding:15px;border:1px solid #e9e9ef;border-radius:13px}.project-section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.project-section-title h3,.project-involvement h3,.project-history-list h3,.project-update-composer h3{margin:0;font-size:11px}.project-section-title>span{min-width:20px;height:20px;display:grid;place-items:center;border-radius:999px;background:#f0efff;color:#5c53f4;font-size:8px;font-weight:800}.project-alerts article{display:flex;gap:10px;padding:10px 0;border-top:1px solid #f0f0f3}.project-alerts article>i{width:8px;height:8px;margin-top:3px;border-radius:50%;background:#b0b1bd}.project-alerts article.is-danger>i{background:#dc5148}.project-alerts article.is-warning>i{background:#e5a83e}.project-alerts article strong{font-size:10px}.project-alerts article p{margin:3px 0 0;color:#7c7d89;font-size:9px}.project-all-good{padding:14px;border-radius:10px;background:#edf8f3;color:#267657;font-size:10px;font-weight:700}
.project-involvement{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.project-involvement>div{padding:15px;border:1px solid #e9e9ef;border-radius:13px}.project-involvement>div>div{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.project-involvement span{display:flex;align-items:center;gap:6px;padding:5px 8px;border-radius:999px;background:#f6f6f9;font-size:8.5px}.project-involvement img,.project-involvement .avatar-fallback{width:20px;height:20px;border-radius:50%}.project-involvement i{font-style:normal;color:#9899a4}.project-involvement small{color:#999aa5}
.project-gantt{border:1px solid #e7e7ee;border-radius:14px;overflow:auto;background:#fff}.project-gantt-scale{position:sticky;top:0;z-index:3;display:flex;justify-content:space-between;min-width:760px;padding:11px 18px;background:#f7f7fa;border-bottom:1px solid #e9e9ef;color:#888995;font-size:8px}.project-gantt-scale strong{letter-spacing:.08em}.project-gantt-body{position:relative;min-width:760px;padding:8px 0}.project-gantt-row{display:grid;grid-template-columns:230px 1fr;min-height:54px;border-bottom:1px solid #f0f0f3}.project-gantt-row:last-child{border-bottom:0}.project-gantt-label{display:grid;align-content:center;gap:3px;padding:8px 14px;border-right:1px solid #ececf1}.project-gantt-label strong{font-size:9.5px}.project-gantt-label span{font-size:8px;color:#9596a2}.project-gantt-track{position:relative;background-image:linear-gradient(to right,#f1f1f5 1px,transparent 1px);background-size:10% 100%}.project-gantt-bar{position:absolute;top:17px;height:20px;min-width:8px;border:0;border-radius:6px;background:linear-gradient(90deg,#685ff7,#8b84ff);cursor:pointer;box-shadow:0 3px 9px #4f47d733}.project-gantt-bar.is-overdue{background:linear-gradient(90deg,#dc5148,#f27a70)}.project-gantt-today{position:absolute;top:0;bottom:0;z-index:2;width:1px;background:#ec5a50}.project-gantt-today span{position:absolute;top:2px;transform:translateX(-50%);padding:2px 4px;border-radius:4px;background:#ec5a50;color:#fff;font:700 7px inherit;font-style:normal}
.project-update-composer{display:grid;grid-template-columns:minmax(180px,.65fr) 1.35fr;gap:18px;padding:16px;border:1px solid #e8e8ef;border-radius:14px;background:#fafafe}.project-update-composer p{margin:5px 0 0;color:#82838f;font-size:9px}.project-update-composer form{display:grid;gap:8px}.project-update-composer textarea{width:100%;resize:vertical;border:1px solid #dedee7;border-radius:10px;padding:10px;font:10px inherit;background:#fff}.project-update-composer button{justify-self:end}.project-updates-list{display:grid;gap:9px;margin-top:14px}.project-updates-list article{display:flex;gap:10px;padding:13px;border:1px solid #e9e9ef;border-radius:12px}.project-updates-list article>div{flex:1}.project-updates-list header{display:flex;justify-content:space-between;gap:8px}.project-updates-list strong{font-size:9.5px}.project-updates-list time{font-size:8px;color:#999aa5}.project-updates-list p{margin:6px 0 0;white-space:pre-wrap;color:#5f606c;font-size:9.5px;line-height:1.5}.project-history-avatar img,.project-history-avatar .avatar-fallback{width:25px;height:25px;border-radius:50%}.project-history-list{margin-top:18px;padding:15px;border:1px solid #e9e9ef;border-radius:13px}.project-history-item{display:flex;gap:9px;padding:10px 0;border-top:1px solid #f0f0f3;color:#666773;font-size:9px}.project-history-list h3+.project-history-item{margin-top:9px}.project-history-item>div{display:grid;gap:3px}.project-history-item small{color:#9a9ba5;font-size:8px}.project-muted{color:#999aa5;font-size:9px}.project-detail-actions .danger{color:#c64c43;border-color:#ffd7d3}
.project-update-input-wrap{position:relative}.project-update-input-wrap .mention-menu{top:calc(100% + 4px);bottom:auto;z-index:40}.project-update-form-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.project-update-form-footer small{color:#9697a3;font-size:8.5px}.project-update-form-footer button{justify-self:auto}
.project-settings-fields{grid-template-columns:1fr 1fr}.project-settings-fields>label:first-child{grid-column:1/-1}
@media(max-width:1050px){.projects-catalog.is-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.project-portfolio-head,.project-portfolio-row{grid-template-columns:minmax(170px,1.4fr) .7fr minmax(130px,1fr) .7fr .8fr}.project-portfolio-head>span:last-child,.project-portfolio-row>span:last-child{display:none}.project-executive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.project-portfolio-toolbar{align-items:stretch;flex-direction:column}.project-portfolio-controls{display:grid;grid-template-columns:1fr 1fr}.project-portfolio-controls>button{grid-column:1/-1}.project-view-toggle{align-self:flex-start}.projects-catalog.is-cards{grid-template-columns:1fr}.project-portfolio-table{overflow:auto}.project-portfolio-head,.project-portfolio-row{min-width:650px}.project-executive-grid,.project-involvement{grid-template-columns:1fr}.project-update-composer{grid-template-columns:1fr}.project-settings-fields{grid-template-columns:1fr}.project-settings-fields>label:first-child{grid-column:auto}.project-detail-tabs{width:100%;overflow:auto}.project-detail-tabs button{white-space:nowrap;flex:1}.project-meta-strip{grid-template-columns:1fr}}

/* V1.46.1 — simplified project decision view */
.project-portfolio-toolbar{position:relative;align-items:center;padding:10px 12px;margin-top:12px}.project-filter-area{position:relative}.project-filter-area>#project-filter-toggle.is-active{border-color:#cbc8ff;color:#554cf5;background:#f7f6ff}.project-filter-panel{position:absolute;left:0;top:calc(100% + 8px);z-index:30;display:grid;gap:10px;width:240px;padding:12px;border:1px solid #dedee8;border-radius:12px;background:#fff;box-shadow:0 14px 35px #29265324}.project-filter-panel[hidden]{display:none}.project-filter-panel label{display:grid;gap:5px}.project-filter-panel label>span,.project-sort-control>span{font-size:8px;font-weight:700;color:#888995}.project-filter-panel .custom-select{width:100%}.project-portfolio-actions{display:flex;align-items:center;gap:10px}.project-sort-control{display:flex;align-items:center;gap:7px}.project-sort-control .custom-select{width:145px}.project-sort-control .custom-select-trigger{min-height:30px}
.projects-catalog-panel{padding:12px}.projects-catalog-head{margin-bottom:8px}.project-search{max-width:340px;margin-bottom:10px}.projects-catalog.is-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.project-portfolio-card{gap:9px;padding:13px;box-shadow:none}.project-portfolio-card header{min-height:20px}.project-card-alert{min-width:20px;height:20px;display:grid;place-items:center;border-radius:999px;background:#ffebe9;color:#c94138;font-size:8px;font-weight:800}.project-card-progress{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px}.project-card-progress strong{font-size:9px;color:#474850}.project-portfolio-card footer{justify-content:flex-start}.project-portfolio-card h3{font-size:12px}.project-card-owner{font-size:9px}
.project-portfolio-head,.project-portfolio-row{grid-template-columns:minmax(190px,1.5fr) .75fr minmax(145px,1fr) .9fr .75fr}.project-portfolio-row{padding-top:10px;padding-bottom:10px}.project-portfolio-row .has-alert{color:#c94b43}.project-table-owner b{font-weight:600;color:#60616c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-portfolio-row>span:nth-child(4){display:grid;grid-template-columns:auto 1fr;align-items:center;gap:7px}.project-portfolio-row>span:nth-child(5){display:block}.project-portfolio-row>span:nth-child(4) .project-progress-track{height:4px}
.project-detail-panel{padding:18px}.project-detail-head.is-compact{padding-bottom:14px;border-bottom:1px solid #eeeeF3}.project-detail-head.is-compact h2{margin-top:3px}.project-quick-summary{display:grid;grid-template-columns:minmax(180px,1fr) .65fr 1.25fr;align-items:center;gap:18px;margin-top:14px;padding:12px 14px;border-radius:12px;background:#f8f8fb}.project-quick-summary>div{min-width:0}.project-quick-summary small{display:block;margin-bottom:3px;font-size:8px;color:#898a96}.project-quick-summary strong{font-size:10px;color:#303039}.project-quick-owner{display:flex;align-items:center;gap:8px}.project-quick-owner>img,.project-quick-owner>.avatar-fallback,.project-quick-owner>i{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#ececf5;font-size:8px;font-style:normal}.project-quick-progress{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:12px}.project-quick-progress .project-progress-track{height:6px}.project-detail-tabs{margin-top:13px}.project-tab-body{padding-top:13px}
.project-main-alert{display:grid;grid-template-columns:26px 1fr auto;align-items:center;gap:10px;padding:11px 13px;border-radius:11px;background:#fff7ec;border:1px solid #ffe1b5}.project-main-alert>i{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#e3a342;color:#fff;font:800 10px inherit;font-style:normal}.project-main-alert>div{display:grid;gap:2px}.project-main-alert strong{font-size:9.5px}.project-main-alert span{font-size:8.5px;color:#747580}.project-main-alert button{border:0;background:transparent;color:#5d54f4;font-size:8.5px;font-weight:750;cursor:pointer}.project-main-alert.is-danger{background:#fff5f4;border-color:#ffd7d3}.project-main-alert.is-danger>i{background:#d94e45}.project-main-alert.is-neutral{background:#f7f7fa;border-color:#e7e7ed}.project-main-alert.is-neutral>i{background:#8b8c98}.project-main-alert.is-good{background:#f0f8f4;border-color:#d7ede3}.project-main-alert.is-good>i{background:#3b8c6c}.project-more-alerts{display:grid;gap:6px;margin-top:6px;padding:7px 10px;border-radius:10px;background:#fafafd}.project-more-alerts>div{display:flex;align-items:flex-start;gap:7px;font-size:8.5px;color:#73747f}.project-more-alerts>div>i{width:6px;height:6px;margin-top:3px;border-radius:50%;background:#dca43f}.project-more-alerts>div.is-danger>i{background:#d94e45}.project-more-alerts span{display:grid;gap:2px}.project-more-alerts strong{color:#44454e}
.project-executive-grid.is-compact{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:10px}.project-executive-grid.is-compact article{min-height:78px;padding:12px}.project-executive-grid.is-compact article>strong{font-size:12px}.project-secondary-details{margin:10px 0 14px;border:1px solid #ececf1;border-radius:11px;background:#fff}.project-secondary-details summary{padding:10px 12px;cursor:pointer;color:#696a76;font-size:9px;font-weight:700;list-style-position:inside}.project-secondary-details[open] summary{border-bottom:1px solid #eeeeF3}.project-secondary-grid{display:grid;grid-template-columns:.65fr 1.2fr 1fr;gap:16px;padding:12px}.project-secondary-grid>div{display:grid;align-content:start;gap:4px}.project-secondary-grid small{font-size:8px;color:#90919c}.project-secondary-grid strong{font-size:10px}.project-secondary-grid>div>span{font-size:8px;color:#8c8d98}.project-detail-chips{display:flex!important;gap:5px;flex-wrap:wrap}.project-detail-chips>i{display:flex;align-items:center;gap:5px;padding:4px 6px;border-radius:999px;background:#f5f5f8;font-style:normal}.project-detail-chips img,.project-detail-chips .avatar-fallback{width:17px;height:17px;border-radius:50%}.project-detail-chips b{font-size:8px;color:#62636e}
.project-task-toolbar{margin-top:12px;padding-top:13px}.project-task-toolbar h3{font-size:11px}.project-task-toolbar p{font-size:8.5px}.project-task-select-filters{padding:8px 0}.project-task-table{border-radius:11px}.project-task-row{min-height:48px}.project-gantt{min-height:320px}.project-update-composer{padding:13px}.project-history-list{margin-top:12px}
@media(max-width:1120px){.projects-catalog.is-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.projects-catalog.is-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.project-quick-summary{grid-template-columns:1fr 1fr}.project-quick-progress{grid-column:1/-1}.project-secondary-grid{grid-template-columns:1fr 1fr}.project-portfolio-head,.project-portfolio-row{grid-template-columns:minmax(170px,1.3fr) .7fr minmax(130px,1fr) .8fr}.project-portfolio-head>span:last-child,.project-portfolio-row>span:last-child{display:none}}
@media(max-width:760px){.project-portfolio-toolbar{flex-direction:row;align-items:center}.project-portfolio-actions{flex:1;justify-content:flex-end}.project-sort-control>span{display:none}.project-sort-control .custom-select{width:125px}.project-filter-panel{position:fixed;left:16px;right:16px;top:auto;width:auto}.projects-catalog.is-cards{grid-template-columns:1fr}.project-portfolio-head,.project-portfolio-row{min-width:590px}.project-quick-summary{grid-template-columns:1fr}.project-quick-progress{grid-column:auto}.project-main-alert{grid-template-columns:26px 1fr}.project-main-alert button{grid-column:2;text-align:left;padding:0}.project-executive-grid.is-compact,.project-secondary-grid{grid-template-columns:1fr}.project-detail-panel{padding:13px}.project-detail-actions{gap:5px}.project-detail-actions .btn[data-project-archive="cancelled"]{display:none}}

/* V1.46.2 — focused two-column project workspace */
.project-overview-strip{display:flex;align-items:center;gap:6px;margin:10px 0 12px}.project-overview-strip>span{display:flex;align-items:baseline;gap:4px;padding:5px 9px;border-radius:999px;background:#f0f0f4;color:#777883;font-size:8px}.project-overview-strip strong{font-size:10px;color:#34343d}.project-overview-strip .is-risk{background:#fff1ef;color:#ac4a43}.project-overview-strip .is-risk strong{color:#cc463d}
.projects-workspace{display:grid;grid-template-columns:280px minmax(0,1fr);align-items:start;gap:12px}.projects-catalog-panel{position:sticky;top:78px;margin:0;padding:13px;border-radius:14px}.projects-catalog-head{margin:0 0 9px}.projects-catalog-head strong{font-size:11px}.projects-catalog-head span{font-size:8px}.project-search{max-width:none;margin:0 0 8px}.project-search input{height:34px}.project-list-tools{position:relative;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:6px;margin-bottom:8px}.project-tool-button{height:30px;display:flex;align-items:center;gap:5px;padding:0 9px;border:1px solid #e1e1e8;border-radius:8px;background:#fff;color:#656671;font:700 8px inherit;cursor:pointer}.project-tool-button.is-active{color:#574ef3;border-color:#ccc9ff;background:#f7f6ff}.project-list-tools .project-sort-control{display:grid;grid-template-columns:auto 1fr;gap:5px}.project-list-tools .project-sort-control>span{display:none}.project-list-tools .project-sort-control .custom-select{width:100%}.project-list-tools .project-sort-control .custom-select-trigger{height:30px;min-height:30px;padding:0 8px}.project-list-tools .project-filter-panel{top:36px;left:0;width:230px}.projects-catalog.is-compact-list{display:grid;gap:5px;max-height:calc(100vh - 255px);overflow:auto;padding:0 3px 2px 0}
.project-list-item{display:grid;gap:7px;width:100%;padding:10px;border:1px solid transparent;border-radius:10px;background:#f8f8fa;text-align:left;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}.project-list-item:hover{background:#f4f3ff}.project-list-item.is-selected{border-color:#d8d5ff;background:#f5f4ff;box-shadow:inset 2px 0 #6259f5}.project-list-title{display:flex;align-items:center;justify-content:space-between;gap:6px}.project-list-title strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#292931;font-size:9.5px}.project-list-alert{min-width:18px;height:18px;display:grid;place-items:center;border-radius:999px;background:#ffe9e6;color:#c63f37;font:800 7px inherit;font-style:normal}.project-list-meta{display:flex;align-items:center;gap:4px;color:#858691;font-size:7.5px}.project-list-meta>b{font-weight:400}.project-health-dot{width:6px;height:6px;border-radius:50%;background:#999}.project-health-dot.is-healthy,.project-health-dot.is-complete{background:#36916c}.project-health-dot.is-attention{background:#dda33f}.project-health-dot.is-risk{background:#d74a42}.project-health-dot.is-planning{background:#8a8b97}.project-list-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}.project-list-owner{display:flex;align-items:center;min-width:0;gap:5px}.project-list-owner img,.project-list-owner .avatar-fallback,.project-list-owner>i{width:19px;height:19px;border-radius:50%;display:grid;place-items:center;background:#e9e9f1;font-size:6px;font-style:normal}.project-list-owner b{max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#72737e;font-size:7.5px;font-weight:600}.project-list-progress{display:flex;align-items:center;gap:5px}.project-list-progress>i{width:44px;height:4px;border-radius:999px;background:#e5e5eb;overflow:hidden;font-style:normal}.project-list-progress>i>b{display:block;height:100%;border-radius:inherit;background:#635af5}.project-list-progress>strong{font-size:7px;color:#696a75}
.project-detail-panel{margin:0;padding:16px;border-radius:14px}.project-detail-head.is-compact{padding-bottom:11px}.project-detail-head.is-compact h2{font-size:17px}.project-detail-actions{position:relative}.project-detail-actions .project-health-pill{padding:5px 8px;font-size:7.5px}.project-more-button{width:30px;height:30px;border:1px solid #e1e1e8;border-radius:8px;background:#fff;color:#666772;cursor:pointer}.project-actions-overflow{position:relative}.project-actions-menu{position:absolute;right:0;top:36px;z-index:25;display:grid;width:180px;padding:5px;border:1px solid #dedee7;border-radius:10px;background:#fff;box-shadow:0 12px 30px #24204720}.project-actions-menu button{border:0;border-radius:7px;background:transparent;padding:8px 9px;text-align:left;color:#555660;font-size:8.5px;cursor:pointer}.project-actions-menu button:hover{background:#f5f5f8}.project-actions-menu button.is-danger{color:#c64a42}
.project-quick-summary{grid-template-columns:minmax(150px,.8fr) .5fr 1.2fr;gap:12px;margin-top:10px;padding:9px 11px}.project-quick-owner>img,.project-quick-owner>.avatar-fallback,.project-quick-owner>i{width:24px;height:24px}.project-quick-summary small{font-size:7px}.project-quick-summary strong{font-size:9px}.project-detail-tabs{margin-top:10px;padding:3px}.project-detail-tabs button{padding:7px 10px;font-size:8px}.project-tab-body{padding-top:10px}.project-main-alert{padding:8px 10px}.project-main-alert>i{width:20px;height:20px}.project-main-alert strong{font-size:8.5px}.project-main-alert span{font-size:7.5px}
.project-executive-line{display:grid;grid-template-columns:minmax(180px,1.4fr) .45fr .8fr;margin:0 0 10px;border:1px solid #ececf1;border-radius:10px;background:#fff}.project-executive-line>span{display:grid;align-content:center;gap:2px;min-height:58px;padding:9px 11px;border-right:1px solid #eeeeF3}.project-executive-line>span:last-child{border-right:0}.project-executive-line small{font-size:7px;color:#92939d}.project-executive-line strong{font-size:9.5px;color:#33333c}.project-executive-line i{font-size:7px;color:#8b8c96;font-style:normal}.project-executive-line .is-danger strong{color:#cf483f}.project-secondary-details{margin-top:10px}.project-secondary-details summary{padding:8px 10px;font-size:8px}
.project-task-toolbar{margin-top:4px;padding-top:8px}.project-task-toolbar>div:first-child p{display:none}.project-task-toolbar h3{font-size:10px}.project-task-filters button{padding:6px 8px;font-size:7.5px}.project-task-select-filters{padding:6px 0}.project-task-select-filters>label>span{font-size:7px}.project-task-table-head{padding-top:8px;padding-bottom:8px}.project-task-row{min-height:43px}.project-task-title-cell strong{font-size:8.5px}.project-task-title-cell small,.project-task-row>span{font-size:7.5px}
@media(max-width:980px){.projects-workspace{grid-template-columns:240px minmax(0,1fr)}.project-list-owner b{max-width:62px}.project-quick-summary{grid-template-columns:1fr 1fr}.project-quick-progress{grid-column:1/-1}}
@media(max-width:760px){.project-overview-strip{overflow:auto}.project-overview-strip>span{white-space:nowrap}.projects-workspace{display:block}.projects-catalog-panel{position:static;margin-bottom:10px}.projects-catalog.is-compact-list{display:flex;max-height:none;overflow:auto;padding-bottom:5px}.project-list-item{min-width:220px}.project-list-tools .project-filter-panel{position:absolute;left:0;right:auto;top:36px;width:230px}.project-detail-panel{padding:12px}.project-executive-line{grid-template-columns:1fr 70px}.project-executive-line>span:last-child{grid-column:1/-1;border-top:1px solid #eeeeF3;border-right:0}.project-quick-summary{grid-template-columns:1fr}.project-quick-progress{grid-column:auto}}

/* =========================================================
   V1.57.0 — Login com fotografia de fundo
   Foto em P&B em tela cheia, véu escuro suave para leitura,
   texto claro à esquerda e cartão de vidro fosco à direita.
   ========================================================= */
.prontim-auth-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0b0b0c;
  color: #fff;
}

.prontim-auth-shell::before,
.prontim-auth-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Foto: entra com um leve zoom-out, como nas páginas da Apple. */
.prontim-auth-shell::before {
  z-index: -2;
  background: #1a1a1c url("../assets/login-bg.jpg") center 42% / cover no-repeat;
  background-image: image-set(
    url("../assets/login-bg.webp") type("image/webp"),
    url("../assets/login-bg.jpg") type("image/jpeg")
  );
  filter: contrast(1.04) brightness(.92);
  transform: scale(1.06);
  animation: prontim-auth-photo 2.4s cubic-bezier(.16,1,.3,1) forwards;
}

/* Véu: mais denso embaixo à esquerda (onde fica o texto) e à direita (cartão). */
.prontim-auth-shell::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,8,10,.62) 0%, rgba(8,8,10,.22) 46%, rgba(8,8,10,.30) 70%, rgba(8,8,10,.50) 100%),
    linear-gradient(0deg, rgba(8,8,10,.70) 0%, rgba(8,8,10,0) 48%),
    linear-gradient(180deg, rgba(8,8,10,.38) 0%, rgba(8,8,10,0) 22%);
}

@keyframes prontim-auth-photo {
  to { transform: scale(1); }
}

.prontim-auth-brand,
.prontim-auth-card {
  animation: prontim-auth-rise .9s cubic-bezier(.16,1,.3,1) both;
}
.prontim-auth-card { animation-delay: .12s; }

@keyframes prontim-auth-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .prontim-auth-shell::before,
  .prontim-auth-brand,
  .prontim-auth-card { animation: none; transform: none; }
}

.prontim-auth-message h1 {
  color: #f5f5f7;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}

.prontim-auth-message p {
  color: rgba(245,245,247,.68);
}

/* Cartão de vidro fosco claro. */
.prontim-auth-card {
  border: 1px solid rgba(255,255,255,.55) !important;
  background: rgba(255,255,255,.86) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 40px 100px rgba(0,0,0,.35) !important;
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
}

.prontim-auth-card input {
  background: rgba(255,255,255,.72) !important;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .prontim-auth-card { background: rgba(255,255,255,.96) !important; }
}

/* Telas menores: foto mais leve (1200px) e véu uniforme por trás do cartão. */
@media (max-width: 900px) {
  .prontim-auth-shell::before {
    background-image: image-set(
      url("../assets/login-bg-1200.webp") type("image/webp"),
      url("../assets/login-bg.jpg") type("image/jpeg")
    );
    background-position: 58% center;
  }
  .prontim-auth-shell::after {
    background:
      linear-gradient(180deg, rgba(8,8,10,.55) 0%, rgba(8,8,10,.25) 40%, rgba(8,8,10,.65) 100%);
  }
}


/* =========================================================
   V1.65.0 — Login azul com mascotes em adesivo
   Troca a foto P&B pelo fundo em SVG (assets/login-bg-mascote.svg;
   versão vertical para celular em login-bg-mascote-celular.svg).
   O "!" do logo de login passou para amarelo para aparecer no azul.
   ========================================================= */
.prontim-auth-shell {
  background: #5d5cfc;
}

.prontim-auth-shell::before {
  background: #5d5cfc url("../assets/login-bg-mascote.svg") center / cover no-repeat;
  background-image: url("../assets/login-bg-mascote.svg");
  filter: none;
}

/* Véu azul bem leve só embaixo, para a frase continuar firme. */
.prontim-auth-shell::after {
  background: linear-gradient(0deg, rgba(38,36,160,.32) 0%, rgba(38,36,160,0) 42%);
}

.prontim-auth-message h1 {
  color: #fff;
  text-shadow: 0 2px 24px rgba(30,28,140,.28);
}

.prontim-auth-message p {
  color: rgba(255,255,255,.82);
}

.prontim-auth-card {
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 40px 100px rgba(28,26,130,.38) !important;
}

@media (max-width: 900px) {
  .prontim-auth-shell::before {
    background-image: url("../assets/login-bg-mascote.svg");
    background-position: center;
  }
  .prontim-auth-shell::after {
    background: linear-gradient(180deg, rgba(38,36,160,0) 0%, rgba(38,36,160,.18) 100%);
  }
}

@media (max-width: 900px) and (orientation: portrait) {
  .prontim-auth-shell::before {
    background-image: url("../assets/login-bg-mascote-celular.svg");
    background-position: center top;
  }
}

/* =========================================================
   V1.70.0 — Login animado (js/login-motion.js + GSAP)
   O fundo vira um "palco" com as peças separadas (assets/login/):
   mesmo enquadramento do fundo antigo (cover), linhas fluidas e
   adesivos que flutuam. Sem JS, continua o fundo estático da v1.65.
   ========================================================= */
.prontim-auth-shell.has-login-stage::before { background: #5d5cfc; animation: none; transform: none; }
.login-stage {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(var(--stage-scale, 1));
  transform-origin: 50% 50%;
  pointer-events: none;
  user-select: none;
}
/* Celular em pé: alinhado pelo topo, como o fundo vertical da v1.65. */
.login-stage.is-cel { top: 0; transform: translate(-50%, 0) scale(var(--stage-scale, 1)); transform-origin: 50% 0; }
.login-stage-zoom, .login-stage-bg, .login-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.login-stage-zoom { transform-origin: 46% 42%; }
.login-lines { overflow: visible; }
.login-sticker { position: absolute; pointer-events: auto; cursor: grab; -webkit-tap-highlight-color: transparent; }
.login-sticker-float, .login-sticker img { display: block; width: 100%; height: 100%; }
.login-sticker img { -webkit-user-drag: none; }
@media (prefers-reduced-motion: reduce) {
  .login-sticker { cursor: default; }
}
/* Com o fundo em movimento, o desfoque do cartão teria de ser recalculado a cada
   quadro (é o que mais pesa). O cartão fica quase opaco e o visual se mantém. */
.prontim-auth-shell.is-login-animated .prontim-auth-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(255,255,255,.94) !important;
}

/* =========================================================
   V1.71.0 — @todos nos comentários (tarefa, projeto e Spaces)
   ========================================================= */
.mention-option .mention-all-avatar {
  display: grid;
  place-items: center;
  background: var(--brand, #5d5cfc);
  color: #fff;
}
.mention-option .mention-all-avatar svg { width: 15px; height: 15px; }
.mention-option-all { box-shadow: inset 0 -1px 0 var(--line, #ececef); border-radius: 7px 7px 0 0; }
.comment-mention.is-all,
#app-view .sp-text .sp-mention.is-all { font-weight: 700; }
