/* HubTasks — ajustes visuais. Editável em /opt/hubtasks/hubtasks.css (sem rebuild). */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap");

/* SolarPulse / HubTasks. Override the public theme tokens, not generated class hashes.
   Both appearance modes use the same palette so menus and portals remain legible. */
:root, html.dark, html.light {
  color-scheme: dark;
  --ht-kanban-offset: 150px;
  --ht-bg: #090d10;
  --ht-panel: #101519;
  --ht-panel-raised: #141a1f;
  --ht-line: #232b31;
  --ht-green: #a1f363;
  --theme-dark-background-secondary: #090d10 !important;
  --theme-light-background-secondary: #090d10 !important;
  --t-font-family: "DM Sans", sans-serif !important;
  --t-font-color-primary: #e5e9ed !important;
  --t-font-color-secondary: #a5afb7 !important;
  --t-font-color-tertiary: #8a959e !important;
  --t-font-color-light: #7e8c97 !important;
  --t-font-color-extra-light: #667480 !important;
  --t-font-color-inverted: #090d10 !important;
  --t-font-color-on-accent: #090d10 !important;
  --t-font-color-danger: #f18188 !important;
  --t-background-primary: #090d10 !important;
  --t-background-secondary: #101519 !important;
  --t-background-tertiary: #141a1f !important;
  --t-background-quaternary: #1a2329 !important;
  --t-background-noisy: none !important;
  --t-background-radial-gradient: radial-gradient(ellipse at top, #243a24, #101519) !important;
  --t-background-radial-gradient-hover: radial-gradient(ellipse at top, #315331, #141a1f) !important;
  --t-background-inverted-primary: #a1f363 !important;
  --t-background-inverted-secondary: #b4fa82 !important;
  --t-background-primary-inverted: #a1f363 !important;
  --t-background-primary-inverted-hover: #b4fa82 !important;
  --t-background-overlay-primary: #030609b8 !important;
  --t-background-overlay-secondary: #03060980 !important;
  --t-background-overlay-tertiary: #03060966 !important;
  --t-background-transparent-primary: #090d1080 !important;
  --t-background-transparent-secondary: #10151999 !important;
  --t-background-transparent-lighter: #a1f36308 !important;
  --t-background-transparent-light: #a1f3630d !important;
  --t-background-transparent-medium: #a1f36316 !important;
  --t-background-transparent-strong: #a1f36324 !important;
  --t-background-transparent-blue: #8abafa24 !important;
  --t-background-transparent-success: #a1f36324 !important;
  --t-background-transparent-danger: #f181881a !important;
  --t-border-color-light: #1a2329 !important;
  --t-border-color-medium: #232b31 !important;
  --t-border-color-strong: #3c4c56 !important;
  --t-border-color-transparent-strong: #8a959e26 !important;
  --t-border-color-inverted: #a1f363 !important;
  --t-border-color-secondary-inverted: #8a959e !important;
  --t-border-color-blue: #6b9e47 !important;
  --t-accent-primary: #a1f363 !important;
  --t-accent-secondary: #a1f363 !important;
  --t-accent-tertiary: #243a24 !important;
  --t-accent-quaternary: #15251a !important;
  --t-accent-accent1: #0c1510 !important;
  --t-accent-accent2: #122018 !important;
  --t-accent-accent3: #1b3020 !important;
  --t-accent-accent4: #243e27 !important;
  --t-accent-accent5: #315331 !important;
  --t-accent-accent6: #426d38 !important;
  --t-accent-accent7: #5a8d40 !important;
  --t-accent-accent8: #7bad50 !important;
  --t-accent-accent9: #a1f363 !important;
  --t-accent-accent10: #b4fa82 !important;
  --t-accent-accent11: #b8ee95 !important;
  --t-accent-accent12: #e2fbd4 !important;
  --t-accent-accent3570: #426d38 !important;
  --t-accent-accent4060: #5a8d40 !important;
  --t-buttons-secondary-text-color: #b8ee95 !important;
  --t-color-blue: #8abafa !important;
  --t-color-gray1: #090d10 !important;
  --t-color-gray2: #101519 !important;
  --t-color-gray3: #141a1f !important;
  --t-color-gray4: #1a2329 !important;
  --t-color-gray5: #232b31 !important;
  --t-color-gray6: #2d3942 !important;
  --t-color-gray7: #3c4c56 !important;
  --t-color-gray8: #586873 !important;
  --t-color-gray9: #71808a !important;
  --t-color-gray10: #8a959e !important;
  --t-color-gray11: #b4bec6 !important;
  --t-color-gray12: #e5e9ed !important;
  --t-border-radius-sm-round: 6px !important;
  --t-border-radius-sm: 10px !important;
  --t-border-radius-md-round: 9px !important;
  --t-border-radius-lg-round: 12px !important;
  --t-box-shadow-light: 0 2px 8px #00000020 !important;
  --t-box-shadow-strong: 0 12px 40px #00000060 !important;
  --t-box-shadow-super-heavy: 0 20px 70px #00000080 !important;
  --t-box-shadow-sidebar: 1px 0 0 #232b31 !important;
  --t-font-size-xxs: .785rem !important;
  font-size: 14px;
  background: var(--ht-bg);
}
body {
  font-family: var(--t-font-family);
  background: var(--ht-bg);
  color: var(--t-font-color-primary);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, [role="heading"] {
  font-family: "Manrope", "DM Sans", sans-serif;
  letter-spacing: -.025em;
}
button, input, textarea, select { font-family: inherit; }
button[data-color="accent"][data-variant="solid"] {
  --tw-button-background: #a1f363 !important;
  --tw-button-color: #090d10 !important;
  --tw-button-border: #a1f363 !important;
  --tw-button-hover: #b4fa82 !important;
  --tw-button-active: #91dd58 !important;
  font-weight: 650;
  border-radius: 8px;
  min-height: 32px;
  padding-inline: 12px;
}
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
::selection { background: #a1f36340; color: #f3ffe9; }
:focus-visible { outline: 2px solid #a1f363; outline-offset: 3px; }
input:not([type="checkbox"]):not([type="radio"]):focus, textarea:focus {
  border-color: #7bad50;
  box-shadow: 0 0 0 3px #a1f3630d;
}
* { scrollbar-width: thin; scrollbar-color: #455b41 #101519; }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: #101519; }
::-webkit-scrollbar-thumb { background: #455b41; border: 2px solid #101519; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #7bad50; }
a[href^="/objects/"] { border-radius: 8px; }
a[href^="/objects/"]:hover { background: #a1f36310; }
[data-record-board-column-id] { border-color: #232b31; }
[data-record-board-column-id] [role="button"] {
  border-radius: 10px;
  border-color: #27333a;
  box-shadow: 0 2px 8px #00000018;
}
[data-record-board-column-id] [role="button"]:hover {
  border-color: #66844e;
}
@media (max-width: 640px) {
  :root { --ht-kanban-offset: 160px; }
  input, textarea, select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Kanban: cada coluna rola sozinha */
[data-record-board-column-id] > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 0 1 auto;
  height: auto;
  max-height: calc(100vh - var(--ht-kanban-offset));
  max-height: calc(100dvh - var(--ht-kanban-offset));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #455b41 #101519;
}
/* os cartões não podem encolher para caber: a coluna é que rola */
[data-record-board-column-id] > div > * { flex-shrink: 0; }
[data-record-board-column-id] > div::-webkit-scrollbar { width: 8px; }
[data-record-board-column-id] > div::-webkit-scrollbar-thumb { background: #455b41; border-radius: 4px; }
[data-record-board-column-id] > div::-webkit-scrollbar-track { background: transparent; }
