/* Atlética FATEC — Planka dark Trello-like + mobile (scoped) */
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --af-red: #c41e12;
  --af-red-deep: #89190e;
  --af-green: #1f845a;
  /* Trello-like surfaces */
  --af-list: #101204;
  --af-card: #1f1f21;
  --af-chrome: #242528;
  --af-ink: #1f1f21;
  --af-canvas: #101204;
  --af-line: rgba(206, 207, 210, 0.14);
  --af-text: #cecfd2;
  --af-mute: #9a9b9f;
  --af-subtle: #b8b9bd;
  --af-brand: #c41e12;
  --af-radius: 16px;
  --af-radius-sm: 12px;
  --af-footer-h: 64px;
  --promo-banner-height: 0px !important;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  /* Abstract purple/pink board wash */
  --af-bg-abstract:
    radial-gradient(ellipse 90% 70% at 18% 12%, #9c5083 0%, transparent 55%),
    radial-gradient(ellipse 80% 65% at 82% 28%, #754987 0%, transparent 58%),
    radial-gradient(ellipse 75% 70% at 55% 88%, #4f428a 0%, transparent 55%),
    linear-gradient(145deg, #754987 0%, #4f428a 48%, #9c5083 100%);
}

html {
  color-scheme: dark;
}

html,
body,
#app,
#root {
  max-width: 100vw;
  font-family: Outfit, system-ui, sans-serif !important;
}

/* Gravity dark tokens + Atlética brand */
body.g-root,
body#app,
#app.g-root {
  --g-color-base-background: #1f1f21;
  --g-color-base-generic: rgba(206, 207, 210, 0.08);
  --g-color-base-generic-hover: rgba(206, 207, 210, 0.12);
  --g-color-base-simple-hover: rgba(206, 207, 210, 0.08);
  --g-color-base-float: #242528;
  --g-color-base-brand: #c41e12;
  --g-color-base-brand-hover: #89190e;
  --g-color-text-primary: #cecfd2;
  --g-color-text-secondary: #b8b9bd;
  --g-color-text-hint: #9a9b9f;
  --g-color-text-brand: #c41e12;
  --g-color-text-brand-contrast: #ffffff;
  --g-color-line-generic: rgba(206, 207, 210, 0.14);
  --g-color-line-brand: #c41e12;
  --g-color-sfx-veil: rgba(10, 10, 12, 0.55);
  background:
    var(--af-bg-abstract),
    url("bg-abstract.png") center / cover no-repeat scroll !important;
  color: var(--af-text);
}

/* background-attachment:fixed mata performance no mobile (scroll/drag travando) */
@media (min-width: 821px) {
  body.g-root,
  body#app,
  #app.g-root {
    background-attachment: fixed !important;
  }
}

#root {
  background: transparent;
  color: inherit;
}

/* Board canvas — keep abstract wash visible behind lists */
html.af-route-board #root,
html.af-route-board #root > div,
html.af-route-board [class*="_wrapper_11uup"],
html.af-route-board [class*="_lists_11uup"],
html.af-route-home #root,
html.af-route-home #root > div {
  background: transparent !important;
}

/* Lists (colunas / quadros) */
[class*="_outerWrapper_hsqrn"] {
  background: var(--af-list) !important;
  border-radius: 14px !important;
  border: 1px solid rgba(0, 0, 0, 0.35) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28) !important;
  color: var(--af-text) !important;
}
[class*="_header_hsqrn"],
[class*="_headerName_hsqrn"],
[class*="_header_hsqrn"] *,
[class*="_headerName_hsqrn"] * {
  color: var(--af-text) !important;
}

/* Cards */
[class*="_card_hsqrn"],
[class*="_card_1bbow"],
[class*="_card_1utaf"],
[class*="_card_hsqrn"] > * {
  --g-color-text-primary: #ffffff;
  --g-color-text-secondary: #cecfd2;
  --g-color-text-hint: #9a9b9f;
  border-radius: 12px !important;
  background: var(--af-card) !important;
  color: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.25) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35) !important;
  /* Allow click-to-open; Planka DnD owns the pointer */
  -webkit-user-select: none !important;
  user-select: none !important;
}
/* Titles were still Gravity/ink blue on dark cards — force white */
[class*="_card_hsqrn"] [class*="_name_"],
[class*="_card_1bbow"] [class*="_name_"],
[class*="_card_1utaf"] [class*="_name_"],
[class*="_card_hsqrn"] [class*="_title_"],
[class*="_card_1bbow"] [class*="_title_"],
[class*="_card_1utaf"] [class*="_title_"],
[class*="_card_hsqrn"] a,
[class*="_card_1bbow"] a,
[class*="_card_1utaf"] a,
[class*="_card_hsqrn"] span,
[class*="_card_1bbow"] span,
[class*="_card_1utaf"] span,
[class*="_card_hsqrn"] p,
[class*="_card_1bbow"] p,
[class*="_card_1utaf"] p {
  color: #fff !important;
}
/* Keep label chips readable (colored bg + white text already) */
[class*="_card_hsqrn"] [class*="_label_"] *,
[class*="_card_1bbow"] [class*="_label_"] *,
[class*="_card_1utaf"] [class*="_label_"] * {
  color: #fff !important;
}
[class*="_addCardButton_hsqrn"],
[class*="_addCardButton_1bbow"],
[class*="_addCardButton_1utaf"] {
  background: transparent !important;
  color: var(--af-mute) !important;
  border-radius: 10px !important;
}
[class*="_addCardButton_hsqrn"]:hover,
[class*="_addCardButton_1bbow"]:hover,
[class*="_addCardButton_1utaf"]:hover {
  background: rgba(206, 207, 210, 0.08) !important;
  color: var(--af-text) !important;
}

/* —— Hide vendor chrome (keep login logo slot — we restyle it) —— */
[class*="_poweredBy_"],
[class*="_poweredByText_"],
[class*="_wrapper_1u45e_"],
[class*="_proMenuItem_"],
[class*="_proMenuItemIcon_"],
img[src*="about-logo-"],
a[href*="planka.app"],
a[href*="planka.cloud"],
a[href*="planka.group"],
a[href*="github.com/plankanban"],
a[href*="/pro?ref="],
a[href*="planka.pro"],
[class*="_menu_13awa"] .item:has(i.info),
[class*="_menu_13awa"] [class*="_menuItem_"]:has(i.info),
[class*="_menuItem_13awa"]:has(i.info),
[class*="_menu_13awa"] .item:has(.info.circle),
[class*="_menuItem_13awa"]:has(.info.circle) {
  display: none !important;
}

/* —— Boot splash (visual only — never block clicks) —— */
#af-boot {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  pointer-events: none;
  background:
    var(--af-bg-abstract),
    #4f428a;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
#af-boot.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#af-boot .af-boot-mark {
  width: min(42vw, 168px);
  height: min(42vw, 168px);
  border-radius: 28%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px var(--af-line),
    0 16px 40px rgba(0, 0, 0, 0.35);
  animation: af-float 2.4s ease-in-out infinite;
}
#af-boot .af-boot-title {
  margin-top: 1.1rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.8rem, 8vw, 2.4rem);
  letter-spacing: 0.14em;
  text-align: center;
  color: #fff;
}
#af-boot .af-boot-bar {
  margin: 1.4rem auto 0;
  width: 96px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #9c5083, #754987, transparent);
  background-size: 200% 100%;
  animation: af-shine 1.2s linear infinite;
}
@keyframes af-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes af-shine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* =========================================================
   HEADER — dark chrome, light ink (Trello-like)
   ========================================================= */
[class*="_wrapper_jdrq3"] {
  background: rgba(36, 37, 40, 0.92) !important;
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid var(--af-line) !important;
  color: var(--af-text) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

[class*="_menu_jdrq3"],
[class*="_menu_jdrq3"] .item,
[class*="_item_jdrq3"],
[class*="_logo_jdrq3"],
[class*="_title_jdrq3"],
[class*="_userName_jdrq3"] {
  color: var(--af-text) !important;
  background: transparent !important;
}

[class*="_wrapper_jdrq3"] .ui.inverted.menu,
[class*="_wrapper_jdrq3"] .ui.inverted.menu .item,
[class*="_wrapper_jdrq3"] .ui.inverted.menu .item > i.icon,
[class*="_menu_jdrq3"].ui.inverted.menu,
[class*="_menu_jdrq3"].ui.inverted.menu .item,
[class*="_menu_jdrq3"].ui.inverted.menu .item > i.icon {
  background: transparent !important;
  color: var(--af-text) !important;
}
[class*="_wrapper_jdrq3"] .ui.inverted.menu .item:hover,
[class*="_menu_jdrq3"].ui.inverted.menu .item:hover {
  background: rgba(206, 207, 210, 0.1) !important;
  color: #fff !important;
}

[class*="_logo_jdrq3"],
[class*="_title_jdrq3"] {
  font-family: Outfit, system-ui, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
}

[class*="_itemHoverable_jdrq3"]:hover,
[class*="_item_jdrq3"]:hover {
  background: rgba(206, 207, 210, 0.1) !important;
  color: #fff !important;
}

[class*="_wrapper_jdrq3"] i.icon,
[class*="_menu_jdrq3"] i.icon,
[class*="_item_jdrq3"] i.icon {
  color: var(--af-subtle) !important;
  opacity: 1 !important;
}
[class*="_itemIconEnabled_jdrq3"],
[class*="_wrapper_jdrq3"] i.star.yellow,
[class*="_menu_jdrq3"] .itemIconEnabled {
  color: #f5a623 !important;
}

/* Always unlocked — hide edit-mode lock/unlock toggle */
[class*="_wrapper_jdrq3"] .item:has(> i.lock),
[class*="_wrapper_jdrq3"] .item:has(> i.unlock),
[class*="_item_jdrq3"]:has(i.lock),
[class*="_item_jdrq3"]:has(i.unlock),
[class*="_menu_jdrq3"] .item:has(i.lock),
[class*="_menu_jdrq3"] .item:has(i.unlock) {
  display: none !important;
}

[class*="_editButton_jdrq3"] {
  color: var(--af-subtle) !important;
  background: transparent !important;
  opacity: 1 !important;
}

[class*="_notification_jdrq3"] {
  background: var(--af-red) !important;
  color: #fff !important;
}

body#app > #root > div > header,
#root > div > header,
[class*="_headerWrapper_"] {
  background: rgba(36, 37, 40, 0.92) !important;
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid var(--af-line);
  color: var(--af-text);
}

/* Only real popups — never raise theme-wrapper / whole app shells */
.ui.popup,
.ui.active.popup,
.ui.visible.popup {
  z-index: 11000 !important;
}
.ui.popup {
  background: var(--af-chrome) !important;
  color: var(--af-text) !important;
  border: 1px solid var(--af-line) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45) !important;
}

/* =========================================================
   LOGIN — dark panel on abstract wash
   ========================================================= */
[class*="_wrapper_45te1"] {
  background: rgba(36, 37, 40, 0.94) !important;
  color: var(--af-text) !important;
}
[class*="_formTitle_45te1"],
[class*="_formSubtitle_45te1"],
[class*="_inputLabel_45te1"] {
  color: var(--af-text) !important;
}
[class*="_logoWrapper_45te1"] {
  display: flex !important;
  justify-content: center !important;
  margin-bottom: 28px !important;
}
[class*="_logo_45te1"],
[class*="_logoWrapper_45te1"] img {
  display: block !important;
  max-height: 120px !important;
  max-width: min(72vw, 220px) !important;
  object-fit: contain !important;
  filter: none !important;
}
[class*="_cover_45te1"] {
  background:
    var(--af-bg-abstract),
    url("bg-abstract.png") center / cover no-repeat !important;
  background-size: cover !important;
}
[class*="_coverOverlay_45te1"] {
  background: rgba(15, 12, 28, 0.28) !important;
}

html.af-route-login [class*="_logoWrapper_45te1"]:empty::before,
html.af-route-login [class*="_logoWrapper_45te1"]::after {
  content: none;
}

/* =========================================================
   Bottom tab bar
   ========================================================= */
#af-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  display: none;
  height: calc(var(--af-footer-h) + var(--safe-bottom));
  padding: 4px 2px var(--safe-bottom);
  box-sizing: border-box;
  background: rgba(36, 37, 40, 0.96);
  border-top: 1px solid var(--af-line);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
  justify-content: space-around;
  align-items: stretch;
  gap: 0;
  pointer-events: auto;
  isolation: isolate;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
#af-tabbar .af-tab {
  all: unset;
  box-sizing: border-box;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  min-height: 56px;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 6px 2px 4px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--af-mute) !important;
  font-family: Outfit, system-ui, sans-serif !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  line-height: 1.15 !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto !important;
  position: relative;
}
#af-tabbar .af-tab > * {
  pointer-events: none;
}
#af-tabbar .af-tab-icon {
  width: 56px;
  height: 32px;
  display: grid !important;
  place-items: center;
  border-radius: 999px;
  color: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}
#af-tabbar .af-tab-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
}
#af-tabbar .af-tab-label {
  max-width: 100%;
  padding: 0 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit !important;
  font-size: 10px !important;
  font-weight: 500 !important;
}
#af-tabbar .af-tab.is-active {
  color: #fff !important;
}
#af-tabbar .af-tab.is-active .af-tab-label {
  font-weight: 600 !important;
  color: #fff !important;
}
#af-tabbar .af-tab.is-active .af-tab-icon {
  background: rgba(156, 80, 131, 0.35) !important;
  color: #fff !important;
}
#af-tabbar .af-tab-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--af-red);
  border: 2px solid var(--af-chrome);
  pointer-events: none;
}
#af-tabbar .af-tab:active {
  opacity: 0.72;
}

#af-sheet {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--af-footer-h) + 12px + var(--safe-bottom));
  z-index: 11010;
  display: none;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--af-chrome);
  border: 1px solid var(--af-line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  color: var(--af-text);
  font-family: Outfit, system-ui, sans-serif;
}
#af-sheet.is-open {
  display: block;
  animation: af-sheet-in 0.2s ease;
}
#af-sheet .af-sheet-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
}
#af-sheet .af-sheet-body {
  font-size: 13px;
  color: var(--af-mute);
  margin: 0;
  line-height: 1.4;
}
#af-sheet .af-sheet-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--af-mute);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
@keyframes af-sheet-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

[class*="_wrapper_jdrq3"].af-bell-hint [class*="_item_"]:has(i.bell),
[class*="_wrapper_jdrq3"].af-bell-hint i.bell {
  animation: af-pulse 1s ease 2;
}
@keyframes af-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

@media (max-width: 820px) {
  #af-tabbar {
    display: flex;
  }

  html.af-with-tabbar body {
    padding-bottom: calc(var(--af-footer-h) + var(--safe-bottom)) !important;
  }

  [class*="_wrapper_jdrq3"] {
    padding-top: max(0px, var(--safe-top));
    min-height: calc(50px + var(--safe-top));
  }

  html.af-alerts-open .ui.popup.visible,
  html.af-alerts-open .ui.active.popup {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: calc(var(--af-footer-h) + 12px + var(--safe-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(60vh, 420px) !important;
    overflow: auto !important;
    margin: 0 !important;
    transform: none !important;
  }

  html.af-route-home [class*="_wrapper_suzcb"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    padding: 8px 12px 24px !important;
    max-width: 100% !important;
  }

  html.af-route-home a[class*="_card_suzcb"],
  html.af-route-home [class*="_card_suzcb"] {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 10px 8px !important;
    border-radius: 12px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    text-decoration: none !important;
    color: var(--af-text) !important;
  }
  html.af-route-home a[class*="_card_suzcb"]:active,
  html.af-route-home a[class*="_card_suzcb"]:hover,
  html.af-route-home [class*="_card_suzcb"]:active,
  html.af-route-home [class*="_card_suzcb"]:hover {
    background: rgba(206, 207, 210, 0.08) !important;
  }

  html.af-route-home [class*="_card_suzcb"] [class*="_wrapper_vr1u9"],
  html.af-route-home [class*="_card_suzcb"] [class*="_cover_vr1u9"] {
    position: relative !important;
    inset: auto !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    aspect-ratio: 1 / 1 !important;
    background-size: cover !important;
    background-position: center !important;
  }
  html.af-route-home [class*="_card_suzcb"] [class*="_wrapper_vr1u9"]::before,
  html.af-route-home [class*="_card_suzcb"] [class*="_cover_vr1u9"]::before {
    display: none !important;
  }
  html.af-route-home [class*="_card_suzcb"] [class*="_wrapper_vr1u9"] img,
  html.af-route-home [class*="_card_suzcb"] img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 10px !important;
  }

  html.af-route-home [class*="_card_suzcb"] [class*="_title_vr1u9"],
  html.af-route-home [class*="_card_suzcb"] [class*="_title_suzcb"],
  html.af-route-home [class*="_card_suzcb"] [class*="_title_"] {
    position: static !important;
    inset: auto !important;
    flex: 1 1 auto !important;
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    color: var(--af-text) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
  }

  html.af-route-home [class*="_groups_1lbjc"],
  html.af-route-home [class*="_group_1lbjc"],
  html.af-route-home [class*="_card_suzcb"] [class*="_users_"],
  html.af-route-home [class*="_card_suzcb"] [class*="_members_"] {
    display: none !important;
  }

  html.af-route-home [class*="_addButton_suzcb"] {
    background: rgba(206, 207, 210, 0.1) !important;
    color: var(--af-text) !important;
    border-radius: 12px !important;
    min-height: 56px !important;
  }
  html.af-route-home [class*="_addButton_suzcb"] [class*="_addButtonTitle_"],
  html.af-route-home [class*="_addButton_suzcb"] * {
    color: var(--af-text) !important;
    fill: var(--af-text) !important;
  }

  html.af-route-board [class*="_lists_11uup"],
  html.af-route-board [class*="_wrapper_11uup"] {
    padding-bottom: calc(12px + var(--af-footer-h) + var(--safe-bottom)) !important;
  }
  html.af-route-board [class*="_list_11uup"] {
    scroll-snap-align: start;
  }
  html.af-route-board [class*="_lists_11uup"] {
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  html.af-route-board [class*="_outerWrapper_hsqrn"] {
    background: var(--af-list) !important;
    border-radius: 14px !important;
    border: 1px solid rgba(0, 0, 0, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  }
  html.af-route-board [class*="_header_hsqrn"],
  html.af-route-board [class*="_headerName_hsqrn"] {
    color: var(--af-text) !important;
  }
  html.af-route-board [class*="_card_hsqrn"] > *,
  html.af-route-board [class*="_card_1bbow"],
  html.af-route-board [class*="_card_1utaf"] {
    border-radius: 12px;
    background: var(--af-card) !important;
    color: #fff !important;
  }
  html.af-route-board [class*="_card_hsqrn"] [class*="_name_"],
  html.af-route-board [class*="_card_1bbow"] [class*="_name_"],
  html.af-route-board [class*="_card_1utaf"] [class*="_name_"],
  html.af-route-board [class*="_card_hsqrn"] span,
  html.af-route-board [class*="_card_1bbow"] span,
  html.af-route-board [class*="_card_1utaf"] span {
    color: #fff !important;
  }
  html.af-route-board [class*="_addCardButton_hsqrn"] {
    background: transparent !important;
    color: var(--af-mute) !important;
    border-radius: 10px !important;
  }

  html.af-with-tabbar [class*="_addButton_suzcb"],
  html.af-with-tabbar [class*="_addButton_1lbjc"],
  html.af-with-tabbar [class*="_fab_"],
  html.af-with-tabbar [class*="_floating_"] {
    bottom: calc(var(--af-footer-h) + 16px + var(--safe-bottom)) !important;
  }
}

@media (min-width: 821px) {
  #af-tabbar {
    display: none !important;
  }
  #af-sheet {
    display: none !important;
  }
}

/* —— Mirror button + modal —— */
.af-mirror-btn {
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
  padding: 8px 12px !important;
  border: 1px solid var(--af-line) !important;
  border-radius: 10px !important;
  background: var(--af-card) !important;
  color: var(--af-text) !important;
  font-family: Outfit, system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer;
  box-shadow: none !important;
}
.af-mirror-btn:hover {
  background: rgba(156, 80, 131, 0.2) !important;
  border-color: rgba(156, 80, 131, 0.45) !important;
  color: #fff !important;
}
.af-mirror-btn-icon {
  display: grid;
  place-items: center;
}

#af-mirror-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 12000;
}
#af-mirror-modal.is-open {
  display: block;
}
#af-mirror-modal .af-mirror-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.6);
}
#af-mirror-modal .af-mirror-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 24px));
  max-height: min(80vh, 640px);
  overflow: auto;
  background: var(--af-chrome);
  border-radius: 16px;
  border: 1px solid var(--af-line);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  padding: 18px 18px 14px;
  color: var(--af-text);
  font-family: Outfit, system-ui, sans-serif;
}
#af-mirror-modal .af-mirror-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
#af-mirror-modal .af-mirror-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--af-text) !important;
}
#af-mirror-modal .af-mirror-x {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--af-mute);
  cursor: pointer;
  padding: 4px 8px;
}
#af-mirror-modal .af-mirror-hint {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--af-mute);
  line-height: 1.4;
}
#af-mirror-modal .af-mirror-section {
  margin-bottom: 14px;
}
#af-mirror-modal .af-mirror-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--af-mute);
  margin-bottom: 8px;
}
#af-mirror-modal .af-mirror-empty {
  margin: 0;
  font-size: 13px;
  color: var(--af-mute);
}
#af-mirror-modal .af-mirror-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--af-list);
  margin-bottom: 6px;
  font-size: 13px;
}
#af-mirror-modal .af-mirror-unlink {
  border: 0;
  background: transparent;
  color: #e88;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
#af-mirror-modal .af-mirror-board {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid var(--af-line);
  border-radius: 12px;
  background: rgba(16, 18, 4, 0.45);
}
#af-mirror-modal .af-mirror-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
#af-mirror-modal .af-mirror-list-sel {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--af-line);
  background: var(--af-card);
  color: var(--af-text);
  font-family: inherit;
  font-size: 13px;
}
#af-mirror-modal .af-mirror-list-sel:disabled {
  opacity: 0.45;
}
#af-mirror-modal .af-mirror-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
#af-mirror-modal .af-mirror-cancel,
#af-mirror-modal .af-mirror-save {
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
  border: 1px solid var(--af-line) !important;
}
#af-mirror-modal .af-mirror-cancel {
  background: var(--af-card) !important;
  color: var(--af-subtle) !important;
}
#af-mirror-modal .af-mirror-save {
  background: #1f845a !important;
  border-color: #1f845a !important;
  color: #fff !important;
  min-width: 148px;
  transition: background 0.15s ease, transform 0.12s ease, opacity 0.15s ease;
}
#af-mirror-modal .af-mirror-save:hover:not(:disabled) {
  background: #196b49 !important;
  border-color: #196b49 !important;
}
#af-mirror-modal .af-mirror-save:active:not(:disabled) {
  transform: scale(0.97);
}
#af-mirror-modal .af-mirror-save:disabled {
  opacity: 0.7;
  cursor: wait !important;
}
#af-mirror-modal .af-mirror-save.is-loading {
  background: #196b49 !important;
}
#af-mirror-modal .af-mirror-save.is-ok {
  background: #14804a !important;
  border-color: #14804a !important;
}
#af-mirror-modal .af-mirror-status {
  margin: 10px 0 0;
  font-size: 13px;
  color: #7dcea0;
  line-height: 1.45;
}
#af-mirror-modal .af-mirror-status.is-err {
  color: #f08080;
}
#af-mirror-modal .af-mirror-status.is-ok {
  color: #9be7b5;
}
#af-mirror-modal .af-mirror-created {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(31, 132, 90, 0.18);
  border: 1px solid rgba(31, 132, 90, 0.45);
  color: #e8fff0;
  font-size: 13px;
  line-height: 1.45;
}
#af-mirror-modal .af-mirror-created strong {
  color: #fff;
}
#af-mirror-modal .af-mirror-created ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
#af-mirror-toast {
  position: fixed;
  right: 16px;
  bottom: calc(16px + var(--af-footer-h, 0px) + var(--safe-bottom, 0px));
  z-index: 13000;
  max-width: min(360px, calc(100vw - 24px));
  padding: 12px 14px;
  border-radius: 12px;
  background: #1f845a;
  color: #fff;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#af-mirror-toast.is-show {
  opacity: 1;
  transform: translateY(0);
}
#af-mirror-toast.is-err {
  background: #a33;
}

#af-mirror-del-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 12500;
}
#af-mirror-del-modal.is-open {
  display: block;
}
#af-mirror-del-modal .af-mirror-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.6);
}
#af-mirror-del-modal .af-mirror-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 24px));
  background: var(--af-chrome);
  border-radius: 16px;
  border: 1px solid var(--af-line);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  padding: 18px 18px 14px;
  color: var(--af-text);
  font-family: Outfit, system-ui, sans-serif;
}
#af-mirror-del-modal .af-mirror-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
#af-mirror-del-modal .af-mirror-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--af-text) !important;
}
#af-mirror-del-modal .af-mirror-x {
  border: 0;
  background: transparent;
  font-size: 22px;
  color: var(--af-mute);
  cursor: pointer;
}
#af-mirror-del-modal .af-mirror-hint {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--af-mute);
  line-height: 1.45;
}
#af-mirror-del-modal .af-mirror-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
#af-mirror-del-modal .af-mirror-cancel {
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
  border: 1px solid var(--af-line) !important;
  background: var(--af-card) !important;
  color: var(--af-subtle) !important;
}
#af-mirror-del-modal .af-mirror-del-one {
  background: #3d3d40 !important;
  border: 1px solid var(--af-line) !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
}
#af-mirror-del-modal .af-mirror-del-all {
  background: #a33 !important;
  border: 1px solid #a33 !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
}
#af-mirror-del-modal .af-mirror-del-one:hover,
#af-mirror-del-modal .af-mirror-del-all:hover {
  filter: brightness(1.08);
}

[class*="_tab_"][class*="active"],
[class*="_activeTab_"],
button[class*="_tab_"].active {
  background: rgba(16, 18, 4, 0.85) !important;
  color: #fff !important;
}

[class*="_actions_10xqw"],
[class*="_sidebar_"],
[class*="_module_"] {
  color: var(--af-text);
}

/* =========================================================
   CONTRAST AUDIT — dark surfaces → light text/icons
   Fixes popups (Ações do usuário), menus, modals, toolbars
   where Gravity/Semantic still ship ink blues (#172b4d etc.)
   ========================================================= */

/* Popups / floating menus (user actions, filters, …) */
.ui.popup,
.ui.active.popup,
.ui.visible.popup,
.ui.popup::before,
[data-floating-ui-portal] > div,
[class*="theme-wrapper"] [class*="_popup_"],
[class*="_popup_"] {
  background: var(--af-chrome) !important;
  color: #fff !important;
  border-color: var(--af-line) !important;
}
.ui.popup *,
.ui.active.popup *,
.ui.visible.popup *,
[data-floating-ui-portal] *,
[class*="_menu_13awa"],
[class*="_menu_13awa"] *,
[class*="_menuItem_13awa"],
[class*="_menuItem_13awa"] * {
  color: #fff !important;
  fill: #fff !important;
}
.ui.popup .header,
.ui.popup > .header,
.ui.popup .content,
.ui.popup .item,
.ui.popup .ui.menu .item,
.ui.popup .ui.vertical.menu .item,
.ui.popup i.icon,
.ui.popup i.close,
.ui.popup .close.icon,
.ui.popup a,
.ui.popup button,
.ui.popup span,
.ui.popup div {
  color: #fff !important;
  opacity: 1 !important;
}
.ui.popup .item:hover,
.ui.popup .ui.menu .item:hover,
[class*="_menuItem_13awa"]:hover,
[class*="_menu_13awa"] .item:hover {
  background: rgba(206, 207, 210, 0.12) !important;
  color: #fff !important;
}
.ui.popup .ui.divider,
.ui.popup .divider {
  border-color: rgba(206, 207, 210, 0.2) !important;
}

/* Semantic UI vertical menus inside dark chrome */
.ui.vertical.menu,
.ui.menu.vertical {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.ui.vertical.menu .item,
.ui.menu .item {
  color: #fff !important;
  background: transparent !important;
}
.ui.vertical.menu .item > i.icon,
.ui.menu .item > i.icon {
  color: #cecfd2 !important;
  opacity: 1 !important;
}

/* Gravity UI buttons / menus on dark */
.g-button,
.g-menu,
.g-menu__list,
.g-popup,
.g-sheet,
.g-dialog,
.g-modal,
[class*="g-popup"],
[class*="g-menu"] {
  --g-color-text-primary: #ffffff;
  --g-color-text-secondary: #cecfd2;
  --g-color-text-hint: #9a9b9f;
  --g-color-base-background: #242528;
  --g-color-base-float: #242528;
  color: #fff;
}
.g-menu__item,
.g-button__text,
.g-popup * {
  color: inherit;
}

/* Card modal sidebar actions were #444 on #ebeef0 — darken surface, lighten text */
[class*="_actionButton_10xqw"],
[class*="_actions_10xqw"] button,
[class*="_actions_10xqw"] [class*="_button_"] {
  background: #2a2b2e !important;
  color: #fff !important;
  box-shadow: none !important;
  border: 1px solid var(--af-line) !important;
}
[class*="_actionButton_10xqw"]:hover,
[class*="_actions_10xqw"] button:hover {
  background: #35363a !important;
  color: #fff !important;
}
[class*="_dueDate_10xqw"],
[class*="_descriptionButton_10xqw"] {
  background: rgba(206, 207, 210, 0.08) !important;
  color: #cecfd2 !important;
}
[class*="_icon_170s0"],
[class*="_icon_1thss"],
[class*="_nameIcon_"] {
  color: #cecfd2 !important;
  opacity: 1 !important;
}

/* Hardcoded Planka ink blues/grays — text only (no fake dark “tarja”) */
[class*="_name_q007q"],
[class*="_name_1b56j"],
[class*="_name_11wpr"],
[class*="_value_1wks1"],
[class*="_descriptionText_fiqad"],
[class*="_descriptionText_160xl"],
[class*="_tasks_kjg3m"],
[class*="_actionBarItem_1su84"] {
  color: #fff !important;
}

/* =========================================================
   CARD MODAL — fundo escuro + fonte branca (sem luz / tarja)
   ========================================================= */
[class*="_wrapper_10xqw"],
[class*="_wrapper_160xl"] {
  background: #1f1f21 !important;
  color: #fff !important;
  border-radius: 8px !important;
}

/* Title: no black strip; white text when idle; soft field only on focus */
[class*="_headerTitle_10xqw"],
[class*="_headerTitle_160xl"],
[class*="_headerTitleWrapper_10xqw"],
[class*="_headerTitleWrapper_160xl"],
[class*="_field_xb352"],
[class*="_fieldMedium_xb352"],
[class*="_fieldLarge_xb352"] {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  font-weight: 700 !important;
}
[class*="_field_xb352"]:focus,
[class*="_fieldMedium_xb352"]:focus,
[class*="_fieldLarge_xb352"]:focus {
  background: #2a2b2e !important;
  border-color: rgba(156, 80, 131, 0.55) !important;
  box-shadow: 0 0 0 1px rgba(156, 80, 131, 0.35) !important;
  color: #fff !important;
  outline: none !important;
}

/* Section headers / icons / labels */
[class*="_moduleHeader_10xqw"],
[class*="_moduleHeader_160xl"],
[class*="_moduleIcon_10xqw"],
[class*="_moduleIcon_160xl"],
[class*="_actionIcon_10xqw"],
[class*="_actionIcon_160xl"],
[class*="_text_10xqw"],
[class*="_text_160xl"],
[class*="_actionsTitle_10xqw"],
[class*="_actionsTitle_160xl"],
[class*="_headerWrapper_10xqw"],
[class*="_headerWrapper_160xl"],
[class*="_contentPadding_10xqw"],
[class*="_contentPadding_160xl"],
[class*="_sidebarPadding_10xqw"],
[class*="_sidebarPadding_160xl"],
[class*="_contentModule_10xqw"],
[class*="_contentModule_160xl"] {
  color: #cecfd2 !important;
}
[class*="_moduleHeader_10xqw"],
[class*="_moduleHeader_160xl"],
[class*="_headerTitle_10xqw"],
[class*="_headerTitle_160xl"] {
  color: #fff !important;
}

/* Description / comment / list chips — soft dark, white text (not void-black) */
[class*="_descriptionButton_10xqw"],
[class*="_descriptionButton_160xl"],
[class*="_dueDate_10xqw"],
[class*="_dueDate_160xl"],
[class*="_list_10xqw"],
[class*="_list_160xl"] {
  background: #2a2b2e !important;
  color: #cecfd2 !important;
  border: 1px solid rgba(206, 207, 210, 0.12) !important;
}
[class*="_descriptionButton_10xqw"]:hover,
[class*="_descriptionButton_160xl"]:hover,
[class*="_listHoverable_10xqw"]:hover,
[class*="_listHoverable_160xl"]:hover {
  background: #35363a !important;
  color: #fff !important;
}

/* Markdown / description body */
[class*="_wrapper_10xqw"] .yfm,
[class*="_wrapper_160xl"] .yfm,
[class*="_wrapper_10xqw"] .yfm *,
[class*="_wrapper_160xl"] .yfm *,
[class*="_descriptionText_"],
[class*="_contentModuleDescription_"] {
  color: #fff !important;
  --yfm-color-text: #ffffff;
  --yfm-color-text-private: #ffffff;
}

/* Comments / activity */
[class*="_wrapper_10xqw"] .ui.tab,
[class*="_wrapper_160xl"] .ui.tab,
[class*="_wrapper_10xqw"] textarea,
[class*="_wrapper_160xl"] textarea:not([class*="_field_xb352"]),
[class*="_wrapper_10xqw"] .ui.input > input,
[class*="_wrapper_160xl"] .ui.input > input {
  background: #2a2b2e !important;
  color: #fff !important;
  border-color: rgba(206, 207, 210, 0.14) !important;
  caret-color: #fff;
}

/* Comment bubbles — dark surface (not #DEE7F4) so light text stays readable */
[class*="_bubble_"] {
  background: #2c2d31 !important;
  border: 1px solid rgba(206, 207, 210, 0.14) !important;
  color: #cecfd2 !important;
  box-shadow: none !important;
}
[class*="_bubbleRight_"] {
  background: #32343a !important;
  border-color: rgba(206, 207, 210, 0.18) !important;
}
[class*="_bubble_"] [class*="_header_"],
[class*="_bubble_"] [class*="_header_"] * {
  color: #ffffff !important;
}
[class*="_bubble_"] .yfm,
[class*="_bubble_"] .yfm *,
[class*="_bubble_"] p,
[class*="_bubble_"] span:not([class*="_date_"]) {
  color: #cecfd2 !important;
  --yfm-color-text: #cecfd2;
  --yfm-color-text-private: #cecfd2;
}
[class*="_bubble_"] [class*="_date_"],
[class*="_bubble_"] [class*="_date_"] time,
[class*="_bubble_"] [class*="_information_"] {
  color: #9a9b9f !important;
}
[class*="_bubble_"] [class*="_actions_"] button,
[class*="_bubble_"] button {
  color: #b0b1b5 !important;
  background: transparent !important;
  border: 0 !important;
}
[class*="_bubble_"] [class*="_actions_"] button:hover,
[class*="_bubble_"] button:hover {
  color: #ffffff !important;
}

[class*="_wrapper_10xqw"] .ui.pointing.secondary.menu,
[class*="_wrapper_160xl"] .ui.pointing.secondary.menu {
  display: flex !important; /* comments/actions tabs stay visible */
  background: transparent !important;
  border-color: rgba(206, 207, 210, 0.2) !important;
}
[class*="_wrapper_10xqw"] .ui.pointing.secondary.menu .item,
[class*="_wrapper_160xl"] .ui.pointing.secondary.menu .item {
  color: #9a9b9f !important;
}
[class*="_wrapper_10xqw"] .ui.pointing.secondary.menu .active.item,
[class*="_wrapper_160xl"] .ui.pointing.secondary.menu .active.item {
  color: #fff !important;
  border-color: #fff !important;
}

/* Cover: kill the big white blowout behind images */
[class*="_coverWrapper_160xl"],
[class*="_coverWrapper_i28lr"],
[class*="_coverWrapper_fiqad"],
[class*="_cover_160xl"],
[class*="_wrapper_10xqw"] [class*="_cover_"],
[class*="_wrapper_160xl"] [class*="_cover_"] {
  background: #141416 !important;
}
[class*="_cover_160xl"],
[class*="_cover_i28lr"],
[class*="_cover_fiqad"] {
  filter: brightness(0.92) !important;
}

/* Attachment names / meta */
[class*="_wrapper_10xqw"] a,
[class*="_wrapper_160xl"] a {
  color: #9ec1ff !important;
}
[class*="_attachments_10xqw"],
[class*="_attachments_160xl"],
[class*="_attachment_10xqw"],
[class*="_attachment_160xl"] {
  color: #cecfd2 !important;
}

/* Checklist / tasks — unified dark, no light-gray “L” chrome */
[class*="_wrapper_10xqw"] [class*="_tasks_"] li,
[class*="_wrapper_160xl"] [class*="_tasks_"] li,
[class*="_wrapper_10xqw"] [class*="_name_"],
[class*="_wrapper_160xl"] [class*="_name_"],
[class*="_tasks_kjg3m"],
[class*="_tasks_kjg3m"] li,
[class*="_text_170s0"],
[class*="_name_170s0"],
[class*="_task_170s0"],
[class*="_wrapper_170s0"],
[class*="_progressRow_kjg3m"],
[class*="_progressWrapper_kjg3m"],
[class*="_count_kjg3m"],
[class*="_wrapper_g18fu"],
[class*="_field_g18fu"],
[class*="_controls_g18fu"],
[class*="_wrapper_vu0dx"],
[class*="_wrapper_28cn1"],
[class*="_wrapperDragging_vu0dx"],
[class*="_wrapperDragging_170s0"],
[class*="_tasks_1uxqm"],
[class*="_progressRow_1uxqm"],
[class*="_progressWrapper_1uxqm"],
[class*="_contentModule_10xqw"] [class*="_wrapper_"],
[class*="_contentModule_160xl"] [class*="_wrapper_"] {
  color: #fff !important;
  background: #2a2a2c !important; /* levemente acima de #1F1F21 — substitui #CCCBCD */
  background-color: #2a2a2c !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
[class*="_moduleHeader_vu0dx"],
[class*="_moduleHeader_28cn1"],
[class*="_moduleHeaderTitle_vu0dx"],
[class*="_moduleHeaderTitle_28cn1"],
[class*="_moduleHeaderWithActions_vu0dx"],
[class*="_moduleHeaderEditable_28cn1"],
[class*="_moduleIcon_vu0dx"],
[class*="_moduleIcon_28cn1"],
[class*="_moduleHeader_10xqw"],
[class*="_moduleHeader_160xl"],
[class*="_moduleIcon_10xqw"],
[class*="_moduleIcon_160xl"],
[class*="_wrapper_vu0dx"] [class*="_moduleHeader_"],
[class*="_wrapper_vu0dx"] [class*="_moduleHeaderTitle_"],
[class*="_wrapper_vu0dx"] [class*="_moduleIcon_"],
[class*="_wrapper_28cn1"] [class*="_moduleHeader_"],
[class*="_wrapper_28cn1"] [class*="_moduleHeaderTitle_"] {
  color: #fff !important;
  background: transparent !important;
  background-color: transparent !important;
}
[class*="_count_kjg3m"],
[class*="_count_1uxqm"] {
  color: #cecfd2 !important;
  background: transparent !important;
}
[class*="_nameCompleted_170s0"],
[class*="_nameCompleted_1thss"] {
  color: #9a9b9f !important;
}
[class*="_taskButton_1uxqm"],
[class*="_taskButtonText_1uxqm"] {
  background: transparent !important;
  color: #cecfd2 !important;
}
[class*="_taskButton_1uxqm"]:hover {
  background: rgba(206, 207, 210, 0.08) !important;
  color: #fff !important;
}
/* Add-task field: soft dark, white text (kill #fff Planka default) */
[class*="_field_g18fu"],
[class*="_wrapper_10xqw"] [class*="_field_g18fu"],
[class*="_wrapper_160xl"] [class*="_field_g18fu"],
[class*="_wrapper_10xqw"] [class*="_field_1ba2a"],
[class*="_wrapper_160xl"] [class*="_field_1ba2a"] {
  background: #323234 !important;
  color: #fff !important;
  border: 1px solid rgba(206, 207, 210, 0.14) !important;
  border-radius: 8px !important;
}
[class*="_field_g18fu"]::placeholder,
[class*="_field_1ba2a"]::placeholder {
  color: #9a9b9f !important;
}
[class*="_toggleLinkingButton_g18fu"],
[class*="_toggleLinkingButtonIcon_g18fu"],
[class*="_controls_g18fu"],
[class*="_controls_g18fu"] * {
  color: #cecfd2 !important;
  background: transparent !important;
}
[class*="_icon_170s0"],
[class*="_checkboxWrapper_170s0"] {
  color: #cecfd2 !important;
}
[class*="_contentHoverable_170s0"]:hover {
  background: rgba(206, 207, 210, 0.06) !important;
}
/* Progress bar row on dark */
[class*="_progressRow_kjg3m"] .ui.progress,
[class*="_progress_kjg3m"],
[class*="_progressRow_1uxqm"] .ui.progress,
[class*="_progress_1uxqm"],
[class*="_wrapper_10xqw"] .ui.progress,
[class*="_wrapper_160xl"] .ui.progress,
[class*="_wrapper_vu0dx"] .ui.progress {
  background: rgba(206, 207, 210, 0.12) !important;
}

/* Sidebar action buttons already dark — keep white text */
[class*="_actionButton_10xqw"],
[class*="_actionButton_160xl"],
[class*="_moreActionsButton_10xqw"],
[class*="_moreActionsButton_160xl"] {
  background: #2a2b2e !important;
  color: #fff !important;
  box-shadow: none !important;
}
[class*="_actionButton_10xqw"]:hover,
[class*="_actionButton_160xl"]:hover {
  background: #35363a !important;
  color: #fff !important;
}

/* Dimmer / modal shell around card */
.ui.dimmer,
.ui.page.modals.dimmer {
  background: rgba(10, 10, 12, 0.72) !important;
}
.ui.modal[class*="_modal_"],
.ui.modal > .content {
  background: #1f1f21 !important;
  color: #fff !important;
}

/* Board toolbar / search / filters */
[class*="_filter_"] input,
[class*="_search_"] input,
input[placeholder*="Pesquisar"],
input[placeholder*="pesquisar"],
.ui.input > input,
.ui.search > .prompt {
  background: rgba(16, 18, 4, 0.55) !important;
  color: #fff !important;
  border-color: var(--af-line) !important;
  caret-color: #fff;
}
.ui.input > input::placeholder,
.ui.search > .prompt::placeholder,
input::placeholder {
  color: #9a9b9f !important;
  opacity: 1 !important;
}

/* Dropdowns / selects in dark chrome */
.ui.dropdown,
.ui.dropdown .text,
.ui.dropdown .menu,
.ui.dropdown .menu > .item,
.ui.selection.dropdown,
.ui.selection.dropdown .menu > .item {
  background: var(--af-chrome) !important;
  color: #fff !important;
  border-color: var(--af-line) !important;
}
.ui.dropdown .menu > .item:hover {
  background: rgba(206, 207, 210, 0.12) !important;
  color: #fff !important;
}

/* Modals / dimmers */
.ui.modal,
.ui.modal > .header,
.ui.modal > .content,
.ui.modal > .actions,
.ui.modal > .close {
  background: var(--af-chrome) !important;
  color: #fff !important;
}
.ui.modal > .close {
  color: #fff !important;
  opacity: 1 !important;
}

/* Board tabs strip text */
html.af-route-board [class*="_tab_"],
html.af-route-board [class*="_tabs_"] button,
html.af-route-board [class*="_tabs_"] a {
  color: #cecfd2 !important;
}
html.af-route-board [class*="_tab_"][class*="active"],
html.af-route-board [class*="_activeTab_"] {
  color: #fff !important;
}

/* Generic: any close / chevron icon in dark chrome */
.ui.popup i.close.icon,
.ui.modal > i.close.icon,
button[aria-label="Close"],
button[aria-label="Fechar"],
[class*="_close_"] {
  color: #fff !important;
  opacity: 1 !important;
}

/* Bottom action bar (mobile) if present */
[class*="_actionBar_"] ,
[class*="_actionBarItem_"] {
  color: #fff !important;
}
[class*="_actionBarItem_"] * {
  color: #fff !important;
}

/* =========================================================
   SETTINGS / USER PROFILE — kill white “blowout”
   ========================================================= */
[class*="_wrapper_1napt"],
[class*="_wrapper_kv1fg"],
[class*="_wrapper_36a26"],
[class*="_content_36a26"],
[class*="_fieldWrapper_tpq9f"],
[class*="_fieldWrapper_rd45q"],
html.af-route-settings #root > div,
html.af-route-user #root > div,
[class*="_settings_"] {
  background: var(--af-chrome) !important;
  color: #fff !important;
  border-color: var(--af-line) !important;
  box-shadow: none !important;
}

/* Labels + body copy on settings — force WHITE (Planka uses #444 on _text_1tqk1) */
[class*="_wrapper_1napt"] label,
[class*="_wrapper_kv1fg"] label,
[class*="_wrapper_1napt"] [class*="_label_"],
[class*="_wrapper_kv1fg"] [class*="_label_"],
[class*="_wrapper_1napt"] span,
[class*="_wrapper_kv1fg"] span,
[class*="_wrapper_1napt"] p,
[class*="_wrapper_kv1fg"] p,
[class*="_wrapper_1napt"] h1,
[class*="_wrapper_1napt"] h2,
[class*="_wrapper_1napt"] h3,
[class*="_wrapper_1napt"] h4,
[class*="_wrapper_kv1fg"] h4,
[class*="_wrapper_odsqa"] h4,
[class*="_wrapper_odsqa"] [class*="_text_"],
[class*="_text_1tqk1"],
[class*="_wrapper_1napt"] [class*="_text_"],
[class*="_wrapper_odsqa"] [class*="_text_"],
[class*="_language_dipuy"],
[class*="_language_dipuy"] *,
.ui.modal [class*="_wrapper_odsqa"] .ui.divider,
.ui.modal [class*="_wrapper_1napt"] .ui.divider,
.ui.modal .ui.divider.horizontal,
.ui.modal .ui.header,
.ui.modal h4.ui.header {
  color: #fff !important;
  opacity: 1 !important;
}
.ui.modal .ui.divider.horizontal::before,
.ui.modal .ui.divider.horizontal::after {
  border-color: rgba(206, 207, 210, 0.25) !important;
  background: rgba(206, 207, 210, 0.25) !important;
}

/* Gravity text inputs — dark field, white value */
.g-text-input,
.g-text-input__content,
.g-text-input_view_normal .g-text-input__content,
[class*="_wrapper_1napt"] .g-text-input__content,
[class*="_wrapper_kv1fg"] .g-text-input__content {
  --g-text-input-background-color: #1f1f21;
  --g-text-input-text-color: #ffffff;
  --g-text-input-label-color: #cecfd2;
  --g-text-input-placeholder-color: #9a9b9f;
  --g-text-input-border-color: rgba(206, 207, 210, 0.2);
  background-color: #1f1f21 !important;
  color: #fff !important;
  border-color: rgba(206, 207, 210, 0.2) !important;
}
.g-text-input__control,
.g-text-input__label,
.g-text-input input,
[class*="_wrapper_1napt"] input,
[class*="_wrapper_kv1fg"] input,
[class*="_field_1ba2a"],
[class*="_field_g18fu"],
[class*="_field_4d1a2"] {
  background: #1f1f21 !important;
  color: #fff !important;
  border-color: rgba(206, 207, 210, 0.2) !important;
  caret-color: #fff;
}
.g-text-input__control::placeholder,
[class*="_wrapper_1napt"] input::placeholder {
  color: #9a9b9f !important;
}

/* Salvar / success / action — solid green, white text (no mint blowout) */
.g-button_view_action,
.g-button_view_outlined-success,
.g-button_view_flat-success,
.g-button_view_normal-success,
[class*="_wrapper_1napt"] .g-button_view_action,
[class*="_wrapper_kv1fg"] .g-button_view_action,
[class*="_wrapper_1napt"] button[type="submit"],
[class*="_wrapper_kv1fg"] button[type="submit"] {
  --g-button-background-color: #1f845a !important;
  --g-button-background-color-hover: #196b49 !important;
  --g-button-text-color: #ffffff !important;
  --g-button-text-color-hover: #ffffff !important;
  --_--background-color: #1f845a !important;
  --_--background-color-hover: #196b49 !important;
  --_--text-color: #ffffff !important;
  background: #1f845a !important;
  color: #fff !important;
}
.g-button_view_action .g-button__text,
.g-button_view_outlined-success .g-button__text,
.g-button_view_flat-success .g-button__text,
[class*="_wrapper_1napt"] .g-button__text,
[class*="_wrapper_kv1fg"] .g-button__text {
  color: #fff !important;
}

/* Settings links (editar username/email/senha) */
[class*="_wrapper_1napt"] a,
[class*="_wrapper_kv1fg"] a,
[class*="_settings_"] a {
  color: #9ec1ff !important;
}
[class*="_wrapper_1napt"] a:hover,
[class*="_wrapper_kv1fg"] a:hover {
  color: #fff !important;
}

/* Dividers “Idioma / Autenticação” */
[class*="_wrapper_1napt"] .ui.divider,
[class*="_wrapper_kv1fg"] .ui.divider,
[class*="_wrapper_1napt"] hr,
[class*="_wrapper_kv1fg"] hr {
  border-color: rgba(206, 207, 210, 0.2) !important;
  color: #9a9b9f !important;
}

/* Generic white panels that still blow out on dark theme */
.ui.segment,
.ui.card,
.ui.form,
.ui.accordion,
[class*="_dropzone_1khdk"] {
  background: var(--af-chrome) !important;
  color: #fff !important;
  border-color: var(--af-line) !important;
  box-shadow: none !important;
}

/* Catch-all: Gravity float surfaces on settings routes */
html.af-route-settings,
html.af-route-user,
html[class*="af-route-"] .g-root {
  --g-color-base-background: #242528;
  --g-color-base-float: #242528;
  --g-color-base-generic: rgba(206, 207, 210, 0.1);
  --g-color-text-primary: #ffffff;
  --g-color-text-secondary: #cecfd2;
  --g-color-text-hint: #9a9b9f;
  --g-color-base-positive-light: #1f845a;
  --g-color-base-positive-medium: #196b49;
  --g-color-text-positive-heavy: #ffffff;
}

/* User settings: Conta only — hide tab strip (Preferências / Notificações removed in bundle) */
.ui.modal .ui.pointing.secondary.menu:not([class*="af-keep"]) {
  display: none !important;
}
/* Card comments/actions tabs — must win over settings hide */
[class*="_wrapper_10xqw"] .ui.pointing.secondary.menu,
[class*="_wrapper_160xl"] .ui.pointing.secondary.menu,
.ui.modal [class*="_wrapper_10xqw"] .ui.pointing.secondary.menu,
.ui.modal [class*="_wrapper_160xl"] .ui.pointing.secondary.menu {
  display: flex !important;
  background: transparent !important;
  border-color: rgba(206, 207, 210, 0.2) !important;
}

/* —— Checklist nuke #CCCBCD (last wins) —— */
[class*="_wrapper_vu0dx"],
[class*="_wrapper_28cn1"],
[class*="_wrapper_10xqw"] [class*="_wrapper_vu0dx"],
[class*="_wrapper_160xl"] [class*="_wrapper_vu0dx"],
[class*="_contentModule_10xqw"] [class*="_wrapper_vu0dx"],
[class*="_contentModule_160xl"] [class*="_wrapper_vu0dx"],
[class*="_wrapper_10xqw"] [data-rbd-droppable-id],
[class*="_wrapper_160xl"] [data-rbd-droppable-id] {
  background: #2a2a2c !important;
  background-color: #2a2a2c !important;
}
[class*="_wrapper_vu0dx"] [class*="_moduleHeaderTitle_"],
[class*="_wrapper_vu0dx"] [class*="_moduleHeader_"],
[class*="_wrapper_vu0dx"] [class*="_moduleIcon_"],
[class*="_wrapper_28cn1"] [class*="_moduleHeaderTitle_"],
[class*="_wrapper_28cn1"] [class*="_moduleHeader_"],
[class*="_wrapper_vu0dx"] i.icon,
[class*="_moduleHeaderTitle_vu0dx"],
[class*="_moduleHeader_vu0dx"],
[class*="_moduleIcon_vu0dx"] {
  color: #ffffff !important;
}




/* —— Add card / add list title field (kill bright white) —— */
[class*="_fieldWrapper_rd45q"],
[class*="_fieldWrapper_tpq9f"],
[class*="_addCard_hsqrn"] [class*="_fieldWrapper_"],
[class*="_outerWrapper_hsqrn"] [class*="_fieldWrapper_"] {
  background: #2a2a2c !important;
  background-color: #2a2a2c !important;
  box-shadow: none !important;
  border: 1px solid rgba(206, 207, 210, 0.14) !important;
  border-radius: 8px !important;
}
[class*="_field_rd45q"],
[class*="_field_tpq9f"],
[class*="_fieldWrapper_rd45q"] textarea,
[class*="_fieldWrapper_tpq9f"] textarea,
[class*="_addCard_hsqrn"] textarea,
[class*="_outerWrapper_hsqrn"] textarea {
  background: transparent !important;
  color: #fff !important;
  caret-color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}
[class*="_field_rd45q"]::placeholder,
[class*="_field_tpq9f"]::placeholder,
[class*="_addCard_hsqrn"] textarea::placeholder,
[class*="_outerWrapper_hsqrn"] textarea::placeholder {
  color: #9a9b9f !important;
  opacity: 1 !important;
}
[class*="_selectTypeButton_rd45q"],
[class*="_selectTypeButtonIcon_rd45q"],
[class*="_controls_rd45q"] a,
[class*="_controls_rd45q"] .button:not(.positive) {
  color: #cecfd2 !important;
  background: transparent !important;
}

/* WebSocket reconnect banner (brand.js watchdog) */
#af-ws-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  top: calc(12px + env(safe-area-inset-top, 0px));
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(163, 51, 51, 0.95);
  color: #fff;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}
#af-ws-banner button {
  flex-shrink: 0;
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff;
  color: #a33;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
