/* Scrollbar Prumix: o trilho e o fio verde do prumo e o "thumb" e o peso de aco
 * (tampa serrilhada, corpo cilindrico escovado e ponta conica), igual a ilustracao da landing.
 * Na horizontal o mesmo peso aparece deitado, com a ponta para a direita. */
:root {
  --prumo-fio: #1f8a5b;
  --prumo-fio-escuro: #16684e;
  --prumo-aco-escuro: #4a4846;
}

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: transparent; }

/* Fio: linha de 2px no centro, com leve trancado como o cordao da ilustracao. */
::-webkit-scrollbar-track {
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.28) 0 2px, transparent 2px 5px) center / 2px 100% no-repeat,
    linear-gradient(90deg, var(--prumo-fio-escuro), var(--prumo-fio)) center / 2px 100% no-repeat;
  opacity: .9;
}
::-webkit-scrollbar-track:horizontal {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 2px, transparent 2px 5px) center / 100% 2px no-repeat,
    linear-gradient(180deg, var(--prumo-fio-escuro), var(--prumo-fio)) center / 100% 2px no-repeat;
}

/* Peso vertical: tampa serrilhada (topo) + corpo de aco + ponta conica (base). */
::-webkit-scrollbar-thumb {
  border: solid transparent;
  border-width: 0 1px;
  border-radius: 3px 3px 0 0;
  background:
    repeating-linear-gradient(90deg, #6f6c69 0 1px, #dedcd8 1px 2px) center top / 6px 4px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 9' preserveAspectRatio='none'%3E%3ClinearGradient id='a'%3E%3Cstop offset='0' stop-color='%234a4846'/%3E%3Cstop offset='.42' stop-color='%23f2f1ef'/%3E%3Cstop offset='1' stop-color='%23575451'/%3E%3C/linearGradient%3E%3Cpath d='M0 0h10L5 9z' fill='url(%23a)'/%3E%3C/svg%3E") center bottom / 100% 8px no-repeat,
    linear-gradient(90deg, #4a4846 0%, #8d8a86 18%, #e9e7e3 42%, #b4b1ad 62%, #5c5956 100%) 0 4px / 100% calc(100% - 12px) no-repeat;
}
::-webkit-scrollbar-thumb:hover {
  background:
    repeating-linear-gradient(90deg, #5f5c59 0 1px, #f1efeb 1px 2px) center top / 6px 4px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 9' preserveAspectRatio='none'%3E%3ClinearGradient id='a'%3E%3Cstop offset='0' stop-color='%23565350'/%3E%3Cstop offset='.42' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23676360'/%3E%3C/linearGradient%3E%3Cpath d='M0 0h10L5 9z' fill='url(%23a)'/%3E%3C/svg%3E") center bottom / 100% 8px no-repeat,
    linear-gradient(90deg, #565350 0%, #a19e9a 18%, #ffffff 42%, #c9c6c2 62%, #676360 100%) 0 4px / 100% calc(100% - 12px) no-repeat;
}
/* Arrastando: o aco ganha o reflexo verde-limao da marca. */
::-webkit-scrollbar-thumb:active {
  background:
    repeating-linear-gradient(90deg, #16684e 0 1px, #d6fa79 1px 2px) center top / 6px 4px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 9' preserveAspectRatio='none'%3E%3ClinearGradient id='a'%3E%3Cstop offset='0' stop-color='%23345a4b'/%3E%3Cstop offset='.42' stop-color='%23f4ffd6'/%3E%3Cstop offset='1' stop-color='%233d6253'/%3E%3C/linearGradient%3E%3Cpath d='M0 0h10L5 9z' fill='url(%23a)'/%3E%3C/svg%3E") center bottom / 100% 8px no-repeat,
    linear-gradient(90deg, #345a4b 0%, #8fae8f 18%, #f4ffd6 42%, #b7cfa6 62%, #3d6253 100%) 0 4px / 100% calc(100% - 12px) no-repeat;
}

/* Peso horizontal (deitado): tampa a esquerda, ponta a direita. */
::-webkit-scrollbar-thumb:horizontal {
  border-width: 1px 0;
  border-radius: 3px 0 0 3px;
  background:
    repeating-linear-gradient(180deg, #6f6c69 0 1px, #dedcd8 1px 2px) left center / 4px 6px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 10' preserveAspectRatio='none'%3E%3ClinearGradient id='a' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%234a4846'/%3E%3Cstop offset='.42' stop-color='%23f2f1ef'/%3E%3Cstop offset='1' stop-color='%23575451'/%3E%3C/linearGradient%3E%3Cpath d='M0 0l9 5-9 5z' fill='url(%23a)'/%3E%3C/svg%3E") right center / 8px 100% no-repeat,
    linear-gradient(180deg, #4a4846 0%, #8d8a86 18%, #e9e7e3 42%, #b4b1ad 62%, #5c5956 100%) 4px 0 / calc(100% - 12px) 100% no-repeat;
}
::-webkit-scrollbar-thumb:horizontal:hover {
  background:
    repeating-linear-gradient(180deg, #5f5c59 0 1px, #f1efeb 1px 2px) left center / 4px 6px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 10' preserveAspectRatio='none'%3E%3ClinearGradient id='a' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23565350'/%3E%3Cstop offset='.42' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23676360'/%3E%3C/linearGradient%3E%3Cpath d='M0 0l9 5-9 5z' fill='url(%23a)'/%3E%3C/svg%3E") right center / 8px 100% no-repeat,
    linear-gradient(180deg, #565350 0%, #a19e9a 18%, #ffffff 42%, #c9c6c2 62%, #676360 100%) 4px 0 / calc(100% - 12px) 100% no-repeat;
}
::-webkit-scrollbar-thumb:horizontal:active {
  background:
    repeating-linear-gradient(180deg, #16684e 0 1px, #d6fa79 1px 2px) left center / 4px 6px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 10' preserveAspectRatio='none'%3E%3ClinearGradient id='a' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23345a4b'/%3E%3Cstop offset='.42' stop-color='%23f4ffd6'/%3E%3Cstop offset='1' stop-color='%233d6253'/%3E%3C/linearGradient%3E%3Cpath d='M0 0l9 5-9 5z' fill='url(%23a)'/%3E%3C/svg%3E") right center / 8px 100% no-repeat,
    linear-gradient(180deg, #345a4b 0%, #8fae8f 18%, #f4ffd6 42%, #b7cfa6 62%, #3d6253 100%) 4px 0 / calc(100% - 12px) 100% no-repeat;
}

/* No Chrome 121+, scrollbar-width/scrollbar-color desligam o ::-webkit-scrollbar.
 * Onde ha suporte ao pseudo-elemento, devolvemos "auto" para o peso aparecer tambem nesses paineis. */
@supports selector(::-webkit-scrollbar) {
  .workspace-navigation, .project-workspace-tabs, .project-workspace-chrome > .hub-subtabs { scrollbar-width: auto !important; scrollbar-color: auto !important; }
}

/* Firefox (sem ::-webkit-scrollbar): aco sobre o fio verde. */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: #8d8a86 #dfe9e3; scrollbar-width: thin; }
  * { scrollbar-color: #8d8a86 transparent; }
}
