.front-language {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid #d8deea;
  border-radius: 8px;
  color: #374151;
  background: white;
}
.front-language svg { width: 20px; height: 20px; }
.public-nav .front-language { background: #202635; color: white; border-color: #626979; }
.auth-brand-row .front-language { margin-left: 6px; }
.auth-brand-row > a:first-child { margin-right: auto; }
:lang(de) .matching-action, :lang(es) .matching-action { overflow-wrap: anywhere; }

/* Keep both amounts on the same baseline when a translated label wraps. */
.image-job-metrics > span {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  row-gap: 0;
}
html:not(:lang(zh)) .scene-metric strong + small { margin-inline-start: .3em; }
@media (max-width: 700px) {
  html:not(:lang(zh)) .security-options button,
  html:not(:lang(zh)) .dialog-head h2 {
    min-width: 0;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}
@media (min-width: 701px) and (max-width: 850px) {
  html:not(:lang(zh)) .user-shell .topbar {
    gap: 8px;
    padding-inline: 12px;
  }
  html:not(:lang(zh)) .desktop-workspace-nav button {
    padding-inline: 6px;
  }
}
@media (max-width: 360px) {
  .ai-pending .ai-stage { overflow: clip; }
}

.checkin-page, .checkin-history { min-width: 0; max-width: 100%; }
.checkin-history .table-wrap { max-width: 100%; overflow-x: auto; }
.checkin-calendar .checkin-week, .checkin-calendar .checkin-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }

/* Keep translated task status separate from the Token amount. */
.combo-trial-panel .detail-row small { display: block; margin-top: 4px; }
