.tf-client-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 106, 113, 0.16);
  background: rgba(13, 106, 113, 0.1);
  color: #0b4c52;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.tf-client-shell {
  width: min(1280px, calc(100vw - 24px));
  margin: 0 auto 18px;
}

body.tpl-public-page .tf-client-shell {
  position: fixed;
  top: max(10px, env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 28;
  transform: translateX(-50%);
  margin-bottom: 18px;
  pointer-events: none;
}

.tf-client-shell-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 24px;
  border: 1px solid rgba(13, 106, 113, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 34px rgba(27, 27, 27, 0.08);
  backdrop-filter: blur(18px);
  transition: padding 180ms ease, border-radius 180ms ease, box-shadow 180ms ease, gap 180ms ease, transform 180ms ease, opacity 180ms ease;
}

body.tpl-public-page .tf-client-shell-inner {
  pointer-events: auto;
}

.tf-client-shell-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tf-client-shell-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0d6a71;
}

.tf-client-shell-status {
  font-size: 1rem;
  line-height: 1.25;
}

.tf-client-shell-note {
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(27, 27, 27, 0.72);
  transition: opacity 160ms ease, max-height 160ms ease, transform 160ms ease;
}

.tf-client-shell-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

body.tpl-public-page.is-public-chrome-compact .tf-client-shell-inner {
  gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(27, 27, 27, 0.12);
}

body.tpl-public-page.is-public-chrome-compact .tf-client-shell-copy {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.tpl-public-page.is-public-chrome-compact .tf-client-shell-kicker,
body.tpl-public-page.is-public-chrome-compact .tf-client-shell-note {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-4px);
}

body.tpl-public-page.is-public-chrome-compact .tf-client-shell-status {
  font-size: 0.94rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 860px) {
  .tf-client-shell-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .tf-client-shell-actions {
    justify-content: stretch;
  }

  .tf-client-shell-actions > * {
    width: 100%;
  }

  .tf-client-status-badge {
    width: 100%;
  }

  body.tpl-public-page .tf-client-shell {
    width: calc(100vw - 16px);
  }

  body.tpl-public-page.is-public-chrome-compact .tf-client-shell-inner {
    padding: 8px 10px;
  }

  body.tpl-public-page.is-public-chrome-compact .tf-client-shell-copy {
    display: block;
  }

  body.tpl-public-page.is-public-chrome-compact .tf-client-shell-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.tpl-public-page.is-public-chrome-compact .tf-client-shell-actions > * {
    width: 100%;
  }
}
