/* Contraste melhor nos selects (horários + atividades) */
select {
  background: #e8eef6 !important;
  color: #000 !important;
  border: 1px solid rgba(0, 0, 0, .18) !important;
}

select:focus {
  border-color: rgba(78, 161, 255, .60) !important;
  box-shadow: 0 0 0 4px rgba(78, 161, 255, .12) !important;
}

select option {
  color: #000;
  background: #fff;
}

textarea,
input[type="text"] {
  width: 100%;
  background: rgba(0, 0, 0, .18);
  border: 1px solid var(--line2);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  font-size: 13px;
}

textarea:focus,
input[type="text"]:focus {
  border-color: rgba(78, 161, 255, .50);
  box-shadow: 0 0 0 4px rgba(78, 161, 255, .10)
}

input.timeManualInput {
  width: 100%;
  background: rgba(0, 0, 0, .18);
  border: 1px solid var(--line2);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

input.timeManualInput:focus {
  border-color: rgba(78, 161, 255, .50);
  box-shadow: 0 0 0 4px rgba(78, 161, 255, .10)
}

textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.25
}

.hint {
  font-size: 12px;
  color: rgba(159, 176, 195, .85);
  line-height: 1.25
}

.idAutoPill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .14);
  color: var(--muted);
  font-size: 12px;
}

.idAutoPill.ok {
  border-color: rgba(66, 211, 146, .35);
  background: rgba(66, 211, 146, .10);
  color: rgba(214, 255, 236, .92)
}

.idAutoPill.warn {
  border-color: rgba(255, 200, 97, .35);
  background: rgba(255, 200, 97, .10);
  color: rgba(255, 240, 210, .92)
}

html.light .idAutoPill.warn {
  border-color: rgba(191, 139, 0, .36);
  background: rgba(255, 220, 125, .30);
  color: #624500;
}

html.light .idAutoPill.ok {
  color: #155e3b;
}

.idAutoPill .b {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .20)
}

.idAutoPill.ok .b {
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(66, 211, 146, .12)
}

.idAutoPill.warn .b {
  background: var(--warn);
  box-shadow: 0 0 0 4px rgba(255, 200, 97, .12)
}

.modalFooter {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line)
}

/* Modal de evento: layout mais compacto + barra colorida por projeto */
.eventModal {
  --eventModalHeader: #4ea1ff;
  --eventModalHeaderEdge: #2f6fd8;
  --eventModalHeaderText: #f5fbff;
  width: min(640px, 100%);
  border-radius: 16px;
  /* No tema escuro, deixa o corpo do popup um pouco mais claro */
  border-color: rgba(148, 186, 229, .24);
  background: linear-gradient(180deg, rgba(30, 42, 56, .98), rgba(24, 35, 48, .96));
  box-shadow: 0 20px 64px rgba(0, 0, 0, .62);
}

.eventModal[data-pcolor="0"] {
  --eventModalHeader: #42d392;
  --eventModalHeaderEdge: #1f9366;
}

.eventModal[data-pcolor="1"] {
  --eventModalHeader: #ffc861;
  --eventModalHeaderEdge: #d99a1f;
  --eventModalHeaderText: #151c26;
}

.eventModal[data-pcolor="2"] {
  --eventModalHeader: #ff9f43;
  --eventModalHeaderEdge: #cd6b18;
}

.eventModal[data-pcolor="3"] {
  --eventModalHeader: #4ea1ff;
  --eventModalHeaderEdge: #2f6fd8;
}

.eventModal[data-pcolor="4"] {
  --eventModalHeader: #9b59b6;
  --eventModalHeaderEdge: #6f3f88;
}

.eventModal[data-pcolor="5"] {
  --eventModalHeader: #3498db;
  --eventModalHeaderEdge: #216fa1;
}

.eventModal[data-pcolor="6"] {
  --eventModalHeader: #e74c3c;
  --eventModalHeaderEdge: #a63228;
}

.eventModal[data-pcolor="7"] {
  --eventModalHeader: #1abc9c;
  --eventModalHeaderEdge: #14836d;
}

.eventModal[data-pcolor="8"] {
  --eventModalHeader: #f1c40f;
  --eventModalHeaderEdge: #ba940a;
  --eventModalHeaderText: #151c26;
}

.eventModal[data-pcolor="9"] {
  --eventModalHeader: #95a5a6;
  --eventModalHeaderEdge: #697677;
  --eventModalHeaderText: #151c26;
}

.eventModal[data-pcolor="1"] .modalActions .btn.btnSm,
.eventModal[data-pcolor="1"] .modalActions .xBtn,
.eventModal[data-pcolor="8"] .modalActions .btn.btnSm,
.eventModal[data-pcolor="8"] .modalActions .xBtn,
.eventModal[data-pcolor="9"] .modalActions .btn.btnSm,
.eventModal[data-pcolor="9"] .modalActions .xBtn {
  border-color: rgba(21, 28, 38, .35);
  background: rgba(255, 255, 255, .42);
}

.eventModal[data-pcolor="1"] .ctrlDate--compact,
.eventModal[data-pcolor="8"] .ctrlDate--compact,
.eventModal[data-pcolor="9"] .ctrlDate--compact {
  border-color: rgba(21, 28, 38, .30);
  background: rgba(255, 255, 255, .46);
}

.eventModal .modalHeader {
  padding: 10px 12px 11px;
  gap: 8px;
  border-bottom: none;
  background: linear-gradient(135deg, var(--eventModalHeader), var(--eventModalHeaderEdge));
  color: var(--eventModalHeaderText);
}

.eventModal .modalHeader h2,
.eventModal .modalHeader .when,
.eventModal .modalDuration {
  color: var(--eventModalHeaderText);
}

.eventModal .modalHeaderMeta {
  gap: 2px;
  min-width: 0;
}

.eventModal .modalHeader h2 {
  font-size: 15px;
}

.eventModal .modalDateRow {
  margin: 1px 0 0;
  gap: 6px;
  flex-wrap: wrap;
}

.eventModal .ctrlDate--compact {
  height: 28px;
  padding: 3px 8px;
  border-radius: 9px;
  border-color: rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .16);
  color: inherit;
}

.eventModal .when {
  font-size: 11px;
  opacity: .95;
}

.eventModal .modalDuration {
  margin-top: 1px;
  font-size: 11px;
  opacity: .9;
}

.eventModal .modalActions {
  gap: 6px;
  align-self: flex-start;
}

.eventModal .modalActions .btn.btnSm {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 12px;
  border-color: rgba(255, 255, 255, .45);
  background: rgba(8, 14, 22, .20);
  color: inherit;
}

.eventModal .modalActions .xBtn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border-color: rgba(255, 255, 255, .45);
  background: rgba(8, 14, 22, .20);
  color: inherit;
  font-size: 15px;
}

.eventModal .modalActions .btn.btnSm:hover,
.eventModal .modalActions .xBtn:hover {
  background: rgba(8, 14, 22, .30);
}

.eventModal .modalBody {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 10px 12px 8px;
  gap: 9px;
}

.eventModal .row {
  gap: 5px;
}

.eventModal .row.grid2 {
  gap: 8px;
}

.eventModal label {
  font-size: 11px;
  letter-spacing: .1px;
}

.eventModal .hint {
  font-size: 11px;
  line-height: 1.23;
}

.eventModal select,
.eventModal textarea,
.eventModal input[type="text"],
.eventModal input.timeManualInput {
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
}

.activityCombo {
  position: relative;
}

.activityCombo input[type="text"] {
  padding-right: 42px;
}

.activityCombo input[type="text"]::-webkit-calendar-picker-indicator {
  display: none !important;
  opacity: 0;
}

.activityComboBtn {
  position: absolute;
  right: 7px;
  top: 50%;
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: rgba(225, 235, 246, .82);
  cursor: pointer;
}

.activityComboBtn::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
}

.activityComboBtn:hover,
.activityComboBtn:focus-visible {
  border-color: rgba(148, 186, 229, .24);
  background: rgba(255, 255, 255, .07);
  outline: none;
}

.activitySuggestionsMenu {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid rgba(148, 186, 229, .24);
  border-radius: 10px;
  background: rgba(15, 26, 39, .98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .44);
}

.activitySuggestionOption {
  width: 100%;
  display: block;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.activitySuggestionOption:hover,
.activitySuggestionOption:focus-visible,
.activitySuggestionOption.isActive {
  background: rgba(78, 161, 255, .16);
  outline: none;
}

.activitySuggestionOption.isSelected {
  background: rgba(78, 161, 255, .22);
  color: #fff;
}

.activitySuggestionsMenu.isKeyboardNav .activitySuggestionOption:hover:not(.isActive),
.activitySuggestionsMenu.isKeyboardNav .activitySuggestionOption.isSelected:not(.isActive) {
  background: transparent;
  color: var(--text);
}

.activitySuggestionEmpty {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
}

html.light .activityComboBtn {
  color: rgba(15, 23, 42, .72);
}

html.light .activityComboBtn:hover,
html.light .activityComboBtn:focus-visible {
  border-color: var(--line2);
  background: rgba(15, 23, 42, .06);
}

html.light .activitySuggestionsMenu {
  background: #fff;
  border-color: var(--line2);
  box-shadow: 0 18px 34px rgba(15, 23, 42, .18);
}

html.light .activitySuggestionOption {
  color: var(--text);
}

html.light .activitySuggestionOption:hover,
html.light .activitySuggestionOption:focus-visible,
html.light .activitySuggestionOption.isActive {
  background: rgba(26, 115, 232, .10);
}

html.light .activitySuggestionOption.isSelected {
  background: rgba(26, 115, 232, .16);
  color: var(--text);
}

html.light .activitySuggestionsMenu.isKeyboardNav .activitySuggestionOption:hover:not(.isActive),
html.light .activitySuggestionsMenu.isKeyboardNav .activitySuggestionOption.isSelected:not(.isActive) {
  background: transparent;
  color: var(--text);
}

.eventModal textarea {
  min-height: 72px;
}

.eventModal .notesDictationField {
  position: relative;
}

.eventModal .notesDictationField textarea {
  padding-right: 62px;
}

.eventModal .dictateBtn {
  position: absolute;
  right: 11px;
  bottom: 11px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease, opacity .16s ease;
}

.eventModal .dictateBtn img {
  width: 16px;
  height: 16px;
  display: block;
  filter: invert(72%) saturate(0%) brightness(92%);
  opacity: .72;
  pointer-events: none;
  transition: filter .16s ease, opacity .16s ease;
}

.eventModal .dictateBtn:hover {
  background: rgba(148, 163, 184, .10);
}

.eventModal .dictateBtn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(78, 161, 255, .28),
    inset 0 1px 0 rgba(255, 255, 255, .16);
}

.eventModal .dictateBtn.is-listening {
  border-color: rgba(132, 186, 255, .96);
  background: rgba(47, 111, 216, .96);
  box-shadow:
    0 0 0 4px rgba(78, 161, 255, .22),
    0 0 22px rgba(78, 161, 255, .44),
    inset 0 1px 0 rgba(255, 255, 255, .18);
  animation: notesDictationPulse 1.25s ease-in-out infinite;
}

.eventModal .dictateBtn.is-listening img {
  filter: invert(1);
  opacity: .96;
}

.eventModal .dictateBtn:disabled,
.eventModal .dictateBtn.is-disabled {
  opacity: .42;
  cursor: not-allowed;
  filter: grayscale(.35);
  transform: none;
  box-shadow: none;
}

html.light .eventModal .dictateBtn {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

html.light .eventModal .dictateBtn img {
  filter: none;
  opacity: .44;
}

html.light .eventModal .dictateBtn:hover {
  background: rgba(15, 23, 42, .06);
}

html.light .eventModal .dictateBtn.is-listening {
  border-color: rgba(26, 115, 232, .64);
  background: rgba(232, 240, 254, .96);
  box-shadow:
    0 0 0 4px rgba(26, 115, 232, .16),
    0 0 18px rgba(26, 115, 232, .24),
    inset 0 1px 0 rgba(255, 255, 255, .72);
}

html.light .eventModal .dictateBtn.is-listening img {
  filter: none;
  opacity: .68;
}

@keyframes notesDictationPulse {

  0%,
  100% {
    transform: translateY(-1px) scale(1);
  }

  50% {
    transform: translateY(-1px) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .eventModal .dictateBtn {
    transition: none;
  }

  .eventModal .dictateBtn.is-listening {
    animation: none;
  }
}

.eventModal .idAutoPill {
  padding: 5px 8px;
  gap: 6px;
  font-size: 11px;
}

.eventModal .modalFooter {
  padding: 10px 12px 12px;
  gap: 8px;
}

.eventModal .modalFooter .pill {
  font-size: 11px;
}

@media (max-width: 720px) {
  .eventModal .modalHeader {
    flex-direction: column;
    align-items: stretch;
  }

  .eventModal .modalActions {
    align-self: flex-end;
    justify-content: flex-end;
  }

  .eventModal .row.grid2 {
    grid-template-columns: 1fr;
  }
}

html.light .eventModal .modalHeader h2,
html.light .eventModal .modalHeader .when,
html.light .eventModal .modalDuration {
  color: var(--eventModalHeaderText);
}

html.light .eventModal {
  /* Mantém o popup claro no modo claro */
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
}

html.light .eventModal .ctrlDate--compact {
  /* Garante leitura da data em qualquer cor de cabeçalho */
  color: #111827;
  background: rgba(255, 255, 255, .86);
  border-color: rgba(15, 23, 42, .28);
  color-scheme: light;
}

@media (max-width: 900px) {

  .importMappingHead,
  .importMappingRow {
    grid-template-columns: minmax(140px, 180px) 1fr;
  }
}

@media (max-width: 680px) {
  .importDropZone {
    min-height: 240px;
    padding: 18px;
  }

  .importDropTitle {
    font-size: 22px;
  }

  .importDropSubtitle {
    font-size: 13px;
  }

  .importConfigBody .row.grid2 {
    grid-template-columns: 1fr;
  }

  .importMappingHead,
  .importMappingRow {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .importSiteField small {
    margin-left: 4px;
  }
}

.helpBackdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, .72);
}

.helpBackdrop.show {
  display: flex;
}

.helpModal {
  width: min(920px, 100%);
  max-height: min(88vh, 920px);
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(148, 186, 229, .24);
  background: linear-gradient(180deg, rgba(30, 42, 56, .98), rgba(24, 35, 48, .96));
  box-shadow: 0 20px 64px rgba(0, 0, 0, .62);
  overflow: hidden;
}

.helpModalBody {
  padding: 18px 18px 22px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
}

.helpVideo {
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #000;
}

.helpVideo::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.helpVideoFrame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.helpIntro {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.helpSection {
  flex: 0 0 auto;
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
}

.helpSection h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.helpSection p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.helpSection ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}

.helpSection li+li {
  margin-top: 5px;
}

.pill {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px
}

.tableValueAccent {
  color: var(--accent);
  font-weight: 600;
}

.tableValueAccentSecondary {
  color: var(--accent2);
}

.tableFootLabel {
  text-align: right;
}

.hidden {
  display: none !important
}

.viewSection {
  height: 100%;
  min-height: 0;
}

.viewHint {
  margin-top: 10px;
}

.directoryView {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 20px;
  overflow: hidden;
}

.directoryEmptyState {
  width: 100%;
  padding: 40px;
  color: var(--muted);
  text-align: center;
}

.directoryToolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.directorySearchInput {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
}

.directoryGroupCombo {
  position: relative;
  flex: 0 1 380px;
  min-width: 240px;
  max-width: 420px;
}

.directoryGroupButton {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.directoryGroupButton:hover,
.directoryGroupButton:focus-visible,
.directoryGroupButton[aria-expanded="true"] {
  border-color: rgba(78, 161, 255, .55);
  box-shadow: 0 0 0 3px rgba(78, 161, 255, .12);
  outline: none;
}

.directoryGroupButtonText {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directoryGroupButton::after {
  content: "";
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  opacity: .82;
}

.directoryGroupMenu {
  min-width: 100%;
  width: min(560px, calc(100vw - 72px));
  max-height: min(340px, 52dvh);
}

.directoryGroupOption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.directoryGroupOption__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directoryGroupOption__count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}

.directoryGroupOption.isSelected .directoryGroupOption__count,
.directoryGroupOption.isActive .directoryGroupOption__count {
  color: rgba(255, 255, 255, .8);
}

.directoryColumns {
  display: flex;
  gap: 14px;
  flex: 1;
  min-height: 0;
}

.directoryColumn {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px;
  overflow: hidden;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.directoryColumn--sidebar {
  flex: 0 0 270px;
}

.directoryColumn--content {
  flex: 1;
}

.directoryColumnTitle {
  flex-shrink: 0;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.directoryColumnList {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
}

.directoryGroup {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.directoryGroupTitle {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 2px 5px;
  background: var(--panel2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.directoryCard {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 12px;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 6px;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}

.directoryCard--project {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
}

.directoryCard--project:hover,
.directoryCard--project.is-active {
  border-color: var(--accent);
}

.directoryCard--project:hover {
  background: rgba(78, 161, 255, .06);
}

.directoryCard--project.is-active {
  background: rgba(78, 161, 255, .12);
}

.directoryCard--activity:hover {
  background: rgba(78, 161, 255, .05);
  border-color: var(--accent);
}

.directoryCard__title {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.directoryCard__meta {
  color: var(--accent2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.directoryCard__count {
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.chartsWrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px;
  overflow-y: auto;
}

.chartCard {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.chartCard--tall {
  min-height: 400px;
}

.cardTitle {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.chartWrap--fixed {
  height: 320px;
}

.chartWrap--fill {
  position: relative;
  height: 100%;
}

.chartTooltip {
  position: absolute;
  z-index: 20;
  min-width: 180px;
  max-width: min(280px, calc(100% - 16px));
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .30);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
  transition: opacity .14s ease;
  backdrop-filter: blur(10px);
}

.chartTooltip.is-visible {
  opacity: 1;
}

.chartTooltip__title {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.chartTooltip__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  line-height: 1.35;
}

.chartTooltip__row+.chartTooltip__row {
  margin-top: 6px;
}

.chartTooltip__label {
  color: var(--muted);
}

.chartTooltip__value {
  color: var(--text);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.chartTooltip__value--accent {
  color: var(--accent2);
}

.chartTooltip__value--emphasis {
  color: var(--accent);
}


.emailWrap {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .18);
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  max-width: 320px;
}

.emailLbl {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .2px
}

.emailInput {
  width: 190px;
  max-width: 28vw;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 11px;
}

.emailInput::placeholder {
  color: rgba(159, 176, 195, .65)
}

@media (max-width:760px) {
  header.topbar {
    gap: 8px;
    padding: 8px 12px;
  }

  .topbarRow,
  .topbarRow--top,
  .topbarRow--middle,
  .topbarRow--bottom {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .headerUtilityBar,
  .viewBtns,
  .navGroup,
  .rightActions,
  .periodMeta,
  .saveInfoBar {
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
  }

  .viewBtns .btn,
  .navGroup .btn,
  .rightActions .btn,
  .headerUtilityBar .exportMenuWrap>.btn {
    width: auto;
    min-width: 0;
  }

  .headerUtilityBar .emailWrap {
    min-width: 0;
  }

  #lastSavedInfo {
    text-align: left;
  }

  .rangeSm {
    min-width: unset;
    width: 100%
  }

  .brand {
    min-width: unset
  }

  .range {
    width: auto;
    margin-left: 0;
    justify-content: center
  }

  .siteBrand {
    width: max-content;
  }

  .utilityControls {
    margin-left: 0;
  }

  .toolbar {
    overflow-x: auto;
    flex-wrap: nowrap
  }

  .toolbar {
    gap: 8px
  }

  .btn {
    padding: 8px 9px
  }

  .row.grid2 {
    grid-template-columns: 1fr
  }

  table {
    min-width: 940px
  }
}

.btnIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
  opacity: .9
}

.btnIcon svg {
  width: 13px;
  height: 13px;
  display: block;
  fill: currentColor
}

.btnIcon svg.iconStroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round
}
