.header {
  background: #6a0080;
  color: #fff;
  padding: 6px 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.header h1 {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.header-action-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  border-radius: 4px;
  line-height: 1;
  flex-shrink: 0;
  display: none; /* hidden on KaiOS (≤240px) */
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}

@media (min-width: 241px) {
  .header-action-btn {
    display: flex;
  }
}

.header-action-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.header-action-btn:active {
  background: rgba(255, 255, 255, 0.25);
}

.btn-label {
  display: none;
}

@media (min-width: 241px) {
  .header-action-btn.has-label {
    width: auto;
    padding: 0 8px;
    gap: 4px;
    font-size: 14px;
  }

  .btn-label {
    display: inline;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2px;
  }
}

.header-action-btn.icon-share::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: url('../assets/share.svg') no-repeat center / contain;
  mask: url('../assets/share.svg') no-repeat center / contain;
}
