
/* AURIXA SIGNAL — TASK HEADER ONLY */

/* Fixed header geometry across languages */
html body .wheel4 > .duh-header.duh-master {
  box-sizing: border-box !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;

  height: 84px !important;
  min-height: 84px !important;
  max-height: 84px !important;

  padding-top: 10px !important;
  padding-bottom: 10px !important;

  overflow: visible !important;
}

/* Left user area may shrink, but never wrap */
html body .wheel4 > .duh-header .duh-user {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  flex: 1 1 0% !important;

  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;

  gap: 8px !important;
}

/* Avatar retains original dimensions */
html body .wheel4 > .duh-header .duh-avatar {
  flex-shrink: 0 !important;
}

/* Text never increases header height */
html body .wheel4 > .duh-header .duh-copy {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  flex: 1 1 0% !important;

  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Keep welcome, username and Telegram handle single-line */
html body .wheel4 > .duh-header .duh-copy > span,
html body .wheel4 > .duh-header .duh-copy > b,
html body .wheel4 > .duh-header .duh-copy > small {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;

  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
}

/* Buttons are protected from text growth */
html body .wheel4 > .duh-header .duh-actions {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;

  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  width: auto !important;
  min-width: 0 !important;
  gap: 6px !important;
  white-space: nowrap !important;
}

html body .wheel4 > .duh-header .duh-actions > *,
html body .wheel4 > .duh-header .duh-action {
  flex-shrink: 0 !important;
}

/* Preserve the language popup outside the header */
html body .wheel4 > .duh-header .duh-language-wrap {
  position: relative !important;
  flex-shrink: 0 !important;
}

/* Compact Telegram windows */
@media (max-width: 380px) {
  html body .wheel4 > .duh-header.duh-master {
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    gap: 6px !important;
  }

  html body .wheel4 > .duh-header .duh-user {
    gap: 6px !important;
  }

  html body .wheel4 > .duh-header .duh-actions {
    gap: 5px !important;
  }
}


/* V2: match the English Task header's full-bleed width */
html body .wheel4 > .duh-header.duh-master {
  box-sizing: border-box !important;
  width: calc(100% + 16px) !important;
  min-width: calc(100% + 16px) !important;
  max-width: none !important;
  margin-left: -8px !important;
  margin-right: 0 !important;
  position: relative !important;
  left: 0 !important;
  right: auto !important;
  direction: ltr !important;
  overflow: visible !important;
}

/* Preserve fixed controls and constrain translated text */
html body .wheel4 > .duh-header.duh-master .duh-user {
  min-width: 0 !important;
  flex: 1 1 0% !important;
}

html body .wheel4 > .duh-header.duh-master .duh-copy {
  min-width: 0 !important;
  overflow: hidden !important;
}

html body .wheel4 > .duh-header.duh-master .duh-actions {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}


/* V3 — identical inner alignment in every language */
html body .wheel4 > .duh-header.duh-master {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) max-content !important;
  align-items: center !important;
  justify-content: normal !important;
  column-gap: 8px !important;
  padding-left: 9px !important;
  padding-right: 8px !important;
  direction: ltr !important;
  overflow: visible !important;
}

html body .wheel4 > .duh-header.duh-master > .duh-user {
  display: flex !important;
  flex: initial !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  justify-self: stretch !important;
  gap: 8px !important;
}

html body .wheel4 > .duh-header.duh-master .duh-copy {
  min-width: 0 !important;
  flex: 1 1 0% !important;
  overflow: hidden !important;
}

html body .wheel4 > .duh-header.duh-master > .duh-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  flex: initial !important;
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
  margin: 0 !important;
  justify-self: end !important;
  gap: 6px !important;
}

html body .wheel4 > .duh-header.duh-master
.duh-language-wrap {
  position: relative !important;
  flex-shrink: 0 !important;
}


/* V4: synchronize Task gutter geometry with native 7px padding */
html body .wheel4 > .duh-header.duh-master {
    box-sizing: border-box !important;
    width: calc(100% + 14px) !important;
    min-width: calc(100% + 14px) !important;
    max-width: none !important;
    margin-left: -7px !important;
    margin-right: 0 !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    direction: ltr !important;
}

html body .wheel4 > .duh-header.duh-master > .duh-user {
    min-width: 0 !important;
    max-width: 100% !important;
}

html body .wheel4 > .duh-header.duh-master > .duh-actions {
    justify-self: end !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}
